:root {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  color: #192a35;
  background: #f3f4f7;
  font-size: 100%;
  --teal: #086d70;
  --ink: #19343b;
  --muted: #536774;
  --line: #d8e1e3;
  --surface: #fff;
  --grouped: #f3f4f7;
  --chrome: #f8f9fb;
  --rail: #ebeff3;
  --selection: #d4e9e6;
  --segment-track: #e1e5e9;
  --elevation: 0 1px 3px rgb(21 39 49 / 9%);
}
* {
  box-sizing: border-box;
}
.company-choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.company-choice-field legend { margin-bottom: .45rem; font-weight: 600; }
.company-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .35rem;
}
.company-choice-grid label {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 2.75rem;
  gap: .55rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.company-choice-grid label:has(:checked) { background: var(--selection); border-color: var(--teal); }
.company-choice-grid label:focus-within { outline: 2px solid var(--teal); outline-offset: 1px; }
.company-choice-grid input[type=checkbox] { width: 1rem; height: 1rem; min-height: 0; margin: 0; accent-color: var(--teal); }
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2366b1;
}
button {
  cursor: pointer;
  border: 1px solid #c0cfd1;
  background: white;
  color: var(--ink);
  border-radius: .65rem;
  padding: 0.58rem 0.86rem;
  font-weight: 600;
  font-size: 0.92rem;
}
button:hover {
  background: #eef5f5;
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
button.primary:hover {
  background: #07575a;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--teal);
  font-weight: 600;
}
button.link {
  background: none;
  border: none;
  color: var(--teal);
  padding: 0.1rem;
  text-align: left;
}
button.full {
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.89rem;
  font-weight: 630;
  color: #2a414a;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #adbec3;
  border-radius: 6px;
  background: white;
  padding: 0.65rem 0.72rem;
  color: var(--ink);
  font-weight: 400;
}
select:where(:not([multiple])):where(:not([size]), [size='0'], [size='1']) {
  --select-inset: .875rem;
  --chevron-half: .375rem;
  --chevron-stroke: transparent 34%, currentColor 40% 60%, transparent 66%;
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: calc(var(--select-inset) + 2 * var(--chevron-half) + .75rem);
  background-image: linear-gradient(45deg, var(--chevron-stroke)), linear-gradient(135deg, var(--chevron-stroke));
  background-size: var(--chevron-half) var(--chevron-half);
  background-position: right calc(var(--select-inset) + var(--chevron-half)) center, right var(--select-inset) center;
  background-repeat: no-repeat;
}
select:dir(rtl) {
  background-position: left var(--select-inset) center, left calc(var(--select-inset) + var(--chevron-half)) center;
}
@media (forced-colors: active) {
  select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}
textarea {
  min-height: 5rem;
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin-bottom: 0.55rem;
}
h2 {
  font-size: 1.24rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.muted,
small {
  color: var(--muted);
}
.error {
  color: #973824;
  background: #fff1ed;
  padding: 0.7rem;
  border-radius: 6px;
}
.success {
  color: #075c50;
  background: #e4f4ee;
  padding: 0.7rem;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 1rem;
  z-index: 10;
}
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.rail {
  background: #fdfefe;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 0.85rem 1rem;
  gap: 0.35rem;
}
.rail img {
  width: 115px;
  height: auto;
  margin: 0.15rem 0.8rem 1.1rem;
}
.rail .section-label {
  margin: 1.2rem 0.8rem 0.4rem;
}
.section-label,
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 730;
  color: #4f666d;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  background: transparent;
  border: 0;
  min-height: 41px;
  font-size: 0.94rem;
  color: #48616a;
  font-weight: 560;
  padding: 0.55rem 0.75rem;
}
.nav[aria-current] {
  background: var(--selection);
  color: #086568;
  font-weight: 680;
}
.identity {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 0.95rem 0.65rem 0.2rem;
  display: grid;
  gap: 0.32rem;
}
.identity strong {
  font-size: 0.92rem;
}
.identity small {
  font-size: 0.81rem;
}
.stage {
  min-width: 0;
}
.bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0.65rem clamp(1rem, 4vw, 3.5rem);
  font-size: 0.91rem;
}
.bar span {
  color: var(--muted);
}
.bar b {
  color: #143f46;
}
.bar form {
  display: flex;
  gap: 0.35rem;
  width: min(340px, 50%);
}
.desk-mode { display: inline-flex; flex-direction: row; align-items: center; gap: .5rem; white-space: nowrap; }
.desk-mode select { width: auto; min-height: 2.25rem; font-weight: 600; }
.bar .desk-location { margin-inline-end: auto; }
.view-marker strong, .sheet-marker {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.sheet-marker { display: block; }
.bar input {
  font-size: 0.9rem;
  background: #f6f8f8;
  padding: 0.48rem 0.7rem;
}
.bar button {
  padding: 0.38rem 0.65rem;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 2rem clamp(1rem, 4vw, 3.5rem) 4rem;
}
.heading,
.toolbar,
.row,
.actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.heading {
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.eyebrow {
  color: var(--teal);
  margin: 0 0 0.6rem;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  margin-bottom: 1rem;
}
.card.table {
  padding: 0;
  overflow: auto;
}
.toolbar {
  margin: 0.65rem 0 1rem;
}
.toolbar label {
  min-width: 8rem;
}
.toolbar input,
.toolbar select {
  font-size: 0.9rem;
}
.toolbar button {
  align-self: end;
}
.tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.tabs button {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  color: #536970;
}
.tabs button.active {
  border-bottom: 3px solid var(--teal);
  color: var(--teal);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  text-align: left;
}
th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e5eaea;
  vertical-align: middle;
}
th {
  font-size: 0.83rem;
  color: #536771;
  font-weight: 650;
  background: #f5f8f8;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.day-row th {
  background: #eaf1f0;
  color: #284b4f;
}
.status {
  display: inline-block;
  color: #315964;
  background: #e8f1f2;
  border-radius: 5px;
  padding: 0.22rem 0.48rem;
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
}
.route {
  display: inline-block;
  font-weight: 650;
  color: #07676b;
  white-space: nowrap;
}
.empty {
  padding: 2.3rem 1.4rem;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.metric {
  text-align: left;
  padding: 1rem;
  border-color: var(--line);
}
.metric span,
.metric strong {
  display: block;
}
.metric span {
  font-size: 0.84rem;
  color: var(--muted);
}
.metric strong {
  font-size: 1.6rem;
  margin-top: 0.45rem;
  letter-spacing: -0.04em;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}
.facts div {
  min-width: 0;
}
.facts dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.actions {
  margin: 1rem 0;
}
.actions button {
  font-size: 0.87rem;
}
.tabs + .toolbar {
  margin-top: 1rem;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 2rem;
}
.login-form {
  width: min(100%, 390px);
  display: grid;
  gap: 1.05rem;
}
.login-form p {
  margin: 0;
  line-height: 1.5;
}
.login-form .check-row {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  gap: 0.65rem;
}
.login-form .check-row input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--teal, #006d70);
}
.login-form .primary {
  padding: 0.72rem 1rem;
}
.password-row {
  display: flex;
  gap: 0.35rem;
}
.password-row input {
  flex: 1;
}
.password-row button {
  font-size: 0.8rem;
}
.help {
  font-size: 0.86rem;
  line-height: 1.6;
}
.help summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 650;
}
.help p {
  margin-top: 0.5rem;
}
dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 1.4rem;
  box-shadow: 0 12px 64px #17333430;
}
dialog::backdrop {
  background: #102f3f61;
}
.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-foot {
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin: 1.15rem 0;
}
.wide {
  grid-column: 1/-1;
}
.narrative-field { min-width: 0; }
.field-dictation { margin-top: .3rem; }
.field-dictation button { padding: .2rem .45rem; font-size: .83rem; }
.field-dictation p:empty { display: none; }
.field-dictation p { margin: .25rem 0; }
.fields fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  min-width: 0;
}
.fields legend {
  font-size: 0.9rem;
  font-weight: bold;
}
.note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.front-error {
  padding: 2rem;
}
.record-links {
  display: grid;
  gap: 0.4rem;
}
.notice:empty {
  display: none;
}
.split-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.inline-check {
  flex-direction: row;
  align-items: center;
}
.inline-check input {
  width: auto;
}
.unit {
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .rail {
    padding: 0.8rem 0.45rem;
  }
  .bar {
    padding: 0.6rem 1rem;
  }
  .content {
    padding: 1.3rem 1rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .workspace {
    display: block;
  }
  .rail {
    flex-direction: row;
    align-items: center;
    overflow: auto;
    border-bottom: 1px solid var(--line);
  }
  .rail img {
    width: 70px;
    margin: 0.2rem;
  }
  .rail .section-label,
  .rail .identity {
    display: none;
  }
  .nav {
    white-space: nowrap;
  }
  .login-panel {
    padding: 2rem 1.2rem;
  }
  .bar {
    min-height: 55px;
  }
  .content {
    padding: 1rem 0.75rem;
  }
  .heading {
    gap: 0.9rem;
  }
  th,
  td {
    padding: 0.65rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}
[hidden] {
  display: none !important;
}
.phone-tabs {
  display: none;
}
.rail {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow-y: auto;
  background: var(--rail);
}
.bar {
  background: var(--chrome);
  position: sticky;
  top: 0;
  z-index: 3;
}
.tabs {
  flex-wrap: wrap;
}
.single-filter {
  width: min(19rem, 100%);
  margin-block: 1rem;
}
.work-list {
  margin: 0;
  padding-inline-start: 1.2rem;
  line-height: 1.6;
}
.work-list small,
td small {
  display: block;
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 0.8rem;
}
.queue-grid .card {
  margin: 0;
}
.queue-grid + h2,
.cal-week + h2 {
  margin-top: 1.5rem;
}
.cal-week {
  margin: 1.15rem 0;
  container: load-week / inline-size;
}
.cal-frame {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
  background: white;
}
.cal-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.89rem;
  line-height: 1.35;
}
.cal-table th,
.cal-table td {
  padding: 0.38rem 0.7rem;
  border: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
  text-align: start;
}
.cal-table thead th {
  background: #edf2f3;
  color: #334951;
  font-weight: 650;
}
.cal-table .cal-date {
  width: 14%;
}
.cal-table .cal-load-id {
  width: 22%;
}
.cal-table .cal-appointment {
  width: 15%;
  font-variant-numeric: tabular-nums;
}
.cal-day tr > * {
  border-top: 1px solid var(--line);
}
.cal-day .cal-date {
  background: #f7f9f9;
  color: var(--ink);
  border-inline-end: 1px solid var(--line);
}
.cal-table th small {
  display: block;
}
.cal-day.current-day .cal-date {
  background: #e2f1ef;
  color: #00565d;
}
.cal-load .cal-load-id {
  border-inline-start: 3px solid var(--load-type-color, var(--teal));
}
.cal-load-id small,
.cal-inline-dates {
  margin-top: 0.12rem;
}
.cal-table .cal-inline-dates {
  display: none;
}
.cal-table .cal-empty {
  color: var(--muted);
}
.cal-load.type-sell {
  --load-type-color: #185dac;
}
.cal-load.type-broker {
  --load-type-color: #7553a0;
}
.cal-load.type-transfer {
  --load-type-color: #807018;
}
.cal-load.type-reject {
  --load-type-color: #b23c33;
}
.cal-load.type-reject_resold {
  --load-type-color: #9b5a19;
}
@container load-week (max-width: 38rem) {
  .cal-table th,
  .cal-table td {
    padding: 0.35rem 0.42rem;
  }
  .cal-table .cal-date {
    width: 22%;
  }
  .cal-table .cal-load-id {
    width: 31%;
  }
  .cal-table .cal-appointment {
    display: none;
  }
  .cal-table .cal-inline-dates {
    display: block;
  }
}
.nav-sheet nav {
  display: grid;
  gap: 0.4rem;
}
.card,
.heading,
.dialog-head,
.facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.toolbar {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .workspace {
    display: block;
  }
  .rail {
    display: none;
  }
  .phone-tabs {
    position: fixed;
    z-index: 4;
    bottom: 0;
    inset-inline: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem;
    background: #fafbfc;
    border-top: 1px solid var(--line);
    padding: 0.22rem max(0.35rem, env(safe-area-inset-right)) max(0.22rem, env(safe-area-inset-bottom))
      max(0.35rem, env(safe-area-inset-left));
  }
  .phone-tabs button {
    background: transparent;
    border: 0;
    min-width: 0;
    font-size: 0.88rem;
  }
  .phone-tabs [aria-current='page'] {
    background: #e1f0ed;
    color: #00595a;
  }
  .content {
    padding: 1.1rem 0.85rem calc(5.2rem + env(safe-area-inset-bottom));
  }
  .bar {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
  }
  .bar form {
    width: 100%;
  }
  .bar input,
  input,
  select,
  textarea {
    font-size: 1rem;
  }
  .heading {
    flex-wrap: wrap;
  }
  .heading .row,
  .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cal-week {
    margin-block: 0.85rem;
  }
  dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 86dvh;
    border-radius: 1.1rem 1.1rem 0 0;
    padding: 1rem 1rem max(1.2rem, env(safe-area-inset-bottom));
  }
  .nav-sheet nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (pointer: coarse), (max-width: 700px) {
  button,
  .nav,
  .tabs button,
  input:not([type='checkbox']),
  select {
    min-height: 44px;
  }
  .cal-load a,
  .work-list a,
  .record-links a,
  td a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (prefers-contrast: more) {
  :root {
    --line: #75838b;
    --muted: #344751;
  }
  button {
    border-color: #667780;
  }
}
@media (prefers-reduced-motion: reduce) {
  :focus-within {
    scroll-behavior: auto;
  }
}

.book-load-sheet {
  container-type: inline-size;
  width: min(64rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5rem 1rem;
  background: var(--grouped);
  border-radius: 1.35rem;
}
.book-load-sheet .dialog-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .55rem;
  padding: .65rem clamp(.9rem, 2vw, 1.5rem);
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.book-load-sheet .dialog-head h2 { font-size: 1.25rem; letter-spacing: -.025em; text-align: center; }
.book-load-sheet .sheet-marker { display: block; text-align: center; }
.book-load-sheet .sheet-cancel { justify-self: start; }
.book-load-sheet .dialog-head .primary { justify-self: end; }
:root .book-load-sheet .sheet-cancel { background: transparent; color: var(--teal); border-color: transparent; }
:root .book-load-sheet .sheet-cancel:active,
:root .book-load-sheet .save-load-draft:active,
:root .book-load-sheet .load-repeat button:active { background: var(--selection); }
:root .book-load-sheet .dialog-head .primary:active { filter: brightness(.87); }
.book-load-sheet form { padding: 1rem clamp(.9rem, 2vw, 1.5rem) 1.25rem; }
.book-load-sheet form > .fields { grid-template-columns: minmax(0, 1fr); margin: 0; gap: 1rem; }
.book-load-sheet form > .notice { margin: 0 0 1rem; }
.book-load-sheet button,
.book-load-sheet input,
.book-load-sheet select,
.book-load-sheet summary { min-height: 2.75rem; }

.load-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: 'supplier customer' 'carrier carrier' 'origin destination';
  gap: .9rem;
}
.load-layout .supplier { grid-area: supplier; }
.load-layout .customer { grid-area: customer; }
.load-layout .carrier { grid-area: carrier; }
.load-layout .origin { grid-area: origin; }
.load-layout .destination { grid-area: destination; }
.book-load-sheet :is(.load-section, .load-booking-details, .load-repeat, .load-basics) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin: 0;
  min-inline-size: 0;
  padding: .8rem .95rem;
}
.book-load-sheet legend {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 680;
  padding-inline: .3rem;
}
.load-section legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.load-section legend .desk-symbol { color: var(--teal); width: 1rem; height: 1rem; }

.load-basics, .load-section, .load-carrier-fields, .load-equipment-fields, .load-booking-details {
  display: grid;
  gap: .6rem .9rem;
  align-content: start;
}
.load-basics, .load-carrier-fields, .load-equipment-fields, .load-booking-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.load-basics { align-items: end; }
.load-basics .save-load-draft { justify-self: start; grid-column: 1 / -1; }
.load-basics .save-load-draft[hidden] { display: none; }
.load-section select, .load-section input { width: 100%; min-width: 0; }
.book-load-sheet :is(label, .route-contact, .load-counterparty) { min-width: 0; overflow-wrap: anywhere; }
.load-counterparty { margin: 0; font-size: .88rem; color: var(--muted); }
.route-contact { display: grid; justify-items: start; gap: .18rem; }
.route-contact:empty { display: none; }
.route-contact > small { color: var(--muted); }
.route-contact a, .load-counterparty a { text-underline-offset: .14em; }

.load-carrier-options { display: grid; gap: 0 .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.load-carrier-options details { min-width: 0; grid-column: auto; border-top: 1px solid var(--line); }
.load-carrier-options .load-equipment[open] { grid-column: 1 / -1; }
.load-carrier-options summary { align-content: center; padding-block: .35rem; font-weight: 620; cursor: pointer; color: var(--teal); }
.load-carrier-options details[open] { padding-bottom: .4rem; }
.load-repeat .load-entry {
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  margin: 0 0 .7rem;
  padding: .7rem;
  border-radius: .65rem;
  background: var(--grouped);
  gap: .55rem .75rem;
}
.load-entry > button { justify-self: start; grid-column: 1 / -1; }

@container (max-width: 37rem) {
  .load-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'supplier' 'customer' 'carrier' 'origin' 'destination';
  }
  .load-repeat .load-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .load-entry label:first-of-type { grid-column: 1 / -1; }
}
@container (max-width: 24rem) {
  .load-basics, .load-carrier-options, .load-carrier-fields, .load-equipment-fields, .load-booking-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .book-load-sheet button { overflow-wrap: normal; }
  .book-load-sheet .dialog-head { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (pointer: coarse) {
  .book-load-sheet .route-contact a, .book-load-sheet .load-counterparty a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}
@media (forced-colors: active) {
  .book-load-sheet .dialog-head .primary { border: 1px solid ButtonText; }
}

.call-detail,
.call-choice,
.call-person {
  display: grid;
  gap: 0.35rem;
}
.buyer-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .375rem; }
.buyer-actions small { flex-basis: 100%; }
.prior-results { grid-column: 1 / -1; }
.prior-results { min-width: 0; }
.prior-results summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.prior-results[open] { border-top: 1px solid var(--line); padding-block: .65rem; }
.prior-trade { border-inline-start: 2px solid var(--line); padding-inline-start: .75rem; margin-block: .65rem; }
.prior-trade p { margin-block: .25rem; }
.prior-trade > a, .prior-trade > button { margin-inline-end: .55rem; }
.call-person a,
.call-sources a {
  overflow-wrap: anywhere;
}
.call-detail small {
  color: var(--muted);
}
.call-detail {
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.call-choice {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.call-economics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.7rem;
  margin: 0.45rem 0;
}
.call-economics > div {
  display: grid;
  gap: 0.2rem;
}
.call-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.rail-group {
  display: grid;
  gap: 0.08rem;
}
.rail .rail-group .section-label {
  margin-top: 0.65rem;
}
.rail .nav {
  min-height: 33px;
  padding-block: 0.32rem;
}
.rail-group .nav {
  width: 100%;
}
.rail .identity {
  margin-top: 0.8rem;
}
:root[data-density='compact'] .content td,
:root[data-density='compact'] .content th {
  padding-block: 0.28rem;
}
:root[data-density='large'] {
  font-size: 112.5%;
}
:root[data-theme='night'] {
  color-scheme: dark;
  color: #e5eef0;
  background: #172328;
  --teal: #63c1bc;
  --ink: #e4edef;
  --muted: #abc0c7;
  --line: #344b53;
  --surface: #243339;
  --grouped: #172328;
  --chrome: #202c33;
  --rail: #1b272e;
  --selection: #244e4d;
  --segment-track: #152328;
  --elevation: 0 1px 3px rgb(0 0 0 / 35%);
}
:root[data-theme='night']
  :is(
    .workspace,
    .content,
    .card,
    .bar,
    .rail,
    .phone-tabs,
    .nav-sheet,
    .tabs,
    .cal-frame,
    dialog,
    table,
    thead,
    tbody,
    tr,
    td,
    th,
    .metric,
    button,
    input,
    select,
    textarea
  ) {
  background-color: #1c2b30;
  color: #dfebee;
  border-color: #40555d;
}
:root[data-theme='night']
  :is(.nav, .bar span, .heading p, .note, .section-label, .eyebrow, label, dt, small) {
  color: #b5cbd1;
}
:root[data-theme='night'] :is(.primary, button[aria-pressed='true'], .nav[aria-current='page']) {
  background: #246260;
  color: white;
}
:root[data-theme='night'] a,
:root[data-theme='night'] .bar b {
  color: #8bd9d3;
}
:root[data-theme='night'] .rail img {
  background: #f1f6f5;
  border-radius: 0.35rem;
  padding: 0.3rem;
}
@media (min-width: 701px) and (max-width: 900px) {
  .workspace {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .rail {
    display: flex;
    flex-direction: column;
    max-width: 172px;
    overflow-x: hidden;
  }
  .rail img {
    display: block;
  }
  .rail .rail-group .section-label {
    display: block;
  }
  .rail .nav {
    white-space: normal;
    min-height: 36px;
  }
}

.profit-comparison { margin-block:1rem; padding:1.2rem; }
.profit-comparison header { display:flex; align-items:baseline; justify-content:space-between; gap:.6rem; flex-wrap:wrap; }
.profit-comparison header h2 { margin:0; }
.profit-comparison header strong { color:var(--muted); font-size:.9rem; }
.profit-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:1rem; }
.profit-totals dt { color:var(--muted); font-size:.9rem; }
.profit-totals dd { font-size:1.5rem; font-weight:650; margin:.25rem 0; }
.profit-comparison .table { margin:1rem 0; }
.grade-profit { margin-block:1.25rem; border-block:1px solid var(--line); padding-block:1rem; }
.grade-profit h3 { margin:0; }
.grade-profit > details { padding-block:.45rem; }
.grade-profit summary { cursor:pointer; font-weight:600; color:var(--teal); }
.grade-profit .table { font-variant-numeric:tabular-nums; }
.grade-profit .table :is(td,th) { padding:.65rem .6rem; white-space:nowrap; word-break:normal; overflow-wrap:normal; }
.grade-profit .table td small { color:var(--muted); font-size:.875rem; }
.grade-profit > .table tbody tr:last-child { font-weight:650; }
.grade-profit li { margin-block:.45rem; }
.profit-sources a { display:inline-block; margin-inline:.3rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.desk-picker { flex: none; }
.desk-picker .compact-picker { display: none; }
.desk-segments {
  display: inline-flex;
  min-width: 0;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: .8rem;
  background: var(--segment-track);
}
.desk-segments label { position: relative; cursor: pointer; }
.desk-segments input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.desk-segments label > span {
  padding: .46rem .8rem;
  border-radius: .62rem;
  font-size: .9rem;
  font-weight: 580;
  white-space: nowrap;
}
.desk-segments input:checked + span {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--elevation);
}
.desk-segments input:focus-visible + span, summary:focus-visible {
  outline: 3px solid #3475bd;
  outline-offset: 2px;
}
:root .bar form {
  background: var(--grouped);
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .15rem;
}
:root .bar form input, :root .bar form button { background: transparent; border: 0; }
:root .bar form button { color: var(--teal); min-width: 3rem; }
.rail .section-label { font-size: .86rem; letter-spacing: .01em; text-transform: none; color: var(--muted); }
.rail .nav { font-size: .98rem; line-height: 1.35; border-radius: .65rem; }
:root .action-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  border-radius: .65rem;
  padding: .5rem .8rem;
  color: var(--teal);
  text-decoration: none;
}
.action-link:hover { text-decoration: underline; }
:root .rail .nav[aria-current] { background: var(--selection); color: var(--ink); }
.content > .heading h1 { letter-spacing: -.04em; }
.content > .heading .row:empty { display: none; }
.segmented-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  border: 0;
  border-radius: .8rem;
  padding: 3px;
  background: var(--segment-track);
}
.segmented-tabs > button {
  border: 0;
  border-radius: .62rem;
  padding: .55rem .85rem;
  color: var(--ink);
  background: transparent;
}
.segmented-tabs > button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--elevation);
}
.stage { scroll-margin-top: 4.5rem; }
html { scroll-padding-top: 4.5rem; }
@media (min-width: 701px) and (prefers-reduced-transparency: no-preference) {
  @supports (backdrop-filter: blur(12px)) {
    :root .bar {
      background: color-mix(in srgb, var(--chrome) 90%, transparent);
      backdrop-filter: blur(12px);
    }
  }
}

