:root {
  color-scheme: light dark;
  --paper: light-dark(#fff, #17241f);
  --canvas: light-dark(#f7f9f7, #111b16);
  --ink: light-dark(#172e28, #edf5f1);
  --secondary: light-dark(#4d6458, #b7cabe);
  --line: light-dark(#d4dfd7, #42584a);
  --soft: light-dark(#eef4ef, #25382c);
  --brand: light-dark(#24583d, #aad2b8);
  --aster: light-dark(#286249, #8dc8a9);
  --beacon: light-dark(#365f97, #9dbde9);
  --cedar: light-dark(#81538e, #d2abde);
  font:
    14px/1.5 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  padding: 8px 12px;
}
button {
  cursor: pointer;
}
button:hover {
  background: var(--soft);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 17px;
  font-weight: 550;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
strong {
  font-weight: 550;
}
small {
  font-size: 14px;
}
.secondary,
.eyebrow,
.snapshot {
  color: var(--secondary);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  z-index: 5;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 0;
}
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.wordmark {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.wordmark span {
  font-size: 14px;
  font-weight: 400;
  margin-left: 10px;
  color: var(--secondary);
}
#mode-label {
  color: var(--secondary);
}
.demo-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.theme-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.design-lab {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.design-lab .section-heading {
  align-items: start;
}
.design-lab p {
  margin-top: 8px;
  max-width: 90ch;
}
.defect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 20px 0;
}
.defect-option {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.defect-option input {
  min-height: 24px;
  width: 24px;
  flex: none;
  margin: 0;
  accent-color: var(--brand);
}
.defect-option > span {
  display: grid;
  gap: 4px;
}
.defect-rule,
.defect-option small,
.lab-note {
  color: var(--secondary);
}
.application {
  position: relative;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100vh - 62px);
}
.application.nav-closed {
  grid-template-columns: minmax(0, 1fr);
}
.sidebar {
  background: var(--soft);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}
.product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  margin-bottom: 32px;
}
.product-name svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.sidebar-label {
  color: var(--secondary);
  margin: 26px 8px 10px;
}
.sidebar button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 0;
  background: transparent;
}
.sidebar [aria-current="page"] {
  background: var(--brand);
  color: var(--paper);
}
.sidebar [aria-pressed="true"] {
  background: var(--paper);
}
.sidebar-footer {
  margin: 40px 8px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
}
.sidebar-footer p {
  margin: 6px 0;
}
.sidebar-footer a {
  display: block;
  margin-top: 20px;
}
.workspace {
  min-width: 0;
  padding: 0 24px 32px;
  background: var(--paper);
}
.workspace-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 80px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: none;
}
.snapshot {
  margin-left: auto;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.metrics > div {
  display: grid;
  gap: 2px;
}
.metrics span,
.metrics small {
  color: var(--secondary);
}
.metrics strong {
  font-size: 28px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.performance {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.chart-context,
.chart-footnote {
  margin-top: 8px;
  max-width: 120ch;
}
.carrier-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.carrier-chart {
  min-width: 0;
  margin: 0;
  --carrier: var(--aster);
}
[data-carrier="aster"] {
  --carrier: var(--aster);
}
[data-carrier="beacon"] {
  --carrier: var(--beacon);
}
[data-carrier="cedar"] {
  --carrier: var(--cedar);
}
.carrier-chart figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.carrier-title {
  color: var(--carrier);
}
.plot {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 96px;
  margin-top: 21px;
  text-align: right;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}
.bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bars li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  height: 96px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    to bottom,
    transparent calc(50% - 0.5px),
    var(--line) 50%,
    transparent calc(50% + 0.5px)
  );
}
.bar {
  display: block;
  width: min(100%, 26px);
  background: var(--carrier);
}
.bar.estimated {
  background: repeating-linear-gradient(
    135deg,
    var(--carrier) 0 3px,
    var(--paper) 3px 6px
  );
  border: 1px solid var(--carrier);
}
.bar-day {
  margin-top: 4px;
  color: var(--secondary);
}
.task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-top: 22px;
  align-items: start;
}
.queue-section {
  min-width: 0;
  grid-row: span 2;
}
.parcel-section,
.quotes-section {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.filters label {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.filter-caption {
  color: var(--secondary);
}
.filters select {
  max-width: 100%;
}
.search-label {
  flex: 1 1 240px;
}
.search-label input {
  width: 100%;
  min-width: 0;
}
.queue-labels,
.shipment-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr) minmax(68px, 0.6fr) minmax(112px, 1fr)
    40px;
  align-items: center;
  gap: 12px;
}
.queue-labels {
  color: var(--secondary);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.shipment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.shipment-item {
  border-bottom: 1px solid var(--line);
}
.shipment-row {
  padding: 6px 10px;
  min-height: 56px;
}
.shipment-row.is-selected {
  background: var(--soft);
  box-shadow: inset 3px 0 var(--brand);
}
.select-parcel {
  display: flex;
  align-items: start;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 2px;
  min-width: 0;
}
.select-parcel span {
  overflow-wrap: anywhere;
}
.shipment-state {
  display: grid;
  gap: 2px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
}
.status-badge[data-status="attention"]::before {
  background: light-dark(#94621a, #e4b46b);
  border-radius: 1px;
  transform: rotate(45deg);
}
.status-badge[data-status="delivered"]::before {
  background: var(--beacon);
}
.carrier-name {
  color: var(--carrier);
}
.expand-parcel[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.shipment-disclosure {
  padding: 12px 16px 16px;
  background: var(--soft);
}
.shipment-disclosure p,
.queue-footnote {
  margin-top: 6px;
}
.empty-state {
  padding: 32px 12px;
  border-bottom: 1px solid var(--line);
}
.empty-state p {
  margin-top: 8px;
}
.parcel-route {
  margin: 12px 0;
}
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.detail-tabs [aria-selected="true"] {
  border-bottom-color: var(--brand);
  background: var(--soft);
}
[role="tabpanel"] {
  padding-top: 16px;
}
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.journey li {
  position: relative;
  padding-top: 18px;
  text-align: center;
  color: var(--secondary);
}
.journey li::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  left: calc(50% - 5px);
  top: 1px;
  background: var(--paper);
  z-index: 1;
}
.journey li:not(:last-child)::after {
  position: absolute;
  content: "";
  height: 1px;
  width: 100%;
  top: 6px;
  left: 50%;
  background: var(--line);
}
.journey [aria-current="step"] {
  color: var(--ink);
}
.journey [aria-current="step"]::before {
  background: var(--brand);
}
.parcel-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.parcel-facts dt {
  color: var(--secondary);
}
.parcel-facts dd {
  margin: 2px 0 0;
}
.parcel-note {
  margin-top: 16px;
  padding: 12px;
  border-left: 2px solid var(--brand);
  background: var(--soft);
}
.event-list {
  padding-left: 22px;
}
.event-list li {
  padding: 8px 0;
}
.quotes-section p {
  margin: 10px 0;
  max-width: 65ch;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  color: var(--secondary);
  margin: 10px 0;
}
th,
td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
thead th {
  color: var(--secondary);
}
.quote-amount,
.charges td {
  text-align: right;
}
.quote-service {
  display: block;
}
.quotes {
  max-width: 540px;
}
.application[data-page="shipments"] .performance {
  display: none;
}
.application[data-page="carriers"] .queue-section {
  display: none;
}
.application[data-page="carriers"] .task-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.application[data-page="carriers"] .quotes-section {
  grid-row: 1;
  grid-column: 1;
  border: 0;
  padding: 0;
}
.application[data-page="carriers"] .parcel-section {
  grid-column: 2;
}
/* Defects change presentation, leaving the underlying observations untouched. */
.defect-context .chart-context {
  display: none;
}
.defect-tabs .detail-tabs button {
  width: 72px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.defect-alignment .quote-amount {
  text-align: left;
}
.defect-contrast {
  --secondary: light-dark(#aaa, #65776b);
}
.defect-framing .workspace-heading {
  min-height: 196px;
}
.defect-framing .shipment-row {
  min-height: 100px;
}
.application.defect-overlap {
  grid-template-columns: minmax(0, 1fr);
}
.defect-overlap .sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 208px;
  z-index: 2;
  box-shadow: 6px 0 16px #0002;
}
.defect-overlap #nav-toggle {
  position: relative;
  z-index: 3;
}
.defect-encoding .quotes [data-carrier="aster"] {
  --carrier: var(--cedar);
}
.defect-encoding .quotes [data-carrier="cedar"] {
  --carrier: var(--aster);
}
@media (min-width: 1800px) {
  .task-grid {
    grid-template-columns: minmax(620px, 1.5fr) minmax(340px, 1fr) minmax(
        340px,
        1fr
      );
  }
  .queue-section {
    grid-row: auto;
  }
  .application[data-page="carriers"] .task-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  }
  .bars {
    gap: 12px;
  }
  .bar {
    width: min(100%, 48px);
  }
}
@media (max-width: 1199px) {
  .application {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .workspace {
    padding: 0 16px 24px;
  }
  .task-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .queue-section {
    grid-row: auto;
  }
  .parcel-section,
  .quotes-section {
    border-left: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
  }
  .carrier-charts {
    gap: 16px;
  }
  .chart-domain {
    display: none;
  }
  .metrics {
    gap: 16px;
  }
}
@media (max-width: 799px) {
  .wordmark span,
  .metrics small {
    display: none;
  }
  .application,
  .application[data-page="carriers"] .task-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav,
  .saved-views {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar button {
    width: auto;
  }
  .sidebar-label {
    margin-top: 16px;
  }
  .sidebar-footer {
    display: none;
  }
  .product-name {
    margin-bottom: 12px;
  }
  .workspace-heading {
    gap: 12px;
  }
  .snapshot {
    margin-left: 0;
  }
  .metrics,
  .defect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .carrier-charts {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart-domain {
    display: inline;
  }
  .application[data-page="carriers"] .parcel-section {
    grid-column: 1;
  }
  .queue-labels {
    display: none;
  }
  .shipment-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 6px 10px;
  }
  .select-parcel {
    grid-column: 1;
  }
  .shipment-row > .carrier-name {
    grid-column: 1;
  }
  .shipment-state {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .expand-parcel {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .demo-bar {
    padding: 12px 16px;
  }
  .demo-actions {
    margin-left: 0;
    gap: 12px;
  }
  .design-lab {
    padding: 16px;
  }
}
@media (max-width: 479px) {
  .defect-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  h1 {
    font-size: 23px;
  }
  .metrics {
    gap: 16px 12px;
  }
  .theme-label {
    flex-wrap: wrap;
  }
}