.metric-group, .action-queues, .operating-queues, .site-call-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-block: .8rem 1.25rem;
}
.metric-group { padding: 1rem 1.15rem; }
.metric-group h2 { font-size: 1.1rem; margin: 0 0 .65rem; }
.metric-group .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
:root .metric-group .metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .3rem;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  padding: .4rem .75rem;
  min-width: 0;
}
:root .metric-group .metric:hover { background: var(--grouped); }
.metric-group .metric span { font-size: .9rem; line-height: 1.35; color: var(--muted); }
.metric-group .metric strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.metric-detail:not(:empty) { margin-block: 1rem; }
.queue-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  align-items: baseline;
  gap: .4rem 1rem;
  padding: .8rem 1.15rem;
}
.queue-row + .queue-row, .call-rows li + li { border-top: 1px solid var(--line); }
.queue-row h3, .queue-row .work-list, .call-rows p { margin: 0; }
.queue-row .work-list { padding-inline-start: 1rem; }
.queue-row .queue-empty, .call-section > p { color: var(--muted); font-size: .94rem; }
:root .queue-link {
  border: 0;
  background: transparent;
  padding: .25rem 0;
  color: var(--teal);
  text-align: start;
}
.queue-link:hover, .call-person-info > a:hover { text-decoration: underline; }
.queue-row > button { grid-column: 2; justify-self: start; }

.site-call-sheet { padding: 0; }
.site-call-sheet > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  color: var(--teal);
  font-weight: 680;
  border-radius: inherit;
  list-style: none;
}
.site-call-sheet > summary::-webkit-details-marker { display: none; }
.site-call-sheet > summary::after {
  content: '';
  width: .48rem;
  height: .48rem;
  flex: none;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.site-call-sheet[open] > summary::after { transform: rotate(45deg); }
.site-call-sheet[open] > summary { border-bottom: 1px solid var(--line); border-radius: 1rem 1rem 0 0; }
.site-call-sheet > section { padding: 1.15rem; }
.call-sections { display: grid; gap: 1.15rem 1.6rem; }
.call-section { min-width: 0; }
.call-section h3 { margin-bottom: .45rem; }
.call-pager { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin-block: .5rem; }
.call-pager button { min-height: 44px; }
.call-pager [role="status"] { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-pager [role="alert"]:not(:empty) { flex-basis: 100%; }
.workspace-help .actions { align-items: center; flex-wrap: wrap; }
.workspace-help textarea, .card-capture textarea { inline-size: 100%; }
.prompt-status:not(:empty), .card-preview:not(:empty) { margin-block: .65rem; }
.card-capture { margin-block: .5rem 1rem; }
.card-capture > label { display: grid; gap: .35rem; margin-block: .7rem; }
.card-capture > details { margin-block: .8rem; }
.card-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; }
.card-facts dd { margin: 0; overflow-wrap: anywhere; }
.correction-history ol { list-style: none; padding: 0; margin: 0; }
.correction-history li { padding: .85rem 0; }
.correction-history li + li { border-top: 1px solid var(--line); }
.correction-history time { display: block; color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.correction-history p { margin: .4rem 0 0; }
.fallback-calls li { padding-block: .35rem; }
.fallback-calls small { display: block; }
.call-rows { padding: 0; margin: 0; list-style: none; }
.call-rows li { padding: .55rem 0; line-height: 1.45; }
.weekly-activity { display: grid; gap: 1rem; }
.weekly-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.weekly-controls label { min-width: min(11rem,100%); }
.weekly-controls .directory-scope button { background: transparent; border: 1px solid transparent; }
.weekly-controls .directory-scope [aria-pressed='true'] { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow:var(--elevation); }
.weekly-heading p, .weekly-values p { margin: .25rem 0 .65rem; }
.weekly-stages { display:grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.85rem; }
.weekly-by-rep { min-width:0; }
.weekly-rep-table { max-width:100%; overflow-x:auto; }
.weekly-rep-table table { width:100%; font-variant-numeric:tabular-nums; }
.weekly-rep-table :is(th,td):not(:first-child) { text-align:end; }
.weekly-rep-table th:first-child { text-align:start; }
.weekly-stage-group { padding:1rem; border:1px solid var(--line); border-radius:.85rem; }
.weekly-stage-group :is(h3,h4,dl) { margin:0; }
.weekly-stage-group dl div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.1rem .5rem; padding-block:.4rem; border-bottom:1px solid var(--line); }
.weekly-stage-group dl div:last-child { border:0; }
.weekly-stage-group dt { color:var(--muted); }
.weekly-stage-group dd { margin:0; font-weight:650; font-variant-numeric:tabular-nums; }
@media (forced-colors:active) { .weekly-controls [aria-pressed='true'] { outline: 2px solid Highlight; outline-offset:-2px; } }
.daily-brief .call-section { margin-block: 1.25rem; }
.daily-brief .call-rows li {
  display: grid;
  justify-items: start;
  gap: .38rem;
  padding-block: .78rem;
}
.daily-brief .brief-entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .7rem;
}
.daily-brief .brief-entry-heading small { color: var(--muted); }
.call-person { display: flex; align-items: center; justify-content: space-between; gap: .85rem; }
.call-person-info { min-width: 0; display: grid; justify-items: start; gap: .18rem; }
.call-person-info > a { font-weight: 670; }
.voice-calls h2 { margin: 0; }
.voice-calls h3 { margin-block: .8rem .25rem; }
.voice-calls .call-rows .call-rows { border-inline-start: 2px solid var(--line); padding-inline-start: .85rem; }
.voice-calls .toolbar { align-items: flex-end; }
.voice-calls .toolbar label { flex: 1 1 14rem; min-width: 0; max-width: 25rem; }
.voice-calls .toolbar input { width: 100%; }
.staff-recordings { border-inline-start: 2px solid var(--line); padding-inline-start: .85rem; margin-block: .75rem; overflow-wrap: anywhere; }
.staff-recordings audio { display: block; max-width: 100%; margin-block: .4rem; }
.contact-methods { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .92rem; }
.demand-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .65rem;
  margin-top: .5rem;
  border-inline-start: 3px solid var(--teal);
  padding-inline-start: .7rem;
}
.demand-progress strong, .demand-progress small { flex-basis: 100%; }
.demand-progress a { font-size: .9rem; }
.call-action { flex: none; }
.site-call-sheet .actions { margin: .85rem 0 0; border-top: 1px solid var(--line); padding-top: .8rem; }
.call-context { display: grid; gap: .2rem; margin-block: .8rem 1rem; }
.call-context a { justify-self: start; }
.call-context a:first-child { font-weight: 700; }
.plant-call-editor { width: min(35rem, 100%); background: var(--grouped); border-radius: 1.25rem; }
.plant-call-editor .dialog-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .65rem;
  position: sticky;
  top: -1px;
  z-index: 1;
  padding-block: .5rem;
  background: var(--grouped);
}
.plant-call-editor .dialog-head button:first-child { justify-self: start; }
.plant-call-editor .dialog-head button:last-child { justify-self: end; }
:root .plant-call-editor .sheet-cancel { background: transparent; color: var(--teal); border: 0; padding-inline: .15rem; }
.plant-call-editor form > .fields { display: grid; grid-template-columns: 1fr; }
.plant-call-editor .call-field-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin: 0;
  padding: .7rem 1rem 1rem;
  background: var(--surface);
  border-radius: .9rem;
}
.call-field-group legend { padding-inline: .3rem; font-weight: 680; }
.call-options > summary { color: var(--teal); cursor: pointer; padding-block: .35rem; font-weight: 600; }
.dialog-head, .dialog-foot, .queue-row { overflow-wrap: anywhere; }
@media (min-width: 65rem) {
  .call-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .desk-segments { display: none; }
  .desk-picker .compact-picker { display: inline-flex; }
}
@media (max-width: 46rem) {
  .metric-group .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .queue-row { grid-template-columns: 1fr; }
  .queue-row > button { grid-column: 1; }
  .bar { position: static; }
  html { scroll-padding-top: 0; }
}
.pickup-handoff .pickup-event {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.pickup-event h3,
.pickup-event p {
  margin: 0.3rem 0;
}
.pickup-event small {
  display: block;
}
@media (prefers-contrast: more), (forced-colors: active) {
  .desk-segments input:checked + span { outline: 2px solid currentColor; }
  .desk-segments input:focus-visible + span { outline-style: dashed; }
  :root .bar { backdrop-filter: none; background: var(--chrome); }
}

/* Navigation symbols share a stroke weight across the sidebar, compact tabs and directories. */
.desk-symbol {
  flex: none;
  width: 1.18rem;
  height: 1.18rem;
  stroke-width: 1.8;
}
.rail .nav, .nav-sheet .nav { gap: .7rem; align-items: center; }
.nav > .desk-symbol { color: var(--teal); }
.rail .nav { min-height: 2.2rem; }
.nav-sheet .nav { display: flex; text-align: start; }
.nav-sheet .rail-group { align-content: start; }
.directory-controls, .directory-list, .directory-empty, .directory-index, .directory-profile {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
}
.directory-controls {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  flex-wrap: wrap;
  margin: 0 0 1.1rem;
  padding: .65rem;
}
.directory-tools {
  display: flex;
  flex: 1 1 23rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.directory-scope {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  border: 0;
  border-radius: .75rem;
  padding: 3px;
  margin: 0;
  background: var(--segment-track);
  min-width: 0;
}
.directory-scope label { position: relative; cursor: pointer; }
.directory-scope input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.directory-scope label span { border-radius: .57rem; padding: .49rem .74rem; color: var(--muted); }
.directory-scope input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--elevation); }
.directory-scope input:focus-visible + span { outline: 3px solid #3475bd; outline-offset: 1px; }
.directory-search {
  display: flex;
  flex: 1 1 14rem;
  align-items: center;
  min-width: 0;
  gap: .4rem;
  padding-inline: .65rem .18rem;
  border: 1px solid var(--line);
  background: var(--grouped);
  border-radius: .75rem;
}
.directory-search > .desk-symbol { color: var(--muted); width: 1rem; }
:root .directory-search :is(input, button) { border: 0; background: transparent; }
.directory-search input { flex: 1; padding: .58rem .15rem; font-size: 1rem; }
.directory-search button { flex: none; padding-inline: .55rem; color: var(--teal); }
.directory-filter-panel { min-width: 0; }
.directory-filter-panel[open] { flex: 1 0 100%; }
.directory-filter-panel summary {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem;
  color: var(--teal); padding: .4rem .65rem; cursor: pointer; list-style: none;
}
.directory-filter-panel summary::-webkit-details-marker { display: none; }
.directory-fields { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; padding: .35rem .6rem .5rem; }
.directory-fields label { flex: 1 1 8rem; min-width: 0; }
.directory-fields :is(select, input) { font-size: 1rem; }
.directory-list, .directory-index-list { list-style: none; margin: 0; padding: 0; }
.directory-list { padding-inline: 1rem; }
.directory-row {
  display: flex; gap: .75rem 1.25rem; align-items: center;
  min-width: 0; padding: .9rem .2rem;
}
.directory-row + .directory-row, .directory-index-list li + li { border-top: 1px solid var(--line); }
.directory-row-name { display: flex; align-items: center; gap: .75rem; flex: 1 1 14rem; min-width: 0; }
.directory-avatar {
  flex: none; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: .72rem; background: var(--selection); color: var(--teal); font-weight: 650;
}
.directory-avatar.contact { border-radius: 50%; background: #e4eaf6; color: #3a547e; }
.directory-avatar.site { background: #e5ede4; color: #446646; }
.directory-row-name > div, .directory-choice > span:nth-child(2) { min-width: 0; }
.directory-name { display: inline-flex; align-items: center; min-height: 1.7rem; font-size: 1.02rem; }
:root .directory-name { color: var(--ink); text-decoration: none; }
.directory-name:hover, .directory-row-facts a:hover, .directory-profile-meta a:hover { text-decoration: underline; }
.directory-row-name small, .directory-choice small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.directory-row-facts {
  flex: 2 1 20rem; min-width: 0; margin: 0; display: grid; gap: .4rem 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
}
.directory-row-facts dt { font-weight: 550; color: var(--muted); font-size: .86rem; }
.directory-row-facts dd { margin: .17rem 0 0; font-size: .96rem; }
.directory-row-facts a { text-decoration: none; }
.directory-list, .directory-split, .directory-profile { overflow-wrap: anywhere; }
.directory-status {
  flex: none; color: var(--muted); background: var(--grouped); border-radius: 2rem;
  padding: .24rem .58rem; font-size: .85rem; font-weight: 600;
}
.directory-empty { text-align: center; padding: 2rem 1rem; }
.directory-empty > .desk-symbol { color: var(--muted); display: block; margin: 0 auto .7rem; width: 1.65rem; height: 1.65rem; }
.directory-empty p { margin: .4rem 0 0; color: var(--muted); }
.directory-profile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: .75rem 1rem; padding: 1.2rem; margin: .55rem 0 .75rem;
}
.directory-profile > .directory-avatar { width: 3.65rem; height: 3.65rem; font-size: 1.4rem; border-radius: 1rem; }
.directory-profile > .directory-avatar.contact { border-radius: 50%; }
.directory-profile > .directory-avatar .desk-symbol { width: 1.9rem; height: 1.9rem; }
.directory-profile h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: .18rem 0; line-height: 1.13; letter-spacing: -.035em; }
.directory-profile-name p, .directory-profile-meta { color: var(--muted); margin: 0; font-size: .93rem; }
.directory-profile-meta a { text-decoration: none; }
.directory-methods { display: flex; flex-wrap: wrap; gap: .4rem .65rem; grid-column: 1 / -1; }
.directory-methods a {
  display: inline-flex; align-items: center; gap: .45rem; border-radius: .75rem;
  min-height: 2.45rem; padding: .4rem .7rem; background: var(--grouped); text-decoration: none;
}
.directory-methods a:hover { text-decoration: underline; }
.directory-methods .desk-symbol { width: 1rem; height: 1rem; }
.profile-actions { gap: .35rem .5rem; margin-block: .55rem 1.15rem; }
.profile-actions:empty { display: none; }
.profile-actions button:not(.primary) { color: var(--teal); background: var(--surface); border-color: var(--line); }
.directory-index { display: none; }
.directory-detail { min-width: 0; }
@media (min-width: 68em) {
  .content.directory-split {
    display: grid;
    grid-template-columns: minmax(12.5rem, 16.5rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 1.6rem);
    padding-inline: clamp(1rem, 2.5vw, 2.5rem);
  }
  .directory-index {
    position: sticky; top: 4.8rem; display: flex; flex-direction: column;
    max-height: calc(100dvh - 6rem); padding: .7rem;
  }
  .directory-index-head { padding: .3rem .45rem .8rem; }
  .directory-index-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
  .directory-index-caption { color: var(--muted); font-size: .9rem; }
  .directory-index-list { overflow: auto; overscroll-behavior: contain; min-height: 0; }
  .directory-choice {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: .55rem; border-radius: .75rem; padding: .65rem .45rem; text-decoration: none;
  }
  .directory-choice > .desk-symbol { color: var(--muted); width: .9rem; height: .9rem; }
  .directory-choice .directory-avatar { width: 2.1rem; height: 2.1rem; font-size: .85rem; }
  .directory-choice strong { color: var(--ink); font-size: .97rem; }
  .directory-choice small { font-weight: 450; }
  .directory-choice:hover { background: var(--grouped); }
  .directory-choice[aria-current] { background: var(--selection); box-shadow: inset 3px 0 var(--teal); }
  .directory-choice:focus-visible { outline-offset: -3px; }
}
@media (max-width: 58em) {
  .directory-row { flex-wrap: wrap; position: relative; }
  .directory-row-name { flex-basis: calc(100% - 6rem); }
  .directory-row-facts { order: 3; flex: 1 1 100%; margin-inline-start: 3.25rem; }
  .directory-status { margin-inline-start: auto; }
}
@media (max-width: 700px) {
  .phone-tabs button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; }
  .phone-tabs .desk-symbol { width: 1.18rem; height: 1.18rem; }
  :root .phone-tabs [aria-current] { color: var(--teal); background: var(--selection); }
  .directory-search { flex-basis: 100%; }
  .directory-row-facts { margin-inline-start: 0; }
  .directory-profile { padding: 1rem; }
}
@media (pointer: coarse), (max-width: 700px) {
  .directory-scope label span, .directory-filter-panel summary, .directory-choice, .directory-methods a,
  .directory-name, .directory-row-facts a { min-height: 44px; display: inline-flex; align-items: center; }
  .directory-choice { display: grid; }
}
:root[data-theme='night'] .directory-avatar.contact { color: #d0dcf3; background: #32445b; }
:root[data-theme='night'] .directory-avatar.site { color: #d1e3c9; background: #354b3c; }
@media (forced-colors: active), (prefers-contrast: more) {
  .directory-scope input:checked + span, .directory-choice[aria-current] { outline: 2px solid currentColor; outline-offset: -2px; }
  .directory-scope input:focus-visible + span { outline-style: dashed; }
  .directory-row-facts a, .directory-name { text-decoration: underline; }
}
.rail-group summary.section-label {
  display: flex; justify-content: space-between; align-items: center; gap: .4rem;
  border-radius: .5rem; padding-block: .3rem; list-style: none; cursor: pointer;
}
.rail-group summary::-webkit-details-marker { display: none; }
.rail-group summary .desk-symbol { width: .9rem; height: .9rem; }
.rail-group[open] > summary .desk-symbol { transform: rotate(90deg); }
.rail-group .nav-items { display: grid; gap: .08rem; }
.rail-group:not([open]) > .nav-items { display: none; }
.directory-channels { display: grid; justify-items: start; gap: .22rem; }
.directory-profile h1 { width: fit-content; max-width: 100%; border-radius: .15rem; }
.directory-profile.contact {
  display: flex; flex-direction: column; text-align: center; gap: .6rem; padding: 1.5rem 1rem 1.15rem;
}
.directory-profile.contact h1 { margin-inline: auto; }
.directory-profile.contact > .directory-avatar {
  width: 4.25rem; height: 4.25rem; font-size: 1.55rem;
  background: linear-gradient(145deg, #647ba3, #3f597e); color: white;
}
.directory-methods { justify-content: start; }
.directory-profile.contact .directory-methods { justify-content: center; width: 100%; }
.directory-methods a { text-align: start; max-width: 100%; padding: .5rem .85rem; }
.directory-methods a > span { display: grid; min-width: 0; gap: .12rem; }
.directory-methods a small { font-size: .87rem; font-weight: 500; }
.directory-detail .profile-actions { padding-inline: .1rem; }
.directory-detail .profile-actions button:not(.primary) { border-color: transparent; background: transparent; }
.directory-detail .profile-actions button:not(.primary):hover { background: var(--selection); }
.related-directory:has(.relationship-empty) {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; padding: .85rem 1rem;
  border-radius: .85rem; border: 1px solid var(--line); background: var(--surface); margin-block: .8rem;
}
.related-directory:has(.relationship-empty) h2 { font-size: 1rem; margin: 0; }
.relationship-empty { margin: 0; font-size: .94rem; color: var(--muted); }
@media (min-width: 58.01em) {
  .directory-row-facts.contact { grid-template-columns: 1fr 1fr minmax(8rem, 1.4fr); }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .directory-profile.contact > .directory-avatar { background: var(--surface); color: var(--ink); border: 1px solid currentColor; }
}

/* The call queue keeps the highlighted warehouse position beside its offer. */
.buyer-call-book { min-width: 0; }
.call-toolbar, .call-index-head, .call-methods { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; }
.call-toolbar { justify-content: space-between; margin: 1rem 0; }
.call-totals { margin: 0; color: var(--muted); }
.call-totals strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.call-status:empty, .call-receipt:empty { display: none; }
.call-workspace { display: grid; grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.35fr); gap: clamp(.8rem, 1.5vw, 1.5rem); align-items: start; }
.call-index, .call-offer { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; }
.call-index { padding: .45rem; }
.call-index-head { justify-content: space-between; padding: .6rem .65rem; }
.call-index-head h2, .call-lot-head h2, .first-buyer h3 { margin: 0; letter-spacing: -.025em; }
.call-index-head h2 { font-size: 1.12rem; }
.call-count, .lot-rank { font-variant-numeric: tabular-nums; }
.call-count, .call-as-of { color: var(--muted); }
.call-index-rows { list-style: none; padding: 0; margin: 0; }
.call-index-rows li + li { border-top: 1px solid var(--line); }
:root button.call-lot {
  display: grid; grid-template-columns: 1.55rem minmax(0, 1fr) auto .7rem; gap: .55rem;
  align-items: center; width: 100%; text-align: start; background: transparent; color: var(--ink);
  border: 0; border-radius: .65rem; min-height: 4.75rem; padding: .65rem .5rem; font-weight: 500;
}
:root .call-lot:hover { background: var(--grouped); }
:root .call-lot[aria-current] { background: var(--selection); box-shadow: inset 3px 0 var(--teal); }
.call-lot:focus-visible { outline-offset: -3px; }
.lot-rank { color: var(--teal); font-weight: 700; text-align: center; }
.lot-identity, .lot-return { display: grid; gap: .18rem; }
.lot-identity { overflow-wrap: anywhere; line-height: 1.24; }
.lot-identity small, .lot-return small, .call-lot-head p, .offer-figures small { color: var(--muted); font-weight: 450; }
.lot-identity > span { color: var(--teal); font-size: .89rem; }
.lot-return { text-align: end; font-variant-numeric: tabular-nums; font-weight: 680; }
.call-lot .desk-symbol { width: .82rem; height: .82rem; color: var(--muted); }
.call-index > button { margin: .5rem; }
.call-pane { min-width: 0; }
.call-offer { padding: clamp(.95rem, 1.6vw, 1.55rem); overflow-wrap: anywhere; }
.call-lot-head { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.call-lot-head h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.call-lot-head h2 a, .first-buyer h3 a { color: var(--ink); text-decoration: none; }
.call-lot-head a:hover, .first-buyer a:hover { text-decoration: underline; }
.call-lot-head p { margin: .35rem 0 0; font-size: .89rem; }
.first-buyer { padding: 1.1rem 0 .85rem; }
.first-buyer h3 { font-size: clamp(1.25rem, 2.4vw, 1.9rem); margin: .15rem 0; }
.call-caption { color: var(--teal); font-weight: 680; }
.call-handler { display: block; margin-top: .25rem; color: var(--muted); }
.call-methods { margin-top: .65rem; }
.call-methods a, .call-refresh, .call-back { display: inline-flex; align-items: center; gap: .4rem; }
.call-methods a { max-width: 100%; padding: .45rem .7rem; background: var(--grouped); border-radius: .65rem; text-decoration: none; }
.call-methods .desk-symbol, .call-refresh .desk-symbol, .call-back .desk-symbol { width: 1rem; height: 1rem; flex-shrink: 0; }
.offer-figures { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: .4rem 0 1rem; padding: .8rem .3rem; border-radius: .8rem; background: var(--grouped); }
.offer-figures > div { padding: 0 .65rem; }
.offer-figures > div + div { border-left: 1px solid var(--line); }
.offer-figures dt { font-size: .84rem; font-weight: 620; color: var(--muted); }
.offer-figures dd { margin: .2rem 0; font-size: clamp(1.05rem, 1.65vw, 1.6rem); font-variant-numeric: tabular-nums; font-weight: 720; letter-spacing: -.025em; }
.offer-figures dd a { text-underline-offset: .15em; }
.offer-figures small { display: block; font-size: .82rem; line-height: 1.3; }
.call-offer .buyer-actions { margin-block: .8rem 1rem; gap: .5rem; }
.call-offer .buyer-actions:empty { display: none; }
.call-offer details { border-block-start: 1px solid var(--line); padding: .2rem 0; }
.call-offer summary { cursor: pointer; padding-block: .52rem; font-weight: 600; color: var(--teal); }
.call-compare { padding-top: .7rem; border-top: 1px solid var(--line); }
.call-receipt { background: var(--selection); border-radius: .7rem; padding: .65rem .85rem; margin-bottom: .7rem; }
:root .call-back { display: none; }
@media (min-width: 58.01em) {
  .call-index { position: sticky; top: 4.8rem; display: flex; flex-direction: column; max-height: calc(100dvh - 6rem); }
  .call-index-rows { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .call-index > button { align-self: start; }
}
@media (max-width: 58em) {
  .call-workspace { display: block; }
  .call-workspace[data-pane='lots'] .call-pane, .call-workspace[data-pane='detail'] .call-index { display: none; }
  :root .call-back { display: inline-flex; margin-bottom: .6rem; }
}
@media (max-width: 34em) {
  .offer-figures { grid-template-columns: 1fr; padding: 0 .75rem; }
  .offer-figures > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .45rem; padding: .55rem 0; }
  .offer-figures > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .offer-figures small { grid-column: 1 / -1; }
}
@media (pointer: coarse) {
  .call-methods a, .call-methods button, .call-offer summary, .buyer-actions button { min-height: 44px; }
}
@media (forced-colors: active) {
  :root .call-lot[aria-current] { outline: 2px solid currentColor; outline-offset: -3px; }
}


/* Consistent primary actions and keyboard access on the remaining record and report screens. */
:root .heading .row .primary ~ .primary {
  background: var(--surface);
  color: var(--teal);
  border-color: var(--line);
}
:root .heading .row .primary ~ .primary:is(:hover, :active) { background: var(--selection); }
:root .data-table { background: var(--surface); }
.data-table th { color: var(--muted); background: var(--chrome); }
.data-table :is(th, td) { border-color: var(--line); }
.data-table:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.data-table tbody tr:focus-within td { background: var(--selection); }
@media (hover: hover) {
  .data-table tbody tr:hover td { background: var(--grouped); }
  .data-table tbody tr:focus-within:hover td { background: var(--selection); }
}
.empty strong { margin: 0; }

/* The coverage grid keeps seven days in view and exposes everyone's details in the daily list. */
.calendar-month {
  container-type: inline-size;
  padding: .55rem;
}
.calendar-month table { table-layout: fixed; }
.calendar-month :is(th, td) { text-align: center; padding: .25rem .15rem; border-color: var(--line); }
.calendar-month th { color: var(--muted); background: var(--chrome); }
.calendar-month td { vertical-align: top; overflow-wrap: anywhere; }
:root .calendar-month td button {
  width: min(100%, 2.75rem);
  min-height: 2.75rem;
  padding: .3rem .1rem;
  background: var(--surface);
  border-color: transparent;
}
:root .calendar-month td button[aria-pressed='true'] {
  color: var(--ink);
  font-weight: 750;
  background: var(--selection);
  border-color: var(--teal);
}
.coverage-count { display: none; }
@container (max-width: 34rem) {
  .calendar-month .coverage-count { display: block; font-size: .72rem; font-weight: 600; }
  .calendar-month .coverage-names { display: none; }
}
@media (forced-colors: active) {
  :root .calendar-month td button[aria-pressed='true'] { border-color: ButtonText; }
}

/* Shared navigation, record sections and reports across the operating desks. */
.section-navigation { container: desk-sections / inline-size; min-width: 0; }
.section-picker { display: none; }
.section-index, .group-picker, .section-picker {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .55rem .85rem;
  color: var(--muted);
}
.section-index { margin: .75rem 0 1.25rem; }
.section-index select, .group-picker select, .section-picker select {
  width: auto;
  max-width: 100%;
  min-height: 2.5rem;
  color: var(--ink);
  background-color: var(--surface);
}
.section-target, .sheet-group { scroll-margin-block-start: 1rem; }
.section-target:focus-visible { outline: 2px solid var(--teal); outline-offset: .2rem; }
@container desk-sections (max-width: 45rem) {
  .many-sections .tabs { display: none; }
  .many-sections .section-picker { display: flex; margin: 0 0 1rem; }
}
@container desk-sections (max-width: 24rem) {
  .section-navigation .tabs { display: none; }
  .section-navigation .section-picker { display: flex; margin: 0 0 1rem; }
}
.report-filters:empty { display: none; }
.content form.toolbar:not(:empty), .shipment-toolbar {
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  align-items: end;
}
.content form.toolbar label { min-width: min(9rem, 100%); max-width: 100%; }
.shipment-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.shipment-toolbar :is(.single-filter, p) { margin: 0; }
.report-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: .55rem 1rem;
  margin: .8rem 0 1.2rem;
  padding: .9rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-variant-numeric: tabular-nums;
}
.report-totals dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.report-totals dd { margin: .2rem 0 0; color: var(--ink); font-size: 1.5rem; font-weight: 680; overflow-wrap: anywhere; }
.report-results h3 { margin: 1.1rem 0 .65rem; }
.report-results > .row { margin-block: .5rem .8rem; }
.supplier-priority-cell { display: grid; align-content: start; gap: .3rem; }
.supplier-priority-cell time { white-space: nowrap; }
.data-table { font-variant-numeric: tabular-nums; }
.comparison-table { container: comparison / inline-size; isolation: isolate; }
@container comparison (min-width: 22rem) and (max-width: 60rem) {
  .comparison-table tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    min-width: min(8rem, 32cqi);
    max-width: min(13rem, 32cqi);
    white-space: normal;
    overflow-wrap: break-word;
    background-color: var(--surface);
    box-shadow: inset -1px 0 var(--line);
  }
  .comparison-table thead tr > :first-child { background-color: var(--chrome); }
}
.view-map .work-list { list-style: none; padding: 0; }
.view-map .work-list li { padding: .6rem 0; }
.view-map .work-list li + li, .settings-rows button + button { border-block-start: 1px solid var(--line); }
.view-map li > a { display: inline-flex; align-items: center; min-height: 1.85rem; color: var(--ink); }
.view-map li small a { display: inline-block; padding-block: .2rem; }
.admin-actions { max-width: 48rem; }
.admin-actions h3 { color: var(--muted); font-size: .94rem; margin: 1rem 0 .35rem; }
.preference-list { max-width: 34rem; }
.preference-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 44%);
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
}
.preference-list label + label { border-top: 1px solid var(--line); }
.preference-list select { min-height: 2.75rem; }
.voice-search-actions + [role='status']:empty { display: none; }
.settings-rows { display: grid; }
:root .settings-rows button {
  min-height: 2.75rem;
  padding: .6rem .7rem;
  text-align: start;
  border-radius: 0;
  border-width: 0;
  background: var(--surface);
  color: var(--teal);
}
:root .settings-rows button + button { border-block-start: 1px solid var(--line); }
:root .settings-rows button:is(:hover, :active) { background: var(--selection); }

/* Private trading requests reuse the record sheet, grouped surfaces and appearance tokens. */
.quote-workspace, .quote-grid, .quote-portal { display:grid; gap:1rem; }
.quote-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); align-items:start; }
.quote-portal { margin:clamp(1rem,4vw,3rem) auto; max-width:48rem; padding:0 1rem; }
.quote-revisions { padding-inline-start:1.25rem; }
.quote-revisions li + li { margin-block-start:.65rem; }
.quote-revisions p, .quote-party p, .quote-portal .card p { margin-block:.45rem; }
.quote-party small, .quote-people small { display:block; color:var(--muted); }
.quote-people { display:grid; gap:.35rem; max-height:19rem; overflow:auto; margin-top:.55rem; }
.quote-people label { display:flex; align-items:center; gap:.75rem; min-height:44px; overflow-wrap:anywhere; }
.quote-people input[type=checkbox] { flex:0 0 auto; width:1.1rem; }
.quote-controls { display:flex; align-items:end; gap:.75rem; flex-wrap:wrap; }
.quote-invitees { margin:1rem 0; border:1px solid var(--line); border-radius:.85rem; padding:.75rem 1rem; background:var(--surface); }
.quote-specs { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:.25rem .75rem; }
.quote-specs dd { margin:0; overflow-wrap:anywhere; }
.quote-result:not(:empty) { font-weight:650; }
.quote-status:empty, .quote-result:empty { display:none; }
.quote-party .actions, .quote-controls button, .quote-portal button { margin-block:.65rem; }
.quote-portal > button { justify-self:start; }

/* One sheet convention for every record command, including access and settlement. */
.desk-sheet {
  width: min(47rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5.5rem 1rem;
  background: var(--grouped);
  border-radius: 1.3rem;
}
.desk-sheet .dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .45rem .7rem;
  align-items: center;
  padding: .65rem 1rem;
  border-block-end: 1px solid var(--line);
  background: var(--chrome);
}
.desk-sheet .dialog-head > div { grid-column: 2; text-align: center; }
.desk-sheet .dialog-head h2 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
.desk-sheet .dialog-head .primary { grid-column: 3; justify-self: end; max-width: 15rem; }
:root .desk-sheet .sheet-cancel { padding-inline: .3rem; border-color: transparent; color: var(--teal); background: transparent; }
.desk-sheet form { padding: .95rem 1rem 1.2rem; }
.desk-sheet .sheet-context { margin: 0 0 .75rem; overflow-wrap: anywhere; }
.desk-sheet .fields { margin: 0; }
.desk-sheet .fields:empty, .desk-sheet .sheet-group:not(:has(> :not(legend, [hidden]))) { display: none; }
.desk-sheet .fields:not(:has(.sheet-group)):not(:empty), .desk-sheet .sheet-group {
  margin: 0;
  padding: .85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.desk-sheet .sheet-group {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1rem;
}
.desk-sheet .sheet-group legend { padding-inline: .3rem; color: var(--ink); font-size: 1rem; }
.desk-sheet .group-picker { grid-column: 1/-1; justify-content: space-between; }
.desk-sheet form > .notice:not(:empty) { margin: .3rem 0 .85rem; }
.desk-sheet form > .notice:focus-visible { outline: 2px solid currentColor; outline-offset: .15rem; }
.desk-sheet [hidden] { display: none !important; }
@media (max-width: 44rem) {
  .desk-sheet {
    width: 100%;
    max-height: calc(100dvh - max(.7rem, env(safe-area-inset-top)));
    margin: auto 0 0;
    border-radius: 1.1rem 1.1rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    scroll-padding-block-start: 7rem;
  }
  .desk-sheet .sheet-group, .desk-sheet .fields { grid-template-columns: minmax(0, 1fr); }
  .desk-sheet .dialog-head { grid-template-columns: auto minmax(0, 1fr); padding: .55rem .85rem; }
  .desk-sheet .dialog-head > div { grid-area: 1/1/2/-1; }
  .desk-sheet .dialog-head .sheet-cancel { grid-area: 2/1; justify-self: start; }
  .desk-sheet .dialog-head .primary { grid-area: 2/2; }
  .desk-sheet button, .section-picker select { min-height: 2.75rem; }
  .section-target { scroll-margin-block-start: 5rem; }
}
:root .desk-sheet button:active, :root .section-navigation button:active { filter: brightness(.9); }
@media (forced-colors: active) {
  .section-target:focus-visible, .report-totals { outline: 1px solid CanvasText; }
}

/* Sign-in, enrollment, and ChatGPT permission screens share the same identity. */
.access-page {
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: var(--grouped);
}
.access-page .login-form {
  width: min(100%, 27rem);
  padding: clamp(1.25rem, 4vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--elevation);
}
.access-page .login-form > :is(h1, p) { margin: 0; }
.access-page .login-form > h1 { font-size: clamp(1.65rem, 4vw, 2.15rem); letter-spacing: -.035em; }
.access-page .login-form > p { color: var(--muted); }
.access-wordmark { width: 6.2rem; height: auto; margin-block-end: .35rem; }
:root[data-theme='night'] .access-wordmark { background: #f5f8f7; padding: .35rem; border-radius: .55rem; }
.access-page .help { border-top: 1px solid var(--line); padding-top: .75rem; }
.access-page .login-form > [role=status]:empty, .access-page .notice:empty { display: none; }
.nav-sheet { padding-block-start: 0; overscroll-behavior: contain; }
.nav-sheet .dialog-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  padding-block: .75rem;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}
.record-actions:not(:empty) {
  padding: .55rem;
  gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.record-actions:empty { display: none; }
:root .record-actions button:not(.primary) { background: transparent; border-color: transparent; color: var(--teal); }
:root .record-actions button:not(.primary):is(:hover, :active) { background: var(--selection); }

.record-list-table { container: record-list / inline-size; }
@container record-list (max-width: 34rem) {
  .record-list-table table, .record-list-table tbody { display: block; }
  .record-list-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .record-list-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .95rem;
    padding: .85rem 1rem;
  }
  .record-list-table tbody tr + tr { border-block-start: 1px solid var(--line); }
  .record-list-table tbody td {
    display: block;
    padding: 0;
    min-width: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .record-list-table td:first-child { grid-column: 1/-1; font-weight: 660; }
  .record-list-table td:not(:first-child)::before {
    content: attr(data-column) / '';
    display: block;
    margin-block-end: .15rem;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 560;
  }
}
@container record-list (max-width: 18rem) {
  .record-list-table tbody tr { grid-template-columns: minmax(0, 1fr); }
}

.grade-search-controls { display: grid; gap: .8rem; }
.grade-search-controls > button { justify-self: start; }
.grade-search-controls input, .grade-search-controls select { width: 100%; min-width: 0; }
.grade-search-controls label { display: grid; gap: .25rem; }
.grade-search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; }
.grade-search-controls summary { cursor: pointer; min-height: 2.75rem; align-content: center; font-weight: 620; }
.grade-search-tests { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grade-search-tests fieldset { display: grid; gap: .45rem; border: 1px solid var(--line); border-radius: .7rem; padding: .7rem; min-width: 0; }
.grade-search-tests legend { font-weight: 620; padding: 0 .3rem; }
.grade-search-results { margin-top: .8rem; }
.grade-search-list { list-style: none; margin: 0; padding: 0; }
.grade-search-list > li { padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.grade-search-list > li:last-child { border: 0; }
.grade-search-list small, .grade-reading { display: block; color: var(--muted); }
.grade-search-list .grade-review { color: var(--ink); margin-top: .15rem; }

.catalog-stock { margin-block: 1rem; padding: clamp(.85rem, 2vw, 1.5rem); min-width: 0; }
.catalog-stock h2, .catalog-stock h3 { margin: 0 0 .65rem; }
.catalog-stock .stock-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem 1rem; }
.stock-controls label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; max-width: 100%; }
.stock-controls select { width: 100%; max-width: 38rem; min-width: 0; }
.stock-controls select, .stock-controls button { min-height: 2.75rem; }
.stock-status, .stock-material span, .stock-offer span, .catalog-stock td small { color: var(--muted); }
.stock-status { font-size: .875rem; margin: .55rem 0; }
.stock-material, .stock-offer { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; }
.stock-measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .85rem; margin: 1rem 0; }
.stock-measures div { border-inline-start: 2px solid var(--line); padding-inline-start: .75rem; }
.stock-measures div:first-child { color: var(--teal); border-color: currentColor; }
.stock-measures dt { font-size: .85rem; }
.stock-measures dd { margin: .15rem 0 0; font-size: 1.18rem; font-weight: 650; }
.stock-offer { margin-bottom: 1.15rem; }
.catalog-stock .table { margin: .45rem 0 1rem; box-shadow: none; }
.catalog-stock td small { display: block; font-size: .8rem; }
.catalog-stock td, .stock-measures dd { font-variant-numeric: tabular-nums; }

.market-views { display: grid; gap: 1rem; }
.market-view-controls { align-items: end; gap: .65rem; }
.market-view-controls label { min-width: min(100%, 15rem); }
.market-view-heading h2, .market-view-heading p, .market-match-list p { margin: 0; }
.market-view-heading p { margin-top: .25rem; }
.market-match-list { list-style: none; margin: 0; padding: 0; }
.market-match-list li {
  display: grid;
  gap: .45rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.market-match-title, .market-match-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; }
.market-match-title { justify-content: space-between; }
.market-match-title a { font-weight: 650; }
.market-match-list small { color: var(--muted); }
.market-match-foot { align-items: center; }
@media (max-width: 40rem) {
  .market-view-controls label { width: 100%; }
}

.reviewed-contact-sheet { width: min(62rem, calc(100vw - 2rem)); }
.reviewed-contact-content { padding: 1rem; display: grid; gap: .75rem; }
.reviewed-contact-content p { margin: 0; }
.reviewed-contact-content label { display: grid; gap: .4rem; }
.reviewed-contact-preview { max-height: 48vh; overflow: auto; }
.reviewed-contact-preview table { width: 100%; }
.reviewed-contact-preview caption { text-align: start; padding-block: .5rem; font-weight: 650; }
.reviewed-contact-preview th { white-space: nowrap; }

@media (max-width: 40rem) {
  .reviewed-contact-preview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .reviewed-contact-preview tbody, .reviewed-contact-preview tr { display: block; }
  .reviewed-contact-preview tr { padding-block: .5rem; border-bottom: 1px solid var(--line); }
  .reviewed-contact-preview td { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; padding: .3rem 0; border: 0; overflow-wrap: anywhere; }
  .reviewed-contact-preview td::before { content: attr(data-label); font-weight: 600; }
}
