:root {
  --bg: #f2f2f3;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --surface-muted: #efeff1;
  --ink: #171717;
  --ink-2: #262626;
  --ink-muted: #747474;
  --ink-soft: #a5a5aa;
  --line: rgba(18, 18, 18, 0.08);
  --line-strong: rgba(18, 18, 18, 0.16);
  --brand: #0f0f10;
  --brand-2: #18181a;
  --brand-contrast: #ffffff;
  --success-bg: #ecf7ea;
  --success-text: #4a8a45;
  --warning-bg: rgba(173, 120, 23, 0.08);
  --warning-text: #8e6518;
  --danger-bg: #fff2f4;
  --danger-text: #9b2d41;
  --danger-border: rgba(155, 45, 65, 0.16);
  --shadow-card: 0 10px 22px rgba(20, 20, 20, 0.08);
  --radius-shell: 30px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --portal-accent: #1d6fa5;
  --portal-accent-soft: rgba(29, 111, 165, 0.14);
  --portal-accent-badge-bg: #ebf5fb;
  --portal-accent-badge-text: #1d6fa5;
  --portal-shell-padding: 12px;
  --portal-page-inline-padding: 20px;
  --portal-page-top-padding: 24px;
  --portal-page-bottom-padding: 28px;
  --portal-page-gap: 24px;
  --portal-page-grid-gap: 28px;
  --portal-hero-padding: 28px;
  --request-flow-gap: 18px;
  --request-section-gap: 18px;
  --request-card-gap: 14px;
  --request-field-gap: 10px;
  --request-control-height: 50px;
  --request-workspace-max-width: 1824px;
  --control-line-height: 1.2;
  --control-focus-ring: 0 0 0 4px rgba(15, 15, 16, 0.05);
  --table-checkbox-bg: rgba(255, 255, 255, 0.96);
  --table-checkbox-border: rgba(23, 23, 23, 0.18);
  --table-checkbox-border-hover: rgba(23, 23, 23, 0.28);
  --table-checkbox-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  --table-checkbox-checked-bg: #0f0f10;
  --table-checkbox-checked-border: #0f0f10;
  --table-checkbox-mark: #ffffff;
  --table-checkbox-focus-ring: 0 0 0 4px rgba(15, 15, 16, 0.08);
  --dashboard-chart-gap: 18px;
  --dashboard-chart-landscape-width: 700px;
  --dashboard-chart-landscape-height: 420px;
  --dashboard-chart-portrait-width: calc((var(--dashboard-chart-landscape-width) * 2 - var(--dashboard-chart-gap)) / 3);
  --dashboard-chart-portrait-height: 420px;
}

.portal-sidebar__item:has(.portal-sidebar__unread-badge) {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.portal-sidebar__unread-badge {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
}

.portal-sidebar__unread-badge[hidden] {
  display: none;
}

html[data-theme="dark"] {
  --bg: #000000;
  --surface: #080808;
  --surface-soft: #0d0d0d;
  --surface-muted: #111111;
  --surface-elevated: #0d0d0d;
  --card: #080808;
  --popover: #0d0d0d;
  --input: #151515;
  --ink: #f7f7f8;
  --ink-2: #dedfe3;
  --ink-muted: #a9adb5;
  --ink-soft: #747982;
  --text-primary: #f7f7f8;
  --text-secondary: #c5c8ce;
  --text-muted: #959aa3;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --hover: #151515;
  --active: #1a1a1a;
  --tooltip: #101010;
  --chart-grid: rgba(255, 255, 255, 0.09);
  --chart-axis: #a8adb6;
  --shadow-dark: 0 16px 36px rgba(0, 0, 0, 0.58);
  --app-page-bg: #000000;
  --app-card-bg: #080808;
  --app-card-border: rgba(255, 255, 255, 0.09);
  --app-card-shadow: var(--shadow-dark);
  --app-card-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.48);
  --target-card-border: rgba(255, 255, 255, 0.09);
  --target-card-shadow: var(--shadow-dark);
  --brand: #f7f7f8;
  --brand-2: #ffffff;
  --brand-contrast: #111214;
  --success-bg: rgba(87, 168, 101, 0.16);
  --success-text: #9ed69c;
  --warning-bg: rgba(173, 120, 23, 0.18);
  --warning-text: #f2cc7a;
  --danger-bg: rgba(157, 53, 53, 0.16);
  --danger-text: #ffb8c0;
  --danger-border: rgba(255, 122, 142, 0.24);
  --shadow-card: 0 14px 28px rgba(0, 0, 0, 0.34);
  --control-selected-bg: rgba(255, 255, 255, 0.12);
  --control-selected-border: rgba(255, 255, 255, 0.22);
  --control-selected-text: #f3f4f6;
  --control-selected-muted: rgba(243, 244, 246, 0.72);
  --control-selected-icon-bg: rgba(255, 255, 255, 0.1);
  --control-open-bg: color-mix(in srgb, var(--surface-soft) 88%, #fff 12%);
  --control-focus-ring: 0 0 0 4px rgba(255, 255, 255, 0.08);
  --table-checkbox-bg: rgba(255, 255, 255, 0.05);
  --table-checkbox-border: rgba(255, 255, 255, 0.18);
  --table-checkbox-border-hover: rgba(255, 255, 255, 0.28);
  --table-checkbox-shadow: 0 1px 2px rgba(2, 6, 23, 0.32);
  --table-checkbox-checked-bg: #f3f4f6;
  --table-checkbox-checked-border: #f3f4f6;
  --table-checkbox-mark: #111214;
  --table-checkbox-focus-ring: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html[data-reduced-motion="true"] {
  scroll-behavior: auto;
}

html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font-family: var(--portal-font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

input[type="checkbox"],
input[type="radio"] {
  margin: 0;
  accent-color: var(--brand);
}

:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select
) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-clip: padding-box;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

input[type="date"] {
  font-variant-numeric: tabular-nums;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  cursor: pointer;
}

:where(
  .portal-topbar,
  .portal-topbar__utility,
  .portal-topbar__controls,
  .portal-internal-switch__panel,
  .quotations-table-toolbar,
  .dashboard-grid,
  .dashboard-widget-modal__controls,
  .dashboard-widget-picker__group-grid,
  .quotation-drawer__layout,
  .quotation-drawer__detail-grid,
  .request-tabs,
  .request-tabs__nav,
  .request-tabs__controls,
  .request-section__grid,
  .choice-grid,
  .segmented-control,
  .movement-scope-addresses,
  .request-panel__grid,
  .dimensions-shell,
  .dimensions-lines__toolbar,
  .dimensions-line,
  .dimensions-line__group,
  .cargo-support-row,
  .form-footer,
  .form-footer__actions
) > * {
  min-width: 0;
  min-height: 0;
}

:where(
  .button,
  .portal-topbar__icon-button,
  .portal-theme-toggle,
  .request-tab,
  .request-view-toggle__option,
  .choice-card,
  .segmented-control__option,
  .dimensions-toggle__option,
  .dashboard-widget-filter-pill,
  .dashboard-widget-modal__dismiss,
  .quotation-copy-modal__dismiss,
  .quotation-drawer__chat-send,
  .quotation-drawer__doc-icon-button,
  .quotation-drawer__docs-modal-dismiss,
  .quotation-drawer__docs-modal-scrim
) {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: var(--control-line-height);
  letter-spacing: inherit;
}

:where(
  .field input,
  .field textarea,
  .field select,
  .portal-internal-switch__search input,
  .dashboard-widget-modal__search input,
  .quotation-drawer__chat-input,
  .movement-address-card .address-section__field input,
  .movement-address-card .address-section__search-field input,
  .incoterm-select__trigger,
  .frontend-select__trigger,
  .dangerous-goods-selector__trigger,
  .dimensions-line__field input,
  .dimensions-line__mini-field input,
  .dimensions-line__field .frontend-select__trigger
) {
  min-width: 0;
  line-height: var(--control-line-height);
  background-clip: padding-box;
}

a {
  color: inherit;
  text-decoration: none;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .portal-topbar,
html[dir="rtl"] .overview-card__route-head,
html[dir="rtl"] .request-panel__header,
html[dir="rtl"] .dimensions-ai-import__header,
html[dir="rtl"] .dimensions-ai-import__preview-head,
html[dir="rtl"] .form-footer,
html[dir="rtl"] .success-card__actions {
  direction: rtl;
}

html[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 0;
}

html[dir="rtl"] .timeline::before {
  left: auto;
  right: calc(var(--timeline-axis-x) - (var(--timeline-line-width) / 2));
}

/* Customer login visual foundations; final theme overrides live in assets/login.css. */
.portal-login {
  --login-panel-bg: #f4f5f7;
  --login-card-bg: rgba(255, 255, 255, 0.84);
  --login-card-border: #dfe2e7;
  --login-field-bg: #ffffff;
  --login-field-border: #d9dde4;
  --login-ink: #12151b;
  --login-muted: #69707a;
  --login-subtle: #858b96;
  grid-template-columns: minmax(480px, 1fr) minmax(480px, 1fr);
  background: #06090d;
}

.portal-login__visual {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  padding: clamp(34px, 4.6vw, 72px) clamp(32px, 4.7vw, 76px) 30px;
  background:
    radial-gradient(circle at 58% 32%, rgba(45, 68, 86, 0.24), transparent 27%),
    radial-gradient(circle at 0% 70%, rgba(27, 45, 58, 0.24), transparent 34%),
    linear-gradient(145deg, #090d12 0%, #030609 70%);
  color: #ffffff;
  isolation: isolate;
}

.portal-login__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  border: 0;
  border-radius: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  transform: none;
}

.portal-login__visual::after {
  display: none;
}

.portal-login__brand {
  position: relative;
  z-index: 4;
  display: block;
  width: fit-content;
}

.portal-login__brand img {
  display: block;
  width: clamp(180px, 16vw, 244px);
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.38));
}

.portal-login__globe {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: -24%;
  width: min(78vw, 870px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 67% 34%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 45%, rgba(255, 255, 255, 0.33) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 53%, rgba(255, 255, 255, 0.25) 0 1px, transparent 2px),
    linear-gradient(rgba(2, 6, 10, 0.7), rgba(2, 6, 10, 0.74)),
    url("../Media/worldmap.svg") center / 128% auto no-repeat;
  box-shadow:
    inset -80px -45px 110px rgba(0, 0, 0, 0.92),
    inset 60px 28px 90px rgba(125, 157, 179, 0.1),
    0 0 90px rgba(93, 128, 150, 0.09);
  transform: rotate(-10deg);
}

.portal-login__globe::before,
.portal-login__globe::after,
.portal-login__globe-route {
  content: "";
  position: absolute;
  border: 1px solid rgba(224, 235, 243, 0.22);
  border-radius: 50%;
}

.portal-login__globe::before {
  inset: 12% -14%;
  transform: rotate(23deg);
}

.portal-login__globe::after {
  inset: -12% 23%;
  transform: rotate(-12deg);
}

.portal-login__globe-route--one {
  width: 70%;
  height: 22%;
  top: 28%;
  left: 18%;
  transform: rotate(-28deg);
  border-color: rgba(255, 255, 255, 0.32) transparent transparent;
}

.portal-login__globe-route--two {
  width: 54%;
  height: 19%;
  top: 36%;
  left: 34%;
  transform: rotate(8deg);
  border-color: rgba(255, 255, 255, 0.24) transparent transparent;
}

.portal-login__globe-route--three {
  width: 45%;
  height: 17%;
  top: 18%;
  left: 39%;
  transform: rotate(-5deg);
  border-color: rgba(255, 255, 255, 0.2) transparent transparent;
}

.portal-login__visual-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: clamp(32px, 4.5vh, 58px);
}

.portal-login__visual-copy h2 {
  margin: 0;
  max-width: 520px;
  color: #f8fafc;
  font-size: var(--portal-type-section);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.portal-login__visual-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--portal-type-body);
  line-height: 1.65;
}

.portal-login__benefits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
  padding-bottom: 38px;
}

.portal-login__benefits > div {
  min-width: 0;
}

.portal-login__benefits span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.portal-login__benefits svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.84);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login__benefits strong,
.portal-login__benefits small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-login__benefits strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--portal-type-body);
}

.portal-login__benefits small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--portal-type-caption);
}

.portal-login__visual-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--portal-type-body);
}

.portal-login__stage {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 100vh;
  padding: 38px clamp(34px, 7vw, 112px) 30px;
  background: var(--login-panel-bg);
  transition: background-color 180ms ease, color 180ms ease;
}

.portal-login__theme-toggle {
  justify-self: end;
  display: grid;
  grid-template-columns: 38px 38px;
  align-items: center;
  width: 80px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--login-card-border);
  border-radius: 999px;
  background: var(--login-card-bg);
  color: var(--login-muted);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.portal-login__theme-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.portal-login__theme-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.portal-login__theme-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login__theme-icon--sun {
  background: #ffffff;
  color: #1d65d8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.portal-login__theme-icon--moon {
  color: #6d7480;
}

.portal-login__card {
  justify-self: center;
  width: min(100%, 520px);
  margin-block: 48px;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid var(--login-card-border);
  border-radius: 18px;
  background: var(--login-card-bg);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-login__card h1 {
  font-size: var(--portal-type-page);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-align: center;
}

.portal-login__card > p {
  margin: 12px 0 34px;
  color: var(--login-muted);
  font-size: var(--portal-type-body);
  line-height: 1.6;
  text-align: center;
}

.portal-login__form {
  gap: 13px;
}

.portal-login__form > label {
  color: var(--login-ink);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.portal-login__select-wrap select {
  min-height: 54px;
  border-color: var(--login-field-border);
  border-radius: 9px;
  background: var(--login-field-bg);
  color: var(--login-ink);
  font-size: var(--portal-type-body);
  font-weight: 600;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.035);
}

.portal-login__selection {
  border-color: var(--login-card-border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--login-field-bg) 78%, transparent);
}

.portal-login__selection strong,
.portal-login__test-note strong {
  color: var(--login-ink);
}

.portal-login__selection small,
.portal-login__test-note {
  color: var(--login-muted);
}

.portal-login__submit {
  min-height: 54px;
  margin-top: 6px;
  border-color: #111318;
  border-radius: 9px;
  background: #111318;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.portal-login__submit:hover {
  background: #282b31;
}

.portal-login__test-note {
  justify-content: center;
  margin-top: 20px;
}

.portal-login__footer {
  color: var(--login-subtle);
}

html[data-theme="dark"] .portal-login {
  --login-panel-bg: #0b0f14;
  --login-card-bg: rgba(17, 22, 29, 0.86);
  --login-card-border: rgba(255, 255, 255, 0.12);
  --login-field-bg: #10151b;
  --login-field-border: rgba(255, 255, 255, 0.13);
  --login-ink: #f5f7fa;
  --login-muted: #9ba3ad;
  --login-subtle: #747d88;
  background: #06090d;
}

html[data-theme="dark"] .portal-login__visual {
  background:
    radial-gradient(circle at 58% 32%, rgba(45, 68, 86, 0.24), transparent 27%),
    radial-gradient(circle at 0% 70%, rgba(27, 45, 58, 0.24), transparent 34%),
    linear-gradient(145deg, #090d12 0%, #030609 70%);
}

html[data-theme="dark"] .portal-login__card,
html[data-theme="dark"] .portal-login__theme-toggle,
html[data-theme="dark"] .portal-login__selection {
  border-color: var(--login-card-border);
  background: var(--login-card-bg);
}

html[data-theme="dark"] .portal-login__select-wrap select {
  border-color: var(--login-field-border);
  background: var(--login-field-bg);
  color: var(--login-ink);
}

html[data-theme="dark"] .portal-login__selection-avatar {
  background: #f5f6f8;
  color: #111318;
}

html[data-theme="dark"] .portal-login__theme-icon--sun {
  background: transparent;
  color: #75808d;
  box-shadow: none;
}

html[data-theme="dark"] .portal-login__theme-icon--moon {
  background: #2a3039;
  color: #f7f8fa;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .portal-login__submit {
  border-color: #eef1f5;
  background: #eef1f5;
  color: #111318;
}

html[data-theme="dark"] .portal-login__submit:hover {
  background: #ffffff;
}

@media (max-width: 1040px) {
  .portal-login {
    grid-template-columns: minmax(360px, 0.82fr) minmax(480px, 1.18fr);
  }

  .portal-login__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-login__benefits > div:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 820px) {
  .portal-login {
    grid-template-columns: 1fr;
    background: var(--login-panel-bg);
  }

  .portal-login__visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 250px;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 28px 28px 30px;
  }

  .portal-login__globe {
    top: -62%;
    left: 32%;
    width: 520px;
  }

  .portal-login__visual-copy {
    align-self: end;
    margin: 26px 0 0;
  }

  .portal-login__visual-copy h2 {
    font-size: var(--portal-type-section);
  }

  .portal-login__visual-copy p,
  .portal-login__benefits,
  .portal-login__visual-footer {
    display: none;
  }

  .portal-login__stage {
    grid-column: 1;
    grid-row: 2;
    min-height: calc(100vh - 250px);
    padding: 22px 24px 26px;
  }

  .portal-login__card {
    margin-block: 24px;
  }
}

@media (max-width: 560px) {
  .portal-login__visual {
    min-height: 190px;
    padding: 22px 20px;
  }

  .portal-login__brand img {
    width: 132px;
  }

  .portal-login__visual-copy h2 {
    font-size: var(--portal-type-section);
  }

  .portal-login__stage {
    min-height: calc(100vh - 190px);
    padding: 18px 16px 22px;
  }

  .portal-login__card {
    padding: 28px 22px;
  }

  .portal-login__footer {
    gap: 8px;
    text-align: center;
  }
}

.portal-shell {
  min-height: 100vh;
  padding: var(--portal-shell-padding);
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 0 28px 0 26px;
  border-radius: 24px 24px 0 0;
  background: #000;
  color: #fff;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
  max-width: min(42vw, 420px);
}

.portal-brand__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateY(1px);
}

.portal-topbar__utility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-topbar__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.portal-internal-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.portal-topbar__badge--internal {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--portal-type-caption);
  letter-spacing: 0.02em;
}

.portal-topbar__badge--internal:hover,
.portal-topbar__badge--internal:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.portal-internal-switch__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  z-index: 60;
}

.portal-internal-switch__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-internal-switch__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-internal-switch__header strong {
  display: block;
  font-size: var(--portal-type-body);
  font-weight: 700;
  color: #0f172a;
}

.portal-internal-switch__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
}

.portal-internal-switch__search {
  display: block;
  margin-bottom: 12px;
}

.portal-internal-switch__search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d7dfec;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.portal-internal-switch__search input:focus-visible {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.portal-internal-switch__list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.portal-internal-switch__option,
.portal-internal-switch__empty {
  border-radius: 14px;
}

.portal-internal-switch__option {
  width: 100%;
  border: 1px solid #dbe4f0;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-internal-switch__option:hover,
.portal-internal-switch__option:focus-visible {
  outline: none;
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.18);
}

.portal-internal-switch__option:active {
  transform: translateY(1px);
}

.portal-internal-switch__option.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.portal-internal-switch__option.is-pending {
  border-color: #93c5fd;
  background: #f8fbff;
}

.portal-internal-switch__option[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  background: #f8fafc;
  box-shadow: none;
}

.portal-internal-switch__option-top,
.portal-internal-switch__option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-internal-switch__option-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-internal-switch__option-name {
  display: block;
  font-size: var(--portal-type-body);
  font-weight: 700;
  color: #0f172a;
}

.portal-internal-switch__option-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-internal-switch__option-code {
  flex: 0 0 auto;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-internal-switch__option-status,
.portal-internal-switch__option-note {
  font-size: var(--portal-type-body);
  color: #475569;
}

.portal-internal-switch__option-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 700;
}

.portal-internal-switch__option-status[data-status="active"] {
  background: #dcfce7;
  color: #166534;
}

.portal-internal-switch__option-status[data-status="inactive"] {
  background: #fee2e2;
  color: #b91c1c;
}

.portal-internal-switch__option-status[data-status="archived"] {
  background: #e2e8f0;
  color: #475569;
}

.portal-internal-switch__option-status[data-status="onboarding"] {
  background: #fef3c7;
  color: #b45309;
}

.portal-internal-switch__empty {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: var(--portal-type-body);
}

.portal-language {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.portal-topbar__icon-button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-topbar__icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-topbar__icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-topbar__icon-button:active {
  transform: translateY(1px);
}

.portal-topbar__icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.portal-topbar__icon-button.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-theme-toggle {
  min-height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.portal-theme-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.portal-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  min-width: 70px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.portal-theme-toggle__icon {
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.48);
  transition: color 180ms ease, transform 180ms ease;
}

.portal-theme-toggle__track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.portal-theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 15, 16, 0.2);
  transition: transform 180ms ease, background-color 180ms ease;
}

.portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun,
.portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon {
  color: #fff;
  transform: scale(1.04);
}

.portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__track {
  background: rgba(255, 255, 255, 0.24);
}

.portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__thumb {
  transform: translateX(16px);
}

.portal-topbar__badge,
.portal-topbar__link {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.portal-topbar__badge {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
}

.portal-topbar__badge--runtime {
  background: rgba(231, 174, 82, 0.24);
  color: #fff;
}

.portal-topbar__badge--runtime.is-test {
  background: rgba(78, 126, 194, 0.28);
}

.portal-topbar__link {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.portal-topbar__link:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.portal-topbar__link.is-active {
  background: color-mix(in srgb, var(--portal-accent) 28%, rgba(255, 255, 255, 0.18));
  color: #fff;
}

.portal-topbar__link[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.42);
  cursor: not-allowed;
  pointer-events: none;
}

.portal-topbar__link[aria-disabled="true"]:hover,
.portal-topbar__link[aria-disabled="true"]:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

html:not([data-theme="dark"]) .portal-language,
html:not([data-theme="dark"]) .portal-theme-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

html:not([data-theme="dark"]) .portal-topbar__badge--internal {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

html:not([data-theme="dark"]) .portal-topbar__badge--runtime {
  border-color: rgba(209, 148, 42, 0.22);
  background: rgba(209, 148, 42, 0.14);
  color: rgba(124, 76, 13, 0.92);
}

html:not([data-theme="dark"]) .portal-topbar__badge--runtime.is-test {
  border-color: rgba(39, 76, 119, 0.2);
  background: rgba(39, 76, 119, 0.12);
  color: rgba(24, 58, 99, 0.9);
}

html:not([data-theme="dark"]) .portal-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.085);
}

.portal-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--portal-page-grid-gap);
  padding: var(--portal-page-top-padding) var(--portal-page-inline-padding) var(--portal-page-bottom-padding);
  border-radius: 0 0 24px 24px;
  background: color-mix(in srgb, var(--bg) 78%, var(--surface) 22%);
  transition:
    grid-template-columns 240ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-dashboard.is-dev-mode-workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 22px 12px 28px;
}

.portal-dashboard--with-rail {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.portal-dashboard.is-dev-mode-workspace.portal-dashboard--with-rail {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.portal-dashboard.is-dev-mode-workspace .portal-main {
  gap: 18px;
  min-width: 0;
}

.portal-dashboard.is-dev-mode-workspace #shipments-main {
  width: 100%;
}

.portal-dashboard.is-dev-mode-workspace .quotations-create-view {
  width: min(100%, var(--request-workspace-max-width));
  max-width: var(--request-workspace-max-width);
  margin-inline: auto;
}

.portal-main {
  display: grid;
  gap: var(--portal-page-gap);
  min-width: 0;
}

.portal-dashboard--with-rail > .portal-main {
  grid-column: 1;
  grid-row: 1;
}

.portal-dashboard--with-rail .portal-rail {
  grid-column: 2;
  grid-row: 1;
  width: 320px;
  min-width: 0;
  display: block;
  position: sticky;
  top: 92px;
  align-self: start;
  justify-self: end;
}

.settings-view[hidden] {
  display: none !important;
}

.settings-view [hidden] {
  display: none !important;
}

.settings-view {
  display: grid;
  grid-column: 1 / -1;
  gap: 24px;
  max-width: min(100%, 1240px);
  margin: 0 auto;
}

.settings-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 900px);
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.settings-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.settings-sidebar__card,
.settings-preview-card,
.settings-panel,
.settings-hero {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.07);
  box-shadow: 0 10px 28px rgba(15, 15, 16, 0.035);
}

.settings-sidebar__card,
.settings-preview-card {
  padding: 16px;
}

.settings-sidebar__eyebrow,
.settings-hero__eyebrow,
.settings-preview-card__eyebrow {
  display: inline-block;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.settings-sidebar__card h1,
.settings-hero h2,
.settings-preview-card h2 {
  margin: 8px 0 0;
  font-size: var(--portal-type-page);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand);
}

.settings-preview-card h2 {
  font-size: var(--portal-type-subheading);
  letter-spacing: -0.03em;
}

.settings-sidebar__card p,
.settings-hero p,
.settings-panel__header p,
.settings-preview-card__header p {
  margin: 6px 0 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.settings-sidebar__nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.settings-sidebar__link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface) 18%);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  font-size: var(--portal-type-body);
  font-weight: 700;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.settings-sidebar__link:hover,
.settings-sidebar__link:focus-visible {
  color: var(--ink);
  border-color: var(--line);
}

.settings-content {
  display: grid;
  gap: 14px;
  max-width: 900px;
  width: 100%;
}

.settings-hero {
  padding: 16px 20px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.settings-hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-save-indicator {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface) 18%);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-save-indicator.is-dirty {
  color: var(--warning-text);
  background: var(--warning-bg);
  border-color: rgba(173, 120, 23, 0.18);
}

.settings-save-indicator.is-saved {
  color: var(--success-text);
  background: var(--success-bg);
  border-color: rgba(87, 168, 101, 0.16);
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-panel {
  padding: 18px 20px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.settings-panel__header {
  display: flex;
  gap: 12px;
  align-items: start;
}

.settings-panel__header h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  color: var(--brand);
}

.settings-panel__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface) 30%);
  border: 1px solid rgba(15, 15, 16, 0.06);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.settings-grid {
  display: grid;
  gap: 12px;
}

.settings-view .field > span:first-child,
.settings-view .field-label {
  font-size: var(--portal-type-body);
  font-weight: 700;
  color: var(--ink-muted);
}

.settings-view .field input,
.settings-view .field select {
  min-height: 44px;
  height: 44px;
  border-radius: 12px;
}

.settings-view .field textarea {
  min-height: 92px;
  border-radius: 12px;
}

.settings-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-grid__span-2 {
  grid-column: span 2;
}

.settings-group,
.settings-stack {
  display: grid;
  gap: 10px;
}

.settings-group__label {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-choice-grid {
  display: grid;
  gap: 10px;
}

.settings-choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-choice-grid--compact {
  gap: 8px;
}

.settings-choice-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.settings-choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.settings-choice-card span {
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface) 14%);
  display: grid;
  gap: 5px;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.settings-choice-grid--compact .settings-choice-card span {
  min-height: 78px;
}

.settings-choice-card strong {
  font-size: var(--portal-type-body);
  color: var(--brand);
}

.settings-choice-card small {
  color: var(--ink-muted);
  line-height: 1.45;
}

.settings-choice-card input:checked + span {
  border-color: rgba(15, 15, 16, 0.14);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.05), 0 10px 20px rgba(15, 15, 16, 0.04);
}

.settings-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-toggle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface) 14%);
  cursor: pointer;
}

.settings-toggle-row input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.settings-toggle-row strong,
.settings-last-login strong,
.settings-activity-item strong,
.settings-utility-card strong,
.settings-build-card strong {
  color: var(--brand);
}

.settings-toggle-row small,
.settings-last-login span,
.settings-activity-item span,
.settings-activity-item small,
.settings-utility-card span,
.settings-build-card small,
.settings-branding-preview__surface > span {
  color: var(--ink-muted);
  line-height: 1.5;
}

.settings-security-meter {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.settings-security-meter__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.08);
  overflow: hidden;
}

.settings-security-meter__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d4a24a;
  transition: width 180ms ease, background-color 180ms ease;
}

.settings-security-meter strong {
  font-size: var(--portal-type-body);
}

.settings-security-meter p,
.settings-field-error {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.settings-field-error {
  color: var(--danger-text);
  font-weight: 700;
}

.settings-inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-last-login {
  display: grid;
  gap: 4px;
}

.settings-activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-activity-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.settings-branding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.settings-subsection-stack {
  display: grid;
  gap: 12px;
}

.settings-subsection-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.07);
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--surface) 58%);
}

.settings-subsection-card__header {
  display: grid;
  gap: 4px;
}

.settings-subsection-card__header--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.settings-subsection-card__header h4 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
}

.settings-subsection-card__header p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.settings-branding-main {
  display: grid;
  gap: 16px;
}

.settings-logo-uploader {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 15, 16, 0.14);
  background:
    radial-gradient(circle at top right, rgba(15, 15, 16, 0.04), transparent 40%),
    color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.settings-logo-uploader.is-busy {
  pointer-events: none;
  opacity: 0.78;
}

.settings-logo-uploader:hover,
.settings-logo-uploader:focus-visible {
  border-color: rgba(15, 15, 16, 0.22);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.05);
}

.settings-logo-uploader__preview {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 15, 16, 0.1);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.settings-logo-uploader__preview img {
  display: block;
  width: 100%;
  max-width: 240px;
  max-height: 110px;
  object-fit: contain;
}

.settings-logo-uploader__preview span {
  font-size: var(--portal-type-page);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.settings-logo-uploader__status {
  font-size: var(--portal-type-caption);
  color: var(--text-secondary);
}

.settings-logo-uploader__actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-branding-preview {
  display: grid;
  gap: 12px;
}

.settings-branding-preview__surface {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.settings-branding-preview__surface--light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 246, 0.98));
}

.settings-branding-preview__surface--dark {
  background: linear-gradient(180deg, #111214, #181a1f);
}

.settings-brand-chip {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(15, 15, 16, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.settings-brand-chip--dark {
  background: rgba(255, 255, 255, 0.08);
}

.settings-brand-chip--dark strong,
.settings-branding-preview__surface--dark > span {
  color: rgba(255, 255, 255, 0.82);
}

.settings-brand-chip__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #111214;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}

.settings-brand-chip--dark .settings-brand-chip__mark {
  background: rgba(255, 255, 255, 0.14);
}

.settings-brand-chip__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.settings-preview-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.settings-preview-card__status {
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface) 18%);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.settings-preview {
  margin-top: 16px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 247, 0.98));
  border: 1px solid rgba(15, 15, 16, 0.06);
  display: grid;
  gap: 14px;
}

.settings-preview[data-theme-preview="dark"] {
  background: linear-gradient(180deg, rgba(23, 25, 31, 0.98), rgba(16, 18, 22, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
}

.settings-preview__topbar {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 18px;
  background: rgba(15, 15, 16, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-preview[data-theme-preview="dark"] .settings-preview__topbar,
.settings-preview[data-theme-preview="dark"] .settings-preview__card {
  background: rgba(255, 255, 255, 0.06);
}

.settings-preview[data-theme-preview="dark"] .settings-preview__hero {
  background: rgba(255, 255, 255, 0.07);
}

.settings-preview[data-theme-preview="dark"] .settings-preview__hero span,
.settings-preview[data-theme-preview="dark"] .settings-preview__card span {
  color: rgba(255, 255, 255, 0.56);
}

.settings-preview[data-theme-preview="dark"] .settings-preview__hero strong,
.settings-preview[data-theme-preview="dark"] .settings-preview__hero small,
.settings-preview[data-theme-preview="dark"] .settings-preview__card strong,
.settings-preview[data-theme-preview="dark"] .settings-preview__pill.is-active {
  color: #fff;
}

.settings-preview[data-theme-preview="dark"] .settings-preview__pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
}

.settings-preview__brand {
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: #111214;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-preview__brand img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.settings-preview__nav {
  display: inline-flex;
  gap: 6px;
}

.settings-preview__pill {
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 16, 0.06);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-preview__pill.is-active {
  background: rgba(15, 15, 16, 0.14);
  color: var(--brand);
}

.settings-preview__body,
.settings-preview__cards {
  display: grid;
  gap: 10px;
}

.settings-preview__hero {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.settings-preview[data-theme-preview="dark"] .settings-preview__hero {
  background: rgba(255, 255, 255, 0.07);
}

.settings-preview__hero span,
.settings-preview__card span {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.settings-preview__hero strong,
.settings-preview__card strong {
  color: var(--brand);
}

.settings-preview__hero small {
  color: var(--ink-muted);
}

.settings-preview__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-preview__card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 15, 16, 0.05);
  display: grid;
  gap: 6px;
}

.settings-utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-utility-card,
.settings-build-card {
  min-height: 124px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  text-align: left;
  display: grid;
  gap: 8px;
}

.settings-utility-card {
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.settings-utility-card:hover,
.settings-utility-card:focus-visible {
  border-color: rgba(15, 15, 16, 0.14);
  transform: translateY(-1px);
}

.settings-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(87, 168, 101, 0.18);
  background: rgba(34, 38, 30, 0.96);
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 15, 16, 0.2);
  z-index: 260;
}

.settings-toast[hidden] {
  display: none !important;
}

.settings-shell--simple {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.settings-content--simple {
  gap: 14px;
}

.settings-hero--simple {
  padding: 20px 22px;
}

.settings-hero--simple p {
  max-width: 42ch;
}

.settings-form--simple {
  gap: 14px;
}

.settings-form--simple .settings-panel {
  padding: 20px 22px;
  gap: 16px;
}

.settings-panel__header--simple {
  gap: 12px;
}

.settings-panel__header--simple h3 {
  margin-top: 0;
  font-size: var(--portal-type-subheading);
}

.settings-panel__header--simple p {
  margin-top: 4px;
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.settings-choice-card--simple span {
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
}

.settings-choice-card--simple strong {
  font-size: var(--portal-type-body);
}

.settings-choice-card--simple small {
  display: none;
}

.settings-logo-uploader--simple {
  padding: 16px;
  border-radius: 18px;
}

.settings-logo-uploader--simple p {
  margin: 0;
}

.settings-sidebar__profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.settings-sidebar__profile strong,
.settings-sidebar__profile span {
  display: block;
}

.settings-sidebar__profile strong {
  color: var(--brand);
}

.settings-sidebar__profile span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-sidebar__link {
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.settings-sidebar__link.is-active {
  color: var(--brand);
  background: var(--surface);
  border-color: rgba(15, 15, 16, 0.14);
  box-shadow: inset 3px 0 0 var(--brand);
}

.settings-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18)),
    color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(15, 15, 16, 0.06);
  color: var(--brand);
  font-weight: 700;
}

.settings-avatar--small {
  width: 36px;
  height: 36px;
  font-size: 0.86rem;
}

.settings-avatar--large {
  width: 82px;
  height: 82px;
  font-size: 1.28rem;
}

.settings-profile-layout {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-profile-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface) 14%);
  text-align: center;
}

.settings-profile-card strong {
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
  display: inline-flex;
  align-items: center;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-profile-card > span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-profile-card .settings-inline-actions {
  justify-content: center;
}

.settings-working-hours {
  display: grid;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 16, 0.07);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface) 28%);
}

.settings-workday-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 46px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(15, 15, 16, 0.055);
  color: var(--ink-muted);
}

.settings-workday-row:last-child {
  border-bottom: 0;
}

.settings-workday-row:has(input[type="checkbox"]:checked) {
  background: color-mix(in srgb, var(--surface) 72%, var(--surface-soft) 28%);
  color: var(--brand);
}

.settings-workday-row:has(input[type="checkbox"]:not(:checked)) {
  opacity: 0.64;
}

.settings-workday-row__day {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 700;
  cursor: pointer;
}

.settings-workday-row__day input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.settings-workday-row__time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.settings-workday-row__time span {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-workday-row__time input[type="time"] {
  width: 92px;
  min-height: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid rgba(15, 15, 16, 0.075);
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-soft) 16%);
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  box-shadow: none;
}

.settings-workday-row__time input[type="time"]:focus {
  border-color: rgba(15, 15, 16, 0.18);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 15, 16, 0.045);
}

.settings-workday-row__time input[type="time"]:disabled {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface) 18%);
  cursor: not-allowed;
  opacity: 0.68;
}

.settings-availability-footer {
  gap: 12px;
  align-items: stretch;
}

.settings-availability-footer .field input[readonly] {
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-soft) 16%);
}

.settings-availability-footer .settings-toggle-row {
  min-height: 72px;
  align-items: center;
  padding: 12px 14px;
}

.settings-availability-footer .settings-toggle-row input {
  margin-top: 0;
}

.settings-availability-footer .settings-toggle-row > span {
  display: grid;
  gap: 3px;
}

.settings-availability-footer .settings-toggle-row strong {
  display: block;
}

.settings-toggle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-table-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) minmax(150px, 0.45fr) auto;
  gap: 12px;
  align-items: end;
}

.settings-team-list {
  display: grid;
  gap: 10px;
  padding-bottom: 2px;
  min-width: 0;
}

.settings-team-table {
  --settings-team-grid: 34px minmax(188px, 1.48fr) minmax(176px, 1.06fr) minmax(122px, 0.72fr) minmax(104px, 0.62fr) 58px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.settings-team-row {
  display: grid;
  grid-template-columns: var(--settings-team-grid);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.settings-team-row:not(.settings-team-row--header) {
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.settings-team-row:not(.settings-team-row--header):hover,
.settings-team-row:not(.settings-team-row--header):focus-visible {
  border-color: rgba(15, 15, 16, 0.14);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft) 12%);
  box-shadow: 0 10px 24px rgba(15, 15, 16, 0.06);
  outline: none;
}

.settings-team-row.is-inactive-account {
  border-color: rgba(15, 15, 16, 0.06);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
}

.settings-team-row.is-inactive-account strong,
.settings-team-row.is-inactive-account .settings-team-row__cell,
.settings-team-row.is-inactive-account .settings-role-pill {
  color: color-mix(in srgb, var(--brand) 72%, var(--ink-muted) 28%);
}

.settings-team-row.is-inactive-account small,
.settings-team-row.is-inactive-account .settings-team-row__cell--muted {
  color: color-mix(in srgb, var(--ink-muted) 88%, var(--surface-strong, #000) 12%);
}

.settings-team-row--header {
  padding: 0 10px 2px;
  border: 0;
  background: transparent;
  cursor: default;
}

.settings-team-row__heading {
  min-width: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-team-row__heading--employee {
  grid-column: 1 / 3;
}

.settings-team-row__heading--actions {
  text-align: right;
}

.settings-team-row strong,
.settings-role-grid strong {
  display: block;
  color: var(--brand);
}

.settings-team-row small,
.settings-role-grid span,
.settings-empty-state span {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.settings-team-row__identity {
  display: block;
  align-items: center;
  min-width: 0;
}

.settings-team-row__identity strong,
.settings-team-row__identity small,
.settings-team-row__cell,
.settings-role-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-team-row__cell {
  min-width: 0;
  color: var(--brand);
  font-weight: 700;
}

.settings-team-row__department {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding-left: 3px;
}

.settings-presence-rail {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  overflow: visible;
}

.settings-team-row__department-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-team-row__cell--muted {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-role-pill {
  min-width: 0;
  justify-self: start;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 15, 16, 0.07);
  background: color-mix(in srgb, var(--surface) 72%, var(--surface-soft) 28%);
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.settings-role-pill__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-account-state-pill {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.settings-presence-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.settings-presence-dot.is-online {
  background: var(--success-text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success-bg) 88%, transparent 12%);
}

.settings-presence-dot.is-online::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: color-mix(in srgb, var(--success-text) 28%, transparent 72%);
  opacity: 0.8;
  transform: scale(0.65);
  animation: settingsPresencePulse 1.8s ease-out infinite;
}

.settings-presence-dot.is-offline {
  background: var(--ink-muted);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--surface-soft) 84%, var(--surface) 16%);
}

@keyframes settingsPresencePulse {
  0% {
    opacity: 0.82;
    transform: scale(0.58);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-presence-dot.is-online::after {
    animation: none;
    display: none;
  }
}

.settings-status-pill {
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.settings-status-pill--inactive {
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  color: var(--ink-muted);
}

.settings-team-row__actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.settings-kebab-button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 15, 16, 0.07);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-soft) 22%);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.settings-kebab-button span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.settings-kebab-button:hover,
.settings-kebab-button[aria-expanded="true"] {
  color: var(--brand);
  border-color: rgba(15, 15, 16, 0.16);
  background: var(--surface);
}

.settings-employee-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: 190px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(15, 15, 16, 0.14);
}

.settings-employee-menu--above {
  top: auto;
  bottom: calc(100% + 6px);
}

.settings-employee-menu[hidden] {
  display: none;
}

.settings-employee-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--brand);
  display: flex;
  align-items: center;
  text-align: left;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
}

.settings-employee-menu button:hover {
  background: var(--surface-soft);
}

.settings-employee-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.settings-permission-matrix {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(100px, 0.7fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.settings-permission-matrix > * {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.settings-permission-matrix > strong {
  color: var(--brand);
}

.settings-permission-matrix > :nth-last-child(-n + 4) {
  border-bottom: 0;
}

.settings-employee-editor {
  position: fixed;
}

.settings-employee-editor,
.settings-employee-details {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.settings-employee-editor[hidden],
.settings-employee-details[hidden] {
  display: none;
}

.settings-employee-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 20, 30, 0.28);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
  backdrop-filter: blur(10px) saturate(0.9);
  cursor: pointer;
}

.settings-employee-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(86vh, 760px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 15, 16, 0.22);
}

.settings-employee-modal__panel--compact {
  width: min(100%, 520px);
}

.settings-employee-editor__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.95fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: color-mix(in srgb, var(--surface-soft) 80%, var(--surface) 20%);
}

.settings-employee-editor__summary[hidden] {
  display: none;
}

.settings-employee-editor__summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.settings-employee-editor__summary strong {
  overflow: hidden;
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-employee-editor__summary > div > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-employee-editor__summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-employee-editor__summary dl div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface);
}

.settings-employee-editor__summary dt {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.settings-employee-editor__summary dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-employee-details__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.settings-employee-details__identity h4,
.settings-employee-details__identity p {
  margin: 0;
}

.settings-employee-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.settings-employee-details__grid div {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 15, 16, 0.07);
  background: color-mix(in srgb, var(--surface-soft) 80%, var(--surface) 20%);
}

.settings-employee-details__grid dt {
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-employee-details__grid dd {
  margin: 0;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.settings-empty-state {
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface) 14%);
  text-align: center;
}

.settings-empty-state strong {
  color: var(--brand);
}

.settings-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-role-grid article {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface) 14%);
}

.settings-color-field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-color-field input {
  width: 100%;
  min-height: 44px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

html[data-density="compact"] .portal-dashboard {
  gap: 20px;
  padding: 20px 18px 24px;
}

html[data-density="compact"] .quotations-header,
html[data-density="compact"] .overview-card,
html[data-density="compact"] .dashboard-kpi-card,
html[data-density="compact"] .dashboard-panel,
html[data-density="compact"] .settings-panel,
html[data-density="compact"] .settings-sidebar__card,
html[data-density="compact"] .settings-preview-card,
html[data-density="compact"] .settings-hero {
  border-radius: 24px;
}

html[data-density="compact"] .settings-panel,
html[data-density="compact"] .settings-sidebar__card,
html[data-density="compact"] .settings-preview-card,
html[data-density="compact"] .settings-hero {
  padding: 20px;
}

html[data-show-helpers="false"] .request-section__header p,
html[data-show-helpers="false"] .request-panel__header p,
html[data-show-helpers="false"] .cargo-editor-panel__head p,
html[data-show-helpers="false"] .dimensions-lines__toolbar-copy span,
html[data-show-helpers="false"] .toggle-card small,
html[data-show-helpers="false"] .modality-guidance,
html[data-show-helpers="false"] .settings-panel__header p,
html[data-show-helpers="false"] .settings-toggle-row small,
html[data-show-helpers="false"] #settings-password-feedback,
html[data-show-helpers="false"] .settings-utility-card span,
html[data-show-helpers="false"] .settings-sidebar__card p,
html[data-show-helpers="false"] .settings-hero p {
  display: none;
}

html[data-compact-tables="true"] .dashboard-table th,
html[data-compact-tables="true"] .dashboard-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.quotations-overview,
.quotations-create-view {
  display: grid;
  gap: var(--portal-page-gap);
}

.quotations-create-view {
  transition: gap 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quotations-overview[hidden],
.quotations-create-view[hidden] {
  display: none !important;
}

.quotations-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: var(--portal-hero-padding);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.04);
  box-shadow: var(--shadow-card);
}

.quotations-header__copy {
  display: grid;
  gap: 10px;
}

.quotations-header__copy h1 {
  margin: 0;
  color: var(--brand);
  letter-spacing: -0.05em;
}

.quotations-header__copy h1 {
  font-size: var(--portal-type-page);
  line-height: 0.98;
}

.quotations-header__copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-muted);
  line-height: 1.65;
}

.quotations-back-row {
  display: flex;
  justify-content: flex-start;
}

.quotations-back-button {
  min-height: 28px;
  padding-inline: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--portal-type-body);
  letter-spacing: 0.01em;
}

.quotations-back-button::before {
  content: "←";
  margin-right: 5px;
  font-size: 0.78rem;
  line-height: 1;
}

.quotations-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.quotations-table-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.04);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

.quotations-table-card .dashboard-panel__header {
  align-items: flex-start;
  margin-bottom: 0;
}

.quotations-table-card .dashboard-panel__header h3 {
  margin: 0;
}

.quotations-table-card__header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

#quotations-table-wrap {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.quotations-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 36px;
}

.quotations-table-filter {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 116px);
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  isolation: isolate;
  overflow: hidden;
}

.quotations-table-filter__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 15, 16, 0.08), 0 1px 2px rgba(15, 15, 16, 0.05);
  transform: translate3d(0, 0, 0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.quotations-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: 116px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
  transition:
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
  position: relative;
  z-index: 1;
}

.quotations-filter-pill.is-active {
  color: var(--brand);
}

.quotations-table-filter[data-active-filter="archived"] .quotations-table-filter__indicator {
  transform: translate3d(100%, 0, 0);
}

.quotations-table-filter[data-active-filter="active"] .quotations-filter-pill[data-quotation-filter="archived"],
.quotations-table-filter[data-active-filter="archived"] .quotations-filter-pill[data-quotation-filter="active"] {
  opacity: 0.84;
}

.quotations-filter-pill:focus-visible {
  outline: 0;
  color: var(--brand);
}

.quotations-table__selection {
  width: 42px;
  padding-left: 6px;
  padding-right: 6px;
}

.quotations-table__sortable-header {
  white-space: nowrap;
}

.quotations-table__sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.quotations-table__sort-button:hover,
.quotations-table__sort-button:focus-visible,
.quotations-table__sortable-header.is-sorted .quotations-table__sort-button {
  color: var(--brand);
}

.quotations-table__sort-button:focus-visible {
  outline: none;
}

.quotations-table__sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(1px);
  transition: opacity 160ms ease, color 160ms ease;
}

.quotations-table__sort-button:hover .quotations-table__sort-indicator,
.quotations-table__sort-button:focus-visible .quotations-table__sort-indicator {
  opacity: 0.42;
}

.quotations-table__sort-button.is-active .quotations-table__sort-indicator {
  color: var(--brand);
  opacity: 1;
}

.quotation-page-table .quotations-table__sort-button {
  max-width: 100%;
  gap: 4px;
}

.quotation-page-table .quotations-table__sort-indicator {
  width: 8px;
  flex: 0 0 8px;
  font-size: 0.66rem;
}

.quotation-page-table .quotations-table__sort-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.quotations-table__checkbox {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--table-checkbox-border);
  border-radius: 6px;
  background-color: var(--table-checkbox-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--table-checkbox-shadow);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.quotations-table__checkbox:hover {
  border-color: var(--table-checkbox-border-hover);
  background-color: color-mix(in srgb, var(--table-checkbox-bg) 90%, var(--surface-soft) 10%);
}

.quotations-table__checkbox:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    var(--table-checkbox-shadow),
    var(--table-checkbox-focus-ring);
}

.quotations-table__checkbox:checked,
.quotations-table__checkbox:indeterminate {
  border-color: var(--table-checkbox-checked-border);
  background-color: var(--table-checkbox-checked-bg);
  box-shadow: 0 8px 18px rgba(15, 15, 16, 0.12);
}

.quotations-table__checkbox:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.2 6.1 4.9 8.6 9.8 3.4' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.quotations-table__checkbox:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6h7' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .quotations-table__checkbox:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.2 6.1 4.9 8.6 9.8 3.4' stroke='%23111214' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .quotations-table__checkbox:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6h7' stroke='%23111214' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.quotations-table__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.quotations-table td:nth-child(2) strong {
  color: var(--brand);
}

.quotations-table__reference-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quotations-table__reference-topline,
.quotations-table__reference-main,
.quotations-table__status-stack,
.quotations-table__requested-load-mobile,
.quotations-table__mobile-metric {
  display: inline-flex;
}

.quotations-table__reference-topline,
.quotations-table__reference-main {
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quotations-table__status-stack {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.quotations-table__requested-load-desktop {
  display: inline;
}

.quotations-table__requested-load-mobile,
.quotations-table__mobile-customer-reference,
.quotations-table__mobile-mode,
.quotations-table__mobile-secondary-line,
.quotations-table__mobile-route {
  display: none;
}

.quotations-table__origin-value {
  display: inline;
}

.quotations-table__chat-unread-indicator {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6767 0%, #de3030 100%);
  color: #fff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(222, 48, 48, 0.18);
  transform: translateY(-1px);
}

.quotations-table__row.is-clickable {
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.quotations-table__row.is-clickable:hover {
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface) 32%);
}

.quotations-table__row.is-clickable:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(29, 111, 165, 0.14);
}

.quotations-table__row.is-draft-clickable:hover td {
  background: color-mix(in srgb, rgba(59, 130, 246, 0.08) 72%, var(--surface) 28%);
}

.quotations-table__row.is-draft-clickable:focus-visible td {
  background: color-mix(in srgb, rgba(59, 130, 246, 0.08) 72%, var(--surface) 28%);
}

.quotations-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface) 28%);
}

.quotations-table__row.is-context-active {
  background: color-mix(in srgb, var(--portal-accent-soft) 68%, var(--surface) 32%);
}

.quotations-table__row--booked td {
  background: color-mix(in srgb, rgba(34, 197, 94, 0.16) 74%, var(--surface) 26%);
}

.quotations-table__row--requote td {
  background: color-mix(in srgb, rgba(217, 119, 6, 0.14) 74%, var(--surface) 26%);
}

.quotations-table__row--rejected td {
  background: color-mix(in srgb, rgba(220, 38, 38, 0.1) 70%, var(--surface) 30%);
}

.quotations-context-menu[hidden],
.quotation-copy-modal[hidden],
.unsaved-quotation-modal[hidden] {
  display: none !important;
}

.quotations-context-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.quotations-context-menu__panel {
  position: fixed;
  min-width: 164px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 15, 16, 0.08);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  display: grid;
  gap: 4px;
}

.quotations-context-menu__item {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.quotations-context-menu__item:hover,
.quotations-context-menu__item:focus-visible {
  background: color-mix(in srgb, var(--portal-accent-soft) 78%, var(--surface) 22%);
  outline: none;
}

.quotations-context-menu__item:disabled {
  color: var(--ink-muted);
  cursor: not-allowed;
  background: transparent;
}

.quotation-copy-modal {
  position: fixed;
  inset: 0;
  z-index: 81;
}

.unsaved-quotation-modal {
  position: fixed;
  inset: 0;
  z-index: 83;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quotation-copy-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(8px);
}

.unsaved-quotation-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.quotation-copy-modal__panel {
  position: relative;
  width: min(100% - 32px, 620px);
  margin: 64px auto;
  padding: 24px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 18px;
}

.unsaved-quotation-modal__panel {
  position: relative;
  width: min(100%, 440px);
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 22px;
}

.quotation-copy-modal__header,
.quotation-copy-modal__footer,
.unsaved-quotation-modal__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.unsaved-quotation-modal__header {
  display: grid;
  gap: 10px;
}

.quotation-copy-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--portal-accent-soft);
  color: var(--portal-accent-badge-text);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unsaved-quotation-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--portal-accent-soft);
  color: var(--portal-accent-badge-text);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quotation-copy-modal__header h2,
.quotation-copy-modal__group h3 {
  margin: 10px 0 0;
  color: var(--brand);
}

.unsaved-quotation-modal__header h2 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-section);
}

.quotation-copy-modal__header p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.unsaved-quotation-modal__header p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.quotation-copy-modal__dismiss {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quotation-copy-modal__dismiss svg {
  width: 16px;
  height: 16px;
}

.quotation-copy-modal__body {
  display: grid;
  gap: 16px;
  max-height: min(60vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.quotation-copy-modal__group {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.quotation-copy-modal__group p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.quotation-copy-modal__checklist {
  display: grid;
  gap: 10px;
}

.quotation-copy-modal__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 15, 16, 0.04);
}

.quotation-copy-modal__option input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.quotation-copy-modal__option strong {
  display: block;
  color: var(--brand);
}

.quotation-copy-modal__option span {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.quotation-copy-modal__footer {
  justify-content: flex-end;
}

.unsaved-quotation-modal__footer {
  justify-content: flex-end;
  align-items: center;
}

.quotation-drawer[hidden] {
  display: none !important;
}

.quotation-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.quotation-drawer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.quotation-drawer {
  opacity: 0;
  transition: opacity 220ms ease;
}

.quotation-drawer.is-open,
.quotation-drawer.is-closing {
  opacity: 1;
}

.quotation-drawer__panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(720px, calc(100vw - 52px));
  border-radius: 30px;
  background: color-mix(in srgb, rgba(255, 255, 255, 0.84) 88%, var(--surface) 12%);
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow:
    0 34px 78px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
  transform: translate3d(calc(100% + 24px), 0, 0);
  opacity: 0;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.quotation-drawer.is-open .quotation-drawer__panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.quotation-drawer.is-open .quotation-drawer__scrim {
  opacity: 1;
}

.quotation-drawer.is-closing .quotation-drawer__panel {
  transform: translate3d(calc(100% + 24px), 0, 0);
  opacity: 0;
  transition-duration: 220ms;
}

.quotation-drawer.is-closing .quotation-drawer__scrim {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .quotation-drawer,
  .quotation-drawer__panel,
  .quotation-drawer__scrim {
    transition: none;
  }
}

.quotation-drawer__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(15, 15, 16, 0.06);
  background: color-mix(in srgb, rgba(255, 255, 255, 0.58) 80%, var(--surface) 20%);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.quotation-drawer__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 14px 18px;
  background: rgba(7, 9, 12, 0.94);
}

.quotation-drawer__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.quotation-drawer__brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.quotation-drawer__topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.quotation-drawer__owner-presence {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.quotation-drawer__owner-presence[hidden] { display: none !important; }

.quotation-drawer__owner-chat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 12px;
  border: 1px solid #cbdcf7;
  border-radius: 12px;
  background: #eef5ff;
  color: #1d4f9b;
  text-align: left;
  cursor: pointer;
}
.quotation-drawer__owner-chat strong { font-size: var(--portal-type-body); font-weight: 600; }
.quotation-drawer__owner-chat span { font-size: var(--portal-type-body); font-weight: 700; white-space: nowrap; }
.quotation-drawer__owner-chat:hover { background: #e1edff; }
.quotation-drawer__owner-chat:focus-visible { outline: 2px solid #3974e8; outline-offset: 2px; }
.quotation-drawer__owner-chat:disabled { opacity: .5; cursor: default; }
html[data-theme="dark"] .quotation-drawer__owner-chat { background: #152640; color: #bed7ff; border-color: #345077; }
html[data-theme="dark"] .quotation-drawer__owner-chat:hover { background: #203553; }
.quotation-drawer__owner-status-dot[data-status="idle"] { background: #d99a28; }

.quotation-drawer__owner-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 42px;
}

.quotation-drawer__owner-popover[hidden] {
  display: none !important;
}

.quotation-drawer__owner-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(320px, calc(100vw - 48px));
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 48, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 249, 253, 0.99) 100%);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #172030;
  z-index: 8;
  transform: translateX(var(--quotation-owner-popover-offset, 0px));
}

.quotation-drawer__owner-card {
  display: grid;
  gap: 0;
}

.quotation-drawer__owner-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 18px 16px;
}

.quotation-drawer__owner-card-avatar {
  min-width: 42px;
  min-height: 42px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quotation-drawer__owner-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quotation-drawer__owner-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.quotation-drawer__owner-card-copy strong {
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-width: 0;
}

.quotation-drawer__owner-status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.95);
  flex: 0 0 auto;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

.quotation-drawer__owner-status-dot[data-status="online"] {
  background: #2dad67;
  animation: quotation-owner-status-pulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.quotation-drawer__owner-status-dot[data-status="offline"] {
  background: rgba(148, 163, 184, 0.95);
}

.shipment-workspace-assignees__stack.quotation-drawer__owner-assignee-stack,
.quotation-drawer__owner-card-avatar .quotation-drawer__owner-assignee-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-height: 54px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  padding: 0 6px;
  white-space: nowrap;
  line-height: 0;
  justify-self: center;
  pointer-events: auto;
}

.quotation-drawer__owner-assignee-stack .shipment-workspace-assignees__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--portal-accent-soft) 74%, var(--surface));
  color: var(--portal-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  border: 3px solid rgba(45, 51, 65, 0.92);
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  vertical-align: middle;
  pointer-events: none;
}

.quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar,
.quotation-drawer__owner-card-avatar .quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar {
  margin-top: 0;
  margin-bottom: 0;
}

.quotation-drawer__owner-assignee-stack .shipment-workspace-assignees__avatar + .shipment-workspace-assignees__avatar {
  margin-left: -10px;
}

.quotation-drawer__owner-assignee-stack .shipment-workspace-assignees__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.quotation-drawer__owner-assignee-stack .shipment-workspace-assignees__avatar > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  pointer-events: none;
}

.quotation-drawer__owner-avatar-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  transform: translateZ(0);
  pointer-events: auto;
}

.quotation-drawer__owner-avatar-button + .quotation-drawer__owner-avatar-button {
  margin-left: -10px;
}

.quotation-drawer__owner-avatar-button + .shipment-workspace-assignees__avatar--count,
.quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar + .shipment-workspace-assignees__avatar--count {
  margin-left: -10px;
}

.quotation-drawer__owner-avatar-button:focus-visible {
  outline: none;
}

.quotation-drawer__owner-avatar-button:focus-visible .shipment-workspace-assignees__avatar,
.quotation-drawer__owner-avatar-button.is-active .shipment-workspace-assignees__avatar {
  box-shadow:
    0 0 0 2px rgba(29, 111, 165, 0.2),
    0 1px 3px rgba(15, 23, 42, 0.18);
}

.quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar--count {
  background: color-mix(in srgb, var(--portal-accent) 16%, #ffffff);
  color: var(--portal-accent);
  font-size: 0.68rem;
  z-index: 10 !important;
}

.quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar--empty {
  background: color-mix(in srgb, var(--surface-muted) 80%, #ffffff);
  color: var(--ink-muted);
}

@keyframes quotation-owner-status-pulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.quotation-drawer__owner-card-copy span {
  color: rgba(23, 32, 48, 0.68);
  font-size: var(--portal-type-body);
  line-height: 1.25;
}

.quotation-drawer__owner-contact-toggle {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-top: 1px solid rgba(23, 32, 48, 0.08);
  background: rgba(21, 31, 44, 0.02);
  color: #172030;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--portal-type-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.quotation-drawer__owner-contact-toggle:hover,
.quotation-drawer__owner-contact-toggle:focus-visible {
  background: rgba(41, 77, 132, 0.06);
}

.quotation-drawer__owner-contact-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.quotation-drawer__owner-contact-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.quotation-drawer__owner-contact-panel {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(23, 32, 48, 0.08);
  background: rgba(241, 245, 249, 0.66);
}

.quotation-drawer__owner-contact-panel[hidden] {
  display: none !important;
}

.quotation-drawer__owner-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.quotation-drawer__owner-contact-copy {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.quotation-drawer__owner-contact-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(23, 32, 48, 0.62);
  flex: 0 0 auto;
}

.quotation-drawer__owner-contact-icon svg {
  width: 16px;
  height: 16px;
}

.quotation-drawer__owner-contact-copy strong {
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quotation-drawer__owner-copy-button {
  min-height: 34px;
  min-width: 56px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(41, 77, 132, 0.16);
  background: rgba(41, 77, 132, 0.08);
  color: #1f4e8c;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.quotation-drawer__owner-copy-button:hover,
.quotation-drawer__owner-copy-button:focus-visible {
  background: rgba(41, 77, 132, 0.14);
  transform: translateY(-1px);
}

.quotation-drawer__owner-copy-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.quotation-drawer__view-button {
  position: relative;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.quotation-drawer__view-button-label {
  display: inline-flex;
  align-items: center;
}

.quotation-drawer__view-button-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6767 0%, #de3030 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(222, 48, 48, 0.18);
}

.quotation-drawer__view-button-badge[hidden] {
  display: none !important;
}

.quotation-drawer__view-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.quotation-drawer__view-button.is-active {
  background: rgba(111, 168, 255, 0.22);
  border-color: rgba(111, 168, 255, 0.34);
  color: #fff;
}

.quotation-drawer__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 12px;
}

.quotation-drawer__header-copy {
  display: grid;
  gap: 6px;
}

.quotation-drawer__context-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.quotation-drawer__eyebrow,
.quotation-drawer__summary-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--portal-accent-soft) 70%, rgba(255, 255, 255, 0.62) 30%);
  color: var(--portal-accent);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.quotation-drawer__header h2 {
  margin: 0;
  font-size: var(--portal-type-section);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--brand);
}

.quotation-drawer__header p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.4;
  font-size: var(--portal-type-body);
}

.quotation-drawer__dismiss {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, background-color 160ms ease;
}

.quotation-drawer__dismiss:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.quotation-drawer__dismiss svg {
  width: 16px;
  height: 16px;
}

.quotation-drawer__back-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
}

.quotation-drawer__body {
  overflow: auto;
  min-height: 0;
  padding: 14px 20px 14px;
  display: grid;
  gap: 12px;
}

.quotation-drawer__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quotation-drawer__section-head h3 {
  margin: 0;
  color: var(--brand);
  letter-spacing: -0.035em;
  font-size: var(--portal-type-subheading);
}

.quotation-drawer__status {
  flex-shrink: 0;
}

.quotation-drawer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.quotation-drawer__layout--overview,
.quotation-drawer__layout--docs {
  align-content: start;
}

.quotation-drawer__layout--chat {
  min-height: 100%;
}

.quotation-drawer__section-head--compact {
  align-items: center;
  min-height: 22px;
}

.quotation-drawer__status-note,
.quotation-drawer__selected-panel,
.quotation-drawer__offers-panel,
.quotation-drawer__details-panel,
.quotation-drawer__cost-notes-panel,
.quotation-drawer__remarks-panel,
.quotation-drawer__change-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
  background: color-mix(in srgb, rgba(255, 255, 255, 0.76) 84%, var(--surface-soft) 16%);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.quotation-drawer__status-note {
  padding: 7px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, rgba(255, 255, 255, 0.62) 92%, var(--surface-soft) 8%);
  border-color: rgba(15, 15, 16, 0.04);
  color: color-mix(in srgb, var(--ink-muted) 88%, #ffffff 12%);
  line-height: 1.28;
  font-size: var(--portal-type-caption);
  font-weight: 500;
}

.quotation-drawer__selected-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.88)),
    radial-gradient(circle at top right, rgba(29, 111, 165, 0.09), transparent 48%);
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.quotation-drawer__selected-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quotation-drawer__offer-logo,
.quotation-drawer__offer-logo--selected {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
  border: 1px solid rgba(15, 15, 16, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.quotation-drawer__offer-logo--selected {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.quotation-drawer__offer-logo img {
  max-width: 28px;
  max-height: 28px;
  display: block;
}

.quotation-drawer__offer-logo--selected img {
  max-width: 30px;
  max-height: 30px;
}

.quotation-drawer__selected-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quotation-drawer__selected-copy strong,
.quotation-drawer__offer-copy strong {
  color: var(--brand);
}

.quotation-drawer__selected-copy strong {
  font-size: var(--portal-type-body);
  line-height: 1.05;
}

.quotation-drawer__selected-subline {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quotation-drawer__offer-note {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quotation-drawer__selected-side {
  display: grid;
  gap: 5px;
  justify-items: end;
  align-content: center;
  flex-shrink: 0;
}

.quotation-drawer__selected-price {
  color: var(--brand);
  font-size: var(--portal-type-hero);
  font-weight: 700;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.quotation-drawer__selected-caption {
  color: var(--portal-accent);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.quotation-drawer__itemized-pricing {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 15, 16, 0.07);
}

.quotation-drawer__itemized-group {
  overflow: hidden;
  border: 1px solid rgba(29, 111, 165, 0.1);
  border-radius: 13px;
  background: rgba(248, 251, 254, 0.86);
}

.quotation-drawer__itemized-group header,
.quotation-drawer__itemized-group p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quotation-drawer__itemized-group header {
  padding: 7px 10px;
  background: rgba(29, 111, 165, 0.07);
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.quotation-drawer__itemized-group header span {
  font-weight: 700;
  white-space: nowrap;
}

.quotation-drawer__itemized-group > div {
  display: grid;
}

.quotation-drawer__itemized-group p {
  margin: 0;
  padding: 6px 10px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.quotation-drawer__itemized-group p + p {
  border-top: 1px solid rgba(15, 15, 16, 0.05);
}

.quotation-drawer__itemized-group p > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-drawer__itemized-group p strong {
  flex: 0 0 auto;
  color: var(--brand);
  white-space: nowrap;
}

.quotation-drawer__itemized-empty {
  grid-column: 1 / -1;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.quotation-drawer__offers-list {
  display: grid;
  gap: 8px;
}

.quotation-drawer__offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 15, 16, 0.05);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.quotation-drawer__offer:has(.quotation-drawer__itemized-pricing),
.quotation-drawer__offer:has(.quotation-drawer__itemized-empty) {
  flex-wrap: wrap;
}

.quotation-drawer__offer:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 111, 165, 0.16);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.quotation-drawer__offer.is-readonly {
  cursor: default;
}

.quotation-drawer__offer.is-readonly:hover {
  transform: none;
  border-color: rgba(15, 15, 16, 0.05);
  box-shadow: none;
}

.quotation-drawer__offer.is-muted-reference {
  background: color-mix(in srgb, rgba(255, 255, 255, 0.82) 88%, #eef2f6 12%);
  border-color: rgba(15, 15, 16, 0.04);
  box-shadow: none;
}

.quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-logo {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  border-color: rgba(15, 15, 16, 0.04);
  color: color-mix(in srgb, var(--brand) 54%, #cbd5e1 46%);
}

.quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-copy strong,
.quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-price {
  color: color-mix(in srgb, var(--brand) 72%, #94a3b8 28%);
}

.quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-note {
  color: color-mix(in srgb, var(--ink-muted) 82%, #ffffff 18%);
}

.quotation-drawer__offer:focus-visible {
  outline: none;
  border-color: rgba(29, 111, 165, 0.22);
  box-shadow: 0 0 0 3px rgba(29, 111, 165, 0.12), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.quotation-drawer__offer.is-selected {
  border-color: rgba(29, 111, 165, 0.28);
  background: color-mix(in srgb, var(--surface-soft) 80%, #eef7ff 20%);
}

.quotation-drawer__offer-airline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.quotation-drawer__offer-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quotation-drawer__offer-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  flex-shrink: 0;
}

.quotation-drawer__offer-price {
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.quotation-drawer__offer-selected {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(29, 111, 165, 0.1);
  color: #1d6fa5;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.quotation-drawer__inline-error {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.45;
}

.quotation-drawer__offers-empty strong {
  color: var(--brand);
}

.quotation-drawer__commercial-placeholder {
  display: grid;
  min-height: 104px;
  align-items: center;
  text-align: center;
}

.quotation-drawer__commercial-placeholder p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.quotation-drawer__offers-empty p,
.quotation-drawer__remarks-panel p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  line-height: 1.45;
  font-size: var(--portal-type-body);
}

.quotation-drawer__cost-notes-list {
  display: grid;
  gap: 8px;
}

.quotation-drawer__cost-note {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft) 12%);
}

.quotation-drawer__cost-note > div {
  display: grid;
  gap: 3px;
}

.quotation-drawer__cost-note strong {
  color: var(--ink);
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.quotation-drawer__cost-note span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.quotation-drawer__cost-note p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
  white-space: pre-wrap;
}

.quotation-drawer__detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.quotation-drawer__detail-grid div {
  display: grid;
  gap: 3px;
}

.quotation-drawer__detail-grid dt {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quotation-drawer__detail-grid dd {
  margin: 0;
  color: var(--brand);
  line-height: 1.35;
  font-size: var(--portal-type-body);
}

.quotation-drawer__detail-item--reference {
  align-content: start;
}

.quotation-drawer__reference-display,
.quotation-drawer__reference-editor {
  display: grid;
  gap: 10px;
}

.quotation-drawer__reference-display span {
  min-height: 1.35em;
}

.quotation-drawer__reference-edit-button {
  justify-self: flex-start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
}

.quotation-drawer__reference-edit-button:hover,
.quotation-drawer__reference-edit-button:focus-visible {
  color: var(--brand);
}

.quotation-drawer__reference-edit-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-soft) 55%, white 45%);
  outline-offset: 4px;
  border-radius: 999px;
}

.quotation-drawer__reference-field {
  display: grid;
}

.quotation-drawer__reference-field input {
  width: 100%;
  min-height: 42px;
}

.quotation-drawer__reference-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.quotation-drawer__reference-error {
  margin: 0;
  color: var(--danger);
  font-size: var(--portal-type-body);
  line-height: 1.4;
}

.quotation-drawer__change-panel {
  display: none;
  border-style: dashed;
}

.quotation-drawer__change-panel.is-visible {
  display: grid;
}

.quotation-drawer__field textarea {
  min-height: 96px;
  resize: vertical;
}

.quotation-drawer__change-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.quotation-drawer__docs-panel,
.quotation-drawer__chat-panel {
  min-height: 100%;
  display: grid;
  gap: 12px;
}

.quotation-drawer__docs-panel {
  position: relative;
  align-content: start;
}

.quotation-drawer__docs-header {
  align-items: center;
}

.quotation-drawer__docs-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 111, 165, 0.08);
  color: #1d6fa5;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quotation-drawer__docs-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: color-mix(in srgb, rgba(255, 255, 255, 0.76) 84%, var(--surface-soft) 16%);
}

.quotation-drawer__doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.quotation-drawer__doc-row + .quotation-drawer__doc-row {
  border-top: 1px solid rgba(15, 15, 16, 0.05);
}

.quotation-drawer__doc-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quotation-drawer__doc-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand);
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.quotation-drawer__doc-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.quotation-drawer__doc-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.05);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quotation-drawer__doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quotation-drawer__doc-icon-button,
.quotation-drawer__docs-modal-dismiss {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.quotation-drawer__doc-icon-button:hover,
.quotation-drawer__docs-modal-dismiss:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 111, 165, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.quotation-drawer__doc-icon-button:focus-visible,
.quotation-drawer__docs-modal-dismiss:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 111, 165, 0.12), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.quotation-drawer__doc-icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quotation-drawer__doc-icon-button svg,
.quotation-drawer__docs-modal-dismiss svg {
  width: 16px;
  height: 16px;
}

.quotation-drawer__docs-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 15, 16, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

.quotation-drawer__docs-empty strong {
  color: var(--brand);
}

.quotation-drawer__docs-empty p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.45;
}

.quotation-drawer__docs-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  z-index: 6;
  place-items: center;
  padding: 20px;
}

.quotation-drawer__docs-modal[open] { display: grid; }
.quotation-drawer__docs-modal:not([open]) { display: none; }
.quotation-drawer__docs-modal::backdrop { background: rgba(15, 23, 42, 0.35); }

.quotation-drawer__docs-modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.quotation-drawer__docs-modal-panel {
  position: relative;
  width: min(100%, 960px);
  height: min(100%, 960px);
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.quotation-drawer__docs-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quotation-drawer__docs-modal-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.quotation-drawer__docs-modal-copy h3 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.quotation-drawer__docs-modal-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.quotation-drawer__docs-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quotation-drawer__docs-modal-body {
  display: grid;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top left, rgba(29, 111, 165, 0.04), transparent 55%);
  overflow: auto;
}

.quotation-drawer__docs-modal-frame,
.quotation-drawer__docs-modal-image-shell {
  width: 100%;
  min-height: min(62vh, 560px);
}

.quotation-drawer__docs-modal-frame {
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.quotation-drawer__docs-modal-image-shell {
  display: grid;
  place-items: center;
  padding: 18px;
}

.quotation-drawer__docs-modal-image {
  max-width: 100%;
  max-height: min(60vh, 560px);
  object-fit: contain;
  display: block;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.quotation-drawer__docs-modal-state {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 22px 24px;
  min-height: min(52vh, 420px);
}

.quotation-drawer__docs-modal-state strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.quotation-drawer__docs-modal-state p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.5;
  max-width: 42ch;
}

.quotation-drawer__chat-panel {
  grid-template-rows: minmax(0, 1fr) auto;
}

.quotation-drawer__chat-thread {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 2px 2px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quotation-drawer__chat-thread::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.quotation-drawer__chat-day {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.quotation-drawer__message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.quotation-drawer__message:hover .quotation-drawer__message-bubble {
  box-shadow: 0 16px 30px rgba(21, 41, 67, 0.08);
}

.quotation-drawer__message--incoming {
  justify-content: flex-start;
}

.quotation-drawer__message--outgoing {
  justify-content: flex-end;
}

.quotation-drawer__message-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--portal-accent-soft) 72%, var(--surface));
  color: var(--portal-accent);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.quotation-drawer__message-avatar img,
.quotation-drawer__message-avatar span {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quotation-drawer__message-avatar img {
  object-fit: cover;
}

.quotation-drawer__message-avatar span {
  font-size: 0.58rem;
  font-weight: 700;
}

.quotation-drawer__message-bubble {
  max-width: min(88%, 420px);
  display: grid;
  gap: 6px;
  padding: 11px 13px 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 15, 16, 0.05);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.quotation-drawer__message--highlight .quotation-drawer__message-bubble {
  box-shadow: 0 0 0 2px rgba(43, 127, 255, 0.18), 0 14px 28px rgba(15, 23, 42, 0.08);
}

.quotation-drawer__message--outgoing .quotation-drawer__message-bubble {
  background: linear-gradient(180deg, rgba(221, 241, 255, 0.92), rgba(210, 234, 255, 0.9));
  border-color: rgba(29, 111, 165, 0.14);
}

.quotation-drawer__message--system .quotation-drawer__message-bubble {
  background: rgba(15, 23, 42, 0.05);
}

.quotation-drawer__message-bubble p {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.quotation-drawer__message-sender {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.quotation-drawer__message-flag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quotation-drawer__message-reference {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: rgba(244, 248, 253, 0.96);
  text-align: left;
  color: inherit;
}

.quotation-drawer__message-reference strong {
  font-size: var(--portal-type-body);
}

.quotation-drawer__message-reference span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.35;
}

.quotation-drawer__message-attachments {
  display: grid;
  gap: 8px;
}

.quotation-drawer__message-attachment {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.07);
  background: rgba(255, 255, 255, 0.74);
  color: inherit;
  text-decoration: none;
}

.quotation-drawer__message-attachment strong,
.quotation-drawer__message-attachment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-drawer__message-attachment span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.quotation-drawer__message-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.quotation-drawer__message-edited {
  font-style: italic;
}

.quotation-drawer__message-status {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.quotation-drawer__message-status--read {
  color: #2b7fff;
}

.quotation-drawer__composer-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(210, 220, 234, 0.9);
  border-radius: 1rem;
  background: rgba(247, 250, 255, 0.96);
}

.quotation-drawer__composer-notice-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.quotation-drawer__composer-notice-copy strong {
  font-size: var(--portal-type-body);
  color: #203248;
}

.quotation-drawer__composer-notice-copy span {
  color: #6d7f96;
  font-size: var(--portal-type-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quotation-drawer__composer-notice-dismiss {
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 999px;
  background: rgba(226, 234, 244, 0.9);
  color: #203248;
  flex-shrink: 0;
}

.quotation-drawer__message-menu[hidden] {
  display: none !important;
}

.quotation-drawer__message-menu {
  position: absolute;
  z-index: 16;
  min-width: 10.8rem;
  display: grid;
  gap: 0.18rem;
  padding: 0.4rem;
  border: 1px solid rgba(193, 207, 226, 0.86);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 42px rgba(31, 52, 86, 0.18);
}

.quotation-drawer__message-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: #203248;
  text-align: left;
}

.quotation-drawer__message-menu-item:hover,
.quotation-drawer__message-menu-item:focus-visible {
  background: rgba(238, 244, 251, 0.95);
}

.quotation-drawer__message-menu-item[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.quotation-drawer__chat-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 16, 0.05);
  background: color-mix(in srgb, rgba(255, 255, 255, 0.76) 86%, var(--surface) 14%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quotation-drawer__chat-panel.is-dragover .quotation-drawer__chat-composer {
  border-color: rgba(29, 111, 165, 0.18);
  background: rgba(244, 249, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(29, 111, 165, 0.08);
}

.quotation-drawer__chat-emoji-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #6a7688;
  font-size: var(--portal-type-subheading);
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.quotation-drawer__chat-emoji-button:hover,
.quotation-drawer__chat-emoji-button:focus-visible,
.quotation-drawer__chat-emoji-button[aria-expanded="true"] {
  border-color: rgba(29, 111, 165, 0.2);
  background: rgba(242, 248, 255, 0.98);
  color: #1d6fa5;
  box-shadow: 0 12px 20px rgba(29, 111, 165, 0.08);
}

.quotation-drawer__chat-attach-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #6a7688;
  font-size: var(--portal-type-subheading);
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.quotation-drawer__chat-attach-button:hover,
.quotation-drawer__chat-attach-button:focus-visible {
  border-color: rgba(29, 111, 165, 0.2);
  background: rgba(242, 248, 255, 0.98);
  color: #1d6fa5;
  box-shadow: 0 12px 20px rgba(29, 111, 165, 0.08);
}

.quotation-drawer__chat-attachments[hidden] {
  display: none !important;
}

.quotation-drawer__chat-attachments {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.quotation-drawer__chat-attachment-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 15, 16, 0.07);
  background: rgba(255, 255, 255, 0.82);
}

.quotation-drawer__chat-attachment-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quotation-drawer__chat-attachment-copy strong,
.quotation-drawer__chat-attachment-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-drawer__chat-attachment-copy span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.quotation-drawer__chat-attachment-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1;
}

.quotation-drawer__chat-emoji-shell {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(352px, calc(100vw - 56px));
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(20, 33, 56, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quotation-drawer__chat-emoji-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 360px;
}

.quotation-drawer__chat-emoji-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(15, 15, 16, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

.quotation-drawer__chat-emoji-tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: rgba(246, 249, 253, 0.96);
  color: #637286;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quotation-drawer__chat-emoji-groups {
  overflow: auto;
  padding: 10px 12px 12px;
  display: grid;
  gap: 12px;
}

.quotation-drawer__chat-emoji-group {
  display: grid;
  gap: 8px;
}

.quotation-drawer__chat-emoji-group h4 {
  margin: 0;
  color: #6a7688;
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quotation-drawer__chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.quotation-drawer__chat-emoji-option {
  min-height: 38px;
  border: 1px solid rgba(15, 15, 16, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--portal-type-subheading);
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.quotation-drawer__chat-emoji-option:hover,
.quotation-drawer__chat-emoji-option:focus-visible {
  border-color: rgba(29, 111, 165, 0.18);
  background: rgba(241, 247, 255, 0.98);
  box-shadow: 0 10px 16px rgba(29, 111, 165, 0.08);
  transform: translateY(-1px);
}

.quotation-drawer__chat-emoji-empty {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  color: #607188;
  text-align: center;
}

.quotation-drawer__chat-input {
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  resize: none;
}

.quotation-drawer__chat-send {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(29, 111, 165, 0.16), rgba(29, 111, 165, 0.1));
  border: 1px solid rgba(29, 111, 165, 0.22);
  color: #1d6fa5;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.quotation-drawer__footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(15, 15, 16, 0.06);
  background: color-mix(in srgb, rgba(255, 255, 255, 0.7) 84%, var(--surface) 16%);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.quotation-drawer__footer.is-readonly {
  grid-template-columns: 1fr 1fr;
}

.quotation-drawer__action {
  min-height: 42px;
  border-radius: 15px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.quotation-drawer__action:disabled,
.quotation-drawer__action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
  filter: saturate(0.8);
}

.quotation-drawer__action--book {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0.1));
  border-color: rgba(22, 163, 74, 0.22);
  color: #166534;
}

.quotation-drawer__action--reject {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
}

.quotation-drawer__action--change {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--brand);
}

.quotations-empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px dashed rgba(15, 15, 16, 0.12);
}

.quotations-empty-state strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.quotations-empty-state p {
  margin: 0;
  max-width: none;
  color: var(--ink-muted);
  line-height: 1.7;
  white-space: nowrap;
}

.dashboard-view[hidden] {
  display: none !important;
}

.portal-main[hidden],
.portal-rail[hidden],
.success-panel[hidden] {
  display: none !important;
}

.dashboard-view {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--portal-page-gap);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  padding: var(--portal-hero-padding);
  border-radius: 28px;
  background:
    radial-gradient(circle at left center, rgba(15, 118, 110, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
  border: 1px solid rgba(15, 15, 16, 0.05);
  box-shadow: var(--shadow-card);
}

.dashboard-hero__copy {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.dashboard-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--portal-accent-soft);
  color: var(--portal-accent-badge-text);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-hero__copy h1 {
  margin: 0;
  font-size: var(--portal-type-page);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: var(--brand);
}

.dashboard-hero__copy p {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.55;
}

.dashboard-hero__tools {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-self: center;
  padding-top: 0;
}

.dashboard-content-toolbar[hidden] {
  display: none !important;
}

.dashboard-content-toolbar {
  display: flex;
  position: relative;
  z-index: 4;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
  margin-top: -2px;
}

.dashboard-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.04);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.dashboard-filter-group--actions {
  justify-content: flex-end;
}

.dashboard-filter-group--content-actions {
  margin-left: auto;
  gap: 6px;
  padding: 4px;
}

.dashboard-toolbar__action {
  min-height: 26px;
  padding: 0 12px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-filter-group:empty,
.dashboard-filter-group[hidden] {
  display: none !important;
}

.dashboard-filter-pill {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dashboard-filter-pill--action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.dashboard-filter-pill--action svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.dashboard-filter-pill--action[aria-pressed="true"],
.dashboard-filter-pill--action.is-active {
  background: rgba(15, 15, 16, 0.92);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.04);
}

.dashboard-filter-pill.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.04);
}

.dashboard-hero__logo-card {
  width: min(100%, 296px);
  min-height: 82px;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.98) 46%, rgba(15, 23, 42, 0.12) 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  display: grid;
  place-items: center;
  line-height: 0;
  overflow: hidden;
}

.dashboard-hero__logo-frame {
  width: 100%;
  min-height: 66px;
  display: grid;
  place-items: center;
  padding-top: 4px;
}

.dashboard-hero__logo-frame > * {
  grid-area: 1 / 1;
}

.dashboard-hero__logo-card img {
  display: block;
  place-self: center;
  width: min(100%, 262px);
  max-width: 100%;
  max-height: 66px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
  transition: filter 180ms ease;
}

html[data-theme="dark"] .dashboard-hero__logo-card img {
  filter: drop-shadow(0 10px 18px rgba(2, 6, 23, 0.28));
}

.dashboard-hero__logo-placeholder {
  width: min(100%, 262px);
  min-height: 66px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: var(--portal-type-section);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-kpi-grid {
  display: block;
  position: relative;
}

.dashboard-mobile-actions {
  display: none;
}

.dashboard-airline-chart {
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 100%;
}

.dashboard-airline-chart__hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.dashboard-airline-logo-badge,
.dashboard-airline-chart__logo {
  width: clamp(120px, 16vw, 164px);
  min-height: 104px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 74%);
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.dashboard-airline-logo-badge img,
.dashboard-airline-chart__logo img {
  width: 100%;
  max-width: 126px;
  max-height: 62px;
  object-fit: contain;
  object-position: center center;
}

.dashboard-airline-logo-badge span,
.dashboard-airline-chart__logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 111, 165, 0.12);
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-airline-chart__copy {
  display: grid;
  gap: 6px;
}

.dashboard-airline-chart__copy strong {
  color: var(--brand);
  font-size: var(--portal-type-section);
  letter-spacing: -0.03em;
}

.dashboard-airline-chart__copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dashboard-airline-chart__visual {
  display: grid;
  grid-template-columns: minmax(164px, 208px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 234px;
  padding-bottom: 12px;
}

.dashboard-airline-chart__visual .dashboard-legend {
  gap: 10px;
  min-height: 0;
}

.dashboard-airline-chart__visual .dashboard-legend__row {
  min-height: 40px;
}

.dashboard-top-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-top-widgets {
  align-items: stretch;
}

.dashboard-top-widgets--legacy .dashboard-kpi-card {
  min-width: 0;
}

.dashboard-top-widget {
  position: relative;
  min-height: 150px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(15, 15, 16, 0.05);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 6px;
  align-content: start;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    opacity 220ms ease;
  contain: layout paint;
}

.dashboard-top-widget,
.dashboard-top-widget--placeholder {
  transform-origin: center center;
}

.dashboard-top-widget[data-widget-draggable="true"] {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.dashboard-top-widget.is-dragging {
  opacity: 0.52;
  cursor: grabbing;
}

.dashboard-top-widget.is-drop-target {
  border-color: rgba(29, 111, 165, 0.26);
  box-shadow: 0 0 0 1px rgba(29, 111, 165, 0.14), 0 24px 48px rgba(29, 111, 165, 0.12);
}

.dashboard-top-widget--placeholder {
  background: rgba(255, 255, 255, 0.46);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.dashboard-top-widget--placeholder:hover {
  border-color: rgba(29, 111, 165, 0.28);
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-top-widget--insertion {
  background: rgba(232, 241, 250, 0.46);
  border-style: dashed;
  border-color: rgba(29, 111, 165, 0.22);
  box-shadow: inset 0 0 0 1px rgba(29, 111, 165, 0.08);
}

.dashboard-top-widget__icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    visibility 180ms ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dashboard-top-widget:hover .dashboard-top-widget__icon-button,
.dashboard-top-widget:focus-within .dashboard-top-widget__icon-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-panel--chart:hover .dashboard-top-widget__icon-button,
  .dashboard-panel--chart:focus-within .dashboard-top-widget__icon-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.dashboard-view.is-managing-charts .dashboard-panel--chart .dashboard-top-widget__icon-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dashboard-top-widget__icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.dashboard-top-widget__icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 111, 165, 0.12), 0 14px 26px rgba(15, 23, 42, 0.12);
}

.dashboard-top-widget__icon-button svg {
  width: 13px;
  height: 13px;
}

.dashboard-chart-card__remove {
  z-index: 3;
}

.dashboard-chart-card__remove span {
  display: inline-block;
  font-size: var(--portal-type-body);
  line-height: 1;
  font-weight: 600;
  transform: translateY(-1px);
}

.dashboard-top-widget__icon-button--remove {
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(254, 242, 242, 0.72);
  color: rgba(220, 38, 38, 0.84);
}

.dashboard-top-widget__icon-button--remove:hover {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 226, 226, 0.84);
  color: rgba(185, 28, 28, 0.94);
}

.dashboard-top-widget__icon-button--add {
  border-color: rgba(22, 163, 74, 0.16);
  background: rgba(240, 253, 244, 0.72);
  color: rgba(22, 163, 74, 0.84);
}

.dashboard-top-widget__icon-button--add:hover {
  border-color: rgba(22, 163, 74, 0.26);
  background: rgba(220, 252, 231, 0.84);
  color: rgba(21, 128, 61, 0.94);
}

.dashboard-top-widget__placeholder-copy {
  padding-top: 22px;
}

.dashboard-top-widget__placeholder-copy strong {
  color: var(--brand);
}

.dashboard-top-widget__placeholder-copy span {
  color: var(--ink-muted);
}

html.is-dashboard-widget-dragging,
html.is-dashboard-widget-dragging body {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

html.is-dashboard-widget-dragging .dashboard-top-widget,
html.is-dashboard-widget-dragging .dashboard-top-widget *,
html.is-dashboard-widget-dragging .dashboard-panel--chart,
html.is-dashboard-widget-dragging .dashboard-panel--chart * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none;
}

html.is-dashboard-widget-dragging .dashboard-top-widget:hover {
  transform: none;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(15, 23, 42, 0.05);
}

.dashboard-widget-drag-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 260;
  pointer-events: none;
}

.dashboard-widget-drag-overlay .dashboard-top-widget {
  width: 100%;
  height: 100%;
  transition: none;
}

.dashboard-widget-drag-overlay .dashboard-panel--chart {
  width: 100%;
  height: 100%;
  transition: none;
}

.dashboard-top-widget.is-drag-overlay {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.18), 0 16px 34px rgba(15, 23, 42, 0.12);
}

.dashboard-top-widget.is-drag-overlay::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(29, 111, 165, 0.18);
  pointer-events: none;
}

.dashboard-panel--chart.is-drag-overlay {
  cursor: grabbing;
  transform: scale(1.01);
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.18), 0 16px 34px rgba(15, 23, 42, 0.12);
}

.dashboard-panel--chart.is-drag-overlay::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(29, 111, 165, 0.18);
  pointer-events: none;
}

.dashboard-top-widget > span {
  display: block;
  padding-right: 38px;
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-top-widget strong {
  display: block;
  margin-top: 0;
  padding-right: 12px;
  font-size: var(--portal-type-hero);
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.dashboard-top-widget strong > span {
  display: block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.dashboard-top-widget small {
  display: block;
  margin-top: 6px;
  max-width: 24ch;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dashboard-top-widget__placeholder-copy {
  align-self: center;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.dashboard-top-widget__placeholder-copy strong {
  margin: 0;
  font-size: var(--portal-type-body);
  letter-spacing: -0.02em;
}

.dashboard-top-widget__placeholder-copy span {
  color: var(--ink-muted);
  line-height: 1.5;
}

.dashboard-widget-modal[hidden] {
  display: none !important;
}

.dashboard-widget-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 32px;
}

.dashboard-widget-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
}

.dashboard-widget-modal__panel {
  position: relative;
  width: min(1160px, calc(100vw - 48px));
  max-height: min(86vh, 840px);
  overflow: auto;
  padding: 32px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.16);
}

.dashboard-widget-modal--quick-add .dashboard-widget-modal__panel {
  width: min(680px, calc(100vw - 40px));
  max-height: min(82vh, 760px);
  padding: 28px;
}

.dashboard-widget-modal[data-quick-add-step="visuals"] .dashboard-widget-modal__panel {
  width: min(820px, calc(100vw - 40px));
}

.dashboard-widget-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.dashboard-widget-modal__header > div {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.dashboard-widget-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(28, 126, 214, 0.1);
  color: var(--portal-accent);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-widget-modal__header h2 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.dashboard-widget-modal__header p {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.62;
}

.dashboard-widget-modal__controls {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.dashboard-widget-modal--quick-add .dashboard-widget-modal__controls {
  display: none;
}

.dashboard-widget-modal__type-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(15, 15, 16, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-widget-type-pill {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: var(--portal-type-body);
  letter-spacing: -0.015em;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-widget-type-pill:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.dashboard-widget-type-pill.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-widget-modal__search {
  position: relative;
  display: block;
}

.dashboard-widget-modal__search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: rgba(71, 85, 105, 0.72);
  transform: translateY(-50%);
  pointer-events: none;
}

.dashboard-widget-modal__search input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px 0 46px;
  border-radius: 16px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-size: var(--portal-type-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dashboard-widget-modal__search input:focus {
  outline: none;
  border-color: rgba(29, 111, 165, 0.24);
  box-shadow: 0 0 0 4px rgba(29, 111, 165, 0.08);
}

.dashboard-widget-modal__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-widget-filter-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(248, 250, 252, 0.8);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dashboard-widget-filter-pill:hover {
  border-color: rgba(29, 111, 165, 0.18);
  color: var(--brand);
  transform: translateY(-1px);
}

.dashboard-widget-filter-pill.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.dashboard-widget-modal__dismiss {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(248, 250, 252, 0.86);
  color: var(--brand);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dashboard-widget-modal__dismiss:hover,
.dashboard-widget-modal__dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(29, 111, 165, 0.16);
  transform: translateY(-1px);
}

.dashboard-widget-modal__dismiss svg {
  width: 16px;
  height: 16px;
}

.dashboard-widget-modal__results {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 15, 16, 0.06);
}

.dashboard-widget-modal--quick-add .dashboard-widget-modal__results {
  margin-top: 18px;
  padding-top: 18px;
}

.dashboard-widget-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 15, 16, 0.06);
}

.dashboard-widget-modal--quick-add .dashboard-widget-modal__footer {
  display: none;
}

.dashboard-widget-modal__selection-summary {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dashboard-widget-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-widget-modal__action {
  min-height: 34px;
}

.dashboard-widget-modal__results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-widget-modal__results-head > div {
  display: grid;
  gap: 4px;
}

.dashboard-widget-modal__results-context {
  min-width: 0;
}

.dashboard-widget-modal__results-copy-block {
  display: grid;
  gap: 4px;
}

.dashboard-widget-modal__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: rgba(248, 250, 252, 0.86);
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-widget-modal__back:hover,
.dashboard-widget-modal__back:focus-visible {
  outline: none;
  color: var(--brand);
  border-color: rgba(29, 111, 165, 0.18);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.dashboard-widget-modal__results-head h3 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  letter-spacing: -0.02em;
}

.dashboard-widget-modal__results-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.52;
}

.dashboard-widget-modal__results-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(15, 15, 16, 0.06);
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-widget-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-widget-modal--quick-add .dashboard-widget-modal__grid {
  grid-template-columns: 1fr;
}

.dashboard-quick-add-topic-list {
  display: grid;
  gap: 10px;
}

.dashboard-quick-add-topic {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.dashboard-quick-add-topic:hover,
.dashboard-quick-add-topic:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(29, 111, 165, 0.16);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-quick-add-topic__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-quick-add-topic__copy strong {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-body);
  letter-spacing: -0.03em;
}

.dashboard-quick-add-topic__copy span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dashboard-quick-add-topic__status,
.dashboard-quick-add-visual__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.04);
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dashboard-quick-add-topic__status--added,
.dashboard-quick-add-visual__status--added {
  background: rgba(17, 24, 39, 0.06);
  color: var(--brand);
}

.dashboard-quick-add-topic__status--unavailable,
.dashboard-quick-add-visual__status--unavailable {
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink-soft);
}

.dashboard-quick-add-topic__chevron {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.dashboard-quick-add-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-quick-add-visual {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 236px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.dashboard-quick-add-visual:hover:not(:disabled),
.dashboard-quick-add-visual:focus-visible:not(:disabled) {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(29, 111, 165, 0.18);
  box-shadow: 0 20px 38px rgba(29, 111, 165, 0.1);
}

.dashboard-quick-add-visual:disabled {
  cursor: default;
}

.dashboard-quick-add-visual--added,
.dashboard-quick-add-visual--unavailable {
  box-shadow: none;
}

.dashboard-quick-add-visual__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-quick-add-visual__type {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-quick-add-visual__preview {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(243, 247, 252, 0.98), rgba(238, 244, 250, 0.94));
  border: 1px solid rgba(29, 111, 165, 0.08);
  overflow: hidden;
}

.dashboard-quick-add-visual__preview .dashboard-widget-picker__chart-preview {
  min-height: 100%;
  border: 0;
  background: transparent;
}

.dashboard-quick-add-visual__preview--widget {
  align-content: end;
  gap: 8px;
}

.dashboard-quick-add-visual__preview--widget span {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-quick-add-visual__preview--widget strong {
  color: var(--brand);
  font-size: var(--portal-type-page);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-quick-add-visual__copy {
  display: grid;
  gap: 4px;
}

.dashboard-quick-add-visual__copy strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dashboard-quick-add-visual__copy span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dashboard-widget-picker__option {
  text-align: left;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  min-height: 250px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.dashboard-widget-picker__option[data-dashboard-widget-option-toggle] {
  cursor: pointer;
}

.dashboard-widget-picker__option--widget {
  grid-template-rows: auto auto 1fr auto;
  min-height: 230px;
}

.dashboard-widget-picker__option--chart {
  grid-template-rows: auto auto 1fr auto;
  min-height: 256px;
}

.dashboard-widget-picker__option:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 111, 165, 0.18);
  box-shadow: 0 22px 42px rgba(29, 111, 165, 0.1);
}

.dashboard-widget-picker__option:focus-within {
  outline: none;
  border-color: rgba(29, 111, 165, 0.24);
  box-shadow: 0 0 0 4px rgba(29, 111, 165, 0.08), 0 22px 42px rgba(29, 111, 165, 0.1);
}

.dashboard-widget-picker__option--added {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(244, 247, 250, 0.94)),
    rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.14);
}

.dashboard-widget-picker__option--selected {
  background:
    linear-gradient(180deg, rgba(247, 250, 253, 0.99), rgba(240, 246, 251, 0.96)),
    rgba(248, 250, 252, 0.98);
  border-color: rgba(29, 111, 165, 0.18);
  box-shadow: 0 18px 38px rgba(29, 111, 165, 0.08);
}

.dashboard-widget-picker__option--unavailable {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(243, 244, 246, 0.9)),
    rgba(248, 250, 252, 0.9);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.3);
}

.dashboard-widget-picker__empty strong,
.dashboard-widget-picker__preview-stat strong,
.dashboard-widget-picker__preview--widget strong {
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  letter-spacing: -0.04em;
}

.dashboard-widget-picker__empty p,
.dashboard-widget-picker__description,
.dashboard-widget-picker__preview--widget small {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.dashboard-widget-picker__title {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-body);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.dashboard-widget-picker__copy {
  display: grid;
  gap: 7px;
}

.dashboard-widget-picker__badge-row,
.dashboard-widget-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-widget-picker__footer {
  margin-top: auto;
  align-items: flex-end;
}

.dashboard-widget-picker__footer-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-widget-picker__format,
.dashboard-widget-picker__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dashboard-widget-picker__format {
  background: rgba(15, 15, 16, 0.04);
  color: var(--ink-soft);
}

.dashboard-widget-picker__status {
  justify-self: start;
  background: rgba(28, 126, 214, 0.07);
  color: var(--brand);
}

.dashboard-widget-picker__status--selected {
  background: rgba(29, 111, 165, 0.09);
  color: var(--brand);
}

.dashboard-widget-picker__status--muted {
  background: rgba(15, 15, 16, 0.04);
  color: var(--ink-soft);
}

.dashboard-widget-picker__action-button {
  border: 0;
  background: var(--brand);
  color: var(--brand-contrast);
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.dashboard-widget-picker__action-button:hover:not(:disabled),
.dashboard-widget-picker__action-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-widget-picker__action-button.is-selected {
  background: rgba(15, 15, 16, 0.92);
  color: #ffffff;
  box-shadow: none;
}

.dashboard-widget-picker__option--added .dashboard-widget-picker__action-button,
.dashboard-widget-picker__option--unavailable .dashboard-widget-picker__action-button,
.dashboard-widget-picker__action-button:disabled {
  background: rgba(15, 15, 16, 0.04);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.dashboard-widget-picker__preview-stat {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.dashboard-widget-picker__preview {
  display: grid;
  align-content: center;
  min-height: 108px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.96), rgba(236, 242, 247, 0.94));
  border: 1px solid rgba(29, 111, 165, 0.08);
  overflow: hidden;
}

.dashboard-widget-picker__preview--widget {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.dashboard-widget-picker__preview--widget strong {
  font-size: var(--portal-type-page);
  line-height: 1;
}

.dashboard-widget-picker__preview-label,
.dashboard-widget-picker__preview-stat span,
.dashboard-widget-picker__meta,
.dashboard-widget-picker__empty p {
  color: var(--ink-muted);
  line-height: 1.6;
}

.dashboard-widget-picker__preview-label,
.dashboard-widget-picker__preview-stat span {
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-widget-picker__meta {
  font-size: var(--portal-type-caption);
  font-weight: 600;
}

.dashboard-widget-picker__empty p {
  margin: 0;
}

.dashboard-widget-picker__eyebrow {
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dashboard-widget-picker__chart-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 245, 252, 0.98), rgba(247, 250, 252, 0.96));
  border: 1px solid rgba(29, 111, 165, 0.08);
  overflow: hidden;
}

.dashboard-widget-picker__chart-preview--line span {
  width: 80%;
  height: 42px;
  border-bottom: 3px solid rgba(28, 126, 214, 0.26);
  border-left: 0;
  clip-path: polygon(0 86%, 18% 84%, 36% 72%, 54% 74%, 72% 30%, 100% 18%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(28, 126, 214, 0.3), rgba(28, 126, 214, 0.04));
}

.dashboard-widget-picker__chart-preview--bars {
  grid-template-columns: repeat(4, minmax(0, 18px));
  align-items: end;
  justify-content: center;
  gap: 10px;
}

.dashboard-widget-picker__chart-preview--bars span {
  display: block;
  width: 18px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.9), rgba(15, 118, 110, 0.32));
}

.dashboard-widget-picker__chart-preview--bars span:nth-child(1) { height: 30px; }
.dashboard-widget-picker__chart-preview--bars span:nth-child(2) { height: 54px; }
.dashboard-widget-picker__chart-preview--bars span:nth-child(3) { height: 42px; }
.dashboard-widget-picker__chart-preview--bars span:nth-child(4) { height: 64px; }

.dashboard-widget-picker__chart-preview--ranking {
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.dashboard-widget-picker__chart-preview--ranking span,
.dashboard-widget-picker__chart-preview--status span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(29, 111, 165, 0.2));
}

.dashboard-widget-picker__chart-preview--ranking span:nth-child(1) { width: 84%; }
.dashboard-widget-picker__chart-preview--ranking span:nth-child(2) { width: 68%; }
.dashboard-widget-picker__chart-preview--ranking span:nth-child(3) { width: 56%; }

.dashboard-widget-picker__chart-preview--donut span {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#1c7ed6 0 45%, #0f766e 45% 76%, #111827 76% 100%);
  position: relative;
}

.dashboard-widget-picker__chart-preview--donut span::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
}

.dashboard-widget-picker__chart-preview--status {
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.dashboard-widget-picker__chart-preview--status span:nth-child(1) { width: 72%; }
.dashboard-widget-picker__chart-preview--status span:nth-child(2) { width: 92%; }
.dashboard-widget-picker__chart-preview--status span:nth-child(3) { width: 58%; }

.dashboard-widget-picker__empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.9);
}

.dashboard-kpi-card,
.dashboard-panel {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.04);
  box-shadow: var(--shadow-card);
}

.dashboard-kpi-card {
  padding: 20px 20px 18px;
}

.dashboard-kpi-card > span {
  display: block;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  color: var(--ink-muted);
}

.dashboard-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: var(--portal-type-metric);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.dashboard-kpi-card strong > span {
  display: block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.dashboard-kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: flex-start;
  gap: var(--dashboard-chart-gap);
  --dashboard-chart-progress: 1;
}

.dashboard-panel--chart {
  position: relative;
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: var(--dashboard-card-height, 420px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease;
  will-change: transform, box-shadow;
}

.dashboard-panel--chart[data-chart-widget-draggable="true"] {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.dashboard-panel--chart.is-drop-target,
.dashboard-panel--chart-placeholder.is-drop-target {
  border-color: rgba(29, 111, 165, 0.22);
  background: rgba(232, 241, 250, 0.46);
  box-shadow: inset 0 0 0 1px rgba(29, 111, 165, 0.08);
}

.dashboard-panel.dashboard-panel--chart-size-landscape {
  grid-column: span 2;
  --dashboard-card-height: var(--dashboard-chart-landscape-height);
}

.dashboard-panel.dashboard-panel--chart-size-portrait {
  grid-column: span 1;
  --dashboard-card-height: var(--dashboard-chart-portrait-height);
}

.dashboard-panel--chart-placeholder {
  min-width: 0;
  width: 100%;
  border-radius: 24px;
  border: 1px dashed rgba(29, 111, 165, 0.22);
  background: rgba(232, 241, 250, 0.34);
  box-shadow: inset 0 0 0 1px rgba(29, 111, 165, 0.06);
}

.dashboard-panel__header--widget {
  display: grid;
  align-items: flex-start;
  gap: 10px;
}

.dashboard-panel__header--widget h3 {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  letter-spacing: -0.03em;
}

.dashboard-panel__widget-metric {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(232, 241, 250, 0.8);
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-panel__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.dashboard-panel__metric-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 15, 16, 0.05);
  max-width: 100%;
}

.dashboard-panel__metric-label {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-panel__hero-metric {
  color: var(--brand);
  font-size: var(--portal-type-body);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-panel__hero-metric > span {
  display: block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.dashboard-panel__copy {
  margin: 0;
  flex: 1 1 220px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.52;
  overflow-wrap: anywhere;
  max-width: none;
}

.dashboard-panel--chart[data-chart-density="compact"] {
  gap: 12px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-panel__copy {
  flex-basis: 100%;
  font-size: var(--portal-type-body);
  line-height: 1.42;
}

.dashboard-chart-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px dashed rgba(148, 163, 184, 0.36);
}

.dashboard-panel--chart > * {
  min-width: 0;
}

.dashboard-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.dashboard-panel__body > * {
  min-width: 0;
}

.dashboard-chart-empty strong {
  color: var(--brand);
}

.dashboard-chart-empty p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.button--tiny {
  min-height: 28px;
  padding: 0 10px;
  font-size: var(--portal-type-body);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-customize-panel[hidden] {
  display: none !important;
}

.dashboard-customize-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.04);
  box-shadow: var(--shadow-card);
}

.dashboard-customize-panel__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-widget-selector {
  display: grid;
  gap: 10px;
}

.dashboard-widget-option {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.dashboard-widget-option.is-active {
  border-color: rgba(28, 126, 214, 0.22);
  box-shadow: inset 0 0 0 1px rgba(28, 126, 214, 0.12);
}

.dashboard-widget-option__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.dashboard-widget-option__toggle input {
  margin-top: 2px;
}

.dashboard-widget-option__toggle strong {
  display: block;
  color: var(--brand);
}

.dashboard-widget-option__toggle small {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.dashboard-widget-option__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dashboard-widget-option__meta > span {
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-widget-option__actions {
  display: inline-flex;
  gap: 6px;
}

.dashboard-widget-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-widget {
  grid-column: span 4;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(15, 15, 16, 0.04);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
}

.dashboard-widget--wide {
  grid-column: span 6;
}

.dashboard-widget--metric {
  grid-column: span 3;
}

.dashboard-widget__body {
  min-width: 0;
}

.dashboard-widget-metric span {
  display: block;
  font-size: var(--portal-type-body);
  font-weight: 700;
  color: var(--ink-muted);
}

.dashboard-widget-metric strong {
  display: block;
  margin-top: 10px;
  font-size: var(--portal-type-metric);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.dashboard-widget-metric small {
  display: block;
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.dashboard-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px dashed rgba(15, 15, 16, 0.14);
  box-shadow: var(--shadow-card);
}

.dashboard-empty-state strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.dashboard-empty-state p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-muted);
  line-height: 1.7;
}

.dashboard-panel {
  grid-column: span 1;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.dashboard-panel--wide {
  grid-column: span 2;
}

.overview-card,
.request-card,
.timeline-item__card,
.request-panel,
.success-card {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-card);
}

.overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  overflow: hidden;
  transform-origin: top center;
  will-change: height, opacity;
  transition:
    height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
}

.overview-card[hidden] {
  display: none !important;
}

.overview-card.is-flow-transitioning {
  overflow: clip;
}

.overview-card__content,
.overview-card__map {
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.overview-card.is-flow-collapsed .overview-card__content,
.overview-card.is-flow-collapsed .overview-card__map {
  opacity: 0;
  transform: translateY(-8px);
}

.overview-card__content {
  padding: 28px 26px;
  display: grid;
  gap: 28px;
}

.overview-card__route-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.overview-card__route-head strong {
  font-size: var(--portal-type-page);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--brand);
}

.overview-card__route-icon {
  font-size: var(--portal-type-body);
  color: var(--brand);
}

.overview-card__status {
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 700;
}

.overview-card__summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 18px;
}

.overview-metric span,
.field span,
.field-label,
.success-card__eyebrow {
  display: block;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  color: var(--ink-muted);
}

.overview-metric strong {
  display: block;
  margin-top: 8px;
  font-size: var(--portal-type-body);
  line-height: 1.45;
  font-weight: 600;
  color: var(--brand);
}

.overview-card__map {
  position: relative;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.12) 46%, transparent 72%),
    linear-gradient(180deg, #f2f2f3 0%, #e8e8ea 100%);
}

html[data-theme="dark"] .overview-card__map {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 46%, transparent 72%),
    linear-gradient(180deg, #20242a 0%, #15181d 100%);
}

.route-map {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 260px;
  aspect-ratio: 12 / 7;
  overflow: hidden;
}

.route-map__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.route-map__image,
.route-map__svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.route-map__image {
  object-fit: fill;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  opacity: 1;
}

.route-map__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.route-map__path {
  fill: none;
  stroke: rgba(10, 10, 10, 0.78);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  filter: drop-shadow(0 8px 14px rgba(10, 10, 10, 0.12));
}

.route-map__marker {
  fill: #fff;
  stroke: rgba(10, 10, 10, 0.92);
  stroke-width: 4;
  filter: drop-shadow(0 6px 10px rgba(10, 10, 10, 0.12));
}

.route-map__debug-marker {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(10, 10, 10, 0.42);
  stroke-width: 2;
}

.route-map__debug-reference {
  fill: var(--debug-reference-color, rgba(16, 16, 16, 0.92));
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.8;
}

.route-map__debug-marker--validation {
  fill: rgba(18, 18, 18, 0.9);
  stroke: rgba(255, 255, 255, 0.95);
}

.route-map__debug-marker--land {
  fill: rgba(24, 128, 62, 0.92);
}

.route-map__debug-marker--coast {
  fill: rgba(221, 140, 26, 0.92);
}

.route-map__debug-marker--open-water {
  fill: rgba(210, 54, 54, 0.94);
}

.route-map__debug-frame {
  fill: none;
  stroke: rgba(18, 18, 18, 0.24);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
}

.route-map__debug-grid {
  stroke: rgba(18, 18, 18, 0.12);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.route-map__debug-crosshair {
  stroke: rgba(18, 18, 18, 0.36);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.route-map__debug-error-line {
  stroke: rgba(235, 69, 56, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

.route-map__debug-label {
  fill: rgba(10, 10, 10, 0.52);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-map__marker--destination {
  fill: rgba(10, 10, 10, 0.92);
  stroke: rgba(255, 255, 255, 0.94);
}

.route-map__label {
  fill: rgba(10, 10, 10, 0.82);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-map__status-note {
  position: absolute;
  left: 18px;
  right: auto;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: calc(100% - 36px);
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(18, 18, 18, 0.05);
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
}

.dashboard-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.dashboard-panel__header h3 {
  margin: 12px 0 0;
  font-size: var(--portal-type-subheading);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--brand);
}

.dashboard-panel__header p {
  margin: 0;
  max-width: 32ch;
  color: var(--ink-muted);
  line-height: 1.6;
  text-align: right;
}

.dashboard-chart__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: start;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  min-width: 0;
}

.dashboard-chart__meta strong {
  grid-row: span 2;
  justify-self: end;
  align-self: start;
  color: var(--brand);
  font-size: var(--portal-type-caption);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dashboard-chart-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-chart-widget {
  gap: 10px;
}

.dashboard-chart-widget__visual {
  min-height: 0;
  overflow: visible;
}

.dashboard-chart-widget--line,
.dashboard-chart-widget--bars,
.dashboard-chart-widget--split {
  height: 100%;
}

.dashboard-chart-widget__visual--line,
.dashboard-chart-widget__visual--bars {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 0;
  padding: 6px 0 8px;
}

.dashboard-line-chart {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: visible;
}

.dashboard-line-chart__plot {
  transform-origin: center 176px;
  transform: scaleY(var(--dashboard-chart-progress));
}

.dashboard-line-chart__label {
  fill: var(--ink-soft);
  font-family: var(--portal-font);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.dashboard-bars__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  min-width: 0;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-bars__legend {
  gap: 10px;
  font-size: var(--portal-type-caption);
}

.dashboard-bars__legend span,
.dashboard-legend__row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-bars__legend i,
.dashboard-legend__row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  width: 100%;
  flex: 1 1 auto;
  min-height: 236px;
  min-width: 0;
  padding: 10px 10px 8px;
}

.dashboard-bars__month {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 0;
}

.dashboard-bars__stack {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}

.dashboard-bars__bar {
  width: 18%;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  transform-origin: center bottom;
  transform: scaleY(var(--dashboard-chart-progress));
}

.dashboard-bars__month strong {
  font-size: var(--portal-type-body);
  color: var(--ink-muted);
}

.dashboard-ranking {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

.dashboard-ranking--tight {
  gap: 12px;
}

.dashboard-ranking__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.45fr) minmax(92px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.dashboard-ranking__index {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  align-self: start;
  padding-top: 2px;
}

.dashboard-ranking__meta {
  display: flex;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.dashboard-ranking__meta > span {
  min-width: 24px;
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.dashboard-ranking__content {
  min-width: 0;
}

.dashboard-ranking__meta strong,
.dashboard-ranking__content strong {
  display: block;
  color: var(--brand);
  overflow-wrap: anywhere;
  line-height: 1.28;
}

.dashboard-ranking__meta p,
.dashboard-ranking__content p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.dashboard-ranking__meta small,
.dashboard-ranking__content small {
  color: var(--ink-soft);
}

.dashboard-ranking__bar {
  position: relative;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 15, 16, 0.07);
}

.dashboard-ranking__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #171717 0%, #1c7ed6 100%);
  transform-origin: left center;
  transform: scaleX(var(--dashboard-chart-progress));
}

.dashboard-ranking__value {
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking {
  gap: 10px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__row {
  grid-template-columns: 18px minmax(0, 1.1fr) minmax(56px, 0.85fr) auto;
  gap: 8px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__row:nth-child(n + 5) {
  display: none;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__index {
  font-size: var(--portal-type-body);
  padding-top: 1px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__content strong,
.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__meta strong {
  white-space: normal;
  overflow: visible;
  line-height: 1.22;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__content p,
.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__meta p {
  margin-top: 3px;
  font-size: var(--portal-type-caption);
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__bar {
  height: 8px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-ranking__value {
  font-size: var(--portal-type-body);
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(164px, 198px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 6px 0 12px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-split {
  grid-template-columns: minmax(118px, 138px) minmax(98px, 1fr);
  gap: 14px;
}

.dashboard-donut {
  width: min(180px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 6px auto 10px;
}

.dashboard-donut--airline {
  width: min(168px, 100%);
}

.dashboard-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--dashboard-donut-gradient, transparent);
  -webkit-mask-image: conic-gradient(from -90deg, #000 0 calc(var(--dashboard-chart-progress) * 1turn), transparent 0);
  mask-image: conic-gradient(from -90deg, #000 0 calc(var(--dashboard-chart-progress) * 1turn), transparent 0);
}

.dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.05);
}

.dashboard-donut span,
.dashboard-donut strong {
  position: relative;
  z-index: 1;
}

.dashboard-donut span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-donut strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: var(--portal-type-section);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-donut {
  width: min(138px, 100%);
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-donut::after {
  inset: 18px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-donut span {
  font-size: var(--portal-type-body);
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-donut strong {
  font-size: var(--portal-type-subheading);
}

.dashboard-legend {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: center;
  overflow: visible;
}

.dashboard-legend__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.dashboard-legend__row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-legend__row strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-variant-numeric: tabular-nums;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-legend {
  gap: 9px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-legend__row {
  gap: 8px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-legend__row span {
  white-space: normal;
  overflow: visible;
  line-height: 1.3;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-legend__row strong {
  font-size: var(--portal-type-body);
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-status-grid h4 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
}

.dashboard-status-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

.dashboard-status-row {
  display: grid;
  gap: 9px;
}

.dashboard-status-row__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.dashboard-status-row__head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-status-row__head strong {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.dashboard-status-row__track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 15, 16, 0.07);
}

.dashboard-status-row__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--dashboard-chart-progress));
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-status-list {
  gap: 10px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-status-row {
  gap: 7px;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-status-row:nth-child(n + 5) {
  display: none;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-status-row__head {
  gap: 8px;
  font-size: var(--portal-type-body);
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-status-row__head span {
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
}

.dashboard-panel--chart[data-chart-density="compact"] .dashboard-status-row__track {
  height: 8px;
}

.dashboard-lanes {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

.dashboard-lane-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.dashboard-lane-card strong {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.dashboard-lane-card p,
.dashboard-lane-card dt,
.dashboard-lane-card dd {
  overflow-wrap: anywhere;
}

.dashboard-lane-card dl {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dashboard-lane-card dl > div {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.dashboard-lane-card dt {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-lane-card dd {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-variant-numeric: tabular-nums;
}

.dashboard-lane-card p,
.dashboard-lane-card dt,
.dashboard-lane-card dd {
  overflow-wrap: anywhere;
}

.dashboard-lane-card p {
  margin: 4px 0 0;
  color: var(--ink-muted);
}

.dashboard-lane-card dl {
  display: flex;
  gap: 14px;
  margin: 0;
}

.dashboard-lane-card dt {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-lane-card dd {
  margin: 6px 0 0;
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dashboard-table-wrap {
  overflow: auto;
  width: 100%;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.quotations-table-card .dashboard-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.quotations-table-card .dashboard-table {
  width: max-content;
  min-width: 100%;
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 15, 16, 0.06);
  white-space: nowrap;
}

.dashboard-table th {
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-table td {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}

.dashboard-table td strong {
  color: var(--brand);
}

.dashboard-table__row.is-clickable {
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-table__row.is-clickable:hover td {
  background: color-mix(in srgb, var(--surface-soft) 66%, var(--surface) 34%);
}

.dashboard-table__row.is-clickable:focus-visible {
  outline: none;
}

.dashboard-table__row.is-clickable:focus-visible td {
  box-shadow: inset 0 0 0 2px rgba(29, 111, 165, 0.14);
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--portal-accent-badge-bg);
  color: var(--portal-accent-badge-text);
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.dashboard-status-pill[data-status-tone="draft"] {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.dashboard-status-pill[data-status-tone="quoted"] {
  background: #eef8f1;
  color: #3f7f50;
}

.dashboard-status-pill[data-status-tone="pending"] {
  background: rgba(245, 158, 11, 0.12);
  color: #b96d05;
}

.dashboard-status-pill[data-status-tone="booked"] {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}

.dashboard-status-pill[data-status-tone="rejected"] {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.dashboard-status-pill[data-status-tone="requote"] {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}

.dashboard-activity-list,
.dashboard-insights-list {
  display: grid;
  gap: 12px;
}

.dashboard-insights-list--portal {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  align-items: start;
}

.dashboard-activity,
.dashboard-insight {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 15, 16, 0.05);
}

.dashboard-activity {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.dashboard-activity__tone {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-activity__tone--positive {
  background: #16a34a;
}

.dashboard-activity__tone--warning {
  background: #c97a16;
}

.dashboard-activity__tone--neutral {
  background: #1c7ed6;
}

.dashboard-activity strong,
.dashboard-insight strong {
  color: var(--brand);
}

.dashboard-activity p,
.dashboard-insight p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.dashboard-activity small {
  color: var(--ink-soft);
}

.request-card {
  --request-flow-gap: 18px;
  --request-section-gap: 18px;
  --request-card-gap: 14px;
  --request-field-gap: 10px;
  --request-control-height: 50px;
  padding: 18px 24px 22px;
  border: 1px solid rgba(15, 15, 16, 0.05);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 251, 0.96) 100%);
  box-shadow: 0 22px 55px rgba(15, 15, 16, 0.045);
  transition:
    padding 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.request-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(15, 15, 16, 0.055);
  flex-wrap: wrap;
  transition:
    padding 240ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.request-tabs__nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.035);
}

.request-tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: calc(100% - 8px);
  width: var(--request-tabs-indicator-width, 0);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(15, 15, 16, 0.08);
  transform: translateX(var(--request-tabs-indicator-x, 0));
  transform-origin: left center;
  transition: transform 180ms ease, width 180ms ease;
  pointer-events: none;
}

.request-tabs__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex: 0 1 auto;
}

.request-tabs__view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 16, 0.065);
  background: rgba(15, 15, 16, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex: 0 0 auto;
}

.request-view-toggle__option {
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.request-view-toggle__option:hover {
  color: var(--ink);
}

.request-view-toggle__option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 15, 16, 0.12);
}

.request-view-toggle__option.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(15, 15, 16, 0.08);
}

.request-tabs__reference {
  width: min(100%, 260px);
  flex: 0 1 260px;
}

.field--compact {
  gap: 0;
}

.field--compact input,
.field--compact select,
.field--compact textarea {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
}

.request-tab {
  position: relative;
  z-index: 1;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease;
}

.request-tab:hover {
  color: var(--ink-2);
}

.request-tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.request-tab.is-active {
  color: var(--brand);
  font-weight: 600;
}

.request-form {
  display: grid;
  gap: var(--request-flow-gap);
  padding-top: 20px;
  transition:
    gap 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.request-card *,
.request-card *::before,
.request-card *::after {
  box-sizing: border-box;
}

.request-card :where(
  .request-form,
  .form-step,
  .request-section,
  .request-group,
  .request-section__grid,
  .request-section__gated,
  .choice-grid,
  .choice-card,
  .topline-card,
  .topline-card__control,
  .segmented-control,
  .segmented-control__option,
  .movement-scope-addresses,
  .movement-address-card,
  .request-panel-stack,
  .mode-panel,
  .request-panel,
  .request-panel__grid,
  .field,
  .form-footer
) {
  min-width: 0;
  max-width: 100%;
}

.request-card :where(
  .request-section__grid,
  .choice-grid,
  .segmented-control,
  .movement-scope-addresses,
  .request-panel__grid
) > * {
  min-width: 0;
}

.request-card :where(
  .choice-card,
  .segmented-control__option,
  .field input,
  .field select,
  .field textarea,
  .incoterm-select,
  .incoterm-select__trigger,
  .frontend-select,
  .frontend-select__trigger
) {
  width: 100%;
}

.request-card :where(
  button,
  input,
  textarea,
  select,
  .incoterm-select__trigger,
  .frontend-select__trigger
) {
  line-height: 1.2;
}

.request-card :where(input, textarea, select) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.request-card :where(input[type="date"]) {
  color-scheme: light;
  font-variant-numeric: tabular-nums;
}

.request-card :where(input[type="date"])::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
}

.request-card :where(input[type="date"])::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

.quotations-create-view.is-dev-mode {
  gap: 18px;
}

.request-card.is-dev-mode {
  --request-flow-gap: 16px;
  --request-section-gap: 16px;
  --request-card-gap: 12px;
  --request-field-gap: 8px;
  --request-control-height: 46px;
  --request-workspace-max-width: 1680px;
  padding: 18px 20px 24px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.quotations-create-view.is-dev-mode .quotations-back-button {
  min-height: 30px;
  padding-inline: 10px;
  font-size: var(--portal-type-body);
}

.quotations-create-view.is-dev-mode .request-tabs {
  gap: 10px;
  padding: 0 0 6px;
  border-bottom-color: rgba(15, 15, 16, 0.045);
}

.quotations-create-view.is-dev-mode .request-tabs__nav {
  gap: 0;
  padding: 0;
  background: transparent;
}

.quotations-create-view.is-dev-mode .request-tabs__controls {
  gap: 6px;
}

.quotations-create-view.is-dev-mode .request-tabs__view-toggle {
  padding: 2px;
}

.quotations-create-view.is-dev-mode .request-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(15, 15, 16, 0.04);
  background: rgba(15, 15, 16, 0.03);
  color: #111827;
  font-size: var(--portal-type-body);
  font-weight: 700;
  box-shadow: none;
}

.quotations-create-view.is-dev-mode .request-tab:not(.is-active) {
  display: none;
}

.quotations-create-view.is-dev-mode .request-tabs__indicator {
  display: none;
}

.quotations-create-view.is-dev-mode .request-view-toggle__option {
  min-height: 24px;
  padding: 0 9px;
  font-size: var(--portal-type-body);
}

.quotations-create-view.is-dev-mode .request-tabs__reference {
  width: min(100%, 190px);
  flex-basis: 190px;
}

.quotations-create-view.is-dev-mode .request-tabs__reference input {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 10px;
}

.request-card.is-dev-mode .request-form {
  gap: var(--request-flow-gap);
  padding-top: 10px;
}

.request-card.is-dev-mode .dev-workbench {
  display: grid;
  gap: 16px;
}

.request-card.is-dev-mode .dev-workbench__top {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.request-card.is-dev-mode .dev-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: none;
}

.request-card.is-dev-mode .dev-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.request-card.is-dev-mode .dev-card__header h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  line-height: 1.2;
  font-weight: 700;
  color: #253245;
}

.request-card.is-dev-mode .dev-card__body {
  display: grid;
  gap: 12px;
}

.request-card.is-dev-mode .dev-card__header--spread {
  justify-content: space-between;
  align-items: center;
}

.request-card.is-dev-mode .dev-card--shipment-details {
  grid-column: 1 / -1;
}

.request-card.is-dev-mode .dev-card--itinerary .dev-card__body {
  gap: 12px;
}

.request-card.is-dev-mode .dev-itinerary__mode,
.request-card.is-dev-mode .dev-itinerary__scope {
  display: grid;
  gap: 6px;
}

.request-card.is-dev-mode .dev-itinerary__scope {
  padding-top: 2px;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f2f5f9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode {
  min-height: 44px;
  padding: 0 14px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  box-shadow: none;
  color: #5f6f84;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode:hover {
  border-color: #cfd7e3;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(15, 23, 42, 0.05);
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode:focus-visible {
  outline: none;
  border-color: rgba(15, 15, 16, 0.38);
  box-shadow:
    0 0 0 3px rgba(15, 15, 16, 0.1),
    0 6px 14px rgba(15, 23, 42, 0.06);
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.05);
  color: #69778b;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card__icon svg {
  width: 16px;
  height: 16px;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card__icon--air svg {
  width: 18px;
  height: 18px;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode strong {
  font-size: var(--portal-type-body);
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: #526074;
  font-weight: 600;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode small {
  display: none;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected {
  border-color: rgba(15, 23, 42, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.04),
    0 4px 10px rgba(15, 23, 42, 0.045);
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected::before {
  content: none;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected .choice-card__icon {
  background: #111827;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected strong {
  color: #111827;
  font-weight: 700;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected:hover,
.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected:focus-visible {
  border-color: rgba(15, 23, 42, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  padding: 4px;
  border: 1px solid #dee5ee;
  border-radius: 14px;
  background: #f7f9fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option {
  position: relative;
  min-height: 40px;
  padding: 0 14px 0 38px;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: var(--portal-type-body);
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.005em;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #c8d2df;
  border-radius: 999px;
  background: #fbfcfe;
  transform: translateY(-50%);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option:hover {
  border-color: #d4dce7;
  background: #fff;
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option:focus-visible {
  outline: none;
  border-color: rgba(15, 15, 16, 0.28);
  background: #fff;
  color: #0f172a;
  box-shadow:
    0 0 0 3px rgba(15, 15, 16, 0.1),
    0 4px 12px rgba(15, 23, 42, 0.05);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected {
  border-color: rgba(15, 23, 42, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: #111827;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.045),
    0 4px 10px rgba(15, 23, 42, 0.04);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected::before {
  border-color: #111827;
  background: #111827;
  box-shadow: 0 0 0 2px rgba(15, 15, 16, 0.05);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected strong {
  font-weight: 700;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-58%) rotate(40deg);
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected:hover,
.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected:focus-visible {
  border-color: rgba(15, 15, 16, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

.request-card.is-dev-mode .dev-itinerary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  padding-top: 2px;
}

.request-card.is-dev-mode .dev-field,
.request-card.is-dev-mode .dev-goods-type__field {
  display: grid;
  gap: 6px;
  align-content: start;
  align-items: start;
}

.request-card.is-dev-mode .dev-field__label,
.request-card.is-dev-mode .dev-goods-type__label {
  margin: 0;
  font-size: var(--portal-type-body);
  line-height: 1.2;
  font-weight: 600;
  color: #66758a;
}

.request-card.is-dev-mode .dev-field__control {
  display: grid;
  gap: 0;
  min-width: 0;
  align-content: start;
  align-items: start;
}

.request-card.is-dev-mode .dev-field__control .field,
.request-card.is-dev-mode .dev-field__control .field--airport-code,
.request-card.is-dev-mode .dev-field__control .field--card,
.request-card.is-dev-mode .dev-goods-type__field .field {
  gap: 0;
}

.request-card.is-dev-mode .dev-field__control .field > span:first-child,
.request-card.is-dev-mode .dev-goods-type__field .field > span:first-child {
  display: none;
}

.request-card.is-dev-mode .dev-field__control .field input,
.request-card.is-dev-mode .dev-goods-type__field .field input,
.request-card.is-dev-mode .dev-goods-type__field .field select {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  background: #fff;
  font-size: var(--portal-type-body);
  color: #243041;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.request-card.is-dev-mode .dev-field__control .field input::placeholder,
.request-card.is-dev-mode .dev-goods-type__field .field input::placeholder {
  color: #a1aab8;
}

.request-card.is-dev-mode .dev-field__control .field__hint {
  margin-top: 6px;
  font-size: var(--portal-type-caption);
}

.request-card.is-dev-mode .dev-field__control .field small[data-airport-autofill-note] {
  display: none;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .shipment-block__header,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-field label,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-status {
  display: none;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-block,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel-inner,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__top-grid,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__detail-grid {
  gap: 8px;
  align-content: start;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle {
  margin-top: 0;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-input-wrap {
  margin-top: 0;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-field {
  gap: 0;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-field input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  background: #fff;
  font-size: var(--portal-type-body);
  color: #243041;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.request-card.is-dev-mode .dev-goods-type__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.request-card.is-dev-mode .dev-goods-type__label {
  display: inline-flex;
  align-items: center;
  font-size: var(--portal-type-body);
  line-height: 1.2;
  font-weight: 600;
  color: #66758a;
}

.request-card.is-dev-mode .dev-card__action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: var(--portal-type-body);
  font-weight: 500;
  cursor: pointer;
}

.request-card.is-dev-mode .dev-goods-type__link:hover,
.request-card.is-dev-mode .dev-card__action:hover {
  text-decoration: underline;
}

.request-card.is-dev-mode .dev-card--shipment-details .dev-card__body {
  gap: 16px;
}

.request-card.is-dev-mode .dev-card__actions {
  display: flex;
  justify-content: flex-end;
}

.request-card.is-dev-mode .dev-preferences-panel {
  display: flex;
  justify-content: flex-end;
}

.request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle {
  padding: 2px;
  border-radius: 999px;
  border: 1px solid #d7dce6;
  background: #f8fafc;
}

.request-card.is-dev-mode .dev-calc-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.request-card.is-dev-mode .dev-calc-mode__option {
  position: relative;
  min-height: 36px;
  padding: 0 14px 0 32px;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: var(--portal-type-body);
  font-weight: 500;
  cursor: pointer;
}

.request-card.is-dev-mode .dev-calc-mode__option::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #b7c2d2;
  border-radius: 999px;
  transform: translateY(-50%);
}

.request-card.is-dev-mode .dev-calc-mode__option.is-selected {
  border-color: #2563eb;
  color: #2563eb;
}

.request-card.is-dev-mode .dev-calc-mode__option.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #2563eb;
  transform: translateY(-50%);
}

.request-card.is-dev-mode .dev-shipment-details__content .cargo-editor-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .cargo-editor-panel__head,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-ai-button,
.request-card.is-dev-mode .dev-shipment-details__content .cargo-profile-strip__toggles,
.request-card.is-dev-mode .dev-shipment-details__content .cargo-support-row {
  display: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-shell {
  gap: 16px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines {
  gap: 10px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__toolbar {
  justify-content: flex-start;
  padding-bottom: 0;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__toolbar-copy,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__stackable-master {
  display: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
  min-width: 0;
  grid-template-columns:
    68px
    minmax(124px, 1fr)
    minmax(168px, 1.22fr)
    minmax(102px, 0.8fr)
    minmax(122px, 0.9fr);
  gap: 6px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header {
  padding: 0;
  font-size: var(--portal-type-body);
  color: #475569;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
  padding: 0;
  border: 0;
  background: transparent;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-head-copy,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-label,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-label {
  display: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field input,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field select,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field input,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove {
  min-height: 34px;
  height: 34px;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field input {
  padding-inline: 10px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-actions {
  grid-template-columns: minmax(84px, 1fr) 34px;
  gap: 6px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 4px;
  border-color: #2563eb;
  color: #2563eb;
  background: #fff;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 10px 16px;
  border: 1px solid #cfe7ef;
  border-radius: 0;
  background: #e5f6fb;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
  min-height: 0;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(47, 67, 90, 0.18);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric:last-child {
  border-right: 0;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__head {
  justify-content: center;
  font-size: var(--portal-type-body);
  color: #4a5565;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__value {
  font-size: var(--portal-type-body);
  font-weight: 700;
  color: #2d3b50;
}

.request-card.is-dev-mode .form-step {
  display: block;
}

.request-card.is-dev-mode .request-section {
  gap: 14px;
  row-gap: 14px;
  column-gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.request-card.is-dev-mode .form-step[data-step="1"] .request-section {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .request-section__header,
.request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .request-group--foundation,
.request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .request-section__gated,
.request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .movement-scope-addresses,
.request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .request-panel-stack,
.request-card.is-dev-mode .form-step[data-step="2"],
.request-card.is-dev-mode .form-step[data-step="3"] {
  display: none;
}

.request-card.is-dev-mode .request-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-content: start;
  justify-items: start;
  max-width: 100%;
  padding: 2px 0 0;
  border-bottom: 0;
}

.request-card.is-dev-mode .request-section__header h2 {
  font-size: var(--portal-type-subheading);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 700;
  color: var(--ink-2);
}

.request-card.is-dev-mode .request-section__header p {
  display: block;
  margin: 0;
  max-width: 48ch;
  font-size: var(--portal-type-body);
  line-height: 1.48;
  color: var(--ink-muted);
}

.request-card.is-dev-mode .request-group--foundation {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .request-group__header {
  align-items: center;
  gap: 5px;
}

.request-card.is-dev-mode .request-group__header > span {
  display: none;
}

.request-card.is-dev-mode .request-group__header h3 {
  font-size: var(--portal-type-subheading);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-2);
}

.request-card.is-dev-mode .request-group__header p {
  display: none;
  margin: 0;
  font-size: var(--portal-type-body);
  line-height: 1.3;
  color: var(--ink-soft);
}

.request-card.is-dev-mode .request-section__grid,
.request-card.is-dev-mode .request-section__gated,
.request-card.is-dev-mode .request-panel,
.request-card.is-dev-mode .request-panel__grid,
.request-card.is-dev-mode .request-section__conditional-column,
.request-card.is-dev-mode .dimensions-shell {
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
}

.request-card.is-dev-mode .request-section__grid--modes {
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
}

.request-card.is-dev-mode .request-section__grid--topline {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  align-items: start;
}

.request-card.is-dev-mode .topline-card--direction {
  display: none;
}

.request-card.is-dev-mode .request-section--cargo {
  gap: 10px;
}

.request-card.is-dev-mode .cargo-profile-strip,
.request-card.is-dev-mode .cargo-editor-panel {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 15, 16, 0.06);
}

.request-card.is-dev-mode .cargo-profile-strip__grid {
  margin-top: 0;
}

.request-card.is-dev-mode .cargo-profile-strip__field--cargo-type {
  display: none;
}

.request-card.is-dev-mode .cargo-profile-strip__field--commodity,
.request-card.is-dev-mode .cargo-profile-strip__toggles {
  grid-column: 1 / -1;
}

.request-card.is-dev-mode .cargo-editor-panel {
  gap: 8px;
}

.request-card.is-dev-mode .cargo-editor-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0;
}

.request-card.is-dev-mode .cargo-editor-panel__head p {
  display: none;
}

.request-card.is-dev-mode .cargo-editor-panel__summary .dimensions-metric {
  min-height: 54px;
}

.request-card.is-dev-mode .dimensions-shell__main {
  order: 1;
}

.request-card.is-dev-mode .dimensions-lines__toolbar {
  gap: 5px;
  padding-bottom: 0;
  justify-content: flex-end;
}

.request-card.is-dev-mode .dimensions-lines__toolbar-copy strong {
  display: none;
}

.request-card.is-dev-mode .dimensions-lines__toolbar-copy span {
  display: none;
}

.request-card.is-dev-mode .dimensions-lines__stackable-master {
  min-height: 32px;
  padding: 0 10px;
  font-size: var(--portal-type-body);
  border-radius: 8px;
}

.request-card.is-dev-mode .cargo-support-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.request-card.is-dev-mode .cargo-support-row__options {
  display: none;
  gap: 8px;
}

.request-card.is-dev-mode .cargo-profile-strip__toggles {
  gap: 4px;
}

.request-card.is-dev-mode .cargo-profile-strip__toggle-group {
  gap: 4px;
}

.request-card.is-dev-mode .cargo-profile-strip .toggle-card--compact {
  min-height: 40px;
  padding: 8px 10px;
  gap: 6px;
  border-radius: 8px;
}

.request-card.is-dev-mode .cargo-profile-strip .toggle-card--compact strong {
  font-size: var(--portal-type-body);
  letter-spacing: 0.01em;
}

.request-card.is-dev-mode .cargo-profile-strip .toggle-card--compact small {
  display: none;
}

.request-card.is-dev-mode .cargo-support-row__remarks textarea {
  min-height: 72px;
  transition: min-height 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.request-card.is-dev-mode .cargo-support-row__remarks textarea:focus {
  min-height: 120px;
}

.request-card.is-dev-mode .request-panel__grid {
  margin-top: 4px;
}

.request-card.is-dev-mode .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-card.is-dev-mode .choice-card--mode {
  border-color: rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  overflow: hidden;
}

.request-card.is-dev-mode .choice-card--mode::after {
  display: none;
}

.request-card.is-dev-mode .choice-card {
  min-height: 64px;
  padding: 14px 16px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  border-radius: 12px;
  align-items: center;
}

.request-card.is-dev-mode .topline-card,
.request-card.is-dev-mode .request-panel,
.request-card.is-dev-mode .toggle-card,
.request-card.is-dev-mode .dimensions-line,
.request-card.is-dev-mode .dimensions-metric,
.request-card.is-dev-mode .file-dropzone,
.request-card.is-dev-mode .movement-address-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.request-card.is-dev-mode .choice-card small,
.request-card.is-dev-mode .topline-card__helper,
.request-card.is-dev-mode .topline-card__note {
  display: none;
}

.request-card.is-dev-mode .choice-card__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.request-card.is-dev-mode .choice-card__icon svg {
  width: 16px;
  height: 16px;
}

.request-card.is-dev-mode .choice-card__icon--air svg {
  width: 17px;
  height: 17px;
}

.request-card.is-dev-mode .choice-card strong,
.request-card.is-dev-mode .toggle-card strong,
.request-card.is-dev-mode .request-panel__header h3,
.request-card.is-dev-mode .dimensions-ai-import__header strong {
  font-size: var(--portal-type-subheading);
  line-height: 1.2;
}

.request-card.is-dev-mode .topline-card {
  min-height: 0;
  align-content: start;
  gap: 3px;
}

.request-card.is-dev-mode .topline-card .field-label,
.request-card.is-dev-mode .topline-card .field--card > span,
.request-card.is-dev-mode .field > span,
.request-card.is-dev-mode .dangerous-goods-field__header label,
.request-card.is-dev-mode .movement-address-card .address-section__field label,
.request-card.is-dev-mode .movement-address-card .address-section__search-field label {
  font-size: var(--portal-type-body);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-muted);
}

.request-card.is-dev-mode .topline-card .field--card > span {
  margin-bottom: 4px;
}

.request-card.is-dev-mode .modality-guidance {
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.request-card.is-dev-mode .segmented-control,
.request-card.is-dev-mode .dimensions-header-tools {
  row-gap: 8px;
  column-gap: 8px;
}

.request-card.is-dev-mode .segmented-control {
  margin-top: 0;
}

.request-card.is-dev-mode .segmented-control__option {
  min-height: 46px;
  border-radius: 12px;
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .segmented-control__option--stacked {
  min-height: 46px;
  padding: 11px 14px;
}

.request-card.is-dev-mode .segmented-control__option--stacked strong {
  font-size: var(--portal-type-body);
  letter-spacing: 0.01em;
}

.request-card.is-dev-mode .field,
.request-card.is-dev-mode .field-select,
.request-card.is-dev-mode .dimensions-ai-import__paste,
.request-card.is-dev-mode .dangerous-goods-field,
.request-card.is-dev-mode .movement-address-card .address-section,
.request-card.is-dev-mode .movement-address-card .address-section__search-block,
.request-card.is-dev-mode .movement-address-card .address-section__top-grid,
.request-card.is-dev-mode .movement-address-card .address-section__detail-grid {
  gap: var(--request-field-gap);
}

.request-card.is-dev-mode .segmented-control__option {
  min-height: 46px;
}

.request-card.is-dev-mode .field input,
.request-card.is-dev-mode .field select,
.request-card.is-dev-mode .field textarea,
.request-card.is-dev-mode .incoterm-select__trigger,
.request-card.is-dev-mode .frontend-select__trigger,
.request-card.is-dev-mode .dangerous-goods-selector__trigger {
  min-height: var(--request-control-height);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: var(--portal-type-body);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 15, 16, 0.1);
  box-shadow: none;
}

.request-card.is-dev-mode .field input::placeholder,
.request-card.is-dev-mode .field textarea::placeholder,
.request-card.is-dev-mode .incoterm-select__trigger.is-placeholder .incoterm-select__value,
.request-card.is-dev-mode .frontend-select__trigger.is-placeholder,
.request-card.is-dev-mode .dangerous-goods-selector__trigger {
  color: color-mix(in srgb, var(--ink-soft) 88%, white 12%);
}

.request-card.is-dev-mode .field__hint {
  font-size: var(--portal-type-caption);
  line-height: 1.3;
}

.request-card.is-dev-mode .request-panel--movement-scope {
  padding: 16px 18px;
  gap: 10px;
}

.request-card.is-dev-mode .request-panel--movement-scope .request-panel__header h3 {
  font-size: var(--portal-type-subheading);
  line-height: 1.1;
}

.request-card.is-dev-mode .request-panel--movement-scope .segmented-control {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 8px;
  column-gap: 8px;
}

.request-card.is-dev-mode .request-panel--movement-scope .segmented-control__option {
  min-height: 48px;
  border-radius: 12px;
}

.request-card.is-dev-mode .request-panel--movement-scope .segmented-control__option--stacked {
  min-height: 48px;
  padding: 11px 14px;
}

.request-card.is-dev-mode .request-panel--movement-scope .segmented-control__option--stacked strong {
  font-size: var(--portal-type-body);
  line-height: 1.15;
  letter-spacing: 0;
}

.request-card.is-dev-mode .request-panel {
  padding: 14px 16px;
}

.request-card.is-dev-mode .request-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2px;
  padding-bottom: 0;
}

.request-card.is-dev-mode .mode-panel .request-panel__header p {
  display: none;
}

.request-card.is-dev-mode .request-panel__header,
.request-card.is-dev-mode .dimensions-lines__header {
  margin-bottom: 0;
}

.request-card.is-dev-mode .dimensions-summary {
  order: 2;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.request-card.is-dev-mode .dimensions-metric {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 10px;
  gap: 4px;
  border: 1px solid rgba(15, 15, 16, 0.06);
}

.request-card.is-dev-mode .dimensions-metric__head {
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .dimensions-metric__tag {
  display: none;
}

.request-card.is-dev-mode .dimensions-metric__value {
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .dimensions-ai-import {
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.request-card.is-dev-mode .dimensions-ai-import__header p {
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .dimensions-ai-import__sources {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.request-card.is-dev-mode .dimensions-ai-import__source {
  display: grid;
  min-width: 0;
}

.request-card.is-dev-mode .dimensions-ai-import__dropzone,
.request-card.is-dev-mode .dimensions-ai-import__paste .field,
.request-card.is-dev-mode .dimensions-ai-import__paste textarea {
  height: 100%;
}

.request-card.is-dev-mode .dimensions-ai-import__dropzone,
.request-card.is-dev-mode .dimensions-ai-import__paste textarea {
  min-height: 140px;
  border-radius: 14px;
}

.request-card.is-dev-mode .dimensions-ai-import__dropzone {
  gap: 10px;
  padding: 16px;
}

.request-card.is-dev-mode .dimensions-ai-import__dropzone-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: var(--portal-type-page);
  font-weight: 500;
  line-height: 1;
}

.request-card.is-dev-mode .dimensions-ai-import__dropzone strong {
  max-width: 18ch;
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.request-card.is-dev-mode .dimensions-ai-import__dropzone p {
  display: none;
}

.request-card.is-dev-mode .dimensions-ai-import__file-label {
  justify-self: center;
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .dimensions-ai-import__paste {
  gap: 8px;
}

.request-card.is-dev-mode .dimensions-ai-import__paste .field > span {
  font-size: var(--portal-type-body);
  line-height: 1.2;
  color: var(--ink-muted);
}

.request-card.is-dev-mode .dimensions-ai-import__paste textarea {
  resize: none;
}

.request-card.is-dev-mode .dimensions-lines {
  gap: 8px;
}

.request-card.is-dev-mode .dimensions-lines__header,
.request-card.is-dev-mode .dimensions-line {
  grid-template-columns:
    68px
    minmax(122px, 1fr)
    minmax(166px, 1.18fr)
    minmax(100px, 0.8fr)
    minmax(118px, 0.88fr);
  min-width: 0;
  gap: 6px;
}

.request-card.is-dev-mode .dimensions-lines__header {
  padding: 0 4px;
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .dimensions-line {
  padding: 6px;
  border-radius: 10px;
}

.request-card.is-dev-mode .dimensions-line__mobile-head-copy,
.request-card.is-dev-mode .dimensions-line__mobile-label,
.request-card.is-dev-mode .dimensions-line__mini-label {
  display: none;
}

.request-card.is-dev-mode .dimensions-line__field input,
.request-card.is-dev-mode .dimensions-line__field .frontend-select__trigger,
.request-card.is-dev-mode .dimensions-line__field select,
.request-card.is-dev-mode .dimensions-line__mini-field input,
.request-card.is-dev-mode .dimensions-line__stackable,
.request-card.is-dev-mode .dimensions-line__stackable-toggle,
.request-card.is-dev-mode .dimensions-line__remove {
  min-height: 34px;
  height: 34px;
}

.request-card.is-dev-mode .dimensions-line__group {
  gap: 4px;
}

.request-card.is-dev-mode .dimensions-lines__footer .button {
  min-height: 34px;
  padding-inline: 12px;
  font-size: var(--portal-type-body);
  border-radius: 8px;
}

.request-card.is-dev-mode .toggle-card {
  min-height: 42px;
  padding: 8px 10px;
  gap: 6px;
  align-items: start;
}

.request-card.is-dev-mode .toggle-card input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.request-card.is-dev-mode .toggle-card small,
.request-card.is-dev-mode .dangerous-goods-option__label,
.request-card.is-dev-mode .airport-autocomplete__meta,
.request-card.is-dev-mode .frontend-select__option-text {
  font-size: var(--portal-type-caption);
  line-height: 1.25;
}

.request-card.is-dev-mode .dg-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .request-section__grid--two:last-of-type {
  grid-template-columns: minmax(0, 1fr);
}

.request-card.is-dev-mode .field textarea {
  min-height: 72px;
}

.request-card.is-dev-mode .file-dropzone {
  min-height: 96px;
  padding: 12px 14px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  place-items: start;
  text-align: left;
}

.request-card.is-dev-mode .file-dropzone strong {
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.request-card.is-dev-mode .file-dropzone p,
.request-card.is-dev-mode .file-dropzone span {
  font-size: var(--portal-type-body);
  line-height: 1.25;
}

.request-card.is-dev-mode .file-chip {
  padding: 7px 8px;
  border-radius: 5px;
}

.request-card.is-dev-mode .file-chip__controls {
  gap: 8px;
}

.request-card.is-dev-mode .movement-scope-addresses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
}

.request-card.is-dev-mode .movement-address-card .shipment-block__header {
  margin-bottom: 6px;
}

.request-card.is-dev-mode .movement-address-card .address-section__search-status,
.request-card.is-dev-mode .movement-address-card .address-section__search-result-secondary,
.request-card.is-dev-mode .movement-address-card .address-section__field-error {
  font-size: var(--portal-type-caption);
}

.request-card.is-dev-mode .movement-address-card .address-section__field input,
.request-card.is-dev-mode .movement-address-card .address-section__search-field input {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
}

.request-card.is-dev-mode .airport-selected-flag {
  display: none;
}

.request-card.is-dev-mode .field--airport-has-flag input {
  padding-left: 12px;
}

.request-card.is-dev-mode .form-step[data-step="3"] .request-panel--upload {
  padding: 0;
  border: 0;
  background: transparent;
}

.request-card.is-dev-mode .form-footer {
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.request-card.is-dev-mode .request-panel--routing-air {
  padding: 16px 18px;
}

.request-card.is-dev-mode .request-panel--routing-air .request-panel__header {
  gap: 4px;
}

.request-card.is-dev-mode .request-panel__grid--airports {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  align-items: start;
}

.request-card.is-dev-mode .field--airport-code {
  max-width: none;
}

.request-card.is-dev-mode .field--airport-code input {
  padding-inline: 14px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.request-card.is-dev-mode .request-group__header > div,
.request-card.is-dev-mode .request-panel__header > div,
.request-card.is-dev-mode .cargo-editor-panel__head > div {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.request-card.is-dev-mode .request-panel__eyebrow {
  display: none;
}

.request-card.is-dev-mode .request-panel--setup-shell,
.request-card.is-dev-mode .request-panel--movement-scope,
.request-card.is-dev-mode .request-panel--routing-air {
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.request-card.is-dev-mode .request-panel--setup-shell .request-panel__header,
.request-card.is-dev-mode .request-panel--movement-scope .request-panel__header,
.request-card.is-dev-mode .request-panel--routing .request-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(15, 15, 16, 0.055);
}

.request-card.is-dev-mode .request-panel--setup-shell .request-panel__header > div,
.request-card.is-dev-mode .request-panel--movement-scope .request-panel__header > div,
.request-card.is-dev-mode .request-panel--routing .request-panel__header > div {
  display: grid;
  gap: 0;
  align-items: start;
}

.request-card.is-dev-mode .request-panel--setup-shell .request-panel__eyebrow,
.request-card.is-dev-mode .request-panel--movement-scope .request-panel__eyebrow,
.request-card.is-dev-mode .request-panel--routing .request-panel__eyebrow {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.request-card.is-dev-mode .request-panel--setup-shell .request-panel__header h3,
.request-card.is-dev-mode .request-panel--movement-scope .request-panel__header h3,
.request-card.is-dev-mode .request-panel--routing .request-panel__header h3 {
  font-size: var(--portal-type-subheading);
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

.request-card.is-dev-mode .request-panel--setup-shell .request-panel__body,
.request-card.is-dev-mode .request-panel--setup-shell .request-section__grid--modes,
.request-card.is-dev-mode .request-panel--setup-shell .request-section__grid--topline,
.request-card.is-dev-mode .request-panel--setup-shell .request-section__gated,
.request-card.is-dev-mode .request-panel--setup-shell .movement-scope-addresses,
.request-card.is-dev-mode .request-panel--movement-scope .request-panel__body,
.request-card.is-dev-mode .request-panel--movement-scope .segmented-control,
.request-card.is-dev-mode .request-panel--routing .request-panel__grid {
  row-gap: 8px;
  column-gap: 10px;
}

.request-card.is-dev-mode .request-panel--setup-shell .request-panel__body,
.request-card.is-dev-mode .request-panel--movement-scope .request-panel__body {
  margin-top: 10px;
}

.request-card.is-dev-mode .request-panel--routing-air .request-panel__grid {
  margin-top: 10px;
}

.request-card.is-dev-mode .request-panel--setup-shell .topline-card--setup {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .request-panel--setup-shell .topline-card--setup .field--card > span,
.request-card.is-dev-mode .request-panel--setup-shell .topline-card--setup .field-label {
  margin-bottom: 3px;
}

.request-card.is-dev-mode .request-panel--movement-scope .request-panel__body {
  margin-top: 8px;
}

.request-card.is-dev-mode .cargo-editor-panel__head h3 {
  font-size: var(--portal-type-subheading);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

.request-card.is-dev-mode #cargo-lines-title {
  display: none;
}

.request-card.is-dev-mode .form-step[data-step="3"] .request-section {
  padding-block: 14px;
}

.quotations-create-view.is-dev-mode .request-view-toggle__option.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: none;
}

.quotations-create-view.is-dev-mode .request-tab.is-active {
  color: var(--brand);
  font-weight: 700;
}

.request-card.is-dev-mode .choice-card--mode.is-selected {
  border-color: rgba(15, 15, 16, 0.96);
  background: linear-gradient(180deg, rgba(15, 15, 16, 0.98) 0%, rgba(34, 34, 36, 0.96) 100%);
  color: var(--brand-contrast);
  box-shadow: none;
}

.request-card.is-dev-mode .choice-card--mode.is-selected::before {
  left: 0;
  right: 0;
  height: 0;
  background: transparent;
}

.request-card.is-dev-mode .choice-card--mode.is-selected strong {
  color: var(--brand-contrast);
}

.request-card.is-dev-mode .choice-card--mode.is-selected .choice-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-contrast);
}

.request-card.is-dev-mode .request-group--shipment-flow .segmented-control__option.is-selected,
.request-card.is-dev-mode .request-group--shipment-flow .segmented-control__option.is-selected:hover,
.request-card.is-dev-mode .request-group--shipment-flow .segmented-control__option.is-selected:focus-visible,
.request-card.is-dev-mode .request-group--shipment-flow .segmented-control__option.is-selected:active {
  border-color: rgba(15, 15, 16, 0.16);
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: none;
}

.request-card.is-dev-mode .button--primary {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: none;
}

.request-card.is-dev-mode .form-footer {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.request-card.is-dev-mode .form-footer__meta {
  text-align: left;
}

.request-card.is-dev-mode .form-footer__meta small {
  font-size: var(--portal-type-caption);
}

.request-card.is-dev-mode .form-footer__actions {
  gap: 8px;
}

.request-card.is-dev-mode #save-draft-button {
  min-height: 38px;
  padding-inline: 14px;
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode #next-step {
  min-height: 42px;
  padding-inline: 18px;
  font-size: var(--portal-type-body);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__view-toggle,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__nav {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option {
  color: var(--ink-muted);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__reference input {
  background: color-mix(in srgb, var(--surface) 90%, #fff 10%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__reference input::placeholder {
  color: var(--ink-soft);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-card,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--setup-shell,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--movement-scope,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--routing-air,
html[data-theme="dark"] .request-card.is-dev-mode .form-footer {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(31, 35, 41, 0.96) 0%, rgba(24, 27, 32, 0.98) 100%);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .request-section {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.96) 0%, rgba(20, 23, 28, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-card__header h3,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--setup-shell .request-panel__header h3,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--movement-scope .request-panel__header h3,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--routing .request-panel__header h3 {
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-field__label,
html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__label,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel__eyebrow,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-lines__header,
html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__head {
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-grid,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control,
html[data-theme="dark"] .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode {
  border-color: rgba(255, 255, 255, 0.06);
  background: transparent;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode strong,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option {
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(54, 61, 70, 0.9) 0%, rgba(42, 48, 56, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected .choice-card__icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected strong {
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected:hover,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(58, 65, 74, 0.94) 0%, rgba(46, 51, 59, 0.98) 100%);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option {
  border-color: rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option::before {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(52, 58, 67, 0.88) 0%, rgba(41, 47, 54, 0.96) 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected::before {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected:hover,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(58, 64, 73, 0.92) 0%, rgba(44, 49, 57, 0.98) 100%);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control .field input,
html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__field .field input,
html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__field .field select,
html[data-theme="dark"] .request-card.is-dev-mode .field input,
html[data-theme="dark"] .request-card.is-dev-mode .field select,
html[data-theme="dark"] .request-card.is-dev-mode .field textarea,
html[data-theme="dark"] .request-card.is-dev-mode .incoterm-select__trigger,
html[data-theme="dark"] .request-card.is-dev-mode .frontend-select__trigger,
html[data-theme="dark"] .request-card.is-dev-mode .dangerous-goods-selector__trigger,
html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card .address-section__search-field input,
html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card .address-section__field input,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-line__field input,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-line__field .frontend-select__trigger,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-line__field select,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-line__mini-field input,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-line__stackable-toggle,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-line__remove {
  background: color-mix(in srgb, var(--surface) 90%, #fff 10%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control .field input::placeholder,
html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__field .field input::placeholder,
html[data-theme="dark"] .request-card.is-dev-mode .field input::placeholder,
html[data-theme="dark"] .request-card.is-dev-mode .field textarea::placeholder,
html[data-theme="dark"] .request-card.is-dev-mode .incoterm-select__trigger.is-placeholder .incoterm-select__value,
html[data-theme="dark"] .request-card.is-dev-mode .frontend-select__trigger.is-placeholder,
html[data-theme="dark"] .request-card.is-dev-mode .frontend-select__trigger.is-placeholder .frontend-select__value,
html[data-theme="dark"] .request-card.is-dev-mode .dangerous-goods-selector__trigger {
  color: var(--ink-soft);
}

html[data-theme="dark"] .request-card.is-dev-mode .field input:focus,
html[data-theme="dark"] .request-card.is-dev-mode .field textarea:focus,
html[data-theme="dark"] .request-card.is-dev-mode .field select:focus,
html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card .address-section__search-field input:focus,
html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card .address-section__field input:focus,
html[data-theme="dark"] .request-card.is-dev-mode .incoterm-select__trigger.is-open,
html[data-theme="dark"] .request-card.is-dev-mode .frontend-select__trigger.is-open,
html[data-theme="dark"] .request-card.is-dev-mode .dangerous-goods-selector__trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--surface-soft) 86%, #fff 14%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .request-card.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .field input,
  .field textarea,
  .movement-address-card .address-section__search-field input,
  .movement-address-card .address-section__field input,
  .dimensions-line__field input,
  .dimensions-line__mini-field input
):-webkit-autofill,
html[data-theme="dark"] .request-card.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .field input,
  .field textarea,
  .movement-address-card .address-section__search-field input,
  .movement-address-card .address-section__field input,
  .dimensions-line__field input,
  .dimensions-line__mini-field input
):-webkit-autofill:hover,
html[data-theme="dark"] .request-card.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .field input,
  .field textarea,
  .movement-address-card .address-section__search-field input,
  .movement-address-card .address-section__field input,
  .dimensions-line__field input,
  .dimensions-line__mini-field input
):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px color-mix(in srgb, var(--surface) 90%, #fff 10%) inset;
  transition: background-color 9999s ease-in-out 0s;
}

html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card .address-section__manual-toggle,
html[data-theme="dark"] .request-card.is-dev-mode .dev-card__action {
  color: #9ec5ff;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-card__action:hover,
html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card .address-section__manual-toggle:hover {
  color: #c5ddff;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option {
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header {
  color: var(--ink-soft);
}

html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__dropzone,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__paste textarea {
  background: color-mix(in srgb, var(--surface-soft) 92%, #fff 8%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__dropzone:hover,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__dropzone:focus-visible,
html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__dropzone.is-dragover {
  background: color-mix(in srgb, var(--surface-soft) 84%, #fff 16%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__dropzone-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .dimensions-ai-import__file-label {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
  border-color: rgba(125, 211, 252, 0.18);
  background: linear-gradient(180deg, rgba(21, 54, 65, 0.74) 0%, rgba(18, 44, 53, 0.88) 100%);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
  border-right-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__value {
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(125, 211, 252, 0.24);
  color: #9ec5ff;
}

html[data-theme="dark"] .request-card.is-dev-mode .file-dropzone {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-card.is-dev-mode .file-dropzone strong {
  color: var(--ink);
}

html[data-theme="dark"] .request-card.is-dev-mode .file-dropzone p,
html[data-theme="dark"] .request-card.is-dev-mode .file-dropzone span,
html[data-theme="dark"] .request-card.is-dev-mode .field__hint,
html[data-theme="dark"] .request-card.is-dev-mode .airport-autocomplete__meta,
html[data-theme="dark"] .request-card.is-dev-mode .frontend-select__option-text,
html[data-theme="dark"] .request-card.is-dev-mode .toggle-card small {
  color: var(--ink-soft);
}

html[data-theme="dark"] .request-card.is-dev-mode .form-footer {
  border-top-color: transparent;
}

html[data-theme="dark"] .request-card.is-dev-mode #save-draft-button {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode #next-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.quotations-create-view.is-dev-mode {
  position: relative;
  gap: 0;
  padding: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.96), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
}

.quotations-create-view.is-dev-mode .overview-card {
  display: none;
}

.quotations-create-view.is-dev-mode .quotations-back-row {
  position: absolute;
  top: 26px;
  left: 32px;
  z-index: 8;
  margin: 0;
}

.quotations-create-view.is-dev-mode .quotations-back-button {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: var(--portal-type-body);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.quotations-create-view.is-dev-mode .quotations-back-button::before {
  content: "<";
  margin-right: 10px;
  font-size: 1.05rem;
  line-height: 1;
}

.quotations-create-view.is-dev-mode .request-card {
  --request-flow-gap: 20px;
  --request-card-gap: 16px;
  --request-control-height: 56px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px 32px 34px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0 0 28px 28px;
  background: transparent;
  box-shadow: none;
}

.quotations-create-view.is-dev-mode .request-tabs {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 52px;
  gap: 16px;
  padding: 0;
  border: 0;
}

.quotations-create-view.is-dev-mode .request-tabs__nav {
  display: none;
}

.quotations-create-view.is-dev-mode .request-tabs__controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.quotations-create-view.is-dev-mode .request-tabs__view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 4px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.quotations-create-view.is-dev-mode .request-view-toggle__option {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.quotations-create-view.is-dev-mode .request-view-toggle__option.is-active {
  background: #030816;
  color: #fff;
  box-shadow: 0 8px 20px rgba(3, 8, 22, 0.18);
}

.quotations-create-view.is-dev-mode .request-tabs__reference {
  width: 230px;
  flex: 0 0 230px;
}

.quotations-create-view.is-dev-mode .request-tabs__reference input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: var(--portal-type-control-mobile);
  box-shadow: none;
}

.request-card.is-dev-mode .request-form {
  padding-top: 24px;
}

.request-card.is-dev-mode .request-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-workbench {
  gap: 18px;
}

.request-card.is-dev-mode .dev-workbench__top {
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.92fr);
  gap: 20px;
}

.request-card.is-dev-mode .dev-card {
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.035);
}

.request-card.is-dev-mode .dev-card__header h3 {
  color: #090d18;
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.request-card.is-dev-mode .dev-card__body,
.request-card.is-dev-mode .dev-card--itinerary .dev-card__body {
  gap: 18px;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-grid {
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode {
  min-height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode .choice-card__icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode strong {
  color: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected {
  border-color: #020817;
  background: linear-gradient(180deg, #060c1d 0%, #010512 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.16);
}

.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected .choice-card__icon,
.request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected strong {
  color: #fff;
  background: transparent;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option {
  min-height: 48px;
  padding: 0 12px 0 38px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #536078;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option::before {
  left: 13px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b5c0d2;
  background: transparent;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected {
  border-color: #020817;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected::before {
  border: 6px solid #020817;
  background: #fff;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected::after {
  content: none;
}

.request-card.is-dev-mode .dev-itinerary__grid {
  gap: 18px;
}

.request-card.is-dev-mode .dev-field,
.request-card.is-dev-mode .dev-goods-type__field {
  gap: 10px;
}

.request-card.is-dev-mode .dev-field__label,
.request-card.is-dev-mode .dev-goods-type__label {
  color: #263752;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.request-card.is-dev-mode .dev-field__control .field input,
.request-card.is-dev-mode .dev-goods-type__field .field input,
.request-card.is-dev-mode .dev-goods-type__field .field select,
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-field input {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #d6dfeb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #090d18;
  font-size: var(--portal-type-body);
  box-shadow: none;
}

.request-card.is-dev-mode .dev-itinerary__grid .field:not(:focus-within) .airport-autocomplete {
  display: none !important;
}

.request-card.is-dev-mode .dev-field__control #ready-date {
  padding-left: 54px;
}

.request-card.is-dev-mode .dev-ready-date-icon {
  position: relative;
}

.request-card.is-dev-mode .dev-field:has(#ready-date) .dev-field__control {
  position: relative;
}

.request-card.is-dev-mode .dev-field:has(#ready-date) .dev-field__control::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 1.8px solid #1e293b;
  border-radius: 4px;
  transform: translateY(-50%);
  pointer-events: none;
}

.request-card.is-dev-mode .dev-field:has(#ready-date) .dev-field__control::after {
  content: "";
  position: absolute;
  left: 24px;
  top: calc(50% - 9px);
  z-index: 2;
  width: 10px;
  height: 4px;
  border-top: 2px solid #1e293b;
  border-bottom: 2px solid #1e293b;
  pointer-events: none;
}

.request-card.is-dev-mode .dev-goods-type__field .dev-field__control {
  position: relative;
}

.request-card.is-dev-mode .dev-goods-type__field .dev-field__control::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1.8px solid #1e293b;
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.request-card.is-dev-mode .dev-goods-type__field input {
  padding-right: 54px;
}

.request-card.is-dev-mode .dev-goods-type__toggles {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.request-card.is-dev-mode .dev-goods-type__toggles .request-section__conditional-column {
  display: grid;
  gap: 10px;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card::after {
  content: none;
  display: none;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1.5px solid #b8c3d4;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 1;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input::after {
  content: "";
  width: 7px;
  height: 13px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: opacity 120ms ease;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:hover {
  border-color: #7d8ca3;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:checked {
  border-color: #020817;
  background: #020817;
  box-shadow: none;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:checked::after {
  opacity: 1;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(2, 8, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:checked:focus-visible {
  box-shadow: 0 0 0 4px rgba(2, 8, 23, 0.16);
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card__content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card strong {
  color: #111827;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card strong::after {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 1px solid #8a96aa;
  border-radius: 999px;
  color: #536078;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.request-card.is-dev-mode .dev-goods-type__toggles .toggle-card small {
  display: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input {
  border-color: rgba(226, 232, 240, 0.34);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:hover {
  border-color: rgba(226, 232, 240, 0.58);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:checked {
  border-color: #f8fafc;
  background: #f8fafc;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:checked::after {
  border-color: #020817;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:focus-visible {
  box-shadow: 0 0 0 4px rgba(248, 250, 252, 0.18);
}

/* Production SaaS shell makeover */
:root {
  --app-sidebar-width: 218px;
  --app-page-bg: #f4f5f7;
  --app-card-bg: #ffffff;
  --app-card-border: rgba(17, 24, 39, 0.075);
  --app-card-shadow: 0 16px 42px rgba(15, 23, 42, 0.075);
  --app-card-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.055);
  --app-radius-lg: 16px;
  --app-radius-md: 12px;
  --app-blue: #1267ff;
  --app-orange: #ff8a16;
  --app-purple: #8f4bc7;
  --app-green: #22b768;
  --app-teal: #20a7a8;
}

body {
  background: var(--app-page-bg);
}

.portal-login[hidden],
.portal-shell[hidden] {
  display: none !important;
}

.portal-login {
  --login-ink: #111318;
  --login-muted: #69707d;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  background: #f5f6f8;
  color: var(--login-ink);
}

.portal-login__stage {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 58px) clamp(28px, 7vw, 104px) 30px;
}

.portal-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #111318;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-login__brand img {
  width: 112px;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #080808;
}

.portal-login__card {
  align-self: center;
  width: min(100%, 520px);
  margin-block: 44px;
}

.portal-login__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #505765;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-login__card h1 {
  margin: 0;
  color: var(--login-ink);
  font-size: var(--portal-type-page);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.portal-login__card > p {
  max-width: 470px;
  margin: 20px 0 34px;
  color: var(--login-muted);
  font-size: var(--portal-type-body);
  line-height: 1.7;
}

.portal-login__form {
  display: grid;
  gap: 12px;
}

.portal-login__form > label {
  color: #303640;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.portal-login__select-wrap {
  position: relative;
}

.portal-login__select-wrap > svg:first-child {
  position: absolute;
  left: 17px;
  top: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: #69707d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.portal-login__select-wrap select {
  width: 100%;
  min-height: 58px;
  appearance: none;
  padding: 0 52px 0 52px;
  border: 1px solid #d9dde4;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: #151820;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.portal-login__select-wrap select:hover {
  border-color: #bec4cd;
}

.portal-login__select-wrap select:focus-visible {
  border-color: #17191e;
  box-shadow: 0 0 0 4px rgba(17, 19, 24, 0.1), 0 12px 30px rgba(15, 23, 42, 0.08);
}

.portal-login__select-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #555c68;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.portal-login__selection {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e0e3e8;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-login__selection:not([hidden]) {
  display: grid;
}

.portal-login__selection-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #111318;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
}

.portal-login__selection strong,
.portal-login__selection small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-login__selection strong {
  color: #20242c;
  font-size: var(--portal-type-body);
}

.portal-login__selection small {
  margin-top: 3px;
  color: #777e89;
  font-size: var(--portal-type-caption);
}

.portal-login__error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 10px;
  background: rgba(254, 226, 226, 0.72);
  color: #991b1b;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.portal-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 4px;
  border: 1px solid #050505;
  border-radius: 12px;
  background: #050505;
  color: #ffffff;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.portal-login__submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login__submit:hover {
  transform: translateY(-1px);
  background: #202124;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.portal-login__submit:focus-visible {
  outline: 3px solid rgba(17, 19, 24, 0.28);
  outline-offset: 3px;
}

.portal-login__submit:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.portal-login__test-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #6d7480;
}

.portal-login__test-note > span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22a75a;
  box-shadow: 0 0 0 5px rgba(34, 167, 90, 0.1);
}

.portal-login__test-note p,
.portal-login__test-note strong,
.portal-login__test-note small {
  display: block;
  margin: 0;
}

.portal-login__test-note strong {
  color: #3d434d;
  font-size: var(--portal-type-body);
}

.portal-login__test-note small {
  margin-top: 2px;
  font-size: var(--portal-type-caption);
}

.portal-login__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #858b95;
  font-size: var(--portal-type-body);
}

.portal-login__visual {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(38px, 5vw, 72px);
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(255, 255, 255, 0.08), transparent 30%),
    #050506;
  color: #ffffff;
}

.portal-login__visual::before,
.portal-login__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.portal-login__visual::before {
  width: 760px;
  height: 280px;
  left: -190px;
  top: 34%;
}

.portal-login__visual::after {
  width: 600px;
  height: 210px;
  right: -290px;
  top: 25%;
}

.portal-login__visual-copy,
.portal-login__route-card {
  position: relative;
  z-index: 1;
}

.portal-login__visual-copy span {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-login__visual-copy strong {
  display: block;
  max-width: 520px;
  font-size: var(--portal-type-hero);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.portal-login__route-card {
  align-self: flex-end;
  width: min(100%, 420px);
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.portal-login__route-card > span,
.portal-login__route-card > small {
  color: rgba(255, 255, 255, 0.54);
  font-size: var(--portal-type-caption);
}

.portal-login__route-card > div {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.portal-login__route-card strong {
  font-size: var(--portal-type-section);
}

.portal-login__route-card b {
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.portal-login__route-card i {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .portal-login {
  --login-ink: #f5f6f8;
  --login-muted: #9ca3af;
  background: #111214;
}

html[data-theme="dark"] .portal-login__brand,
html[data-theme="dark"] .portal-login__card h1,
html[data-theme="dark"] .portal-login__form > label,
html[data-theme="dark"] .portal-login__selection strong,
html[data-theme="dark"] .portal-login__test-note strong {
  color: #f5f6f8;
}

html[data-theme="dark"] .portal-login__eyebrow,
html[data-theme="dark"] .portal-login__selection small,
html[data-theme="dark"] .portal-login__test-note {
  color: #9299a5;
}

html[data-theme="dark"] .portal-login__select-wrap select {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1a1c20;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .portal-login__select-wrap select:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .portal-login__selection {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .portal-login__selection-avatar {
  background: #f5f6f8;
  color: #111318;
}

html[data-theme="dark"] .portal-login__footer {
  color: #737985;
}

@media (max-width: 920px) {
  .portal-login {
    grid-template-columns: 1fr;
  }

  .portal-login__visual {
    display: none;
  }

  .portal-login__stage {
    min-height: 100vh;
  }

  .portal-login__card {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .portal-login__stage {
    padding: 24px 20px;
  }

  .portal-login__brand img {
    width: 96px;
  }

  .portal-login__card {
    margin-block: 36px;
  }

  .portal-login__footer {
    display: grid;
  }
}

.portal-shell {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
  background: var(--app-page-bg);
}

.portal-sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: var(--app-sidebar-width);
  height: 100vh;
  padding: 26px 14px 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.08), transparent 24%),
    #030303;
  color: #ffffff;
  overflow: hidden auto;
}

.portal-sidebar-backdrop,
.portal-sidebar-toggle {
  display: none;
}

.portal-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  background: rgba(3, 7, 18, 0.46);
  backdrop-filter: blur(2px);
}

.portal-sidebar-toggle {
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.portal-sidebar-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.portal-sidebar-toggle:hover,
.portal-sidebar-toggle:focus-visible {
  outline: none;
  border-color: rgba(17, 24, 39, 0.18);
  background: #ffffff;
}

.portal-sidebar__brand {
  display: grid;
  justify-items: start;
  padding: 4px 10px 36px;
}

.portal-sidebar__logo {
  width: 136px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.36));
}

.portal-sidebar__nav,
.portal-sidebar__footer {
  display: grid;
  gap: 8px;
}

.portal-sidebar__footer {
  position: relative;
  align-self: end;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-sidebar__item,
.portal-sidebar__language,
.portal-sidebar__account {
  display: grid;
  align-items: center;
  min-width: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.portal-sidebar__item {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.portal-sidebar__language {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 46px;
  padding: 0 14px;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.portal-sidebar__account {
  grid-template-columns: 42px minmax(0, 1fr);
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  gap: 12px;
  min-height: 58px;
  padding: 8px 6px;
  margin-top: 0;
}

.portal-sidebar__account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #1b1c1f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.portal-sidebar__account-menu[hidden] {
  display: none;
}

.portal-sidebar__account-menu > * {
  display: block;
  padding: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: var(--portal-type-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.portal-sidebar__account-menu > *:hover,
.portal-sidebar__account-menu > *:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

.portal-sidebar__item svg,
.portal-sidebar__language svg,
.portal-sidebar__account svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-sidebar__item:hover,
.portal-sidebar__item:focus-visible,
.portal-sidebar__language:hover,
.portal-sidebar__language:focus-visible,
.portal-sidebar__account:hover,
.portal-sidebar__account:focus-visible {
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.portal-sidebar__item.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.portal-sidebar__item.is-disabled {
  opacity: 0.52;
  pointer-events: none;
}

.portal-sidebar__avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: #080808;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portal-sidebar__account strong,
.portal-sidebar__account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-sidebar__account strong {
  color: #ffffff;
  font-size: var(--portal-type-body);
  line-height: 1.2;
}

.portal-sidebar__account small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.54);
  font-size: var(--portal-type-caption);
  font-weight: 600;
}

.portal-sidebar__language strong {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 700;
}

.portal-topbar {
  grid-column: 2;
  grid-row: 1;
  min-height: 76px;
  padding: 18px 32px 10px;
  border-radius: 0;
  background: transparent;
  color: #111827;
}

.portal-topbar .portal-brand,
.portal-topbar .portal-topbar__link {
  display: none;
}

.portal-topbar__utility {
  width: 100%;
  justify-content: flex-end;
}

.portal-topbar__controls {
  gap: 12px;
  margin-left: auto;
}

.portal-topbar__badge,
.portal-language,
.portal-language select,
.portal-theme-toggle,
.portal-topbar__icon-button {
  min-height: 38px;
  border-radius: 10px;
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.portal-language select {
  padding: 0 34px 0 14px;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.portal-theme-toggle {
  min-width: 78px;
}

.portal-theme-toggle__track {
  background: rgba(17, 24, 39, 0.12);
}

.portal-theme-toggle__thumb {
  background: #111827;
}

.portal-theme-toggle__icon {
  color: #111827;
}

.portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun,
.portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon {
  color: #111827;
}

.portal-topbar__icon-button svg {
  stroke: currentColor;
}

.portal-dashboard {
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 0 32px 34px;
  border-radius: 0;
  background: var(--app-page-bg);
}

.dashboard-view {
  gap: 22px;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  gap: 28px;
  align-items: end;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-hero__copy {
  align-content: end;
}

.dashboard-hero__copy h1 {
  font-size: var(--portal-type-page);
  line-height: 0.98;
  letter-spacing: -0.065em;
  color: #050505;
}

.dashboard-hero__copy p {
  margin-top: 10px;
  color: #374151;
  font-size: var(--portal-type-body);
}

.dashboard-hero__tools {
  align-self: start;
  justify-items: end;
  gap: 12px;
}

.dashboard-filter-group {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.dashboard-hero__logo-card {
  width: min(100%, 300px);
  min-height: 84px;
  padding: 14px 22px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-card-shadow-soft);
}

.dashboard-hero__logo-card img {
  max-height: 62px;
  filter: none;
}

.dashboard-top-widgets,
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-top-widget,
.dashboard-kpi-card {
  min-height: 166px;
  padding: 20px;
  border-radius: var(--app-radius-lg);
  background: #ffffff;
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-card-shadow-soft);
  overflow: hidden;
}

.dashboard-top-widget {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 16px;
  align-content: start;
}

.dashboard-top-widget::before {
  content: "";
  grid-row: 1 / span 3;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #050505);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.14);
}

.dashboard-top-widget:nth-child(2)::before {
  background: linear-gradient(135deg, #ff9f2f, #ff6b00);
}

.dashboard-top-widget:nth-child(3)::before {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}

.dashboard-top-widget:nth-child(4)::before {
  background: linear-gradient(135deg, #22c55e, #079455);
}

.dashboard-top-widget > span,
.dashboard-top-widget strong,
.dashboard-top-widget small {
  grid-column: 2;
  padding-right: 0;
}

.dashboard-top-widget > span {
  color: #4b5563;
  font-size: var(--portal-type-body);
  letter-spacing: 0.045em;
}

.dashboard-top-widget strong {
  margin-top: 2px;
  color: #050505;
  font-size: var(--portal-type-page);
  letter-spacing: -0.055em;
}

.dashboard-top-widget small {
  margin-top: 2px;
  color: #5f6673;
  font-size: var(--portal-type-caption);
  line-height: 1.35;
}

.dashboard-top-widget::after {
  content: "";
  grid-column: 1 / -1;
  align-self: end;
  width: 58%;
  height: 24px;
  margin-top: 12px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(18, 103, 255, 0.12), rgba(18, 103, 255, 0)),
    linear-gradient(135deg, transparent 0 20%, rgba(18, 103, 255, 0.95) 21% 24%, transparent 25% 38%, rgba(18, 103, 255, 0.88) 39% 43%, transparent 44% 58%, rgba(18, 103, 255, 0.95) 59% 63%, transparent 64%);
  opacity: 0.95;
}

.dashboard-top-widget:nth-child(2)::after {
  background:
    linear-gradient(135deg, rgba(255, 138, 22, 0.14), rgba(255, 138, 22, 0)),
    linear-gradient(135deg, transparent 0 18%, var(--app-orange) 19% 23%, transparent 24% 42%, var(--app-orange) 43% 47%, transparent 48% 62%, var(--app-orange) 63% 67%, transparent 68%);
}

.dashboard-top-widget:nth-child(3)::after {
  background:
    linear-gradient(135deg, rgba(143, 75, 199, 0.14), rgba(143, 75, 199, 0)),
    linear-gradient(135deg, transparent 0 18%, var(--app-purple) 19% 23%, transparent 24% 42%, var(--app-purple) 43% 47%, transparent 48% 62%, var(--app-purple) 63% 67%, transparent 68%);
}

.dashboard-top-widget:nth-child(4)::after {
  background:
    linear-gradient(135deg, rgba(34, 183, 104, 0.14), rgba(34, 183, 104, 0)),
    linear-gradient(135deg, transparent 0 18%, var(--app-green) 19% 23%, transparent 24% 42%, var(--app-green) 43% 47%, transparent 48% 62%, var(--app-green) 63% 67%, transparent 68%);
}

.dashboard-panel--chart:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 103, 255, 0.16);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.dashboard-content-toolbar {
  min-height: 0;
  margin-top: -12px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel.dashboard-panel--chart-size-landscape,
.dashboard-panel.dashboard-panel--chart-size-portrait {
  grid-column: span 1;
  --dashboard-card-height: 286px;
}

.dashboard-panel--chart {
  min-height: 286px;
  padding: 20px;
  gap: 12px;
  border-radius: var(--app-radius-lg);
  background: #ffffff;
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-card-shadow-soft);
  overflow: hidden;
}

.dashboard-panel__header--widget {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-panel__eyebrow {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(17, 24, 39, 0.07);
  color: #111827;
  font-size: var(--portal-type-caption);
  letter-spacing: 0.05em;
}

.dashboard-panel__header--widget h3 {
  margin-top: 8px;
  color: #050505;
  font-size: var(--portal-type-subheading);
  line-height: 1.15;
}

.dashboard-panel__copy {
  color: #4b5563;
  font-size: var(--portal-type-body);
}

.dashboard-panel__metric-stack {
  padding: 8px 11px;
  border-radius: 8px;
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.08);
}

.dashboard-panel__metric-label {
  color: #64748b;
  font-size: var(--portal-type-body);
}

.dashboard-panel__hero-metric {
  color: #050505;
  font-size: var(--portal-type-body);
}

.dashboard-chart-widget,
.dashboard-chart-widget__visual {
  min-height: 0;
}

.dashboard-chart-widget--ranking {
  justify-content: stretch;
}

.dashboard-ranking {
  gap: 12px;
}

.dashboard-ranking__row {
  grid-template-columns: 24px minmax(130px, 1fr) minmax(140px, 0.9fr) auto;
  min-height: 44px;
}

.dashboard-ranking__index {
  color: #050505;
  font-weight: 700;
}

.dashboard-ranking__content strong {
  color: #111827;
}

.dashboard-ranking__bar {
  height: 8px;
  background: rgba(17, 24, 39, 0.06);
}

.dashboard-ranking__bar span {
  background: linear-gradient(90deg, #0b2a7a, #1267ff);
}

.dashboard-donut {
  width: 126px;
  min-width: 126px;
  background: var(--dashboard-donut-gradient);
}

.dashboard-donut::after {
  inset: 18px;
}

.dashboard-legend__row {
  min-height: 32px;
}

.dashboard-legend__row span {
  color: #111827;
}

.dashboard-line-chart,
.dashboard-bars {
  color: #111827;
}

.dashboard-line-chart__axis,
.dashboard-line-chart__grid,
.dashboard-bars__axis {
  opacity: 0.4;
}

.dashboard-bars__bar {
  border-radius: 3px 3px 0 0;
}

.dashboard-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: var(--app-radius-md);
  background: #ffffff;
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-card-shadow-soft);
}

.dashboard-support-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #050505);
  color: #ffffff;
}

.dashboard-support-card__icon svg,
.dashboard-support-card__action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-support-card strong {
  display: block;
  color: #050505;
  font-size: var(--portal-type-body);
  letter-spacing: -0.02em;
}

.dashboard-support-card p {
  margin: 2px 0 0;
  color: #4b5563;
  font-size: var(--portal-type-body);
}

.dashboard-support-card__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #050505;
  color: #ffffff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(5, 5, 5, 0.18);
}

.settings-view,
.portal-main {
  max-width: none;
}

.quotations-header,
.settings-hero,
.quotations-table-card,
.settings-panel,
.settings-sidebar__card,
.request-card,
.overview-card {
  border-radius: var(--app-radius-lg);
  border-color: var(--app-card-border);
  box-shadow: var(--app-card-shadow-soft);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .portal-shell,
html[data-theme="dark"] .portal-dashboard {
  background: #111214;
}

html[data-theme="dark"] .portal-topbar {
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-hero__copy::before,
html[data-theme="dark"] .dashboard-hero__copy h1,
html[data-theme="dark"] .dashboard-panel__header--widget h3,
html[data-theme="dark"] .dashboard-panel__hero-metric,
html[data-theme="dark"] .dashboard-top-widget strong,
html[data-theme="dark"] .dashboard-ranking__content strong,
html[data-theme="dark"] .dashboard-support-card strong {
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-hero__copy p,
html[data-theme="dark"] .dashboard-panel__copy,
html[data-theme="dark"] .dashboard-support-card p {
  color: rgba(226, 232, 240, 0.72);
}

html[data-theme="dark"] .dashboard-top-widget,
html[data-theme="dark"] .dashboard-panel--chart,
html[data-theme="dark"] .dashboard-hero__logo-card,
html[data-theme="dark"] .dashboard-support-card {
  background: #191b1f;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(calc(-100% - 18px));
    transition: transform 180ms ease;
    box-shadow: 18px 0 44px rgba(2, 6, 23, 0.22);
  }

  .portal-shell.is-sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .portal-shell.is-sidebar-open .portal-sidebar-backdrop {
    display: block;
  }

  .portal-sidebar-toggle {
    display: inline-grid;
  }

  .portal-topbar,
  .portal-dashboard {
    grid-column: 1;
  }

  .portal-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding-inline: 20px;
  }

  .portal-topbar .portal-brand {
    display: inline-flex;
  }

  .portal-topbar .portal-brand__logo {
    height: 46px;
  }

  .portal-dashboard {
    padding-inline: 20px;
  }
}

/* Shipments module */
.shipments-view,
.shipments-root,
.shipments-page {
  width: 100%;
  min-width: 0;
}

.shipments-view {
  color: #17191f;
}

.shipments-page {
  --shipment-border: #e2e6ec;
  --shipment-muted: #697180;
  --shipment-surface: #fff;
  --shipment-page: #f8f9fb;
  --shipment-shadow: 0 8px 26px rgba(27, 35, 52, 0.035);
  display: grid;
  gap: 12px;
  padding: 0;
  font-size: var(--portal-type-body);
}

.shipment-page-header,
.shipment-detail-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--app-page-header-min-height, 115px);
  padding: 38px 0 0 25px;
  gap: 24px;
}

.shipment-page-header h1,
.shipment-detail-header h1 {
  margin: 0;
  color: inherit;
  font-size: var(--portal-type-page);
  font-weight: 700;
  line-height: var(--app-page-title-line-height, .98);
  letter-spacing: var(--app-page-title-letter-spacing, -.065em);
}

.shipment-page-header p,
.shipment-detail-header p {
  max-width: 54ch;
  margin: 10px 0 0;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
  line-height: var(--app-page-subtitle-line-height, 1.55);
}

.shipment-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
}

.shipment-page-header > .shipment-page-actions {
  margin-top: 0;
}

.shipment-button,
.shipment-open-button,
.shipment-text-button,
.shipment-view-all,
.shipment-icon-button,
.shipment-page-actions button {
  font: inherit;
}

.shipment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--app-header-action-height, 42px);
  padding: 0 17px;
  border: 1px solid var(--shipment-border);
  border-radius: 8px;
  background: var(--shipment-surface);
  color: #17191f;
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.shipment-button:hover,
.shipment-open-button:hover {
  border-color: #aeb6c2;
  background: #f8f9fb;
}

.shipment-button:active,
.shipment-open-button:active {
  transform: translateY(1px);
}

.shipment-button svg,
.shipment-open-button svg,
.shipment-icon-button svg,
.shipment-view-all svg,
.shipment-mode svg,
.shipment-doc-count svg,
.shipment-contact a svg,
.shipment-support-banner svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shipment-button--primary {
  border-color: #050505;
  background: #050505;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
}

.shipment-button--primary:hover {
  border-color: #1a1a1a;
  background: #1a1a1a;
}

.shipment-date-control,
.shipment-menu-cell {
  position: relative;
}

.shipment-date-control .shipment-button {
  min-width: 218px;
  justify-content: flex-start;
}

.shipment-date-control .shipment-button::after {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.shipment-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 232px;
  padding: 7px;
  border: 1px solid var(--shipment-border);
  border-radius: 10px;
  background: var(--shipment-surface);
  box-shadow: 0 16px 45px rgba(27, 35, 52, .16);
}

.shipment-popover button,
.shipment-row-menu button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shipment-popover button:hover,
.shipment-row-menu button:hover {
  background: #f2f5f8;
}

.shipment-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.shipment-kpi-card,
.shipment-table-card,
.shipment-support-banner,
.shipment-summary-card,
.shipment-milestone-card,
.shipment-detail-card,
.shipment-detail-side-card,
.shipment-filter-panel,
.shipment-tab-empty {
  border: 1px solid var(--shipment-border);
  border-radius: var(--app-card-radius, 12px);
  background: var(--shipment-surface);
  box-shadow: var(--shipment-shadow);
}

.shipment-kpi-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr 34px;
  gap: 7px 12px;
  min-height: 162px;
  padding: 18px 14px 12px;
  overflow: hidden;
}

.shipment-icon-tile,
.shipment-mini-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
}

.shipment-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 11%, transparent);
}

.shipment-icon-tile svg,
.shipment-mini-icon svg,
.shipment-checkpoint > span svg,
.shipment-milestone > span svg,
.shipment-update > i svg,
.shipment-document-warning > svg,
.shipment-related > button > svg,
.shipment-tab-empty > span svg,
.shipment-empty-state > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shipment-kpi-card > div:nth-child(2) {
  min-width: 0;
}

.shipment-kpi-card > div > span {
  display: block;
  min-height: 30px;
  color: #30343c;
  font-size: var(--portal-type-caption);
  font-weight: 600;
  line-height: 1.25;
}

.shipment-kpi-card strong {
  display: block;
  margin-top: 3px;
  color: #050505;
  font-size: var(--portal-type-metric);
  line-height: 1;
}

.shipment-kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--shipment-muted);
  font-size: var(--portal-type-caption);
  white-space: nowrap;
}

.shipment-tone-blue { color: #1267ff; }
.shipment-tone-green { color: #0b9b52; }
.shipment-tone-purple { color: #8735e7; }
.shipment-tone-orange { color: #ff7417; }
.shipment-tone-teal { color: #0aa79d; }
.shipment-tone-yellow { color: #f5a400; }
.shipment-tone-red { color: #ef3340; }
.shipment-tone-neutral { color: #727a87; }

.shipment-sparkline {
  grid-column: 1 / -1;
  width: 100%;
  height: 34px;
  overflow: visible;
}

.shipment-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.shipment-sparkline circle {
  fill: currentColor;
  stroke: var(--shipment-surface);
  stroke-width: .45;
  vector-effect: non-scaling-stroke;
}

.shipment-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
}

.shipment-filter-panel label,
.shipment-modal label {
  display: grid;
  gap: 6px;
  color: #555e6c;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.shipment-filter-panel input,
.shipment-filter-panel select,
.shipment-modal select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--shipment-border);
  border-radius: 8px;
  outline: 0;
  background: var(--shipment-surface);
  color: inherit;
  font: inherit;
}

.shipment-filter-panel input:focus,
.shipment-filter-panel select:focus,
.shipment-modal select:focus {
  border-color: #1267ff;
  box-shadow: 0 0 0 3px rgba(18, 103, 255, .12);
}

.shipment-text-button {
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #1267ff;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}

.shipment-overview-content {
  width: 100%;
  min-width: 0;
}

.shipment-overview-content > .shipment-table-card {
  width: 100%;
}

.shipment-table-card {
  min-width: 0;
  padding: 20px 16px 0;
  overflow: hidden;
}

.shipment-table-card > h2,
.shipment-detail-card > h2,
.shipment-detail-side-card > h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--portal-type-subheading);
  line-height: 1.25;
}

.shipment-table-scroll {
  max-width: 100%;
  margin-top: 15px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.shipment-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: collapse;
  color: #30343c;
  font-size: var(--portal-type-body);
  white-space: nowrap;
}

.shipment-col-number { width: 9%; }
.shipment-col-quotation { width: 9%; }
.shipment-col-route { width: 9%; }
.shipment-col-mode { width: 11%; }
.shipment-col-status { width: 10%; }
.shipment-col-etd { width: 9%; }
.shipment-col-eta { width: 9%; }
.shipment-col-progress { width: 17%; }
.shipment-col-docs { width: 6%; }
.shipment-col-action { width: 9%; }
.shipment-col-menu { width: 2%; }

.shipment-table th {
  height: 34px;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--shipment-border);
  color: #525b69;
  font-size: var(--portal-type-caption);
  font-weight: 600;
  text-align: left;
}

.shipment-table td {
  height: 47px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f3;
  transition: background-color .16s ease;
}

.shipment-table td:not(:last-child) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.shipment-table tr[data-shipment-row] {
  cursor: pointer;
}

.shipment-table tr[data-shipment-row]:hover td,
.shipment-table tr[data-shipment-row]:focus-visible td {
  background: #f7f9fb;
}

.shipment-table tr[data-shipment-row]:focus-visible {
  outline: 2px solid #1267ff;
  outline-offset: -2px;
}

.shipment-table td:nth-child(3) {
  display: table-cell;
}

.shipment-table td:nth-child(3) span {
  margin: 0 5px;
  color: #8a919d;
}

.shipment-table th:nth-child(10),
.shipment-table td:nth-child(10) {
  text-align: right;
}

.shipment-table th:last-child,
.shipment-table td:last-child {
  padding-inline: 2px;
  text-align: center;
}

.shipment-mode,
.shipment-doc-count {
  display: inline-flex;
  align-items: center;
}

.shipment-mode {
  gap: 10px;
  white-space: nowrap;
}

.shipment-mode .shipment-mode-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  overflow: visible;
  color: currentColor;
  stroke-width: 2;
  transition: color 150ms ease;
}

.shipment-mode > span {
  min-width: 0;
}

.shipment-doc-count {
  gap: 6px;
}

.shipment-doc-count svg {
  width: 14px;
  height: 14px;
}

.shipment-table tr[data-shipment-row]:hover .shipment-mode-icon,
.shipment-table tr[data-shipment-row]:focus-visible .shipment-mode-icon {
  color: #111318;
}

.shipment-status,
.shipment-document-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
}

.shipment-status-in-transit { background: #e8f0ff; color: #1267df; }
.shipment-status-preparing { background: #fff1db; color: #d06b00; }
.shipment-status-pending-info { background: #fff0e2; color: #e56a12; }
.shipment-status-on-hold { background: #eff1f3; color: #5e6672; }
.shipment-status-delivered { background: #e3f7ed; color: #078747; }
.shipment-status-customs-hold { background: #fff0df; color: #d85e00; }
.shipment-status-cancelled { background: #ffe9eb; color: #da2531; }

.shipment-progress {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 34px;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.shipment-progress > span {
  height: 4px;
  border-radius: 999px;
  background: #e8ebef;
  overflow: hidden;
}

.shipment-progress > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.shipment-progress-blue { background: #1267ff; }
.shipment-progress-green { background: #059447; }
.shipment-progress-orange { background: #ff7a11; }
.shipment-progress-neutral { background: #9da5b0; }

.shipment-progress b {
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.shipment-open-button {
  min-height: 30px;
  min-width: 96px;
  padding: 0 12px;
  border: 1px solid var(--shipment-border);
  border-radius: 7px;
  background: var(--shipment-surface);
  color: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.shipment-icon-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.shipment-icon-button:hover {
  background: #eff2f5;
}

.shipment-icon-button svg {
  width: 17px;
  height: 17px;
}

.shipment-row-menu {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 15;
  width: 150px;
  padding: 6px;
  border: 1px solid var(--shipment-border);
  border-radius: 9px;
  background: var(--shipment-surface);
  box-shadow: 0 14px 35px rgba(20, 27, 40, .16);
}

.shipment-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  color: #17191f;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}

.shipment-view-all svg {
  width: 15px;
  height: 15px;
}

.shipment-table-footer {
  min-height: 42px;
  padding: 7px 12px;
  border-top: 1px solid var(--shipment-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-pagination {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.shipment-pagination strong {
  color: inherit;
  font-weight: 600;
}

.shipment-pagination button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--shipment-border);
  border-radius: 7px;
  background: var(--shipment-surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.shipment-pagination button:hover:not(:disabled) {
  color: var(--shipment-text);
  border-color: #aeb6c2;
}

.shipment-pagination button:disabled {
  cursor: default;
  opacity: .4;
}

.shipment-detail-aside {
  display: grid;
  gap: 12px;
}

.shipment-detail-side-card {
  min-width: 0;
  padding: 15px;
}

.shipment-detail-side-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.shipment-detail-side-card header button {
  border: 0;
  background: transparent;
  color: var(--shipment-muted);
  font: inherit;
  font-size: var(--portal-type-body);
  cursor: pointer;
}

.shipment-next-action {
  display: grid;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.shipment-next-action:last-child {
  border-bottom: 0;
}

.shipment-next-action:hover,
.shipment-related > button:hover {
  background: #f8f9fb;
}

.shipment-mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.shipment-mini-icon svg {
  width: 17px;
  height: 17px;
}

.shipment-next-action strong {
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.shipment-next-action small {
  color: var(--shipment-muted);
  font-size: var(--portal-type-caption);
}

.shipment-next-action b {
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
}

.shipment-label-blue { color: #1267ff; }
.shipment-label-green { color: #078747; }
.shipment-label-purple { color: #8735e7; }
.shipment-label-orange { color: #ef7415; }
.shipment-label-red { color: #e93440; }
.shipment-label-neutral { color: #7c8490; }

.shipment-support-banner {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 12px 18px;
}

.shipment-support-banner > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1267df;
  color: #fff;
}

.shipment-support-banner h2 {
  margin: 0;
  font-size: var(--portal-type-section);
}

.shipment-support-banner p {
  margin: 4px 0 0;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-support-banner .shipment-button {
  min-width: 180px;
}

.shipment-empty-state,
.shipment-loading-state,
.shipment-tab-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
  padding: 36px;
  color: var(--shipment-muted);
  text-align: center;
}

.shipment-empty-state > svg,
.shipment-tab-empty > span {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  color: #1267ff;
}

.shipment-empty-state strong,
.shipment-empty-state h1,
.shipment-tab-empty h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--portal-type-page);
}

.shipment-empty-state span,
.shipment-empty-state p,
.shipment-tab-empty p {
  margin: 7px 0 14px;
}

.shipment-loading-state {
  min-height: 420px;
}

.shipment-loading-state > span {
  width: 32px;
  height: 32px;
  border: 3px solid #dfe5ee;
  border-top-color: #1267ff;
  border-radius: 50%;
  animation: shipment-spin .75s linear infinite;
}

@keyframes shipment-spin { to { transform: rotate(360deg); } }

.shipment-error-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  margin-top: 15px;
  padding: 18px;
  border: 1px solid #ffc8cc;
  border-radius: 9px;
  background: #fff5f5;
  color: #b7222d;
}

.shipment-error-state button,
.shipment-empty-state button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.shipment-detail-header {
  min-height: 105px;
  padding-top: 16px;
}

.shipment-detail-header > div:first-child > nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  margin-bottom: 11px;
  color: #5f6774;
  font-size: var(--portal-type-body);
}

.shipment-detail-header nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.shipment-detail-header nav button:hover {
  color: #1267ff;
}

.shipment-detail-header h1 {
  font-size: var(--portal-type-page);
  letter-spacing: -.04em;
}

.shipment-detail-header p {
  margin-top: 7px;
  font-size: var(--portal-type-body);
}

.shipment-detail-header .shipment-page-actions {
  margin-top: 28px;
}

.shipment-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  align-items: start;
  gap: 12px;
}

.shipment-detail-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shipment-summary-card {
  padding: 16px;
}

.shipment-summary-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  min-height: 54px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--shipment-border);
}

.shipment-summary-top > div,
.shipment-summary-facts > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.shipment-summary-top span,
.shipment-summary-facts span {
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-summary-top strong {
  font-size: var(--portal-type-subheading);
}

.shipment-summary-top strong i {
  margin: 0 7px;
  font-style: normal;
  font-weight: 500;
}

.shipment-summary-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shipment-summary-mode svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.shipment-summary-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 13px;
}

.shipment-summary-facts strong {
  font-size: var(--portal-type-body);
  line-height: 1.25;
}

.shipment-milestone-card {
  position: relative;
  z-index: 3;
  padding: 18px 20px 14px;
  overflow: visible;
}

.shipment-status-milestones {
  padding: 0;
  overflow: hidden;
}

.shipment-status-milestones > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--shipment-border);
}

.shipment-status-milestones > header > div {
  display: grid;
  gap: 3px;
}

.shipment-status-milestones > header span {
  color: #18713f;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shipment-status-milestones > header h2 {
  margin: 0;
  font-size: var(--portal-type-section);
}

.shipment-status-milestones > header small {
  color: var(--shipment-muted);
  font-size: var(--portal-type-caption);
}

.shipment-status-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.shipment-status-milestone {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--shipment-border);
  border-radius: 10px;
  background: var(--shipment-surface);
}

.shipment-status-milestone > span {
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-status-milestone > strong {
  overflow-wrap: anywhere;
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.shipment-status-milestone > small {
  margin-top: auto;
  color: var(--shipment-muted);
  font-size: var(--portal-type-caption);
  line-height: 1.35;
}

.shipment-timeline-content {
  display: grid;
  gap: 12px;
  max-width: 1100px;
}

html[data-theme="dark"] .shipment-status-milestones > header span {
  color: #a9ceb4;
}

.shipment-milestone-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.shipment-milestone-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(104px, 1fr));
  min-width: 660px;
}

.shipment-milestone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: help;
}

.shipment-milestone-dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c7ccd3;
  color: #fff;
}

.shipment-milestone-dot svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.shipment-milestone-done > .shipment-milestone-dot { background: #078747; }
.shipment-milestone-current > .shipment-milestone-dot { background: #1267df; }

.shipment-milestone > i {
  position: absolute;
  top: 11px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: #d4d8dd;
}

.shipment-milestone-done > i { background: #83d3ab; }

.shipment-milestone > strong {
  max-width: 90px;
  min-height: 28px;
  font-size: var(--portal-type-body);
  line-height: 1.2;
}

.shipment-milestone > small {
  color: var(--shipment-muted);
  font-size: var(--portal-type-caption);
}

.shipment-milestone:hover > strong,
.shipment-milestone:focus-visible > strong {
  color: var(--shipment-text);
}

.shipment-milestone:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 5px;
  border-radius: 7px;
}

.shipment-milestone-popover {
  position: fixed;
  z-index: 1200;
  display: grid;
  gap: 9px;
  width: min(292px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--shipment-border);
  border-radius: 10px;
  background: var(--shipment-surface);
  color: var(--shipment-text);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .2);
  text-align: left;
  cursor: default;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.shipment-milestone-popover.is-open {
  opacity: 1;
  transform: translateY(0);
}

.shipment-milestone-popover__eyebrow {
  color: #2563eb;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.shipment-milestone-popover > b {
  font-size: var(--portal-type-body);
  line-height: 1.25;
}

.shipment-milestone-popover__rows {
  display: grid;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--shipment-border);
}

.shipment-milestone-popover__rows > span {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.shipment-milestone-popover__rows em {
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
  font-style: normal;
  line-height: 1.35;
}

.shipment-milestone-popover__rows strong {
  max-width: none;
  min-height: 0;
  overflow-wrap: anywhere;
  color: var(--shipment-text);
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.35;
}

.shipment-milestone-popover__note {
  padding: 8px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--shipment-text) 5%, transparent);
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
  line-height: 1.4;
}

html[data-theme="dark"] .shipment-milestone-popover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .shipment-milestone-popover__eyebrow {
  color: #93c5fd;
}

@media (prefers-reduced-motion: reduce) {
  .shipment-milestone-popover {
    transition: none;
  }
}

.shipment-detail-card {
  min-width: 0;
  padding: 15px;
}

.shipment-operational-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  margin-top: 11px;
}

.shipment-operational-grid > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--shipment-border);
}

.shipment-info-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  min-height: 23px;
  font-size: var(--portal-type-body);
  line-height: 1.25;
}

.shipment-info-row > span { color: #4d5562; }
.shipment-info-row > strong { font-weight: 600; }
.shipment-info-badge { justify-self: start; padding: 3px 8px; border-radius: 6px; background: #e8f0ff; color: #1267df; }

.shipment-detail-lower {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 12px;
  min-width: 0;
}

.shipment-updates > div {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.shipment-update {
  position: relative;
  display: grid;
  grid-template-columns: 22px 105px minmax(0, 1fr);
  gap: 8px;
  min-height: 46px;
}

.shipment-update > i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: #078747;
  color: #fff;
}

.shipment-update-current > i { background: #1267df; }
.shipment-update > i svg { width: 10px; height: 10px; stroke-width: 2.3; }

.shipment-update:not(:last-child)::before {
  position: absolute;
  top: 17px;
  left: 8px;
  width: 1px;
  height: calc(100% - 5px);
  background: #cdd3db;
  content: "";
}

.shipment-update time {
  display: flex;
  justify-content: space-between;
  color: var(--shipment-muted);
  font-size: var(--portal-type-caption);
}

.shipment-update p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.shipment-update p strong { font-size: var(--portal-type-body); }
.shipment-update p small { color: var(--shipment-muted); font-size: var(--portal-type-caption); line-height: 1.3; }

.shipment-document-list {
  margin-top: 10px;
}

.shipment-document-row {
  display: grid;
  grid-template-columns: 1.25fr .86fr 1fr;
  align-items: center;
  width: 100%;
  min-height: 28px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--portal-type-body);
  text-align: left;
}

button.shipment-document-row { cursor: pointer; }
button.shipment-document-row:hover { background: #f7f9fb; }
.shipment-document-head { color: var(--shipment-muted); font-size: var(--portal-type-body); }
.shipment-document-status { min-height: 19px; padding: 0 7px; font-size: var(--portal-type-body); }
.shipment-document-uploaded { background: #e3f7ed; color: #078747; }
.shipment-document-missing { background: #fff0e2; color: #e56a12; }
.shipment-document-not-required { background: #eff1f3; color: #616976; }

.shipment-document-warning {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #ffb06e;
  border-radius: 8px;
  background: #fffaf6;
  color: #f26614;
}

.shipment-document-warning > svg { width: 22px; height: 22px; }
.shipment-document-warning > div { display: grid; gap: 4px; }
.shipment-document-warning strong { color: #24272d; font-size: var(--portal-type-body); }
.shipment-document-warning span { color: var(--shipment-muted); font-size: var(--portal-type-body); }

.shipment-next-action {
  grid-template-columns: 32px minmax(0, 1fr) auto 15px;
  gap: 8px;
  min-height: 58px;
  padding: 7px 0;
}

.shipment-next-action > span:nth-child(2) { display: grid; gap: 4px; }
.shipment-next-action > svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.shipment-contact-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0 12px;
}

.shipment-contact-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid var(--shipment-surface);
  border-radius: 50%;
  background: linear-gradient(145deg, #e7edf4, #bcc9d7);
  color: #26394d;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
}

.shipment-contact-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.shipment-contact-avatar > span { display: grid; width: 100%; height: 100%; place-items: center; }
.shipment-contact-team { display: grid; gap: 10px; margin: 12px 0; }
.shipment-contact-stack { display: flex; align-items: center; min-height: 38px; }
.shipment-contact-stack .shipment-contact-avatar { width: 38px; height: 38px; font-size: .64rem; }
.shipment-contact-stack .shipment-contact-avatar + .shipment-contact-avatar { margin-left: -9px; }
.shipment-contact-members { display: grid; gap: 7px; }
.shipment-contact-members .shipment-contact-person { margin: 0; padding: 7px; border: 1px solid var(--shipment-border); border-radius: 8px; background: color-mix(in srgb, var(--shipment-surface) 86%, var(--shipment-page)); }
.shipment-contact-members .shipment-contact-avatar { width: 34px; height: 34px; font-size: .62rem; }

.shipment-contact-person > div { display: grid; gap: 4px; }
.shipment-contact-person strong { font-size: var(--portal-type-body); }
.shipment-contact-person span { color: var(--shipment-muted); font-size: var(--portal-type-body); }

.shipment-contact > a {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0;
  color: inherit;
  font-size: var(--portal-type-body);
  text-decoration: none;
}

.shipment-contact > a:hover { color: #1267df; }
.shipment-contact > a svg { width: 15px; height: 15px; }
.shipment-contact .shipment-button { width: 100%; margin-top: 12px; }

.shipment-checkpoint {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
}

.shipment-checkpoint > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1267df;
  color: #fff;
}

.shipment-checkpoint > span svg { width: 17px; height: 17px; }
.shipment-checkpoint > div { display: grid; gap: 4px; }
.shipment-checkpoint small { color: var(--shipment-muted); font-size: var(--portal-type-caption); }
.shipment-checkpoint strong { font-size: var(--portal-type-body); }
.shipment-checkpoint > div:last-child { justify-items: end; }

.shipment-route-visual {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.shipment-route-visual > div { display: grid; gap: 4px; }
.shipment-route-visual > div:last-child { justify-items: end; }
.shipment-route-visual strong { font-size: var(--portal-type-body); }
.shipment-route-visual small { color: var(--shipment-muted); font-size: var(--portal-type-caption); }
.shipment-route-visual > span { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; color: #1267df; }
.shipment-route-visual > span i { border-top: 1px dashed #adb5c0; }
.shipment-route-visual > span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.shipment-arrival {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-arrival strong { color: inherit; }

.shipment-related > button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shipment-related > button > svg { width: 16px; height: 16px; color: #ed3340; }
.shipment-related > button strong { font-size: var(--portal-type-body); }
.shipment-related > button span { color: var(--shipment-muted); font-size: var(--portal-type-body); }

.shipment-detail-tabs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 54px;
  padding: 0 10px;
  border-bottom: 1px solid var(--shipment-border);
}

.shipment-detail-tabs button {
  position: relative;
  height: 54px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: #4f5764;
  font: inherit;
  font-size: var(--portal-type-body);
  cursor: pointer;
}

.shipment-detail-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.shipment-detail-tabs button.is-active { color: #17191f; font-weight: 700; }
.shipment-detail-tabs button.is-active::after { background: #1267ff; }

.shipment-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: min(650px, calc(100dvh - 275px));
  overflow: hidden;
  border: 1px solid var(--shipment-border);
  border-radius: 12px;
  background: var(--shipment-surface);
  box-shadow: var(--shipment-shadow);
}

.shipment-chat-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--shipment-border);
}

.shipment-chat-header-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eaf1ff;
  color: #1267df;
}

.shipment-chat-header-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.shipment-chat-header > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.shipment-chat-header h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--portal-type-section);
}

.shipment-chat-header p {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-chat-header p strong { color: inherit; }
.shipment-chat-header p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shipment-chat-contact {
  max-width: 260px;
  overflow: hidden;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipment-chat-messages {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 360px;
  max-height: min(610px, calc(100dvh - 420px));
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 86% 8%, rgba(18, 103, 223, .045), transparent 28%),
    #f8f9fb;
  scrollbar-gutter: stable;
}

.shipment-chat-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--shipment-muted);
  font-size: var(--portal-type-body);
}

.shipment-chat-date::before,
.shipment-chat-date::after {
  height: 1px;
  flex: 1;
  background: var(--shipment-border);
  content: "";
}

.shipment-chat-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 72%);
  align-items: end;
  gap: 9px;
}

.shipment-chat-message.is-own {
  grid-template-columns: minmax(0, 72%) 32px;
  justify-content: end;
}

.shipment-chat-message.is-own .shipment-chat-avatar {
  grid-column: 2;
  grid-row: 1;
}

.shipment-chat-message.is-own .shipment-chat-message-body {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  border-color: #17191f;
  background: #17191f;
  color: #fff;
}

.shipment-chat-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--shipment-border);
  border-radius: 50%;
  background: var(--shipment-surface);
  color: #3e4652;
  font-size: .55rem;
  font-weight: 700;
}

.shipment-chat-message-body {
  display: grid;
  gap: 7px;
  min-width: 120px;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--shipment-border);
  border-radius: 12px 12px 12px 3px;
  background: var(--shipment-surface);
  color: #20242b;
  box-shadow: 0 5px 16px rgba(22, 30, 42, .045);
}

.shipment-chat-message.is-own .shipment-chat-message-body { border-radius: 12px 12px 3px 12px; }

.shipment-chat-message-body header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.shipment-chat-message-body header strong { font-size: var(--portal-type-body); }
.shipment-chat-message-body header time { color: var(--shipment-muted); font-size: var(--portal-type-caption); white-space: nowrap; }
.shipment-chat-message.is-own .shipment-chat-message-body header time { color: rgba(255, 255, 255, .62); }

.shipment-chat-message-body p {
  margin: 0;
  font-size: var(--portal-type-body);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.shipment-chat-message-body > small {
  justify-self: end;
  color: rgba(255, 255, 255, .62);
  font-size: var(--portal-type-caption);
}

.shipment-chat-attachments {
  display: grid;
  gap: 6px;
}

.shipment-chat-attachments > a,
.shipment-chat-attachments > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: inherit;
  font-size: var(--portal-type-body);
  text-decoration: none;
}

.shipment-chat-attachments svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.shipment-chat-empty {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  max-width: 360px;
  gap: 8px;
  padding: 40px 20px;
  color: var(--shipment-muted);
  text-align: center;
}

.shipment-chat-empty > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  fill: none;
  stroke: #1267df;
  stroke-width: 1.6;
}

.shipment-chat-empty h3 { margin: 0; color: #272c34; font-size: var(--portal-type-subheading); }
.shipment-chat-empty p { margin: 0; font-size: var(--portal-type-body); line-height: 1.5; }

.shipment-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px;
  border-top: 1px solid var(--shipment-border);
  background: var(--shipment-surface);
}

.shipment-chat-input-wrap {
  display: flex;
  min-width: 0;
}

.shipment-chat-input-wrap textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--shipment-border);
  border-radius: 9px;
  outline: 0;
  background: #f8f9fb;
  color: #17191f;
  font: inherit;
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.shipment-chat-input-wrap textarea:focus {
  border-color: #1267df;
  box-shadow: 0 0 0 3px rgba(18, 103, 223, .12);
}

.shipment-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
  height: 44px;
  padding: 0 17px;
  border: 1px solid #17191f;
  border-radius: 9px;
  background: #17191f;
  color: #fff;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
}

.shipment-chat-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.shipment-chat-send:hover:not(:disabled) { background: #2b3038; }
.shipment-chat-send:disabled { cursor: not-allowed; opacity: .42; }
.shipment-chat-send:focus-visible { outline: 2px solid #1267ff; outline-offset: 2px; }

.shipment-chat-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(216, 42, 55, .28);
  border-radius: 7px;
  background: rgba(216, 42, 55, .07);
  color: #b51f2b;
  font-size: var(--portal-type-body);
}

.shipment-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 13px 15px;
  border: 1px solid #2e3743;
  border-radius: 10px;
  background: #111418;
  color: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
  font-size: var(--portal-type-body);
}

.shipment-toast button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: var(--portal-type-body);
  cursor: pointer;
}

.shipment-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.shipment-modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 10, 14, .66);
  backdrop-filter: blur(3px);
}

.shipment-modal > section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid var(--shipment-border);
  border-radius: 14px;
  background: var(--shipment-surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.shipment-modal header,
.shipment-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shipment-modal header > div { display: grid; gap: 5px; }
.shipment-modal header span { color: #1267df; font-size: var(--portal-type-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.shipment-modal h2 { margin: 0; font-size: var(--portal-type-section); }
.shipment-modal footer { justify-content: flex-end; }

.shipment-upload-drop {
  position: relative;
  display: grid !important;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px dashed #b5bec9;
  border-radius: 10px;
  color: var(--shipment-muted) !important;
  text-align: center;
  cursor: pointer;
}

.shipment-upload-drop:hover { border-color: #1267ff; background: #f7faff; }
.shipment-upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shipment-upload-drop > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e9f1ff; color: #1267df; }
.shipment-upload-drop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shipment-upload-drop strong { color: #252930; font-size: var(--portal-type-body); }
.shipment-upload-drop small { font-size: var(--portal-type-caption); }

.shipment-button:focus-visible,
.shipment-open-button:focus-visible,
.shipment-icon-button:focus-visible,
.shipment-view-all:focus-visible,
.shipment-next-action:focus-visible,
.shipment-related button:focus-visible,
.shipment-detail-tabs button:focus-visible,
.shipment-table tr:focus-visible,
.shipment-detail-header nav button:focus-visible {
  outline: 2px solid #1267ff;
  outline-offset: 2px;
}

html[data-theme="dark"] .shipments-view {
  color: #f3f4f6;
}

html[data-theme="dark"] .shipments-page {
  --shipment-border: rgba(255, 255, 255, .12);
  --shipment-muted: #9ca4b1;
  --shipment-surface: #070707;
  --shipment-page: #000;
  --shipment-shadow: none;
}

html[data-theme="dark"] .shipment-kpi-card > div > span,
html[data-theme="dark"] .shipment-table-card > h2,
html[data-theme="dark"] .shipment-detail-card > h2,
html[data-theme="dark"] .shipment-detail-side-card > h2,
html[data-theme="dark"] .shipment-support-banner h2,
html[data-theme="dark"] .shipment-empty-state strong,
html[data-theme="dark"] .shipment-empty-state h1,
html[data-theme="dark"] .shipment-tab-empty h2,
html[data-theme="dark"] .shipment-detail-tabs button.is-active,
html[data-theme="dark"] .shipment-document-warning strong,
html[data-theme="dark"] .shipment-upload-drop strong {
  color: #f3f4f6;
}

html[data-theme="dark"] .shipment-kpi-card strong,
html[data-theme="dark"] .shipment-view-all,
html[data-theme="dark"] .shipment-button {
  color: #f3f4f6;
}

html[data-theme="dark"] .shipment-button--primary {
  border-color: #f3f4f6;
  background: #f3f4f6;
  color: #070707;
  box-shadow: none;
}

html[data-theme="dark"] .shipment-button:hover,
html[data-theme="dark"] .shipment-open-button:hover,
html[data-theme="dark"] .shipment-icon-button:hover,
html[data-theme="dark"] .shipment-next-action:hover,
html[data-theme="dark"] .shipment-related > button:hover,
html[data-theme="dark"] button.shipment-document-row:hover,
html[data-theme="dark"] .shipment-table tr[data-shipment-row]:hover td,
html[data-theme="dark"] .shipment-table tr[data-shipment-row]:focus-visible td,
html[data-theme="dark"] .shipment-popover button:hover,
html[data-theme="dark"] .shipment-row-menu button:hover {
  background: #101010;
}

html[data-theme="dark"] .shipment-table tr[data-shipment-row]:hover .shipment-mode-icon,
html[data-theme="dark"] .shipment-table tr[data-shipment-row]:focus-visible .shipment-mode-icon {
  color: #ffffff;
}

html[data-theme="dark"] .shipment-table td,
html[data-theme="dark"] .shipment-next-action {
  border-color: rgba(255, 255, 255, .09);
}

html[data-theme="dark"] .shipment-table,
html[data-theme="dark"] .shipment-filter-panel input,
html[data-theme="dark"] .shipment-filter-panel select,
html[data-theme="dark"] .shipment-modal select,
html[data-theme="dark"] .shipment-open-button,
html[data-theme="dark"] .shipment-modal > section,
html[data-theme="dark"] .shipment-popover,
html[data-theme="dark"] .shipment-row-menu {
  color: #e8eaed;
}

html[data-theme="dark"] .shipment-document-warning {
  border-color: rgba(255, 122, 17, .45);
  background: #120c08;
}

html[data-theme="dark"] .shipment-upload-drop:hover {
  background: #0a101a;
}

html[data-theme="dark"] .shipment-chat-header h2,
html[data-theme="dark"] .shipment-chat-empty h3 {
  color: #f3f4f6;
}

html[data-theme="dark"] .shipment-chat-header-icon {
  background: rgba(18, 103, 223, .16);
  color: #76a9ff;
}

html[data-theme="dark"] .shipment-chat-messages {
  background:
    radial-gradient(circle at 86% 8%, rgba(45, 111, 223, .09), transparent 28%),
    #030303;
}

html[data-theme="dark"] .shipment-chat-avatar,
html[data-theme="dark"] .shipment-chat-message-body,
html[data-theme="dark"] .shipment-chat-input-wrap textarea {
  background: #0b0b0b;
  color: #f1f3f6;
}

html[data-theme="dark"] .shipment-chat-avatar {
  color: #b8bec8;
}

html[data-theme="dark"] .shipment-chat-message.is-own .shipment-chat-message-body {
  border-color: #e9edf3;
  background: #e9edf3;
  color: #111317;
}

html[data-theme="dark"] .shipment-chat-message.is-own .shipment-chat-message-body header time,
html[data-theme="dark"] .shipment-chat-message.is-own .shipment-chat-message-body > small {
  color: rgba(17, 19, 23, .58);
}

html[data-theme="dark"] .shipment-chat-input-wrap textarea::placeholder {
  color: #777f8c;
}

html[data-theme="dark"] .shipment-chat-send {
  border-color: #f1f3f6;
  background: #f1f3f6;
  color: #090a0c;
}

html[data-theme="dark"] .shipment-chat-send:hover:not(:disabled) {
  background: #dce1e8;
}

html[data-theme="dark"] .shipment-status-in-transit,
html[data-theme="dark"] .shipment-info-badge { background: rgba(18, 103, 255, .16); color: #6fa6ff; }
html[data-theme="dark"] .shipment-status-preparing,
html[data-theme="dark"] .shipment-status-pending-info,
html[data-theme="dark"] .shipment-status-customs-hold { background: rgba(255, 116, 23, .15); color: #ff9b58; }
html[data-theme="dark"] .shipment-status-on-hold,
html[data-theme="dark"] .shipment-document-not-required { background: rgba(255, 255, 255, .09); color: #bdc3cc; }
html[data-theme="dark"] .shipment-status-delivered,
html[data-theme="dark"] .shipment-document-uploaded { background: rgba(11, 155, 82, .16); color: #5bd699; }
html[data-theme="dark"] .shipment-status-cancelled { background: rgba(239, 51, 64, .16); color: #ff7a84; }
html[data-theme="dark"] .shipment-document-missing { background: rgba(255, 116, 23, .15); color: #ff9b58; }

@media (min-width: 1181px) {
  .shipments-view {
    width: min(100%, var(--app-page-max-width));
    max-width: var(--app-page-max-width);
    margin-inline: auto;
  }

  .shipment-page-header > .shipment-page-actions {
    margin-top: 0;
  }
}

@media (max-width: 1280px) {
  .shipment-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shipment-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .shipment-detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipment-status-milestone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .shipments-view { width: 100%; max-width: none; }
  .shipments-page { padding: 0 16px 24px; }
  .shipment-page-header,
  .shipment-detail-header { min-height: auto; padding: 22px 0 10px; }
  .shipment-page-header h1 { font-size: var(--app-page-title-size); }
  .shipment-page-header p { font-size: var(--app-page-subtitle-size); }
  .shipment-page-header,
  .shipment-detail-header { flex-wrap: wrap; }
  .shipment-page-actions { justify-content: flex-start; flex-wrap: wrap; width: 100%; }
  .shipment-detail-header .shipment-page-actions { margin-top: 0; }
  .shipment-page-header > div:first-child,
  .shipment-detail-header > div:first-child { width: 100%; }
}

@media (max-width: 760px) {
  .shipments-page { gap: 10px; padding: 0 12px 20px; }
  .shipment-page-header h1 { font-size: var(--portal-type-page); }
  .shipment-detail-header h1 { font-size: var(--portal-type-page); }
  .shipment-page-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .shipment-page-actions .shipment-date-control,
  .shipment-page-actions .shipment-date-control .shipment-button { width: 100%; min-width: 0; }
  .shipment-detail-header .shipment-page-actions .shipment-button:last-child { grid-column: 1 / -1; }
  .shipment-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shipment-kpi-card { grid-template-columns: 40px minmax(0, 1fr); min-height: 142px; padding: 14px 12px 10px; }
  .shipment-icon-tile { width: 40px; height: 40px; }
  .shipment-kpi-card strong { font-size: var(--portal-type-metric); }
  .shipment-filter-panel { grid-template-columns: 1fr; }
  .shipment-detail-aside { grid-template-columns: 1fr; }
  .shipment-table-card { padding-inline: 12px; }
  .shipment-support-banner { grid-template-columns: 44px minmax(0, 1fr); padding: 13px; }
  .shipment-support-banner > span { width: 44px; height: 44px; }
  .shipment-support-banner .shipment-button { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .shipment-summary-top { grid-template-columns: 1fr 1fr; }
  .shipment-summary-top > div:last-child { grid-column: 1 / -1; }
  .shipment-summary-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipment-operational-grid,
  .shipment-detail-lower { grid-template-columns: 1fr; }
  .shipment-operational-grid > div + div { padding-top: 14px; padding-left: 0; border-top: 1px solid var(--shipment-border); border-left: 0; }
  .shipment-info-row { grid-template-columns: 125px minmax(0, 1fr); }
  .shipment-detail-tabs { overflow-x: auto; }
  .shipment-detail-tabs button { flex: 0 0 auto; }
  .shipment-chat-panel { grid-template-rows: auto minmax(320px, 1fr) auto; min-height: calc(100dvh - 220px); }
  .shipment-chat-header { grid-template-columns: 38px minmax(0, 1fr); padding-inline: 13px; }
  .shipment-chat-header-icon { width: 38px; height: 38px; }
  .shipment-chat-contact { display: none; }
  .shipment-chat-messages { max-height: 55dvh; padding: 16px 12px; }
  .shipment-chat-message { grid-template-columns: 28px minmax(0, 84%); }
  .shipment-chat-message.is-own { grid-template-columns: minmax(0, 84%) 28px; }
  .shipment-chat-avatar { width: 28px; height: 28px; }
  .shipment-chat-composer { grid-template-columns: minmax(0, 1fr) 44px; padding: 10px; }
  .shipment-chat-send { min-width: 44px; width: 44px; padding: 0; }
  .shipment-chat-send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shipment-status-milestones > header { align-items: flex-start; flex-direction: column; }
  .shipment-status-milestone-grid { grid-template-columns: 1fr; }
  .shipment-toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}

/* Shipments-aligned Messages header and accessible New Chat flow (2026-07-14). */
.chats-view {
  grid-template-rows: var(--app-page-header-min-height, 115px) minmax(0, 1fr);
}

.chats-hero.app-page-header {
  position: relative;
  z-index: 4;
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--app-page-header-min-height, 115px);
  padding: 38px 0 0 25px;
  gap: 24px;
  color: #f7f8fa;
  background: #000;
}

.chats-hero h1 {
  margin: 0;
  color: inherit;
  font-size: var(--portal-type-page);
  font-weight: 700;
  line-height: var(--app-page-title-line-height, .98);
  letter-spacing: var(--app-page-title-letter-spacing, -.065em);
}

.chats-hero p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: var(--portal-type-body);
  line-height: var(--app-page-subtitle-line-height, 1.55);
}

.chats-new-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--app-header-action-height, 42px);
  margin: 0 0 0 auto;
  padding: 0 17px;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  background: #f7f8fa;
  color: #17191f;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.chats-new-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.chats-new-button:hover { border-color: #fff; background: #fff; }
.chats-new-button:active { transform: translateY(1px); }
.chats-new-button:focus-visible { outline: 3px solid rgba(43, 112, 255, .48); outline-offset: 3px; }

.new-chat-modal {
  position: fixed;
  inset: 0 0 0 var(--portal-sidebar-width, 214px);
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .76);
}

.new-chat-dialog {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(780px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid #292d34;
  border-radius: 14px;
  background: #070707;
  color: #f5f7fb;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .72);
}

.new-chat-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #202329;
}

.new-chat-dialog h2 { margin: 0; font-size: var(--portal-type-section); line-height: 1.2; }
.new-chat-dialog header p { margin: 6px 0 0; color: #9097a3; font-size: var(--portal-type-body); }
.new-chat-dialog form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.new-chat-body { display: grid; min-height: 0; gap: 14px; padding: 20px 24px; overflow: auto; }

.new-chat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #2b3038;
  border-radius: 8px;
  background: #0d0e10;
}
.new-chat-search svg { width: 17px; height: 17px; fill: none; stroke: #9aa1ad; stroke-width: 1.8; }
.new-chat-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #f7f8fa; font: inherit; font-size: var(--portal-type-body); }
.new-chat-search:focus-within { border-color: #2267ef; box-shadow: 0 0 0 3px rgba(34, 103, 239, .16); }

.new-chat-contact-list { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.new-chat-contact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #0b0c0e;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.new-chat-contact:hover { background: #10141b; }
.new-chat-contact.is-selected { border-color: #1768ff; background: #08162e; box-shadow: inset 3px 0 #1768ff; }
.new-chat-contact > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.new-chat-contact strong { font-size: var(--portal-type-body); }
.new-chat-contact small, .new-chat-contact em { overflow: hidden; color: #979eaa; font-size: var(--portal-type-caption); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.new-chat-contact em { color: #69717e; }

.new-chat-state { display: grid; place-items: center; min-height: 210px; gap: 8px; color: #8f97a3; text-align: center; }
.new-chat-state button { border: 1px solid #343943; border-radius: 7px; padding: 8px 12px; background: #111318; color: #fff; }
.new-chat-recipient {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #292d34;
  border-radius: 9px;
  background: #0c0d0f;
  color: inherit;
  text-align: left;
}
.new-chat-recipient > span { display: grid; gap: 2px; }
.new-chat-recipient small, .new-chat-recipient em { color: #89909c; font-size: var(--portal-type-caption); font-style: normal; }
.new-chat-recipient b { color: #67a0ff; font-size: var(--portal-type-body); }
.new-chat-body > label:not(.new-chat-search) { display: grid; gap: 7px; color: #d8dbe1; font-size: var(--portal-type-body); font-weight: 600; }
.new-chat-body > label > span small { color: #707784; font-weight: 500; }
.new-chat-body input, .new-chat-body select, .new-chat-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2b3038;
  border-radius: 8px;
  background: #0d0e10;
  color: #f5f7fb;
  font: inherit;
  font-size: var(--portal-type-body);
  outline: 0;
}
.new-chat-body input, .new-chat-body select { height: 42px; padding: 0 12px; }
.new-chat-body textarea { min-height: 118px; resize: vertical; padding: 12px; line-height: 1.5; }
.new-chat-body input:focus, .new-chat-body select:focus, .new-chat-body textarea:focus { border-color: #2267ef; box-shadow: 0 0 0 3px rgba(34, 103, 239, .16); }
.new-chat-error { margin: 0; color: #ff7d83; font-size: var(--portal-type-body); }

.new-chat-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #202329;
}
.new-chat-dialog footer button { height: 40px; padding: 0 16px; border-radius: 8px; font: inherit; font-size: var(--portal-type-body); font-weight: 600; cursor: pointer; }
.new-chat-secondary { border: 1px solid #30343c; background: #0b0c0e; color: #f5f7fb; }
.new-chat-primary { border: 1px solid #1768ff; background: #0d5bea; color: #fff; }
.new-chat-primary:hover:not(:disabled) { background: #1768ff; }
.new-chat-primary:disabled { border-color: #252830; background: #17191e; color: #656b76; cursor: not-allowed; }
.new-chat-dialog button:focus-visible { outline: 3px solid rgba(43, 112, 255, .48); outline-offset: 2px; }

@media (min-width: 1181px) {
  .portal-shell:has(.portal-dashboard--chats) > .portal-topbar { display: flex; }
  .portal-dashboard.portal-dashboard--chats { height: 100dvh; min-height: 720px; padding: 0 12px 4px; }
  .portal-dashboard--chats .portal-main,
  .portal-dashboard--chats #shipments-main,
  .portal-dashboard--chats .chats-view { height: 100%; }
}

@media (max-width: 1180px) {
  .chats-view { grid-template-rows: 94px minmax(0, 1fr); }
  .chats-hero.app-page-header { min-height: 94px; padding: 15px 2px 12px; align-items: center; }
  .chats-app { height: 100%; min-height: 0; }
  .new-chat-modal { inset: 0; padding: 18px; }
}

@media (max-width: 760px) {
  .chats-view { grid-template-rows: auto minmax(0, 1fr); }
  .chats-hero.app-page-header { min-height: 82px; padding: 8px 2px 12px; gap: 12px; }
  .chats-hero h1 { font-size: var(--portal-type-page); }
  .chats-hero p { max-width: 34ch; margin-top: 5px; font-size: var(--portal-type-body); }
  .chats-new-button { height: 38px; padding: 0 12px; }
  .new-chat-modal { display: block; padding: 0; }
  .new-chat-dialog { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .new-chat-dialog > header, .new-chat-body, .new-chat-dialog footer { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .chats-hero p { display: none; }
  .chats-hero h1 { font-size: var(--portal-type-page); }
  .chats-new-button span { font-size: var(--portal-type-body); }
}

@media (max-width: 480px) {
  .shipment-kpi-grid { grid-template-columns: 1fr; }
  .shipment-kpi-card { min-height: 132px; }
  .shipment-document-warning { grid-template-columns: 24px minmax(0, 1fr); }
  .shipment-document-warning .shipment-open-button { grid-column: 1 / -1; width: 100%; }
  .shipment-update { grid-template-columns: 20px 86px minmax(0, 1fr); }
  .shipment-update time { display: grid; justify-content: start; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .shipment-button,
  .shipment-open-button { transition: none; }
  .shipment-loading-state > span { animation-duration: 1.5s; }
}

@media (max-width: 980px) {
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-top-widgets,
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel.dashboard-panel--chart-size-landscape,
  .dashboard-panel.dashboard-panel--chart-size-portrait {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .portal-topbar {
    align-items: flex-start;
    padding: 14px 14px 6px;
  }

  .portal-topbar__utility,
  .portal-topbar__controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .portal-dashboard {
    padding: 0 14px 24px;
  }

  .dashboard-hero {
    gap: 18px;
  }

  .dashboard-hero__tools {
    justify-items: stretch;
  }

  .dashboard-hero__logo-card {
    width: 100%;
  }

  .dashboard-top-widgets,
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-support-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-support-card__action {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.request-card.is-dev-mode .dev-card--shipment-details .dev-card__body {
  gap: 14px;
}

.request-card.is-dev-mode .dev-card__header--spread {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.request-card.is-dev-mode .dev-card__header--spread h3 {
  flex: 1 1 auto;
  font-size: var(--portal-type-subheading);
}

.request-card.is-dev-mode .dev-card__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 0;
  pointer-events: auto;
}

.request-card.is-dev-mode .dev-preferences-panel,
.request-card.is-dev-mode .dev-card__action {
  pointer-events: auto;
}

.request-card.is-dev-mode .dev-card__action {
  color: #005de8;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle {
  min-height: 38px;
  padding: 3px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
}

.request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option {
  min-height: 30px;
  padding: 0 15px;
  border-radius: 999px;
  font-weight: 700;
}

.request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option.is-active {
  background: #020817;
  color: #fff;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines {
  width: 100%;
  max-width: 100%;
  gap: 10px;
  overflow-x: clip;
  padding-top: 10px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
  grid-template-columns:
    72px
    minmax(130px, 1.05fr)
    minmax(300px, 2fr)
    minmax(120px, 0.85fr)
    82px
    34px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header {
  padding: 0 9px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: none;
  align-items: center;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header #dimensions-unit-label {
  text-align: center;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__stackable-header {
  min-height: 20px;
  justify-content: center;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__stackable-header span {
  line-height: inherit;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
  padding: 8px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 8px;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field input,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field select,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field .frontend-select__trigger,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field input {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #fff;
  color: #090d18;
  font-size: var(--portal-type-body);
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field {
  position: relative;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field::after {
  position: absolute;
  right: 10px;
  top: 50%;
  color: #96a2b6;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field:has([data-dimension-field="length"])::after {
  content: "L";
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field:has([data-dimension-field="width"])::after {
  content: "W";
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field:has([data-dimension-field="height"])::after {
  content: "H";
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-actions {
  display: contents;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable {
  display: grid;
  justify-items: center;
  align-items: center;
  min-width: 0;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable,
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle {
  min-height: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle {
  width: auto;
  min-width: 0;
  justify-content: center;
  padding: 0;
  overflow: visible;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-value {
  display: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-control {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #020817;
  border-color: #020817;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-control::after {
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  transform: translate(20px, -50%);
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle:not(.is-active) .dimensions-line__stackable-control {
  background: #e5e9f0;
  border-color: #d1d8e4;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle:not(.is-active) .dimensions-line__stackable-control::after {
  transform: translate(0, -50%);
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove-wrap {
  display: grid;
  align-items: center;
  justify-items: center;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove {
  min-width: 34px;
  width: 34px;
  height: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #536078;
  font-size: 0;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove::before {
  content: "x";
  font-size: 1.25rem;
  line-height: 1;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button {
  min-height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #005de8;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button::before {
  content: "+";
  margin-right: 10px;
  font-size: 1.28rem;
  line-height: 1;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 0;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #dbe3ef;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric:last-child {
  border-right: 0;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__head {
  color: #263752;
  font-size: var(--portal-type-body);
  font-weight: 500;
  justify-content: center;
  text-transform: none;
}

.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__value {
  color: #090d18;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.request-card.is-dev-mode .form-footer {
  position: static;
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.request-card.is-dev-mode .form-footer__meta,
.request-card.is-dev-mode #prev-step {
  display: none;
}

.request-card.is-dev-mode .form-footer__actions {
  gap: 24px;
}

.request-card.is-dev-mode #save-draft-button {
  min-width: 112px;
  min-height: 58px;
  padding-inline: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #090d18;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.request-card.is-dev-mode #next-step,
.request-card.is-dev-mode #submit-request {
  min-width: 218px;
  min-height: 58px;
  padding-inline: 32px;
  border: 1px solid #020817;
  border-radius: 7px;
  background: linear-gradient(180deg, #060c1d 0%, #010512 100%);
  color: #fff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.16);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode {
  background: linear-gradient(180deg, #111820 0%, #151b23 100%);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .quotations-back-button,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__view-toggle,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__reference input,
html[data-theme="dark"] .request-card.is-dev-mode .dev-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 26, 34, 0.96);
  color: var(--ink);
}

@media (max-width: 1280px) {
  .request-card.is-dev-mode .form-step[data-step="1"] .request-section,
  .request-card.is-dev-mode .form-step[data-step="2"] .request-section,
  .request-card.is-dev-mode .form-step[data-step="3"] .request-section {
    grid-template-columns: 1fr;
  }

  .request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .request-section__header,
  .request-card.is-dev-mode .form-step[data-step="1"] > .request-section > .request-group--foundation,
  .request-card.is-dev-mode .form-step[data-step="2"] > .request-section > .request-section__header,
  .request-card.is-dev-mode .form-step[data-step="1"] .request-section__gated,
  .request-card.is-dev-mode .form-step[data-step="2"] > .request-section > .cargo-profile-strip,
  .request-card.is-dev-mode .form-step[data-step="2"] > .request-section > .cargo-editor-panel,
  .request-card.is-dev-mode .form-step[data-step="2"] > .request-section > .cargo-support-row,
  .request-card.is-dev-mode .form-step[data-step="3"] > .request-section > .request-section__header,
  .request-card.is-dev-mode .form-step[data-step="3"] .request-panel--upload,
  .request-card.is-dev-mode .form-step[data-step="3"] #file-list {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .request-card.is-dev-mode .request-section__header {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .request-card.is-dev-mode .request-section__grid--topline,
  .request-card.is-dev-mode .request-panel__grid--three,
  .request-card.is-dev-mode .request-panel__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cargo-support-row {
    grid-template-columns: 1fr;
  }

  .cargo-support-row__options {
    grid-template-columns: 1fr;
  }

  .cargo-support-row .toggle-card small {
    white-space: normal;
  }

  .cargo-profile-strip__toggles {
    grid-template-columns: 1fr;
  }

  .request-card.is-dev-mode .movement-scope-addresses {
    grid-template-columns: 1fr;
  }
}

.form-alert {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
  font-weight: 600;
}

.form-alert[data-tone="success"] {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.form-alert--info,
.form-alert[data-tone="info"] {
  background: rgba(29, 111, 165, 0.1);
  color: #1d4f72;
  border-color: rgba(29, 111, 165, 0.18);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.request-section {
  display: grid;
  gap: var(--request-section-gap);
}

.request-group {
  display: grid;
  gap: var(--request-section-gap);
  padding: 20px;
  border: 1px solid rgba(15, 15, 16, 0.055);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 248, 249, 0.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.request-group__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.request-group__header > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(15, 15, 16, 0.06);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.request-group__header h3 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.request-group__header p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.5;
}

.request-group__header--inline {
  margin-bottom: 14px;
}

.request-section__header h2 {
  margin: 0;
  font-size: var(--portal-type-section);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--brand);
}

.request-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.request-section__header p,
.request-panel__header p,
.success-card p,
.timeline-item__body p,
.timeline-item__card span,
.choice-card small,
.toggle-card small {
  margin: 6px 0 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.request-section__grid {
  display: grid;
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
}

.request-section__grid--modes {
  grid-template-columns: 1fr;
}

.modality-guidance {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 15, 16, 0.06);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.4;
}

.request-section__gated {
  display: grid;
  row-gap: var(--request-section-gap);
  column-gap: var(--request-section-gap);
  transition: opacity 160ms ease, filter 160ms ease;
}

.request-section__gated.is-locked {
  opacity: 0.56;
  filter: saturate(0.78);
}

.request-form.is-readonly .request-panel,
.request-form.is-readonly .cargo-profile-strip,
.request-form.is-readonly .dimensions-line,
.request-form.is-readonly .file-chip,
.request-form.is-readonly .movement-address-card {
  box-shadow: none;
}

.request-form.is-readonly .field input:disabled,
.request-form.is-readonly .field textarea:disabled,
.request-form.is-readonly .field select:disabled,
.request-form.is-readonly .frontend-select__trigger[aria-disabled="true"],
.request-form.is-readonly .incoterm-select__trigger[aria-disabled="true"],
.request-form.is-readonly .dangerous-goods-selector__trigger[aria-disabled="true"] {
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface) 24%);
  border-color: rgba(15, 15, 16, 0.08);
}

.request-section__grid--topline {
  --topline-control-start-offset: calc((0.78rem * 1.2) + 18px);
  grid-template-columns: minmax(260px, 1.12fr) repeat(2, minmax(190px, 0.94fr));
  align-items: stretch;
}

.request-section__grid--topline > .topline-card > .topline-card__control {
  padding-block-start: var(--topline-control-start-offset);
}

.request-section__grid--topline > .topline-card > .topline-card__control .segmented-control {
  margin-top: 0;
}

.request-section__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-section--cargo {
  gap: 18px;
}

.request-section__header--cargo {
  display: grid;
  gap: 4px;
}

.cargo-profile-strip {
  padding: 14px 16px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-soft) 16%);
  overflow: visible;
}

.cargo-profile-strip__grid {
  margin-top: 0;
  align-items: end;
  overflow: visible;
}

.cargo-profile-strip__field {
  min-width: 0;
}

.cargo-profile-strip__field input,
.cargo-profile-strip__field select {
  width: 100%;
}

.cargo-profile-strip__toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.cargo-profile-strip__toggles[hidden],
.cargo-support-row__options[hidden] {
  display: none !important;
}

.cargo-profile-strip__toggle-group {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: visible;
}

.cargo-editor-panel {
  padding: 16px 18px;
  gap: 14px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface) 8%);
}

.cargo-editor-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cargo-editor-panel__head .dimensions-header-tools {
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.cargo-editor-panel__head h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  color: var(--brand);
}

.cargo-editor-panel__summary .dimensions-metric {
  min-height: 74px;
  background: var(--surface);
  box-shadow: none;
}

.cargo-editor-panel__summary .dimensions-metric--readonly {
  cursor: default;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.98) 0%, rgba(244, 244, 245, 0.98) 100%);
}

.cargo-lines-panel {
  gap: 10px;
}

.dimensions-lines__toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dimensions-lines__toolbar-copy {
  display: grid;
  gap: 3px;
}

.dimensions-lines__toolbar-copy strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
  line-height: 1.2;
}

.dimensions-lines__toolbar-copy span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dimensions-lines__stackable-master {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dimensions-lines__stackable-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(15, 15, 16, 0.24);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft) 8%);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.dimensions-lines__stackable-box::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--brand-contrast);
  border-bottom: 2px solid var(--brand-contrast);
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.84);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.dimensions-lines__stackable-master[data-stackable-state="all"] .dimensions-lines__stackable-box {
  border-color: var(--brand);
  background: var(--brand);
}

.dimensions-lines__stackable-master[data-stackable-state="all"] .dimensions-lines__stackable-box::after {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.dimensions-lines__stackable-master[data-stackable-state="mixed"] .dimensions-lines__stackable-box {
  border-color: rgba(15, 15, 16, 0.32);
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--surface) 22%);
}

.dimensions-lines__stackable-master[data-stackable-state="mixed"] .dimensions-lines__stackable-box::after {
  width: 7px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--brand);
  opacity: 1;
  transform: none;
}

.dimensions-lines__stackable-master:focus-visible {
  outline: none;
  border-color: rgba(15, 15, 16, 0.32);
  box-shadow: 0 0 0 3px rgba(15, 15, 16, 0.08);
}

.cargo-support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.cargo-support-row--remarks-only {
  grid-template-columns: minmax(0, 1fr);
}

.cargo-support-row__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cargo-support-row__option {
  display: grid;
  gap: 10px;
}

.cargo-support-row .toggle-card {
  min-height: 72px;
  padding: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-soft) 10%);
}

.toggle-card--compact {
  min-height: 56px;
  padding: 12px 14px;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 248, 0.98) 100%);
  box-shadow: none;
}

.toggle-card--compact .toggle-card__content {
  display: grid;
  gap: 2px;
}

.toggle-card--compact strong {
  font-size: var(--portal-type-body);
  line-height: 1.2;
}

.toggle-card--compact small {
  margin: 0;
  max-width: none;
  font-size: var(--portal-type-caption);
  line-height: 1.35;
}

.toggle-card--compact input {
  margin-top: 2px;
}

.cargo-support-row .toggle-card strong {
  font-size: var(--portal-type-body);
}

.cargo-support-row .toggle-card small {
  margin-top: 4px;
  max-width: none;
  font-size: var(--portal-type-caption);
  line-height: 1.45;
  white-space: nowrap;
}

.cargo-support-row__remarks {
  align-content: start;
  gap: 8px;
  width: 100%;
}

.cargo-support-row__remarks textarea {
  min-height: 120px;
}

.request-section__conditional-column {
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: visible;
}

.dangerous-goods-field[hidden],
.temperature-range-field[hidden] {
  display: none !important;
}

.temperature-range-field {
  overflow: visible;
}

.temperature-range-field .field {
  gap: 6px;
}

.dangerous-goods-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.dangerous-goods-field__header label {
  display: block;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.dangerous-goods-selector {
  position: relative;
}

.dangerous-goods-selector__trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 246, 247, 0.98) 100%);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  text-align: left;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}

.dangerous-goods-selector__trigger::after,
.dangerous-goods-selector__caret {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 15, 16, 0.54);
  border-bottom: 2px solid rgba(15, 15, 16, 0.54);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.dangerous-goods-selector__trigger[aria-expanded="true"] {
  border-color: rgba(15, 15, 16, 0.18);
  box-shadow: 0 0 0 4px rgba(15, 15, 16, 0.05);
}

.dangerous-goods-selector__menu {
  position: absolute;
  z-index: 240;
  display: grid;
  padding: 8px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dangerous-goods-selector__menu[hidden],
.frontend-select__dropdown[hidden],
.frontend-incoterm-dropdown[hidden] {
  display: none !important;
}

html[data-theme="dark"] .dangerous-goods-selector__menu,
html[data-theme="dark"] .frontend-incoterm-dropdown,
html[data-theme="dark"] .frontend-select__dropdown,
html[data-theme="dark"] .airport-autocomplete,
html[data-theme="dark"] .movement-address-card .address-section__search-results,
html[data-theme="dark"] .dimensions-ai-import,
html[data-theme="dark"] .file-chip,
html[data-theme="dark"] .movement-address-card {
  background: rgba(26, 29, 34, 0.96);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .dangerous-goods-option,
html[data-theme="dark"] .airport-autocomplete__option,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option,
html[data-theme="dark"] .movement-address-card .address-section__search-result {
  background: rgba(23, 25, 30, 0.94);
  color: var(--ink);
}

html[data-theme="dark"] .dangerous-goods-option:hover,
html[data-theme="dark"] .dangerous-goods-option:focus-visible,
html[data-theme="dark"] .dangerous-goods-option.is-selected,
html[data-theme="dark"] .airport-autocomplete__option:hover,
html[data-theme="dark"] .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .airport-autocomplete__option.is-active,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:hover,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option.is-active,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:hover,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option.is-active,
html[data-theme="dark"] .movement-address-card .address-section__search-result:hover,
html[data-theme="dark"] .movement-address-card .address-section__search-result.is-active,
html[data-theme="dark"] .movement-address-card .address-section__search-result:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dangerous-goods-selector__options {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.dangerous-goods-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  cursor: pointer;
}

.dangerous-goods-option:hover,
.dangerous-goods-option:focus-visible,
.dangerous-goods-option.is-selected {
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.06);
}

.dangerous-goods-option__check {
  width: 18px;
  color: var(--brand);
  font-weight: 700;
}

.dangerous-goods-option__label {
  color: var(--ink);
  font-size: var(--portal-type-body);
  line-height: 1.35;
  font-weight: 600;
}

.dg-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dg-chip {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
}

.dg-chip-remove {
  font-size: var(--portal-type-body);
  line-height: 1;
}

.dangerous-goods-field__error {
  margin: 0;
  color: var(--danger-text);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.request-section__grid--footer {
  grid-template-columns: minmax(0, 1fr);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
}

.choice-card,
.segmented-control__option {
  border: 1px solid rgba(15, 15, 16, 0.06);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 160ms ease, border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.choice-card {
  min-height: 104px;
  padding: 17px 18px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
  box-shadow: 0 10px 28px rgba(15, 15, 16, 0.035);
}

.choice-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 16, 0.045);
  color: var(--brand);
}

.choice-card__icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.choice-card__icon--air svg {
  width: 24px;
  height: 24px;
}

.choice-card strong,
.timeline-item__card strong,
.success-card h2 {
  display: block;
  color: var(--brand);
}

.choice-card strong {
  font-size: var(--portal-type-body);
  line-height: 1.15;
}

.choice-card small {
  margin-top: 4px;
  font-size: var(--portal-type-caption);
  line-height: 1.35;
}

.choice-card:hover,
.choice-card:focus-visible,
.segmented-control__option:hover,
.segmented-control__option:focus-visible {
  border-color: rgba(15, 15, 16, 0.13);
  box-shadow: 0 14px 30px rgba(15, 15, 16, 0.06);
  outline: none;
}

.choice-card.is-selected,
.segmented-control__option.is-selected {
  border-color: rgba(15, 15, 16, 0.18);
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(15, 15, 16, 0.08),
    0 18px 38px rgba(15, 15, 16, 0.075);
}

.choice-card.is-selected .choice-card__icon {
  background: var(--brand);
  color: #fff;
}

.topline-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 16, 0.055);
  background: rgba(255, 255, 255, 0.72);
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: none;
}

.topline-card__control {
  display: grid;
  min-width: 0;
  align-content: start;
  align-items: start;
}

.topline-card--movement-scope {
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 248, 249, 0.76));
}

.movement-scope-addresses[hidden],
.shipment-block--address[hidden] {
  display: none !important;
}

.movement-scope-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  max-height: 960px;
  opacity: 1;
  transform: translateY(0);
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    max-height 180ms ease,
    margin 180ms ease;
}

.movement-scope-addresses--single {
  grid-template-columns: minmax(0, 1fr);
}

.movement-scope-addresses.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
}

.movement-scope-addresses.is-expanded {
  max-height: 960px;
  opacity: 1;
  transform: translateY(0);
}

.movement-address-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 246, 247, 0.96) 100%);
  overflow: visible;
  isolation: isolate;
}

.movement-address-card .shipment-block__header {
  margin-bottom: 12px;
}

.movement-address-card .shipment-block__header h4 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  line-height: 1.2;
  color: var(--brand);
}

.movement-address-card .address-section {
  display: grid;
  gap: 10px;
}

.movement-address-card .address-section__search-block,
.movement-address-card .address-section__top-grid,
.movement-address-card .address-section__detail-grid,
.movement-address-card .address-section__manual-panel-inner {
  display: grid;
  gap: 10px;
}

.movement-address-card .address-section__top-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movement-address-card .address-section__detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movement-address-card .address-span-4 {
  grid-column: span 4;
}

.movement-address-card .address-span-2 {
  grid-column: span 2;
}

.movement-address-card .address-span-3 {
  grid-column: span 3;
}

.movement-address-card .address-span-1 {
  grid-column: span 1;
}

.movement-address-card .address-section__field {
  display: grid;
  gap: 7px;
}

.movement-address-card .address-section__field label,
.movement-address-card .address-section__search-field label {
  display: block;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.movement-address-card .address-section__search-input-wrap {
  position: relative;
  overflow: visible;
  z-index: 20;
}

.movement-address-card .address-section__field input,
.movement-address-card .address-section__search-field input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}

.movement-address-card .address-section__field input:focus,
.movement-address-card .address-section__search-field input:focus {
  outline: none;
  border-color: rgba(15, 15, 16, 0.18);
  box-shadow: 0 0 0 4px rgba(15, 15, 16, 0.05);
}

.movement-address-card .address-section__search-status {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.4;
}

.movement-address-card .address-section__manual-toggle {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.movement-address-card .address-section__manual-toggle:hover {
  color: var(--ink);
}

.movement-address-card .address-section__manual-toggle:focus-visible {
  outline: none;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(15, 15, 16, 0.05);
}

.movement-address-card .address-section__manual-toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.movement-address-card .address-section__manual-toggle.is-expanded .address-section__manual-toggle-icon {
  transform: rotate(-135deg) translateY(-1px);
}

.movement-address-card .address-section__manual-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.movement-address-card .address-section__manual-panel.is-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.movement-address-card .address-section__manual-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.movement-address-card .address-section__search-status.is-error {
  color: var(--danger-text);
}

.movement-address-card .address-section__search-status.is-ready {
  color: var(--success-text);
}

.movement-address-card .address-section__search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1200;
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: min(100%, 280px);
  max-height: min(320px, 42vh);
  padding: 8px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.12);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.movement-address-card .address-section__search-results[hidden],
.address-section__search-results[hidden] {
  display: none !important;
}

.movement-address-card .address-section__search-result {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.movement-address-card .address-section__search-result:hover,
.movement-address-card .address-section__search-result.is-active,
.movement-address-card .address-section__search-result:focus-visible {
  outline: none;
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.06);
}

.movement-address-card .address-section__search-result-main {
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.35;
}

.movement-address-card .address-section__search-result-secondary,
.movement-address-card .address-section__field-error {
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  line-height: 1.4;
}

.movement-address-card .address-section__field-error {
  margin: 0;
  color: var(--danger-text);
  font-weight: 700;
}

.address-section__search-input-wrap {
  position: relative;
  overflow: visible;
}

.address-section__search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1200;
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: min(100%, 280px);
  max-height: min(320px, 42vh);
  padding: 8px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.12);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.address-section__search-results--floating {
  position: fixed !important;
  right: auto !important;
  z-index: 10000 !important;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  transform: translateZ(0);
  pointer-events: auto;
}

.address-section__search-result {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.address-section__search-result:hover,
.address-section__search-result.is-active,
.address-section__search-result:focus-visible {
  outline: none;
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.06);
}

.address-section__search-result-main {
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.35;
}

.address-section__search-result-secondary {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.4;
}

.topline-card__helper {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.4;
}

.topline-card__note {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.35;
  font-weight: 700;
}

.incoterm-select,
.frontend-select {
  position: relative;
}

.incoterm-select__trigger,
.frontend-select__trigger {
  position: relative;
  width: 100%;
  min-height: var(--request-control-height);
  padding: 0 46px 0 16px;
  border: 1px solid rgba(15, 15, 16, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.incoterm-select__trigger::after,
.frontend-select__trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 15, 16, 0.54);
  border-bottom: 2px solid rgba(15, 15, 16, 0.54);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.incoterm-select__trigger.is-open,
.frontend-select__trigger.is-open {
  border-color: rgba(15, 15, 16, 0.18);
  box-shadow: 0 0 0 4px rgba(15, 15, 16, 0.05);
}

.incoterm-select__trigger.is-invalid,
.frontend-select__trigger.is-invalid {
  border-color: var(--danger-border);
  background: color-mix(in srgb, var(--danger-bg) 72%, var(--surface) 28%);
}

.incoterm-select__trigger.is-placeholder .incoterm-select__value,
.frontend-select__trigger.is-placeholder .frontend-select__value {
  color: var(--ink-soft);
}

.incoterm-select__value,
.frontend-select__value {
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.35;
}

.frontend-incoterm-dropdown,
.frontend-select__dropdown {
  position: absolute;
  z-index: 240;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-color: rgba(15, 15, 16, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.12);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.frontend-select__dropdown--modal {
  z-index: 320;
}

.frontend-incoterm-dropdown .airport-autocomplete__option,
.frontend-select__dropdown .airport-autocomplete__option {
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.frontend-incoterm-dropdown .airport-autocomplete__option:disabled,
.frontend-select__dropdown .airport-autocomplete__option:disabled {
  cursor: default;
  opacity: 0.5;
}

.frontend-incoterm-dropdown .airport-autocomplete__option:hover,
.frontend-incoterm-dropdown .airport-autocomplete__option:focus-visible,
.frontend-incoterm-dropdown .airport-autocomplete__option.is-active,
.frontend-select__dropdown .airport-autocomplete__option:hover,
.frontend-select__dropdown .airport-autocomplete__option:focus-visible,
.frontend-select__dropdown .airport-autocomplete__option.is-active {
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.06);
  color: var(--ink);
}

.frontend-select__option-text {
  min-width: 0;
  display: block;
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#temperature-range-dropdown .frontend-select__option-text,
.frontend-select__dropdown--language .frontend-select__option-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.topline-card .field-label,
.topline-card .field > span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 8px;
  column-gap: 8px;
  margin-top: 8px;
}

.segmented-control--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segmented-control__option {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.segmented-control__option--stacked {
  min-height: 46px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  text-align: center;
}

.segmented-control__option--stacked strong {
  display: block;
  font-size: var(--portal-type-body);
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-transform: none;
  color: inherit;
}

.segmented-control__option--stacked span {
  display: none;
}

.segmented-control__option.is-selected {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow:
    0 12px 26px rgba(15, 15, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.segmented-control__option.is-selected span {
  color: color-mix(in srgb, var(--brand-contrast) 72%, transparent 28%);
}

.segmented-control.is-locked .segmented-control__option {
  cursor: default;
}

.segmented-control.is-locked .segmented-control__option:disabled {
  pointer-events: none;
}

.segmented-control.is-locked .segmented-control__option:not(.is-selected) {
  opacity: 0.62;
}

.segmented-control.is-locked .segmented-control__option:hover {
  border-color: var(--line);
  box-shadow: none;
  background: var(--surface);
}

.segmented-control.is-locked .segmented-control__option.is-selected:hover {
  background: var(--brand);
  color: var(--brand-contrast);
}

.field--card {
  height: 100%;
  align-content: start;
  gap: 0;
}

.topline-card .field--card > span {
  margin-bottom: 25px;
}

.field--card select,
.field--card input {
  min-height: 48px;
}

.field,
.field-select {
  display: grid;
  gap: var(--request-field-gap);
  position: relative;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: var(--request-control-height);
  padding: 13px 15px;
  border: 1px solid rgba(15, 15, 16, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.field__hint {
  font-size: var(--portal-type-caption);
  line-height: 1.35;
  color: var(--ink-muted);
}

.field__hint--airport-autofill {
  margin-top: -1px;
}

html[data-theme="dark"] .portal-topbar__badge,
html[data-theme="dark"] .portal-topbar__link,
html[data-theme="dark"] .portal-language select,
html[data-theme="dark"] .portal-theme-toggle,
html[data-theme="dark"] .portal-sidebar-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .portal-internal-switch__panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
}

html[data-theme="dark"] .portal-internal-switch__header strong,
html[data-theme="dark"] .portal-internal-switch__option-name {
  color: #f8fafc;
}

html[data-theme="dark"] .portal-internal-switch__option-current {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
}

html[data-theme="dark"] .portal-internal-switch__eyebrow,
html[data-theme="dark"] .portal-internal-switch__option-code,
html[data-theme="dark"] .portal-internal-switch__option-note,
html[data-theme="dark"] .portal-internal-switch__empty {
  color: #94a3b8;
}

html[data-theme="dark"] .portal-internal-switch__count {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

html[data-theme="dark"] .portal-internal-switch__search input {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
}

html[data-theme="dark"] .portal-internal-switch__search input::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .portal-internal-switch__option {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.8);
}

html[data-theme="dark"] .portal-internal-switch__option:hover,
html[data-theme="dark"] .portal-internal-switch__option:focus-visible {
  border-color: rgba(96, 165, 250, 0.56);
  background: rgba(15, 23, 42, 0.96);
}

html[data-theme="dark"] .portal-internal-switch__option.is-active {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(30, 41, 59, 0.96);
}

html[data-theme="dark"] .portal-internal-switch__option.is-pending {
  border-color: rgba(96, 165, 250, 0.46);
  background: rgba(15, 23, 42, 0.88);
}

html[data-theme="dark"] .portal-internal-switch__option[disabled] {
  background: rgba(15, 23, 42, 0.68);
}

html[data-theme="dark"] .portal-internal-switch__option-status {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

html[data-theme="dark"] .portal-internal-switch__option-status[data-status="active"] {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

html[data-theme="dark"] .portal-internal-switch__option-status[data-status="inactive"] {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

html[data-theme="dark"] .portal-internal-switch__option-status[data-status="archived"] {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

html[data-theme="dark"] .portal-internal-switch__option-status[data-status="onboarding"] {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

html[data-theme="dark"] .request-card,
html[data-theme="dark"] .request-group,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .quotations-header,
html[data-theme="dark"] .quotations-table-card,
html[data-theme="dark"] .timeline-item__card,
html[data-theme="dark"] .request-panel,
html[data-theme="dark"] .success-card,
html[data-theme="dark"] .topline-card,
html[data-theme="dark"] .choice-card,
html[data-theme="dark"] .segmented-control__option,
html[data-theme="dark"] .modality-guidance,
html[data-theme="dark"] .dimensions-metric,
html[data-theme="dark"] .toggle-card,
html[data-theme="dark"] .file-dropzone {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] .request-panel--soft,
html[data-theme="dark"] .dg-chip,
html[data-theme="dark"] .dimensions-ai-import__dropzone,
html[data-theme="dark"] .toggle-card__surface {
  background: var(--surface-soft);
}

html[data-theme="dark"] .toggle-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface) 12%);
}

html[data-theme="dark"] .toggle-card:has(input:focus-visible) {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .toggle-card:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.24);
  background: color-mix(in srgb, var(--surface-soft) 90%, #fff 10%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .toggle-card:has(input:checked)::after {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
}

html[data-theme="dark"] .toggle-card:has(input:checked) small {
  color: var(--ink);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .movement-address-card .address-section__field input,
html[data-theme="dark"] .movement-address-card .address-section__search-field input,
html[data-theme="dark"] .incoterm-select__trigger,
html[data-theme="dark"] .frontend-select__trigger,
html[data-theme="dark"] .dangerous-goods-selector__trigger {
  background: color-mix(in srgb, var(--surface) 94%, #fff 6%);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .request-tabs__nav,
html[data-theme="dark"] .request-tabs__view-toggle,
html[data-theme="dark"] .request-group__header > span {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] #save-draft-button {
  color: var(--ink-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .route-map__status-note,
html[data-theme="dark"] .dimensions-ai-import__status[data-tone="neutral"],
html[data-theme="dark"] .dimensions-ai-import__status[data-tone="loading"] {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .dashboard-hero {
  background:
    radial-gradient(circle at left center, rgba(15, 118, 110, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(24, 27, 31, 0.98) 0%, rgba(20, 22, 26, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-airline-logo-badge,
html[data-theme="dark"] .dashboard-airline-chart__logo,
html[data-theme="dark"] .dashboard-panel__metric-stack {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-kpi-card,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .dashboard-donut::after,
html[data-theme="dark"] .dashboard-lane-card,
html[data-theme="dark"] .dashboard-activity,
html[data-theme="dark"] .dashboard-insight,
html[data-theme="dark"] .dashboard-customize-panel,
html[data-theme="dark"] .dashboard-widget,
html[data-theme="dark"] .dashboard-empty-state {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-airline-logo-badge,
html[data-theme="dark"] .dashboard-airline-chart__logo,
html[data-theme="dark"] .dashboard-widget-modal__type-switch {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-airline-logo-badge span,
html[data-theme="dark"] .dashboard-airline-chart__logo span {
  background: rgba(125, 211, 252, 0.12);
  color: #e0f2fe;
}

html[data-theme="dark"] .dashboard-top-widget {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.88));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.36);
}

html[data-theme="dark"] .dashboard-top-widget--placeholder {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .dashboard-widget-modal__panel,
html[data-theme="dark"] .dashboard-widget-picker__option,
html[data-theme="dark"] .dashboard-widget-picker__empty {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-quick-add-topic,
html[data-theme="dark"] .dashboard-quick-add-visual {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 46px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .dashboard-widget-modal__back,
html[data-theme="dark"] .dashboard-quick-add-topic__status,
html[data-theme="dark"] .dashboard-quick-add-visual__status,
html[data-theme="dark"] .dashboard-widget-modal__results-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

html[data-theme="dark"] .dashboard-widget-modal__back:hover,
html[data-theme="dark"] .dashboard-widget-modal__back:focus-visible,
html[data-theme="dark"] .dashboard-quick-add-topic:hover,
html[data-theme="dark"] .dashboard-quick-add-topic:focus-visible,
html[data-theme="dark"] .dashboard-quick-add-visual:hover:not(:disabled),
html[data-theme="dark"] .dashboard-quick-add-visual:focus-visible:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.22);
}

html[data-theme="dark"] .dashboard-quick-add-topic__copy strong,
html[data-theme="dark"] .dashboard-quick-add-visual__copy strong {
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-quick-add-topic__copy span,
html[data-theme="dark"] .dashboard-quick-add-visual__copy span,
html[data-theme="dark"] .dashboard-quick-add-visual__type,
html[data-theme="dark"] .dashboard-quick-add-topic__chevron {
  color: rgba(226, 232, 240, 0.7);
}

html[data-theme="dark"] .dashboard-quick-add-visual__preview {
  background: linear-gradient(180deg, rgba(26, 32, 44, 0.96), rgba(20, 26, 36, 0.94));
  border-color: rgba(125, 211, 252, 0.12);
}

html[data-theme="dark"] .dashboard-quick-add-visual__preview--widget span {
  color: rgba(226, 232, 240, 0.62);
}

html[data-theme="dark"] .dashboard-quick-add-visual__preview--widget strong {
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-widget-modal__search input,
html[data-theme="dark"] .dashboard-widget-filter-pill,
html[data-theme="dark"] .dashboard-widget-type-pill,
html[data-theme="dark"] .dashboard-widget-picker__chart-preview,
html[data-theme="dark"] .dashboard-widget-modal__results-count,
html[data-theme="dark"] .dashboard-widget-picker__preview,
html[data-theme="dark"] .dashboard-widget-picker__preview-stat,
html[data-theme="dark"] .dashboard-widget-picker__format,
html[data-theme="dark"] .dashboard-widget-picker__status--muted,
html[data-theme="dark"] .dashboard-widget-picker__action-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-widget-modal__search-icon {
  color: rgba(226, 232, 240, 0.52);
}

html[data-theme="dark"] .dashboard-widget-modal__search input:focus {
  border-color: rgba(125, 211, 252, 0.26);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

html[data-theme="dark"] .dashboard-widget-filter-pill:hover {
  border-color: rgba(125, 211, 252, 0.22);
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-widget-type-pill.is-active {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-widget-modal__results {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-widget-modal__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-widget-picker__status {
  background: rgba(125, 211, 252, 0.12);
  color: #e0f2fe;
}

html[data-theme="dark"] .dashboard-widget-picker__status--selected {
  background: rgba(125, 211, 252, 0.12);
  color: #e0f2fe;
}

html[data-theme="dark"] .dashboard-widget-picker__action-button {
  color: #dbeafe;
}

html[data-theme="dark"] .dashboard-widget-picker__action-button.is-selected {
  background: rgba(248, 250, 252, 0.16);
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-widget-picker__option--added,
html[data-theme="dark"] .dashboard-widget-picker__option--unavailable {
  background: rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .dashboard-widget-picker__option--selected {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(125, 211, 252, 0.2);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .dashboard-filter-group,
html[data-theme="dark"] .dashboard-status-pill,
html[data-theme="dark"] .quotations-empty-state,
html[data-theme="dark"] .dashboard-ranking__bar,
html[data-theme="dark"] .dashboard-status-row__track,
html[data-theme="dark"] .dashboard-widget-option {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-hero__logo-card {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.08) 0%, rgba(71, 85, 105, 0.22) 42%, rgba(15, 23, 42, 0.72) 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .dashboard-top-widget__icon-button,
html[data-theme="dark"] .dashboard-widget-modal__dismiss {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

html[data-theme="dark"] .quotations-context-menu__panel,
html[data-theme="dark"] .quotation-copy-modal__panel,
html[data-theme="dark"] .unsaved-quotation-modal__panel {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quotations-context-menu__item {
  color: #f8fafc;
}

html[data-theme="dark"] .quotations-context-menu__item:hover,
html[data-theme="dark"] .quotations-context-menu__item:focus-visible,
html[data-theme="dark"] .quotation-copy-modal__group,
html[data-theme="dark"] .quotation-copy-modal__option {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .quotation-copy-modal__header h2,
html[data-theme="dark"] .unsaved-quotation-modal__header h2,
html[data-theme="dark"] .quotation-copy-modal__group h3,
html[data-theme="dark"] .quotation-copy-modal__option strong {
  color: #f8fafc;
}

html[data-theme="dark"] .quotation-copy-modal__header p,
html[data-theme="dark"] .unsaved-quotation-modal__header p,
html[data-theme="dark"] .quotation-copy-modal__group p,
html[data-theme="dark"] .quotation-copy-modal__option span,
html[data-theme="dark"] .quotations-context-menu__item:disabled {
  color: #cbd5e1;
}

html[data-theme="dark"] .quotations-table__chat-unread-indicator {
  background: linear-gradient(180deg, #ff6f6f 0%, #e14242 100%);
  box-shadow: 0 8px 14px rgba(225, 66, 66, 0.22);
}

html[data-theme="dark"] .quotation-copy-modal__dismiss {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-top-widget__icon-button--remove {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(248, 113, 113, 0.22);
  color: rgba(252, 165, 165, 0.9);
}

html[data-theme="dark"] .dashboard-top-widget__icon-button--add {
  background: rgba(20, 83, 45, 0.18);
  border-color: rgba(74, 222, 128, 0.2);
  color: rgba(134, 239, 172, 0.9);
}

html[data-theme="dark"] .dashboard-panel__eyebrow {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .dashboard-spotlight__stats span,
html[data-theme="dark"] .dashboard-status-summary span,
html[data-theme="dark"] .dashboard-panel__metric-label {
  color: rgba(226, 232, 240, 0.62);
}

html[data-theme="dark"] .dashboard-top-widget > span,
html[data-theme="dark"] .dashboard-top-widget small,
html[data-theme="dark"] .dashboard-top-widget__placeholder-copy span,
html[data-theme="dark"] .dashboard-widget-modal__header p,
html[data-theme="dark"] .dashboard-widget-modal__results-head p,
html[data-theme="dark"] .dashboard-widget-picker__option small,
html[data-theme="dark"] .dashboard-widget-picker__meta,
html[data-theme="dark"] .dashboard-widget-picker__empty p,
html[data-theme="dark"] .dashboard-widget-picker__eyebrow,
html[data-theme="dark"] .dashboard-widget-picker__preview-label {
  color: rgba(226, 232, 240, 0.74);
}

html[data-theme="dark"] .dashboard-table th,
html[data-theme="dark"] .dashboard-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-airline-chart__copy p,
html[data-theme="dark"] .dashboard-panel__copy {
  color: rgba(226, 232, 240, 0.72);
}

html[data-theme="dark"] .dashboard-status-pill[data-status-tone="draft"] {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

html[data-theme="dark"] .dashboard-status-pill[data-status-tone="quoted"] {
  background: rgba(111, 215, 143, 0.16);
  color: #b7ebc2;
}

html[data-theme="dark"] .dashboard-status-pill[data-status-tone="pending"] {
  background: rgba(245, 158, 11, 0.16);
  color: #f6c667;
}

html[data-theme="dark"] .dashboard-status-pill[data-status-tone="booked"] {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

html[data-theme="dark"] .dashboard-status-pill[data-status-tone="rejected"] {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

html[data-theme="dark"] .dashboard-status-pill[data-status-tone="requote"] {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

html[data-theme="dark"] .quotation-drawer__panel,
html[data-theme="dark"] .quotation-drawer__selected-panel,
html[data-theme="dark"] .quotation-drawer__offers-panel,
html[data-theme="dark"] .quotation-drawer__details-panel,
html[data-theme="dark"] .quotation-drawer__cost-notes-panel,
html[data-theme="dark"] .quotation-drawer__remarks-panel,
html[data-theme="dark"] .quotation-drawer__change-panel,
html[data-theme="dark"] .quotation-drawer__offer,
html[data-theme="dark"] .quotation-drawer__selected-offer,
html[data-theme="dark"] .quotation-drawer__status-note,
html[data-theme="dark"] .quotation-drawer__footer {
  background: color-mix(in srgb, rgba(17, 18, 20, 0.72) 84%, var(--surface) 16%);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .quotation-drawer__cost-note {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1d1d20;
}

html[data-theme="dark"] .quotation-drawer__cost-note strong {
  color: #f1f1f2;
}

html[data-theme="dark"] .quotation-drawer__cost-note span,
html[data-theme="dark"] .quotation-drawer__cost-note p {
  color: #a6a6ad;
}

html[data-theme="dark"] .quotation-drawer__itemized-pricing {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .quotation-drawer__itemized-group {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1d1d20;
}

html[data-theme="dark"] .quotation-drawer__itemized-group header {
  background: rgba(110, 168, 255, 0.1);
  color: #eef4ff;
}

html[data-theme="dark"] .quotation-drawer__itemized-group p {
  color: #b7b7bd;
}

html[data-theme="dark"] .quotation-drawer__itemized-group p + p {
  border-top-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .quotation-drawer__itemized-group p strong {
  color: #f2f2f3;
}

html[data-theme="dark"] .quotation-drawer__itemized-empty {
  background: rgba(255, 255, 255, 0.06);
  color: #aaaab0;
}

html[data-theme="dark"] .quotation-drawer__offer:hover,
html[data-theme="dark"] .quotation-drawer__offer:focus-visible {
  border-color: rgba(110, 168, 255, 0.24);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] .quotation-drawer__header,
html[data-theme="dark"] .quotation-drawer__footer {
  border-color: rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, rgba(17, 18, 20, 0.62) 82%, var(--surface) 18%);
}

html[data-theme="dark"] .quotation-drawer__topbar {
  background: rgba(4, 6, 10, 0.94);
}

html[data-theme="dark"] .quotation-drawer__header p,
html[data-theme="dark"] .quotation-drawer__offers-empty p,
html[data-theme="dark"] .quotation-drawer__commercial-placeholder p,
html[data-theme="dark"] .quotation-drawer__detail-grid dt,
html[data-theme="dark"] .quotation-drawer__status-note,
html[data-theme="dark"] .quotation-drawer__remarks-panel p,
html[data-theme="dark"] .quotation-drawer__doc-row-meta,
html[data-theme="dark"] .quotation-drawer__docs-empty p,
html[data-theme="dark"] .quotation-drawer__docs-modal-copy p,
html[data-theme="dark"] .quotation-drawer__docs-modal-state p,
html[data-theme="dark"] .quotation-drawer__message-meta,
html[data-theme="dark"] .quotation-drawer__chat-day {
  color: var(--ink-muted);
}

html[data-theme="dark"] .quotation-drawer__detail-grid dd,
html[data-theme="dark"] .quotation-drawer__offer-airline strong,
html[data-theme="dark"] .quotation-drawer__offer-price,
html[data-theme="dark"] .quotation-drawer__selected-copy strong,
html[data-theme="dark"] .quotation-drawer__selected-price,
html[data-theme="dark"] .quotation-drawer__doc-row-name,
html[data-theme="dark"] .quotation-drawer__docs-modal-copy h3,
html[data-theme="dark"] .quotation-drawer__docs-modal-state strong,
html[data-theme="dark"] .quotation-drawer__section-head h3 {
  color: var(--ink);
}

html[data-theme="dark"] .quotation-drawer__reference-edit-button {
  color: var(--accent-soft);
}

html[data-theme="dark"] .quotation-drawer__reference-edit-button:hover,
html[data-theme="dark"] .quotation-drawer__reference-edit-button:focus-visible {
  color: var(--ink);
}

html[data-theme="dark"] .quotation-drawer__offer-note {
  color: rgba(226, 232, 240, 0.72);
}

html[data-theme="dark"] .quotation-drawer__status-note {
  background: color-mix(in srgb, rgba(17, 18, 20, 0.54) 90%, var(--surface) 10%);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.72);
}

html[data-theme="dark"] .quotation-drawer__hero-route,
html[data-theme="dark"] .quotation-drawer__hero-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .quotation-drawer__offer-logo,
html[data-theme="dark"] .quotation-drawer__dismiss {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .quotation-drawer__view-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .quotation-drawer__view-button.is-active {
  background: rgba(95, 162, 255, 0.24);
  border-color: rgba(95, 162, 255, 0.3);
  color: #fff;
}

html[data-theme="dark"] .quotation-drawer__owner-popover {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(35, 35, 37, 0.98) 0%, rgba(25, 25, 28, 0.98) 100%);
  box-shadow:
    0 24px 60px rgba(6, 10, 18, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

html[data-theme="dark"] .quotation-drawer__owner-card-copy span {
  color: rgba(232, 238, 246, 0.74);
}

html[data-theme="dark"] .quotation-drawer__owner-status-dot[data-status="offline"] {
  background: rgba(148, 163, 184, 0.9);
}

html[data-theme="dark"] .quotation-drawer__owner-assignee-stack .shipment-workspace-assignees__avatar {
  background: color-mix(in srgb, rgba(95, 162, 255, 0.22) 74%, var(--surface));
  color: #dbeafe;
  border-color: rgba(17, 24, 39, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar--count {
  background: color-mix(in srgb, rgba(95, 162, 255, 0.22) 74%, var(--surface));
  color: #dbeafe;
}

html[data-theme="dark"] .quotation-drawer__owner-assignee-stack > .shipment-workspace-assignees__avatar--empty {
  background: color-mix(in srgb, rgba(148, 163, 184, 0.22) 74%, var(--surface));
  color: var(--ink-muted);
}

html[data-theme="dark"] .quotation-drawer__owner-contact-toggle {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

html[data-theme="dark"] .quotation-drawer__owner-contact-toggle:hover,
html[data-theme="dark"] .quotation-drawer__owner-contact-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .quotation-drawer__owner-contact-panel {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.44);
}

html[data-theme="dark"] .quotation-drawer__owner-contact-icon {
  color: rgba(232, 238, 246, 0.64);
}

html[data-theme="dark"] .quotation-drawer__owner-copy-button {
  border-color: rgba(78, 138, 255, 0.34);
  background: rgba(46, 104, 216, 0.92);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .quotation-drawer__owner-status-dot[data-status="online"] {
    animation: none;
  }
}

html[data-theme="dark"] .quotation-drawer__owner-copy-button:hover,
html[data-theme="dark"] .quotation-drawer__owner-copy-button:focus-visible {
  background: rgba(60, 122, 241, 0.98);
}

html[data-theme="dark"] .quotation-drawer__back-button,
html[data-theme="dark"] .quotation-drawer__chat-composer,
html[data-theme="dark"] .quotation-drawer__docs-empty,
html[data-theme="dark"] .quotation-drawer__docs-list,
html[data-theme="dark"] .quotation-drawer__doc-row,
html[data-theme="dark"] .quotation-drawer__docs-modal-panel,
html[data-theme="dark"] .quotation-drawer__docs-modal-body,
html[data-theme="dark"] .quotation-drawer__message-bubble,
html[data-theme="dark"] .quotation-drawer__chat-input {
  background: color-mix(in srgb, rgba(17, 18, 20, 0.72) 84%, var(--surface) 16%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quotation-drawer__message--outgoing .quotation-drawer__message-bubble {
  background: color-mix(in srgb, rgba(29, 111, 165, 0.22) 42%, var(--surface) 58%);
  border-color: rgba(95, 162, 255, 0.18);
}

html[data-theme="dark"] .quotation-drawer__doc-label,
html[data-theme="dark"] .quotation-drawer__doc-icon-button,
html[data-theme="dark"] .quotation-drawer__docs-modal-dismiss {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .quotation-drawer__doc-icon-button:hover,
html[data-theme="dark"] .quotation-drawer__docs-modal-dismiss:hover {
  border-color: rgba(95, 162, 255, 0.22);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.22);
}

html[data-theme="dark"] .quotation-drawer__docs-total {
  background: rgba(95, 162, 255, 0.18);
  color: #dbeafe;
}

html[data-theme="dark"] .quotation-drawer__docs-modal-frame {
  background: rgba(15, 23, 42, 0.2);
}

html[data-theme="dark"] .quotation-drawer__message-avatar {
  background: color-mix(in srgb, rgba(95, 162, 255, 0.22) 72%, var(--surface));
  color: #dbeafe;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .quotation-drawer__message-sender {
  color: rgba(226, 232, 240, 0.72);
}

html[data-theme="dark"] .quotation-drawer__message--system .quotation-drawer__message-bubble,
html[data-theme="dark"] .quotation-drawer__chat-day {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .quotation-drawer__chat-send {
  background: rgba(95, 162, 255, 0.18);
  border-color: rgba(95, 162, 255, 0.26);
  color: #dbeafe;
}

html[data-theme="dark"] .quotation-drawer__offer-logo img {
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.18));
}

html[data-theme="dark"] .quotation-drawer__offer.is-selected {
  background: color-mix(in srgb, var(--surface) 88%, rgba(29, 111, 165, 0.22) 12%);
  border-color: rgba(110, 168, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(110, 168, 255, 0.12), 0 18px 32px rgba(2, 6, 23, 0.28);
}

html[data-theme="dark"] .quotation-drawer__offer.is-muted-reference {
  background: color-mix(in srgb, rgba(17, 18, 20, 0.54) 88%, var(--surface) 12%);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

html[data-theme="dark"] .quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-logo {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.58);
}

html[data-theme="dark"] .quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-airline strong,
html[data-theme="dark"] .quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-price {
  color: rgba(226, 232, 240, 0.82);
}

html[data-theme="dark"] .quotation-drawer__offer.is-muted-reference .quotation-drawer__offer-note {
  color: rgba(226, 232, 240, 0.52);
}

html[data-theme="dark"] .quotation-drawer__offer-selected {
  background: rgba(110, 168, 255, 0.16);
  color: #bfdbfe;
}

html[data-theme="dark"] .quotation-drawer__inline-error {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

html[data-theme="dark"] .quotation-drawer__reference-error {
  color: #fca5a5;
}

html[data-theme="dark"] .dashboard-widget-option.is-active {
  border-color: rgba(95, 162, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(95, 162, 255, 0.16);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(15, 15, 16, 0.18);
  box-shadow: 0 0 0 4px rgba(15, 15, 16, 0.05);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger-border);
  background: color-mix(in srgb, var(--danger-bg) 72%, var(--surface) 28%);
}

.field input.is-invalid-airport {
  border-color: var(--danger-border);
  background: color-mix(in srgb, var(--danger-bg) 72%, var(--surface) 28%);
}

.field input.is-invalid-airport:focus {
  border-color: var(--danger-border);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger-text) 14%, transparent 86%);
}

.field--airport-autocomplete {
  position: relative;
}

.field--airport-has-flag input {
  padding-left: 62px;
}

.airport-selected-flag {
  position: absolute;
  left: 18px;
  top: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--portal-type-body);
  line-height: 1;
  transform: translateY(-1px);
}

.airport-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 35;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.12);
  backdrop-filter: blur(14px);
}

.airport-autocomplete.frontend-select__dropdown--modal {
  z-index: 320;
}

.airport-autocomplete[hidden] {
  display: none;
}

.airport-autocomplete__option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  text-align: left;
  cursor: pointer;
  opacity: 1;
  color: var(--ink);
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  overflow: hidden;
  white-space: nowrap;
}

.airport-autocomplete__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--portal-type-body);
  line-height: 1;
  transform: translateY(-1px);
  flex: 0 0 auto;
}

.airport-autocomplete__code {
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  flex: 0 0 auto;
}

.airport-autocomplete__meta {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--portal-type-caption);
  line-height: 1.15;
  color: var(--ink-2);
}

.airport-autocomplete__option:hover,
.airport-autocomplete__option:focus-visible,
.airport-autocomplete__option.is-active {
  outline: none;
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.06);
}

html[data-theme="dark"] .address-section__search-results,
html[data-theme="dark"] .movement-address-card .address-section__search-results,
html[data-theme="dark"] .address-section__search-results--floating {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(20, 22, 26, 0.98);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .address-section__search-results::-webkit-scrollbar,
html[data-theme="dark"] .movement-address-card .address-section__search-results::-webkit-scrollbar {
  width: 10px;
}

html[data-theme="dark"] .address-section__search-results::-webkit-scrollbar-track,
html[data-theme="dark"] .movement-address-card .address-section__search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

html[data-theme="dark"] .address-section__search-results::-webkit-scrollbar-thumb,
html[data-theme="dark"] .movement-address-card .address-section__search-results::-webkit-scrollbar-thumb {
  border: 2px solid rgba(20, 22, 26, 0.98);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .address-section__search-result,
html[data-theme="dark"] .movement-address-card .address-section__search-result {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

html[data-theme="dark"] .address-section__search-result:hover,
html[data-theme="dark"] .address-section__search-result.is-active,
html[data-theme="dark"] .address-section__search-result:focus-visible,
html[data-theme="dark"] .movement-address-card .address-section__search-result:hover,
html[data-theme="dark"] .movement-address-card .address-section__search-result.is-active,
html[data-theme="dark"] .movement-address-card .address-section__search-result:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .address-section__search-result-main,
html[data-theme="dark"] .movement-address-card .address-section__search-result-main {
  color: var(--ink);
}

html[data-theme="dark"] .address-section__search-result-secondary,
html[data-theme="dark"] .movement-address-card .address-section__search-result-secondary {
  color: var(--ink-muted);
}

.field-select--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.request-panel-stack {
  display: grid;
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
}

.mode-panel {
  display: none;
}

.mode-panel.is-active {
  display: block;
}

.request-panel {
  padding: 20px;
  border: 1px solid rgba(15, 15, 16, 0.055);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 250, 0.78));
  box-shadow: 0 18px 44px rgba(15, 15, 16, 0.045);
}

.request-panel--soft {
  background: var(--surface-soft);
}

.request-panel--dimensions {
  display: grid;
  gap: 12px;
}

.request-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 15, 16, 0.055);
}

.request-panel--upload {
  padding: 0;
  overflow: hidden;
}

.request-panel__header h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  line-height: 1.15;
  color: var(--brand);
}

.request-panel__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dimensions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.dimensions-toggle__option {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.dimensions-toggle__option.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
}

.request-panel__grid {
  display: grid;
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
  margin-top: 18px;
}

.request-panel__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-panel__grid--airports {
  align-items: start;
}

.request-panel__grid--airports > .field {
  align-self: start;
  align-content: start;
  grid-template-rows: max-content minmax(var(--request-control-height), auto) minmax(0, max-content);
  min-height: calc(var(--request-control-height) + 34px);
}

.request-panel__grid--airports > .field > span:first-child,
.request-panel__grid--airports > .field input,
.request-panel__grid--airports > .field .field__hint {
  align-self: start;
}

.request-panel__grid--airports > .field .field__hint {
  margin-top: 0;
}

.request-panel__grid--airports > .field .field__hint[hidden] {
  display: none !important;
}

.request-panel__grid--airports > .field .airport-selected-flag {
  top: calc(0.76rem + var(--request-field-gap) + (var(--request-control-height) / 2));
  transform: translateY(-50%);
}

.request-panel__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-panel__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.request-section--shipment-setup {
  gap: calc(var(--request-section-gap) + 4px);
}

.request-section__header--shipment {
  align-items: flex-start;
}

.request-section__header--shipment > div {
  display: grid;
  gap: 4px;
  max-width: 52rem;
}

.request-section__header--shipment p {
  max-width: 28rem;
  margin: 0;
  font-size: var(--portal-type-body);
  line-height: 1.4;
  color: var(--ink-soft);
}

.request-group--shipment-flow {
  gap: 14px;
  padding: 20px;
  border-color: rgba(15, 15, 16, 0.065);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 248, 0.9) 100%);
  box-shadow:
    0 18px 48px rgba(15, 15, 16, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.request-group--shipment-flow .request-group__header {
  align-items: center;
}

.request-group--shipment-flow .request-group__header > div {
  display: grid;
  gap: 2px;
}

.request-group--shipment-flow .request-group__header > span {
  background:
    linear-gradient(180deg, rgba(15, 15, 16, 0.08), rgba(15, 15, 16, 0.04));
}

.request-group--shipment-flow > .request-group__header p,
.topline-card--movement-scope .request-group__header p,
.choice-card--mode small,
.request-panel--routing .request-panel__header p,
.topline-card--direction .topline-card__helper {
  display: none;
}

.request-section__gated--shipment-flow {
  gap: 14px;
}

.request-group--shipment-flow .request-section__grid--modes,
.request-group--shipment-flow .request-section__grid--topline,
.request-group--shipment-flow .request-section__grid,
.request-group--shipment-flow .movement-scope-addresses,
.request-panel-stack--routing {
  row-gap: 12px;
  column-gap: 12px;
}

.request-group--shipment-flow .request-section__grid--topline {
  grid-template-columns: minmax(0, 1.34fr) minmax(240px, 0.66fr);
}

.choice-card--mode {
  position: relative;
  min-height: 82px;
  padding: 15px 16px;
  border-radius: 20px;
  border-color: rgba(15, 15, 16, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 248, 249, 0.92) 100%);
  box-shadow:
    0 14px 34px rgba(15, 15, 16, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.choice-card--mode::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 15, 16, 0.08), rgba(15, 15, 16, 0));
  opacity: 0.72;
}

.choice-card--mode .choice-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 15, 16, 0.055) 0%, rgba(15, 15, 16, 0.035) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.choice-card--mode strong {
  font-size: var(--portal-type-body);
  line-height: 1.15;
}

.choice-card--mode small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: var(--portal-type-caption);
  line-height: 1.45;
}

.choice-card--mode:hover,
.choice-card--mode:focus-visible {
  transform: translateY(-1px);
}

.choice-card--mode.is-selected {
  border-color: rgba(15, 15, 16, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 0.98) 100%);
  box-shadow:
    0 18px 38px rgba(15, 15, 16, 0.07),
    inset 0 0 0 1px rgba(15, 15, 16, 0.07);
}

.choice-card--mode.is-selected::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(15, 15, 16, 0.42));
}

.topline-card--setup {
  min-height: 104px;
  padding: 16px;
  border-radius: 20px;
  border-color: rgba(15, 15, 16, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 248, 249, 0.84) 100%);
  box-shadow:
    0 12px 30px rgba(15, 15, 16, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  gap: 8px;
}

.topline-card--setup .field-label,
.topline-card--setup .field > span {
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.topline-card--setup .field--card > span {
  margin-bottom: 10px;
}

.topline-card--setup .request-group__header--inline {
  align-items: center;
}

.topline-card--movement-scope {
  padding-block: 16px;
}

.request-group--shipment-flow .segmented-control {
  margin-top: 2px;
  row-gap: 8px;
  column-gap: 8px;
}

.request-group--shipment-flow .segmented-control__option {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.request-group--shipment-flow .segmented-control__option--stacked {
  padding: 9px 12px;
}

.request-group--shipment-flow .request-section__grid--topline > .topline-card:not(.topline-card--direction) .incoterm-select__trigger,
.request-group--shipment-flow .request-section__grid--topline > .topline-card:not(.topline-card--direction) .field--card input[type="date"] {
  min-height: 42px;
  height: 42px;
}

.request-group--shipment-flow .segmented-control__option--stacked strong {
  font-size: var(--portal-type-body);
  letter-spacing: 0.01em;
  color: inherit;
}

.request-group--shipment-flow .segmented-control__option:hover,
.request-group--shipment-flow .segmented-control__option:focus-visible {
  color: var(--brand);
}

.request-group--shipment-flow .segmented-control__option:focus-visible {
  box-shadow:
    var(--control-focus-ring),
    0 14px 30px rgba(15, 15, 16, 0.08);
}

.request-group--shipment-flow .segmented-control__option.is-selected,
.request-group--shipment-flow .segmented-control__option.is-selected:hover,
.request-group--shipment-flow .segmented-control__option.is-selected:focus-visible,
.request-group--shipment-flow .segmented-control__option.is-selected:active {
  border-color: rgba(15, 15, 16, 0.18);
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow:
    0 14px 30px rgba(15, 15, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.request-group--shipment-flow .segmented-control__option.is-selected strong {
  color: inherit;
}

.request-group--shipment-flow .segmented-control__option:disabled,
.request-group--shipment-flow .segmented-control.is-locked .segmented-control__option:not(.is-selected) {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
}

.request-group--shipment-flow .movement-address-card {
  padding: 16px;
  border-radius: 20px;
  border-color: rgba(15, 15, 16, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 248, 249, 0.92) 100%);
  box-shadow:
    0 12px 28px rgba(15, 15, 16, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.request-panel--routing {
  padding: 16px 18px;
  border-radius: 22px;
  border-color: rgba(15, 15, 16, 0.065);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 248, 249, 0.86) 100%);
  box-shadow:
    0 16px 38px rgba(15, 15, 16, 0.042),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.request-panel--routing .request-panel__header {
  align-items: start;
  justify-content: flex-start;
  padding-bottom: 10px;
}

.request-panel--routing .request-panel__header > div {
  display: grid;
  gap: 4px;
}

.request-panel--routing .request-panel__grid {
  margin-top: 14px;
}

.request-panel--routing .field > span {
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.request-panel__body {
  display: grid;
  row-gap: var(--request-card-gap);
  column-gap: var(--request-card-gap);
  margin-top: 18px;
}

.request-panel--setup-shell,
.request-panel--movement-scope {
  padding: 16px 18px;
  border-radius: 22px;
  border-color: rgba(15, 15, 16, 0.065);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 248, 249, 0.86) 100%);
  box-shadow:
    0 16px 38px rgba(15, 15, 16, 0.042),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  gap: 12px;
}

.request-panel--setup-shell .request-panel__header,
.request-panel--movement-scope .request-panel__header {
  align-items: start;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 10px;
}

.request-panel--setup-shell .request-panel__header > div,
.request-panel--movement-scope .request-panel__header > div {
  display: grid;
  gap: 0;
}

.request-panel--setup-shell .request-panel__body,
.request-panel--movement-scope .request-panel__body,
.request-panel--setup-shell .request-section__grid--modes,
.request-panel--setup-shell .request-section__grid--topline,
.request-panel--setup-shell .request-section__gated,
.request-panel--movement-scope .segmented-control {
  row-gap: 12px;
  column-gap: 12px;
}

.request-panel--setup-shell .request-section__grid--topline {
  grid-template-columns: minmax(0, 1.34fr) minmax(240px, 0.66fr);
}

.request-panel--setup-shell .request-panel__body,
.request-panel--movement-scope .request-panel__body {
  margin-top: 12px;
}

.request-panel--routing-air .request-panel__header > div {
  gap: 0;
}

.request-panel--routing-air .request-panel__grid {
  margin-top: 12px;
}

.request-panel--setup-shell .topline-card--setup {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
}

.request-panel--setup-shell .topline-card--setup .field--card > span,
.request-panel--setup-shell .topline-card--setup .field-label {
  margin-bottom: 8px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}


.request-panel--setup-shell .choice-card--mode {
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 16px;
  border-color: rgba(15, 15, 16, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.request-panel--setup-shell .choice-card--mode::after {
  display: none;
}

.request-panel--setup-shell .choice-card--mode .choice-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.request-panel--setup-shell .segmented-control,
.request-panel--movement-scope .segmented-control {
  margin-top: 0;
  row-gap: 8px;
  column-gap: 8px;
}

.request-panel--setup-shell .segmented-control__option,
.request-panel--movement-scope .segmented-control__option {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.request-panel--setup-shell .segmented-control__option--stacked,
.request-panel--movement-scope .segmented-control__option--stacked {
  padding: 9px 12px;
}

.request-panel--setup-shell .segmented-control__option--stacked strong,
.request-panel--movement-scope .segmented-control__option--stacked strong {
  font-size: var(--portal-type-body);
  letter-spacing: 0.01em;
  color: inherit;
}

.request-panel--setup-shell .segmented-control__option:hover,
.request-panel--setup-shell .segmented-control__option:focus-visible,
.request-panel--movement-scope .segmented-control__option:hover,
.request-panel--movement-scope .segmented-control__option:focus-visible {
  color: var(--brand);
}

.request-panel--setup-shell .segmented-control__option:focus-visible,
.request-panel--movement-scope .segmented-control__option:focus-visible {
  box-shadow:
    var(--control-focus-ring),
    0 14px 30px rgba(15, 15, 16, 0.08);
}

.request-panel--setup-shell .segmented-control__option.is-selected,
.request-panel--setup-shell .segmented-control__option.is-selected:hover,
.request-panel--setup-shell .segmented-control__option.is-selected:focus-visible,
.request-panel--setup-shell .segmented-control__option.is-selected:active,
.request-panel--movement-scope .segmented-control__option.is-selected,
.request-panel--movement-scope .segmented-control__option.is-selected:hover,
.request-panel--movement-scope .segmented-control__option.is-selected:focus-visible,
.request-panel--movement-scope .segmented-control__option.is-selected:active {
  border-color: rgba(15, 15, 16, 0.18);
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow:
    0 14px 30px rgba(15, 15, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.request-panel--setup-shell .segmented-control__option.is-selected strong,
.request-panel--movement-scope .segmented-control__option.is-selected strong {
  color: inherit;
}

.request-panel--setup-shell .segmented-control__option:disabled,
.request-panel--setup-shell .segmented-control.is-locked .segmented-control__option:not(.is-selected),
.request-panel--movement-scope .segmented-control__option:disabled,
.request-panel--movement-scope .segmented-control.is-locked .segmented-control__option:not(.is-selected) {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
}

.request-panel--movement-scope .request-panel__body--movement-scope {
  row-gap: 0;
}

.request-card:not(.is-dev-mode) .request-section--shipment-setup {
  gap: 14px;
}

.request-card:not(.is-dev-mode) .request-section--shipment-setup > .request-section__header {
  margin-bottom: -2px;
}

.request-card:not(.is-dev-mode) .request-section--shipment-setup > .request-section__header h2 {
  font-size: var(--portal-type-subheading);
  letter-spacing: -0.035em;
}

.request-card:not(.is-dev-mode) .request-group--foundation,
.request-card:not(.is-dev-mode) .topline-card--movement-scope,
.request-card:not(.is-dev-mode) .request-panel--routing {
  border: 1px solid rgba(15, 15, 16, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.88) 100%);
  box-shadow:
    0 14px 34px rgba(15, 15, 16, 0.032),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.request-card:not(.is-dev-mode) .request-group--foundation {
  padding: 22px 30px 28px;
  gap: 28px;
  border-radius: 26px;
}

.request-card:not(.is-dev-mode) .request-group--foundation > .request-group__header,
.request-card:not(.is-dev-mode) .topline-card--movement-scope .request-group__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.request-card:not(.is-dev-mode) .request-group--foundation > .request-group__header > span,
.request-card:not(.is-dev-mode) .topline-card--movement-scope .request-group__header > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.045);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.request-card:not(.is-dev-mode) .request-group--foundation > .request-group__header h3,
.request-card:not(.is-dev-mode) .topline-card--movement-scope .request-group__header h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.request-card:not(.is-dev-mode) .request-group--foundation .request-section__grid--modes,
.request-card:not(.is-dev-mode) .request-group--foundation .request-section__grid--topline,
.request-card:not(.is-dev-mode) .request-group--foundation .request-section__gated,
.request-card:not(.is-dev-mode) .request-section__gated--movement-routing,
.request-card:not(.is-dev-mode) .movement-scope-addresses {
  row-gap: 14px;
  column-gap: 14px;
}

.request-card:not(.is-dev-mode) .request-group--foundation .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.request-card:not(.is-dev-mode) .choice-card--mode {
  position: relative;
  isolation: isolate;
  min-height: 112px;
  padding: 24px 58px 24px 32px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  border-radius: 18px;
  border-color: rgba(15, 15, 16, 0.075);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  overflow: hidden;
}

.request-card:not(.is-dev-mode) .choice-card--mode::after {
  display: none;
}

.request-card:not(.is-dev-mode) .choice-card--mode .choice-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.035);
  color: var(--brand);
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .choice-card--mode.is-selected .choice-card__icon {
  background: rgba(15, 15, 16, 0.035);
  color: var(--brand);
}

.request-card:not(.is-dev-mode) .choice-card--mode strong {
  font-size: var(--portal-type-body);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.request-card:not(.is-dev-mode) .choice-card--mode small {
  margin-top: 6px;
  font-size: var(--portal-type-caption);
  line-height: 1.35;
}

.request-card:not(.is-dev-mode) .choice-card--mode:hover,
.request-card:not(.is-dev-mode) .choice-card--mode:focus-visible {
  transform: none;
  border-color: rgba(15, 15, 16, 0.16);
  box-shadow: 0 10px 22px rgba(15, 15, 16, 0.045);
}

.request-card:not(.is-dev-mode) .choice-card--mode.is-selected {
  border-color: rgba(15, 15, 16, 0.54);
  background: rgba(15, 15, 16, 0.035);
  box-shadow:
    0 12px 28px rgba(15, 15, 16, 0.036),
    inset 0 0 0 1px rgba(15, 15, 16, 0.12);
}

.request-card:not(.is-dev-mode) .choice-card--mode.is-selected::before {
  content: "";
  position: absolute;
  left: auto;
  top: 16px;
  right: 16px;
  bottom: auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-contrast);
}

.request-card:not(.is-dev-mode) .choice-card--mode.is-selected::after {
  content: "";
  position: absolute;
  left: auto;
  top: 22px;
  right: 25px;
  bottom: auto;
  width: 6px;
  height: 10px;
  display: block;
  border-right: 2px solid var(--brand-contrast);
  border-bottom: 2px solid var(--brand-contrast);
  background: transparent;
  transform: rotate(45deg);
  opacity: 1;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline {
  --topline-control-start-offset: 0px;
  --topline-note-gap: 8px;
  --topline-note-reserve: 24px;
  grid-template-columns: minmax(260px, 1.25fr) repeat(2, minmax(190px, 0.92fr));
  gap: 14px;
  margin-top: 2px;
  padding-bottom: var(--topline-note-reserve);
}

.request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card {
  min-height: 76px;
  padding: 12px 14px;
  align-content: center;
  border-radius: 18px;
  border-color: rgba(15, 15, 16, 0.065);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card--direction {
  position: relative;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card--direction .topline-card__note {
  position: absolute;
  top: calc(68px + var(--topline-note-gap));
  left: 0;
  right: 0;
  margin: 0;
  pointer-events: none;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card:not(.topline-card--direction) {
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card > .topline-card__control {
  padding-block-start: 0;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control {
  min-height: 68px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(15, 15, 16, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  overflow: hidden;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option {
  min-height: 66px;
  border: 0;
  border-right: 1px solid rgba(15, 15, 16, 0.055);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option:last-child {
  border-right: 0;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option--stacked {
  padding: 6px 11px;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option--stacked strong {
  font-size: var(--portal-type-body);
  letter-spacing: 0;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected,
.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected:hover,
.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected:focus-visible,
.request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected:active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
  box-shadow: none;
}

.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected:hover,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected:focus-visible,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected:active {
  background: rgba(15, 15, 16, 0.045);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.18);
}

.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:first-child.is-selected,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:first-child.is-selected:hover,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:first-child.is-selected:focus-visible,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:first-child.is-selected:active {
  border-radius: 17px 0 0 17px;
}

.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:last-child.is-selected,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:last-child.is-selected:hover,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:last-child.is-selected:focus-visible,
.request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option:last-child.is-selected:active {
  border-radius: 0 17px 17px 0;
}

.request-card:not(.is-dev-mode) .request-section__grid--topline #incoterm-trigger,
.request-card:not(.is-dev-mode) .request-section__grid--topline #ready-date {
  min-height: 68px;
  height: 68px;
  padding-block: 0;
  border: 1px solid rgba(15, 15, 16, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope {
  min-height: 0;
  padding: 18px 20px;
  display: grid;
  gap: 16px;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope .request-group__header {
  margin-bottom: 0;
  padding-inline-start: 10px;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control {
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option {
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option--stacked {
  padding: 8px 12px;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option--stacked strong {
  font-size: var(--portal-type-body);
  letter-spacing: 0;
}

.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected,
.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected:hover,
.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected:focus-visible,
.request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected:active {
  border-color: rgba(15, 15, 16, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.12);
}

.request-card:not(.is-dev-mode) .request-panel-stack {
  gap: 14px;
}

.request-card:not(.is-dev-mode) .request-panel--routing {
  padding: 30px 34px 34px 20px;
  border-radius: 24px;
  box-shadow:
    0 12px 28px rgba(15, 15, 16, 0.028),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline-start: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__header > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__eyebrow {
  margin-bottom: 0;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.045);
  color: var(--ink-muted);
  font-size: 0;
  line-height: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__eyebrow::before {
  content: "03";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__header h3::before {
  content: "Routing";
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__header p {
  display: none;
}

.request-card:not(.is-dev-mode) .request-panel--routing .request-panel__grid {
  margin-top: 28px;
  gap: 38px;
}

.request-card:not(.is-dev-mode) .request-panel--routing .field {
  gap: 11px;
}

.request-card:not(.is-dev-mode) .request-panel--routing .field > span {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.request-card:not(.is-dev-mode) .request-panel--routing .field input,
.request-card:not(.is-dev-mode) .request-panel--routing .field select,
.request-card:not(.is-dev-mode) .request-panel--routing .field textarea {
  min-height: 76px;
  padding: 0 22px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--ink-muted);
  font-size: var(--portal-type-control-mobile);
  font-weight: 500;
  box-shadow: none;
}

.request-card:not(.is-dev-mode) .request-panel--routing-air .request-panel__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-card:not(.is-dev-mode) .request-panel--routing-air #air-origin,
.request-card:not(.is-dev-mode) .request-panel--routing-air #air-destination {
  padding-right: 22px;
  background-image: none;
}

.request-card:not(.is-dev-mode) .request-panel--routing-air .field--airport-has-flag #air-origin,
.request-card:not(.is-dev-mode) .request-panel--routing-air .field--airport-has-flag #air-destination {
  padding-left: 50px;
}

.request-card:not(.is-dev-mode) .request-panel--routing-air .airport-selected-flag {
  left: 22px;
  top: calc(1.08rem + 11px + 38px);
  height: 1em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(-50%);
}

.request-card:not(.is-dev-mode) .request-panel--routing-air #air-origin::placeholder,
.request-card:not(.is-dev-mode) .request-panel--routing-air #air-destination::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.dimensions-shell {
  display: grid;
  gap: 12px;
  align-items: start;
}

.dimensions-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cargo-editor-panel__head .dimensions-toggle {
  padding: 3px;
}

.cargo-editor-panel__head .dimensions-toggle__option {
  min-height: 26px;
  padding: 0 9px;
  font-size: var(--portal-type-body);
}

.cargo-editor-panel__head .dimensions-ai-button {
  min-height: 32px;
  padding: 0 11px;
  font-size: var(--portal-type-body);
}

.dimensions-ai-button.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: rgba(15, 15, 16, 0.22);
}

.dimensions-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dimensions-shell__main {
  display: grid;
  gap: 12px;
}

.dimensions-ai-import[hidden] {
  display: none !important;
}

.dimensions-ai-import {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 246, 0.92) 100%);
  overflow: hidden;
  max-height: 960px;
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    max-height 180ms ease,
    padding 180ms ease,
    border-color 180ms ease;
}

.dimensions-ai-import.is-collapsed {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

.dimensions-ai-import.is-expanded {
  opacity: 1;
  transform: translateY(0);
  max-height: 960px;
}

.dimensions-ai-import__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dimensions-ai-import__header strong {
  display: block;
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.dimensions-ai-import__header p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dimensions-ai-import__dropzone {
  min-height: 116px;
  padding: 18px;
  border: 1px dashed rgba(18, 18, 18, 0.18);
  border-radius: 18px;
  background: rgba(248, 248, 249, 0.92);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.dimensions-ai-import__dropzone-icon {
  display: none;
}

.dimensions-ai-import__sources {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.dimensions-ai-import__source {
  display: grid;
  min-width: 0;
}

.dimensions-ai-import__dropzone strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.dimensions-ai-import__dropzone p,
.dimensions-ai-import__dropzone span {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dimensions-ai-import__dropzone:focus-visible,
.dimensions-ai-import__dropzone.is-dragover {
  outline: none;
  border-color: rgba(15, 15, 16, 0.3);
  background: rgba(244, 244, 245, 1);
  box-shadow: inset 0 0 0 2px rgba(15, 15, 16, 0.06);
}

.dimensions-ai-import__file-label[hidden] {
  display: none !important;
}

.dimensions-ai-import__file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.06);
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dimensions-ai-import__status {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: var(--portal-type-caption);
  font-weight: 600;
  line-height: 1.45;
}

.dimensions-ai-import__status[data-tone="neutral"],
.dimensions-ai-import__status[data-tone="loading"] {
  background: rgba(15, 15, 16, 0.04);
  color: var(--ink-muted);
}

.dimensions-ai-import__status[data-tone="success"] {
  background: var(--success-bg);
  border-color: color-mix(in srgb, var(--success-text) 24%, transparent 76%);
  color: var(--success-text);
}

.dimensions-ai-import__status[data-tone="warning"] {
  background: var(--warning-bg);
  border-color: color-mix(in srgb, var(--warning-text) 24%, transparent 76%);
  color: var(--warning-text);
}

.dimensions-ai-import__status[data-tone="error"] {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.dimensions-ai-import__preview {
  display: grid;
  gap: 10px;
}

.dimensions-ai-import__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dimensions-ai-import__preview-head strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.dimensions-ai-import__preview-head span {
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.dimensions-ai-import__preview-list {
  display: grid;
  gap: 8px;
}

.dimensions-ai-import__preview-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.dimensions-ai-import__preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dimensions-ai-import__preview-meta strong {
  color: var(--brand);
  font-size: var(--portal-type-body);
}

.dimensions-ai-import__preview-meta span,
.dimensions-ai-import__preview-item p {
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.dimensions-ai-import__preview-item p {
  margin: 6px 0 0;
}

.dimensions-ai-import__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dimensions-ai-import__paste {
  display: grid;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.dimensions-ai-import__paste .field {
  display: grid;
  gap: 0;
  align-content: start;
  min-width: 0;
  height: 100%;
}

.dimensions-ai-import__paste textarea {
  min-height: 116px;
  height: 100%;
  resize: vertical;
}

.dimensions-ai-import__paste-actions {
  display: flex;
  justify-content: flex-end;
}

.dimensions-lines {
  display: grid;
  gap: 8px;
  overflow-x: visible;
  padding-bottom: 0;
}

.dimensions-lines__header,
.dimensions-line {
  display: grid;
  grid-template-columns:
    72px
    minmax(120px, 1fr)
    minmax(172px, 1.28fr)
    minmax(108px, 0.86fr)
    minmax(128px, 0.94fr);
  min-width: 0;
  gap: 8px;
}

.dimensions-lines__header {
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  align-items: end;
}

.dimensions-lines__stackable-header {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: inherit;
}

.dimensions-lines__stackable-master--header {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-left: 0;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  flex: 0 0 auto;
}

.dimensions-lines__stackable-master--header .dimensions-lines__stackable-box {
  width: 16px;
  height: 16px;
}

.dimensions-lines__stackable-header span {
  line-height: 1;
}

.dimensions-lines__list {
  display: grid;
  gap: 8px;
}

.dimensions-line {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 246, 247, 0.92) 100%);
  align-items: center;
}

.dimensions-line__field,
.dimensions-line__mini-field {
  display: grid;
  gap: 0;
  min-width: 0;
  align-content: start;
}

.dimensions-line__field input,
.dimensions-line__field .frontend-select__trigger,
.dimensions-line__field select,
.dimensions-line__mini-field input {
  min-height: 38px;
  height: 38px;
}

.dimensions-line__field input[type="number"],
.dimensions-line__mini-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.dimensions-line__field input[type="number"]::-webkit-outer-spin-button,
.dimensions-line__field input[type="number"]::-webkit-inner-spin-button,
.dimensions-line__mini-field input[type="number"]::-webkit-outer-spin-button,
.dimensions-line__mini-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dimensions-line__field .frontend-select {
  width: 100%;
}

.dimensions-line__group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}

.dimensions-line__row,
.dimensions-line__mobile-head {
  display: contents;
}

.dimensions-line__section {
  display: contents;
}

.dimensions-line__section--stackable {
  display: grid;
  gap: 0;
  min-width: 0;
  align-content: start;
}

.dimensions-line__stackable-actions {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.dimensions-line__remove-wrap {
  display: grid;
  justify-items: end;
  align-self: end;
}

.dimensions-line__mobile-head-copy,
.dimensions-line__mobile-kicker,
.dimensions-line__mobile-title,
.dimensions-line__mobile-label,
.dimensions-line__mini-label {
  display: none;
}

.dimensions-line__stackable {
  min-height: 38px;
  height: 38px;
  align-self: end;
  display: flex;
  min-width: 0;
  width: 100%;
}

.dimensions-line__stackable input[hidden] {
  display: none !important;
}

.dimensions-line__stackable-toggle {
  width: 100%;
  min-height: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.dimensions-line__stackable-control {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 22px;
  border: 1px solid rgba(15, 15, 16, 0.18);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--surface) 22%);
  box-shadow: inset 0 1px 2px rgba(15, 15, 16, 0.08);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.dimensions-line__stackable-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(15, 15, 16, 0.2);
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.dimensions-line__stackable-toggle.is-active {
  border-color: rgba(15, 15, 16, 0.18);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft) 12%);
  color: var(--brand);
}

.dimensions-line__stackable-toggle.is-active .dimensions-line__stackable-control {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 1px 2px rgba(15, 15, 16, 0.14), 0 6px 14px rgba(15, 15, 16, 0.12);
}

.dimensions-line__stackable-toggle.is-active .dimensions-line__stackable-control::after {
  transform: translateX(22px);
}

.dimensions-line__stackable-toggle:focus-visible {
  outline: none;
  border-color: rgba(15, 15, 16, 0.32);
  box-shadow: 0 0 0 3px rgba(15, 15, 16, 0.08);
}

.dimensions-line__stackable-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dimensions-line__stackable-value {
  min-width: 20px;
  text-align: left;
}

.dimensions-line__remove {
  width: 34px;
  min-width: 34px;
  min-height: 38px;
  height: 38px;
  align-self: center;
  justify-self: end;
  padding: 0;
  border-radius: 12px;
  font-size: var(--portal-type-body);
  line-height: 1;
}

html[data-theme="dark"] .dimensions-line {
  background: linear-gradient(180deg, rgba(30, 34, 40, 0.96) 0%, rgba(24, 27, 33, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .dimensions-line__stackable {
  background: var(--surface-soft);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dimensions-line__field .frontend-select__trigger,
html[data-theme="dark"] .dimensions-line__field input,
html[data-theme="dark"] .dimensions-line__field select,
html[data-theme="dark"] .dimensions-line__mini-field input {
  background: var(--surface);
}

.dimensions-lines__footer {
  display: flex;
  justify-content: flex-start;
}

.dimensions-metric {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 244, 245, 0.96) 100%);
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 88px;
}

.dimensions-metric__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.dimensions-metric__tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.06);
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dimensions-metric__value {
  display: block;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.toggle-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 72px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.toggle-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.toggle-card:hover {
  border-color: rgba(15, 15, 16, 0.14);
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft) 6%);
}

.toggle-card:active {
  transform: translateY(1px);
}

.toggle-card:has(input:focus-visible) {
  outline: none;
  border-color: rgba(15, 15, 16, 0.24);
  box-shadow: var(--control-focus-ring);
}

.toggle-card:has(input:checked) {
  border-color: rgba(15, 15, 16, 0.24);
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.98) 0%, rgba(239, 242, 246, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(15, 15, 16, 0.04),
    0 8px 18px rgba(15, 15, 16, 0.06);
}

.toggle-card:has(input:checked)::after {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
  opacity: 1;
  transform: scale(1);
  font-size: 0.72rem;
  font-weight: 700;
}

.toggle-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.toggle-card__content {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.toggle-card strong {
  display: block;
  color: var(--brand);
  line-height: 1.3;
  transition: color 150ms ease;
}

.toggle-card small {
  display: block;
  margin: 0;
  font-size: var(--portal-type-caption);
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color 150ms ease;
}

.toggle-card:has(input:checked) strong {
  color: var(--brand);
}

.toggle-card:has(input:checked) small {
  color: color-mix(in srgb, var(--ink) 78%, var(--ink-muted) 22%);
}

.file-dropzone {
  min-height: 180px;
  padding: 28px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
}

.file-dropzone strong {
  font-size: var(--portal-type-body);
  color: var(--brand);
}

.file-dropzone p,
.file-dropzone span {
  color: var(--ink-muted);
}

.file-dropzone.is-dragover {
  border-color: rgba(15, 15, 16, 0.2);
  background: #f4f4f5;
}

.file-dropzone.is-readonly {
  cursor: default;
  opacity: 0.76;
}

.file-list {
  display: grid;
  gap: 12px;
}

.file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.file-chip__meta {
  min-width: 0;
}

.file-chip__meta strong {
  display: block;
  color: var(--brand);
}

.file-chip__meta div {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
}

.file-chip__controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.file-chip__type-field {
  min-width: 220px;
}

.file-chip__type-field .frontend-select {
  width: 100%;
}

.file-chip__type-field .frontend-select__trigger {
  min-height: 34px;
  height: 34px;
  padding-right: 40px;
}

.file-chip__type-field .frontend-select__value {
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.file-chip__custom {
  grid-column: 1 / -1;
}

.file-chip__custom .field input {
  min-height: 38px;
  height: 38px;
}

.file-chip button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  cursor: pointer;
}

html[data-theme="dark"] .settings-sidebar__card,
html[data-theme="dark"] .settings-preview-card,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .settings-hero,
html[data-theme="dark"] .settings-subsection-card,
html[data-theme="dark"] .settings-employee-modal__panel,
html[data-theme="dark"] .settings-choice-card span,
html[data-theme="dark"] .settings-toggle-row,
html[data-theme="dark"] .settings-security-meter,
html[data-theme="dark"] .settings-activity-item,
html[data-theme="dark"] .settings-logo-uploader,
html[data-theme="dark"] .settings-logo-uploader__preview,
html[data-theme="dark"] .settings-branding-preview__surface--light,
html[data-theme="dark"] .settings-utility-card,
html[data-theme="dark"] .settings-build-card,
html[data-theme="dark"] .settings-profile-card,
html[data-theme="dark"] .settings-working-hours,
html[data-theme="dark"] .settings-employee-editor__summary,
html[data-theme="dark"] .settings-employee-editor__summary dl div,
html[data-theme="dark"] .settings-role-pill,
html[data-theme="dark"] .settings-kebab-button,
html[data-theme="dark"] .settings-employee-menu,
html[data-theme="dark"] .settings-employee-details__grid div,
html[data-theme="dark"] .settings-empty-state,
html[data-theme="dark"] .settings-role-grid article {
  background: color-mix(in srgb, var(--surface-soft) 86%, var(--surface) 14%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .settings-team-row.is-active-account {
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft) 12%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .settings-team-row.is-inactive-account {
  background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface) 10%);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .settings-save-indicator,
html[data-theme="dark"] .settings-sidebar__link,
html[data-theme="dark"] .settings-preview-card__status {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .settings-kebab-button:hover,
html[data-theme="dark"] .settings-kebab-button[aria-expanded="true"],
html[data-theme="dark"] .settings-employee-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .settings-team-row:not(.settings-team-row--header):hover,
html[data-theme="dark"] .settings-team-row:not(.settings-team-row--header):focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .settings-workday-row {
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .settings-workday-row:has(input[type="checkbox"]:checked),
html[data-theme="dark"] .settings-workday-row__time input[type="time"],
html[data-theme="dark"] .settings-availability-footer .field input[readonly] {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .settings-sidebar__link.is-active,
html[data-theme="dark"] .settings-color-field input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .settings-avatar {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    color-mix(in srgb, var(--surface-soft) 84%, var(--surface) 16%);
}

html[data-theme="dark"] .settings-choice-card input:checked + span {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 20px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .settings-brand-chip {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .settings-brand-chip__mark,
html[data-theme="dark"] .settings-preview__brand {
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .settings-brand-chip--dark {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .settings-toast {
  background: rgba(22, 28, 24, 0.96);
}

@media (max-width: 900px) {
  .dimensions-ai-import__sources {
    grid-template-columns: 1fr;
  }

  .dimensions-header-tools,
  .dimensions-ai-import__header,
  .dimensions-ai-import__preview-head,
  .dimensions-ai-import__actions {
    width: 100%;
  }

  .dimensions-header-tools {
    justify-content: flex-start;
  }

  .dimensions-ai-import__header,
  .dimensions-ai-import__preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dimensions-ai-import__actions {
    justify-content: stretch;
  }

  .dimensions-ai-import__paste-actions {
    justify-content: stretch;
  }

  .dimensions-ai-import__actions .button {
    flex: 1 1 180px;
  }

  .dimensions-ai-import__paste-actions .button {
    flex: 1 1 auto;
  }

  .file-chip {
    grid-template-columns: 1fr;
  }

  .file-chip__controls {
    flex-wrap: wrap;
  }

  .file-chip__type-field {
    min-width: min(100%, 220px);
    flex: 1 1 220px;
  }

  .settings-shell,
  .settings-branding-grid,
  .settings-grid--two,
  .settings-grid--three,
  .settings-inline-grid,
  .settings-choice-grid--three,
  .settings-choice-grid--two,
  .settings-activity-list,
  .settings-utility-grid,
  .settings-profile-layout,
  .settings-toggle-list,
  .settings-table-toolbar,
  .settings-role-grid {
    grid-template-columns: 1fr;
  }

  .settings-subsection-card__header--split {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-sidebar__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .settings-sidebar__link {
    width: auto;
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .settings-team-list {
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .settings-workday-row {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: stretch;
  }

  .settings-workday-row__time {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .settings-team-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px 10px;
  }

  .settings-team-row--header {
    display: none;
  }

  .settings-team-row__cell,
  .settings-role-pill {
    grid-column: 2 / -1;
    white-space: normal;
  }

  .settings-team-row__cell::before,
  .settings-role-pill::before {
    content: attr(data-label) ": ";
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .settings-team-row__actions {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  .settings-employee-editor,
  .settings-employee-details {
    padding: 14px;
  }

  .settings-employee-modal__panel {
    max-height: 88vh;
    padding: 16px;
  }

  .settings-employee-editor__summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-employee-editor__summary dl {
    grid-column: 1 / -1;
  }

  .settings-employee-details__grid {
    grid-template-columns: 1fr;
  }

  .settings-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-hero__actions {
    justify-content: stretch;
  }

  .settings-hero__actions .button,
  .settings-hero__actions .settings-save-indicator {
    width: 100%;
    justify-content: center;
  }
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 2px 0;
  border-top: 1px solid rgba(15, 15, 16, 0.055);
}

.form-footer__meta {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.form-footer__meta small {
  color: var(--ink-muted);
  font-weight: 600;
}

.form-footer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#save-draft-button {
  min-height: 40px;
  padding-inline: 18px;
  color: var(--ink-muted);
  background: transparent;
  border-color: rgba(15, 15, 16, 0.08);
}

#next-step {
  min-height: 44px;
  padding-inline: 24px;
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(15, 15, 16, 0.14);
}

.button {
  position: relative;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.button[hidden] {
  display: none !important;
}

.button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(15, 15, 16, 0.14);
}

.button--small {
  min-height: 34px;
  padding: 0 12px;
  font-size: var(--portal-type-body);
}

.button--primary {
  background: var(--brand);
  color: var(--brand-contrast);
}

.button--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.portal-rail {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 0;
}

.timeline::before {
  content: none;
}

.timeline::after {
  content: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  cursor: pointer;
}

.timeline-item.is-disabled {
  cursor: default;
  pointer-events: none;
}

.timeline-item__marker {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(15, 15, 16, 0.18);
  background: rgba(255, 255, 255, 0.92);
  margin-top: 8px;
  display: grid;
  place-items: center;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.timeline-item__marker::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(15, 15, 16, 0.2);
  opacity: 0;
  transform: scale(0.7);
  transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.timeline-item__marker::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 15, 16, 0.07) 0%, rgba(15, 15, 16, 0.04) 44%, rgba(15, 15, 16, 0) 74%);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.timeline-item__marker[data-progress-state="empty"] {
  background: rgba(245, 245, 246, 0.96);
}

.timeline-item__marker[data-progress-state="in-progress"] {
  border-color: rgba(15, 15, 16, 0.96);
}

.timeline-item__marker[data-progress-state="in-progress"]::before {
  opacity: 1;
  transform: scale(1);
  background: var(--brand);
}

.timeline-item__marker[data-progress-state="attention"] {
  border-color: rgba(180, 98, 24, 0.5);
  background: rgba(255, 246, 235, 0.96);
}

.timeline-item__marker[data-progress-state="attention"]::before {
  opacity: 1;
  transform: scale(1);
  background: #c46b11;
}

.timeline-item__marker[data-progress-state="complete"] {
  border-color: rgba(19, 122, 76, 0.34);
  background: rgba(236, 249, 241, 0.98);
}

.timeline-item__marker[data-progress-state="complete"]::before {
  opacity: 1;
  transform: scale(1);
  background: #1f8f5f;
}

.quotations-create-view:not(.is-dev-mode) .timeline-item.is-active .timeline-item__marker {
  box-shadow: 0 0 0 6px rgba(15, 15, 16, 0.04);
}

.quotations-create-view:not(.is-dev-mode) .timeline-item.is-active .timeline-item__marker::after {
  opacity: 1;
  animation: timeline-marker-active-pulse 2.6s ease-in-out infinite;
}

@keyframes timeline-marker-active-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quotations-create-view:not(.is-dev-mode) .timeline-item.is-active .timeline-item__marker::after {
    animation: none;
    opacity: 0.9;
    transform: scale(1);
  }
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled,
.frontend-select__trigger[aria-disabled="true"],
.incoterm-select__trigger[aria-disabled="true"],
.dangerous-goods-selector__trigger[aria-disabled="true"] {
  color: var(--ink-soft);
  opacity: 1;
}

html[data-theme="dark"] .request-tab {
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-tab.is-active,
html[data-theme="dark"] .request-tab:hover,
html[data-theme="dark"] .request-tab:focus-visible {
  color: var(--ink);
}

html[data-theme="dark"] .request-form.is-readonly .field input:disabled,
html[data-theme="dark"] .request-form.is-readonly .field textarea:disabled,
html[data-theme="dark"] .request-form.is-readonly .field select:disabled,
html[data-theme="dark"] .request-form.is-readonly .frontend-select__trigger[aria-disabled="true"],
html[data-theme="dark"] .request-form.is-readonly .incoterm-select__trigger[aria-disabled="true"],
html[data-theme="dark"] .request-form.is-readonly .dangerous-goods-selector__trigger[aria-disabled="true"] {
  background: color-mix(in srgb, var(--surface) 92%, #0f172a 8%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-tabs__indicator {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

html[data-theme="dark"] .choice-card__icon,
html[data-theme="dark"] .dimensions-metric__tag,
html[data-theme="dark"] .route-map__status-note,
html[data-theme="dark"] .dimensions-toggle,
html[data-theme="dark"] .file-chip button,
html[data-theme="dark"] .airport-autocomplete__option,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option,
html[data-theme="dark"] .movement-address-card .address-section__search-result,
html[data-theme="dark"] .dimensions-ai-import__preview-item {
  background: var(--surface-soft);
}

html[data-theme="dark"] .portal-topbar__badge {
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .portal-topbar__link,
html[data-theme="dark"] .portal-language,
html[data-theme="dark"] .portal-theme-toggle {
  color: #fff;
}

html[data-theme="dark"] .portal-topbar__link {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .portal-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .portal-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .portal-theme-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.portal-language .frontend-select {
  display: inline-flex;
}

.portal-language .field-select--hidden {
  position: absolute;
  inset: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-language .frontend-select__trigger {
  width: auto;
  min-height: 32px;
  padding: 0 24px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  font-size: var(--portal-type-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: none;
}

.portal-language .frontend-select__trigger::after {
  right: 10px;
  width: 6px;
  height: 6px;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
  border-right-color: rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-58%) rotate(45deg);
}

.portal-language .frontend-select__value {
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1;
}

.portal-language .frontend-select__trigger:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.portal-language .frontend-select__trigger:focus-visible,
.portal-language .frontend-select__trigger.is-open {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.portal-language .frontend-select__trigger.is-open::after,
.portal-language .frontend-select__trigger:focus-visible::after {
  border-right-color: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.62);
}

.frontend-select__dropdown--language {
  border-radius: 14px;
  background: rgba(17, 17, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  width: max-content;
  min-width: 148px;
  max-width: min(240px, calc(100vw - 24px));
}

.frontend-select__dropdown--language .airport-autocomplete__option {
  min-height: 0;
  padding: 9px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.frontend-select__dropdown--language .airport-autocomplete__option:hover,
.frontend-select__dropdown--language .airport-autocomplete__option:focus-visible,
.frontend-select__dropdown--language .airport-autocomplete__option.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.frontend-select__dropdown--language .frontend-select__option-text {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

html:not([data-theme="dark"]) .portal-language .frontend-select__trigger {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
}

html:not([data-theme="dark"]) .portal-language .frontend-select__trigger:hover {
  background: rgba(255, 255, 255, 0.085);
}

html[data-theme="dark"] .portal-language .frontend-select__trigger {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .portal-language .frontend-select__trigger:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .portal-language .frontend-select__trigger:focus-visible,
html[data-theme="dark"] .portal-language .frontend-select__trigger.is-open {
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .frontend-select__dropdown--language {
  background: rgba(20, 22, 26, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

html:not([data-theme="dark"]) .frontend-select__dropdown--language {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 15, 16, 0.08);
  box-shadow: 0 18px 30px rgba(18, 18, 18, 0.12);
}

html:not([data-theme="dark"]) .frontend-select__dropdown--language .airport-autocomplete__option {
  color: rgba(15, 15, 16, 0.88);
}

html:not([data-theme="dark"]) .frontend-select__dropdown--language .airport-autocomplete__option:hover,
html:not([data-theme="dark"]) .frontend-select__dropdown--language .airport-autocomplete__option:focus-visible,
html:not([data-theme="dark"]) .frontend-select__dropdown--language .airport-autocomplete__option.is-active {
  background: rgba(15, 15, 16, 0.05);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 16, 0.04);
}

html[data-theme="dark"] .portal-theme-toggle__icon {
  color: rgba(255, 255, 255, 0.56);
}

html[data-theme="dark"] .portal-theme-toggle__track {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .portal-theme-toggle__thumb {
  background: var(--brand);
}

html[data-theme="dark"] .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__thumb {
  background: #fff;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .movement-address-card .address-section__field input,
html[data-theme="dark"] .movement-address-card .address-section__search-field input,
html[data-theme="dark"] .incoterm-select__trigger,
html[data-theme="dark"] .frontend-select__trigger,
html[data-theme="dark"] .dangerous-goods-selector__trigger,
html[data-theme="dark"] .dimensions-line__field .frontend-select__trigger,
html[data-theme="dark"] .dimensions-line__field input,
html[data-theme="dark"] .dimensions-line__field select,
html[data-theme="dark"] .dimensions-line__mini-field input {
  background: color-mix(in srgb, var(--surface) 88%, #fff 12%);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .incoterm-select__value,
html[data-theme="dark"] .frontend-select__value,
html[data-theme="dark"] .dangerous-goods-selector__trigger {
  color: var(--ink);
}

html[data-theme="dark"] .incoterm-select__trigger.is-placeholder .incoterm-select__value,
html[data-theme="dark"] .frontend-select__trigger.is-placeholder .frontend-select__value {
  color: var(--ink-soft);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
  color: var(--ink-soft);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .incoterm-select__trigger.is-open,
html[data-theme="dark"] .frontend-select__trigger.is-open,
html[data-theme="dark"] .dangerous-goods-selector__trigger[aria-expanded="true"],
html[data-theme="dark"] .movement-address-card .address-section__field input:focus,
html[data-theme="dark"] .movement-address-card .address-section__search-field input:focus {
  background: var(--control-open-bg);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .field input[aria-invalid="true"],
html[data-theme="dark"] .field textarea[aria-invalid="true"],
html[data-theme="dark"] .field select[aria-invalid="true"],
html[data-theme="dark"] .field input.is-invalid-airport,
html[data-theme="dark"] .incoterm-select__trigger.is-invalid,
html[data-theme="dark"] .frontend-select__trigger.is-invalid {
  border-color: var(--danger-border);
  background: color-mix(in srgb, var(--danger-bg) 54%, var(--surface) 46%);
}

html[data-theme="dark"] .dangerous-goods-selector__trigger::after,
html[data-theme="dark"] .dangerous-goods-selector__caret,
html[data-theme="dark"] .incoterm-select__trigger::after,
html[data-theme="dark"] .frontend-select__trigger::after {
  border-right-color: rgba(255, 255, 255, 0.64);
  border-bottom-color: rgba(255, 255, 255, 0.64);
}

html[data-theme="dark"] .choice-card.is-selected,
html[data-theme="dark"] .segmented-control__option.is-selected,
html[data-theme="dark"] .dimensions-toggle__option.is-active,
html[data-theme="dark"] .dimensions-ai-button.is-active,
html[data-theme="dark"] .dashboard-filter-pill.is-active {
  background: var(--control-selected-bg);
  border-color: var(--control-selected-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--control-selected-text);
}

html[data-theme="dark"] .choice-card.is-selected .choice-card__icon {
  background: var(--control-selected-icon-bg);
  color: var(--control-selected-text);
}

html[data-theme="dark"] .choice-card.is-selected strong,
html[data-theme="dark"] .segmented-control__option.is-selected strong,
html[data-theme="dark"] .dimensions-ai-button.is-active,
html[data-theme="dark"] .dashboard-filter-pill.is-active {
  color: var(--control-selected-text);
}

html[data-theme="dark"] .choice-card.is-selected small,
html[data-theme="dark"] .segmented-control__option.is-selected span,
html[data-theme="dark"] .dashboard-filter-pill.is-active small {
  color: var(--control-selected-muted);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-group--foundation,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(25, 27, 30, 0.96) 0%, rgba(17, 19, 22, 0.98) 100%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-group--foundation > .request-group__header > span,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .request-group__header > span,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .request-panel__eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .request-panel__eyebrow::before {
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-group--foundation > .request-group__header h3,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .request-group__header h3,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .request-panel__header h3::before {
  color: var(--ink);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode .choice-card__icon,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode.is-selected .choice-card__icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode strong {
  color: var(--ink);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode:hover,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode.is-selected {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.095);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode.is-selected::before {
  background: var(--ink);
  color: var(--brand-contrast);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .choice-card--mode.is-selected::after {
  border-right-color: var(--brand-contrast);
  border-bottom-color: var(--brand-contrast);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline #incoterm-trigger,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline #ready-date,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .field input,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .field select,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .field textarea {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card--direction,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline > .topline-card:not(.topline-card--direction) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option {
  border-right-color: rgba(255, 255, 255, 0.075);
  background: transparent;
  color: var(--ink-muted);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option strong,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option strong {
  color: inherit;
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected:hover,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected:focus-visible,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline .segmented-control__option.is-selected:active,
html[data-theme="dark"] .request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected,
html[data-theme="dark"] .request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected:hover,
html[data-theme="dark"] .request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected:focus-visible,
html[data-theme="dark"] .request-card:not(.is-dev-mode) #shipment-direction-group .segmented-control__option.is-selected:active,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected:hover,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected:focus-visible,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control__option.is-selected:active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline #incoterm-trigger.is-placeholder .incoterm-select__value,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline #ready-date::placeholder,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing-air #air-origin::placeholder,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing-air #air-destination::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline #incoterm-trigger:not(.is-placeholder) .incoterm-select__value,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-section__grid--topline #ready-date,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .field input {
  color: var(--ink);
}

html[data-theme="dark"] .request-card:not(.is-dev-mode) .request-panel--routing .field > span,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .topline-card__note,
html[data-theme="dark"] .request-card:not(.is-dev-mode) .airport-selected-flag {
  color: var(--ink-muted);
}

html[data-theme="dark"] .button--primary {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .button--secondary {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .quotation-drawer__panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: min(700px, calc(100vw - 24px));
  }

  .quotation-drawer__detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotation-drawer__footer {
    grid-template-columns: 1fr;
  }

  .quotation-drawer__footer.is-readonly {
    grid-template-columns: 1fr;
  }

  .quotation-drawer__docs-modal {
    padding: 16px;
  }

  .quotation-drawer__docs-modal-frame,
  .quotation-drawer__docs-modal-image-shell,
  .quotation-drawer__docs-modal-state {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .quotation-drawer__panel {
    inset: 0;
    left: 0;
    right: 0;
    width: 100vw;
    border-radius: 0;
    transform: translate3d(100%, 0, 0);
  }

  .quotation-drawer.is-open .quotation-drawer__panel {
    transform: translate3d(0, 0, 0);
  }

  .quotation-drawer__body,
  .quotation-drawer__footer,
  .quotation-drawer__context,
  .quotation-drawer__topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quotation-drawer__selected-offer,
  .quotation-drawer__offer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quotation-drawer__selected-side,
  .quotation-drawer__offer-side {
    width: 100%;
    justify-items: start;
  }

  .quotation-drawer__detail-grid {
    grid-template-columns: 1fr;
  }

  .quotation-drawer__topbar {
    grid-template-columns: 1fr;
  }

  .quotation-drawer__topbar-actions,
  .quotation-drawer__context {
    flex-wrap: wrap;
  }

  .quotation-drawer__context-actions {
    width: 100%;
    justify-content: space-between;
  }

  .quotation-drawer__chat-composer {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .quotation-drawer__chat-send {
    grid-column: 1 / -1;
  }

  .quotation-drawer__doc-row {
    grid-template-columns: 1fr;
  }

  .quotation-drawer__doc-actions,
  .quotation-drawer__docs-modal-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .quotation-drawer__docs-modal {
    padding: 14px;
  }

  .quotation-drawer__docs-modal-panel {
    width: 100%;
    max-height: 100%;
  }

  .quotation-drawer__docs-modal-header {
    display: grid;
    gap: 12px;
  }

  .quotation-drawer__chat-emoji-shell {
    left: 0;
    width: min(352px, calc(100vw - 40px));
  }
}

html[data-theme="dark"] .request-tabs__view-toggle {
  background: color-mix(in srgb, var(--surface-soft) 90%, #fff 10%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .request-view-toggle__option:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .request-view-toggle__option.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--control-selected-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(23, 30, 44, 0.9);
  color: rgba(229, 235, 244, 0.78);
}

html[data-theme="dark"] .quotation-drawer__message-attachment {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(21, 29, 42, 0.88);
}

html[data-theme="dark"] .quotation-drawer__chat-attach-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(23, 30, 44, 0.9);
  color: rgba(229, 235, 244, 0.78);
}

html[data-theme="dark"] .quotation-drawer__chat-attach-button:hover,
html[data-theme="dark"] .quotation-drawer__chat-attach-button:focus-visible {
  border-color: rgba(98, 162, 220, 0.34);
  background: rgba(29, 43, 66, 0.96);
  color: #8ac0ff;
}

html[data-theme="dark"] .quotation-drawer__chat-panel.is-dragover .quotation-drawer__chat-composer {
  border-color: rgba(98, 162, 220, 0.26);
  background: rgba(25, 35, 52, 0.96);
  box-shadow: 0 0 0 2px rgba(98, 162, 220, 0.1);
}

html[data-theme="dark"] .quotation-drawer__chat-attachment-chip {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(21, 29, 42, 0.92);
}

html[data-theme="dark"] .quotation-drawer__chat-attachment-remove {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(25, 35, 52, 0.94);
  color: rgba(229, 235, 244, 0.78);
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-button:hover,
html[data-theme="dark"] .quotation-drawer__chat-emoji-button:focus-visible,
html[data-theme="dark"] .quotation-drawer__chat-emoji-button[aria-expanded="true"] {
  border-color: rgba(98, 162, 220, 0.34);
  background: rgba(29, 43, 66, 0.96);
  color: #8ac0ff;
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 20, 31, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-tabs {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(19, 25, 38, 0.96);
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-tab {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(28, 37, 55, 0.96);
  color: #b8c4d7;
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-group h4,
html[data-theme="dark"] .quotation-drawer__chat-emoji-empty {
  color: #9aabc1;
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-option {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(24, 31, 46, 0.96);
}

html[data-theme="dark"] .quotation-drawer__chat-emoji-option:hover,
html[data-theme="dark"] .quotation-drawer__chat-emoji-option:focus-visible {
  border-color: rgba(98, 162, 220, 0.32);
  background: rgba(32, 42, 64, 0.98);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .button--ghost {
  color: var(--ink-2);
}

html[data-theme="dark"] .button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .form-alert,
html[data-theme="dark"] .dangerous-goods-field__error,
html[data-theme="dark"] .movement-address-card .address-section__field-error,
html[data-theme="dark"] .movement-address-card .address-section__search-status.is-error {
  color: var(--danger-text);
}

html[data-theme="dark"] .form-alert[data-tone="success"] {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.22);
}

html[data-theme="dark"] .form-alert--info,
html[data-theme="dark"] .form-alert[data-tone="info"] {
  background: rgba(29, 111, 165, 0.18);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.22);
}

html[data-theme="dark"] .dimensions-ai-import__status[data-tone="neutral"],
html[data-theme="dark"] .dimensions-ai-import__status[data-tone="loading"],
html[data-theme="dark"] .modality-guidance,
html[data-theme="dark"] .topline-card__helper,
html[data-theme="dark"] .topline-card__note,
html[data-theme="dark"] .form-footer__meta small {
  color: var(--ink-muted);
}

html[data-theme="dark"] .timeline::before {
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .timeline::after {
  background: rgba(255, 255, 255, 0.26);
}

html[data-theme="dark"] .timeline-item__marker {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--surface-muted);
  --timeline-marker-empty-segment: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .timeline-item__marker::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.07) 44%, rgba(255, 255, 255, 0) 74%);
}

html[data-theme="dark"] .timeline-item__marker {
  --timeline-marker-fill: transparent;
}

html[data-theme="dark"] .timeline-item__marker[data-progress-state="partial"]::before {
  background: var(--timeline-marker-fill);
}

html[data-theme="dark"] .airport-autocomplete__option:hover,
html[data-theme="dark"] .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .airport-autocomplete__option.is-active,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:hover,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option.is-active,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:hover,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option.is-active,
html[data-theme="dark"] .movement-address-card .address-section__search-result:hover,
html[data-theme="dark"] .movement-address-card .address-section__search-result:focus-visible,
html[data-theme="dark"] .movement-address-card .address-section__search-result.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html[data-theme="dark"] .airport-autocomplete__option:hover .airport-autocomplete__code,
html[data-theme="dark"] .airport-autocomplete__option:focus-visible .airport-autocomplete__code,
html[data-theme="dark"] .airport-autocomplete__option.is-active .airport-autocomplete__code,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:hover .airport-autocomplete__code,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:focus-visible .airport-autocomplete__code,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option.is-active .airport-autocomplete__code,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:hover .airport-autocomplete__code,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:focus-visible .airport-autocomplete__code,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option.is-active .airport-autocomplete__code {
  color: var(--ink);
}

html[data-theme="dark"] .airport-autocomplete__option:hover .airport-autocomplete__meta,
html[data-theme="dark"] .airport-autocomplete__option:focus-visible .airport-autocomplete__meta,
html[data-theme="dark"] .airport-autocomplete__option.is-active .airport-autocomplete__meta,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:hover .airport-autocomplete__meta,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:focus-visible .airport-autocomplete__meta,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option.is-active .airport-autocomplete__meta,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:hover .airport-autocomplete__meta,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:focus-visible .airport-autocomplete__meta,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option.is-active .airport-autocomplete__meta {
  color: var(--control-selected-muted);
}

html[data-theme="dark"] .timeline-item__marker[data-progress-state="complete"] {
  border-color: var(--brand);
}

html[data-theme="dark"] .timeline-item__card {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(25, 27, 30, 0.96) 0%, rgba(17, 19, 22, 0.98) 100%);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .timeline-item__chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
}

html[data-theme="dark"] .timeline-item__badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted);
}

html[data-theme="dark"] .timeline-item__badge[data-progress-state="in-progress"] {
  background: rgba(255, 255, 255, 0.9);
  color: #0f1113;
}

html[data-theme="dark"] .timeline-item__badge[data-progress-state="attention"] {
  background: rgba(241, 179, 82, 0.18);
  color: #f4be73;
}

html[data-theme="dark"] .timeline-item__badge[data-progress-state="complete"] {
  background: rgba(31, 143, 95, 0.18);
  color: #7edcae;
}

html[data-theme="dark"] .timeline-item.is-active .timeline-item__card {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .file-dropzone.is-dragover,
html[data-theme="dark"] .dimensions-ai-import__dropzone:focus-visible,
html[data-theme="dark"] .dimensions-ai-import__dropzone.is-dragover,
html[data-theme="dark"] .airport-autocomplete__option:hover,
html[data-theme="dark"] .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .airport-autocomplete__option.is-active,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:hover,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .frontend-incoterm-dropdown .airport-autocomplete__option.is-active,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:hover,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option:focus-visible,
html[data-theme="dark"] .frontend-select__dropdown .airport-autocomplete__option.is-active,
html[data-theme="dark"] .movement-address-card .address-section__search-result:hover,
html[data-theme="dark"] .movement-address-card .address-section__search-result.is-active,
html[data-theme="dark"] .movement-address-card .address-section__search-result:focus-visible,
html[data-theme="dark"] .dangerous-goods-option:hover,
html[data-theme="dark"] .dangerous-goods-option:focus-visible,
html[data-theme="dark"] .dangerous-goods-option.is-selected {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dimensions-metric__head,
html[data-theme="dark"] .dimensions-ai-import__preview-head span,
html[data-theme="dark"] .dimensions-lines__header,
html[data-theme="dark"] .request-section__header p,
html[data-theme="dark"] .request-panel__header p,
html[data-theme="dark"] .success-card p,
html[data-theme="dark"] .timeline-item__body p,
html[data-theme="dark"] .timeline-item__card span,
html[data-theme="dark"] .choice-card small,
html[data-theme="dark"] .toggle-card small,
html[data-theme="dark"] .file-chip__meta div,
html[data-theme="dark"] .airport-autocomplete__meta,
html[data-theme="dark"] .route-map__status-note,
html[data-theme="dark"] .dimensions-ai-import__dropzone p,
html[data-theme="dark"] .dimensions-ai-import__dropzone span,
html[data-theme="dark"] .dimensions-ai-import__preview-meta span,
html[data-theme="dark"] .dimensions-ai-import__preview-item p {
  color: var(--ink-muted);
}

.timeline-item__body h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  line-height: 1.25;
  color: var(--brand);
}

.timeline-item__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.timeline-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(15, 15, 16, 0.06);
  color: var(--ink-soft);
  white-space: nowrap;
}

.timeline-item__badge[data-progress-state="in-progress"] {
  background: rgba(15, 15, 16, 0.96);
  color: var(--brand-contrast);
}

.timeline-item__badge[data-progress-state="attention"] {
  background: rgba(241, 179, 82, 0.2);
  color: #93520d;
}

.timeline-item__badge[data-progress-state="complete"] {
  background: rgba(31, 143, 95, 0.14);
  color: #1f8f5f;
}

.timeline-item__badge--actionable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.timeline-item__badge--actionable:hover,
.timeline-item__badge--actionable:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(196, 107, 17, 0.12);
}

.timeline-item__card {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 249, 0.96) 100%);
  box-shadow: 0 14px 28px rgba(15, 15, 16, 0.04);
  display: grid;
  gap: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.timeline-item__card strong {
  font-size: var(--portal-type-body);
}

.timeline-item__primary {
  display: block;
  color: var(--brand);
  line-height: 1.35;
}

.timeline-item__secondary {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.timeline-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-item__chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.05);
  color: var(--ink-soft);
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
}

.timeline-item__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.timeline-item__cta {
  min-width: 88px;
}

.timeline-item[data-progress-state="complete"] .timeline-item__card {
  border-color: rgba(31, 143, 95, 0.14);
}

.timeline-item[data-progress-state="attention"] .timeline-item__card {
  border-color: rgba(196, 107, 17, 0.16);
}

.timeline-item.is-active .timeline-item__card {
  border-color: rgba(15, 15, 16, 0.16);
  box-shadow: 0 18px 30px rgba(15, 15, 16, 0.08);
  transform: translateY(-1px);
}

.timeline-item.is-disabled .timeline-item__card {
  opacity: 0.88;
}

.attention-target-pulse {
  animation: attention-target-pulse 760ms ease 2;
  scroll-margin-top: 128px;
}

@keyframes attention-target-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 45, 65, 0);
  }

  35% {
    box-shadow: 0 0 0 4px rgba(155, 45, 65, 0.14);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(155, 45, 65, 0);
  }
}

.field input.attention-target-pulse,
.field textarea.attention-target-pulse,
.field select.attention-target-pulse,
.field input.is-invalid-airport.attention-target-pulse,
.frontend-select__trigger.is-invalid.attention-target-pulse,
.incoterm-select__trigger.is-invalid.attention-target-pulse,
.dangerous-goods-selector__trigger.attention-target-pulse,
.temperature-range-field.attention-target-pulse,
.dangerous-goods-field.attention-target-pulse,
.cargo-editor-panel.attention-target-pulse,
.file-chip.attention-target-pulse,
.request-panel--upload.attention-target-pulse {
  border-color: color-mix(in srgb, var(--danger-text) 36%, transparent 64%);
}

html[data-theme="dark"] .timeline-item__badge--actionable:hover,
html[data-theme="dark"] .timeline-item__badge--actionable:focus-visible {
  box-shadow: 0 0 0 3px rgba(241, 179, 82, 0.16);
}

html[data-theme="dark"] .field input.attention-target-pulse,
html[data-theme="dark"] .field textarea.attention-target-pulse,
html[data-theme="dark"] .field select.attention-target-pulse,
html[data-theme="dark"] .field input.is-invalid-airport.attention-target-pulse,
html[data-theme="dark"] .frontend-select__trigger.is-invalid.attention-target-pulse,
html[data-theme="dark"] .incoterm-select__trigger.is-invalid.attention-target-pulse,
html[data-theme="dark"] .dangerous-goods-selector__trigger.attention-target-pulse,
html[data-theme="dark"] .temperature-range-field.attention-target-pulse,
html[data-theme="dark"] .dangerous-goods-field.attention-target-pulse,
html[data-theme="dark"] .cargo-editor-panel.attention-target-pulse,
html[data-theme="dark"] .file-chip.attention-target-pulse,
html[data-theme="dark"] .request-panel--upload.attention-target-pulse {
  border-color: rgba(255, 122, 142, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .attention-target-pulse {
    animation: none;
    box-shadow: 0 0 0 4px rgba(155, 45, 65, 0.12);
  }
}

.success-panel {
  padding: 20px 8px 32px;
}

.success-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
}

.success-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.success-card h2 {
  margin: 10px 0 0;
  font-size: var(--portal-type-subheading);
  letter-spacing: -0.05em;
}

.success-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .portal-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-grid {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dashboard-top-widgets:not(.dashboard-top-widgets--legacy) {
    min-width: 920px;
  }

  .quotations-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel {
    grid-column: span 1;
    width: 100%;
    min-width: 0;
    flex: initial;
  }

  .dashboard-panel--chart,
  .dashboard-panel--chart-placeholder {
    width: 100%;
    min-width: 0;
    flex: initial;
  }

  .dashboard-panel.dashboard-panel--chart-size-landscape {
    grid-column: 1 / -1;
  }

  .dashboard-panel.dashboard-panel--chart-size-portrait {
    grid-column: span 1;
  }

  .dashboard-panel--wide {
    grid-column: span 2;
  }

  .dashboard-split,
  .dashboard-status-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel__header {
    flex-direction: column;
  }

  .dashboard-panel__header p {
    text-align: left;
    max-width: none;
  }

  .portal-dashboard--with-rail,
  .portal-dashboard.is-dev-mode-workspace.portal-dashboard--with-rail {
    grid-template-columns: 1fr;
  }

  .portal-dashboard--with-rail > .portal-main,
  .portal-dashboard--with-rail > .portal-rail {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-rail {
    order: -1;
    position: static;
    top: auto;
    width: 100%;
    justify-self: stretch;
  }

  .timeline {
    padding-left: 0;
  }
}

@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel.dashboard-panel--chart-size-landscape {
    grid-column: 1 / -1;
  }

  .dashboard-panel.dashboard-panel--chart-size-portrait {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .portal-topbar,
  .quotations-header,
  .overview-card,
  .request-section__grid--topline,
  .request-section__grid--two,
  .movement-scope-addresses,
  .request-section__grid--footer,
  .request-panel__grid--two,
  .request-panel__grid--three,
  .request-panel__grid--four {
    grid-template-columns: 1fr;
  }

  .request-card.is-dev-mode .request-section__grid--topline,
  .request-card.is-dev-mode .request-panel__grid--two,
  .request-card.is-dev-mode .request-panel__grid--three,
  .request-card.is-dev-mode .request-panel__grid--four,
  .request-card.is-dev-mode .request-panel__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-card.is-dev-mode .request-panel__grid--airports {
    justify-content: stretch;
  }

  .request-card.is-dev-mode .field--airport-code {
    max-width: none;
  }

  .request-card.is-dev-mode .mode-panel .request-panel__header p {
    justify-self: start;
    text-align: left;
  }

  .request-group--shipment-flow {
    padding: 18px;
  }

  .request-section__grid--topline {
    --topline-control-start-offset: 0px;
  }

  .request-card:not(.is-dev-mode) .request-group--foundation .choice-grid,
  .request-card:not(.is-dev-mode) .request-section__grid--topline,
  .request-card:not(.is-dev-mode) .topline-card--movement-scope .segmented-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-panel--routing .request-panel__header p {
    max-width: none;
    text-align: left;
  }

  .form-footer {
    flex-wrap: wrap;
  }

  .form-footer__meta {
    order: 3;
    flex-basis: 100%;
    text-align: left;
  }

  .form-footer__actions {
    margin-left: auto;
  }

  .overview-card__summary-grid,
  .quotations-kpi-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-grid {
    overflow: visible;
  }

  .dashboard-top-widgets,
  .dashboard-widget-modal__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel__intro {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel,
  .dashboard-panel--chart {
    grid-column: 1 / -1;
    width: 100%;
    flex: initial;
  }

  .dashboard-top-widget {
    min-height: 156px;
  }

  .segmented-control--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-topbar__utility {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .portal-topbar__controls {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .portal-internal-switch__panel {
    right: auto;
    left: 0;
  }

  .dashboard-hero__tools {
    justify-items: stretch;
  }

  .dashboard-content-toolbar {
    justify-content: stretch;
  }

  .dashboard-filter-group--content-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-widget-modal__panel {
    width: min(100vw - 32px, 760px);
    padding: 24px;
  }

  .dashboard-widget-modal__header,
  .dashboard-widget-modal__results-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-widget-modal__results-head {
    display: grid;
  }

  .dashboard-widget-modal__results-count {
    justify-self: start;
  }

  .dashboard-widget-modal__results-context {
    gap: 10px;
  }

  .dashboard-widget-modal__type-switch {
    width: 100%;
  }

  .dashboard-widget-modal__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .dashboard-widget-modal__filters::-webkit-scrollbar {
    display: none;
  }

  .dashboard-widget-filter-pill {
    flex: none;
  }

  .dashboard-widget-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-quick-add-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-airline-chart__hero,
  .dashboard-airline-chart__visual {
    grid-template-columns: 1fr;
  }

  .dashboard-hero__logo-card {
    width: min(100%, 300px);
    min-height: 86px;
    padding: 14px 18px;
  }

  .dashboard-hero__logo-card img {
    max-width: min(100%, 168px);
    max-height: 44px;
  }

  .dashboard-bars {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dashboard-ranking__row,
  .dashboard-lane-card,
  .dashboard-activity {
    grid-template-columns: 1fr;
  }

  .form-footer__meta {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .dimensions-shell {
    grid-template-columns: 1fr;
  }

  .dimensions-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movement-address-card .address-section__top-grid,
  .movement-address-card .address-section__detail-grid {
    grid-template-columns: 1fr;
  }

  .movement-address-card .address-span-4,
  .movement-address-card .address-span-3,
  .movement-address-card .address-span-2,
  .movement-address-card .address-span-1 {
    grid-column: span 1;
  }

  .request-tabs {
    align-items: stretch;
  }

  .request-tabs__nav {
    gap: 6px;
    overflow: visible;
    flex-wrap: wrap;
  }

  .request-tabs__controls {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .request-tabs__reference {
    width: 100%;
    flex-basis: 100%;
  }

  .request-group,
  .request-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .request-panel__header {
    display: grid;
    gap: 8px;
  }

  .quotations-empty-state p {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .dashboard-widget-modal {
    padding: 12px;
  }

  .dashboard-widget-modal__panel {
    width: min(100vw - 24px, 100%);
    max-height: calc(100vh - 24px);
    padding: 22px 18px 20px;
    border-radius: 24px;
  }

  .dashboard-widget-modal__header {
    gap: 14px;
  }

  .dashboard-widget-modal__header h2 {
    font-size: var(--portal-type-subheading);
  }

  .dashboard-widget-modal__header p {
    font-size: var(--portal-type-body);
    line-height: 1.58;
  }

  .dashboard-widget-modal__controls {
    gap: 14px;
    margin-top: 18px;
  }

  .dashboard-widget-modal__type-switch {
    width: 100%;
  }

  .dashboard-widget-modal__search input {
    min-height: 48px;
  }

  .dashboard-widget-modal__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-quick-add-topic {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-quick-add-topic__chevron {
    display: none;
  }

  .dashboard-quick-add-visual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-quick-add-visual {
    min-height: auto;
  }

  .dashboard-widget-picker__option,
  .dashboard-widget-picker__option--widget,
  .dashboard-widget-picker__option--chart {
    min-height: auto;
  }

  .dashboard-widget-picker__footer {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-widget-picker__action-button {
    align-self: flex-start;
  }

  .dashboard-widget-modal__footer {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-widget-modal__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .portal-topbar {
    min-height: auto;
    padding: 14px;
    gap: 12px;
    align-items: stretch;
    border-radius: 20px 20px 0 0;
  }

  .portal-brand {
    max-width: min(188px, 56vw);
  }

  .portal-brand__logo {
    height: 42px;
  }

  .portal-topbar__utility {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "dash quotes ship"
      "controls controls controls";
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  .portal-topbar__link--dashboard {
    grid-area: dash;
  }

  .portal-topbar__link--quotations {
    grid-area: quotes;
  }

  .portal-topbar__link--shipments {
    grid-area: ship;
  }

  .portal-topbar__link {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
    font-size: var(--portal-type-body);
    white-space: nowrap;
  }

  .portal-topbar__controls {
    grid-area: controls;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    width: 100%;
    align-items: center;
    margin-left: 0;
  }

  .portal-internal-switch {
    grid-column: 1 / -1;
    width: 100%;
  }

  .portal-topbar__badge--internal {
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }

  .portal-language {
    min-width: 0;
  }

  .portal-language .frontend-select__trigger {
    width: 100%;
    min-height: 40px;
  }

  .portal-theme-toggle,
  .portal-topbar__icon-button {
    width: 40px;
    height: 40px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 18px;
  }

  .dashboard-hero__copy {
    align-content: start;
  }

  .dashboard-hero__copy h1,
  .quotations-header__copy h1,
  .request-section__header h2 {
    overflow-wrap: anywhere;
  }

  .dashboard-hero__copy h1 {
    margin-top: 0;
    font-size: var(--portal-type-page);
    line-height: 1.02;
  }

  .dashboard-hero__copy p {
    margin-top: 10px;
    max-width: none;
    font-size: var(--portal-type-body);
    line-height: 1.6;
  }

  .dashboard-hero__tools {
    justify-items: stretch;
    padding-top: 0;
    gap: 12px;
  }

  .dashboard-content-toolbar {
    margin-top: 0;
  }

  .dashboard-filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-filter-pill {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .dashboard-hero__logo-card {
    width: 100%;
    min-height: 76px;
    margin-left: 0;
  }

  .dashboard-top-widgets,
  .dashboard-kpi-grid {
    gap: 12px;
  }

  .dashboard-top-widget,
  .dashboard-kpi-card,
  .dashboard-panel {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-panel--chart {
    min-height: var(--dashboard-card-height, 420px);
  }

  .dashboard-airline-logo-badge,
  .dashboard-airline-chart__logo {
    width: 100%;
    max-width: 220px;
  }

  .dashboard-airline-chart__visual,
  .dashboard-split {
    gap: 16px;
    padding-bottom: 6px;
  }

  .quotations-header {
    align-items: flex-start;
    padding: 20px 18px;
    gap: 16px;
  }

  .quotations-header__copy h1 {
    font-size: var(--portal-type-page);
    line-height: 1.02;
  }

  .quotations-header__copy p {
    max-width: none;
    font-size: var(--portal-type-body);
    line-height: 1.58;
  }

  .quotations-table-card {
    padding: 16px;
    gap: 14px;
  }

  .quotations-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .quotations-table-filter {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotations-filter-pill {
    width: 100%;
  }

  .request-card {
    padding: 16px;
  }

  .request-tabs {
    gap: 14px;
    padding-bottom: 12px;
  }

  .request-tabs__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .request-tabs__indicator {
    display: none;
  }

  .request-tab {
    min-height: 38px;
    padding: 0 10px;
    text-align: center;
    font-size: var(--portal-type-body);
  }

  .request-tab.is-active {
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 6px 14px rgba(15, 15, 16, 0.08);
  }

  .request-tabs__controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    justify-content: stretch;
  }

  .request-tabs__view-toggle {
    width: max-content;
    max-width: 100%;
  }

  .request-tabs__reference {
    width: 100%;
    flex-basis: auto;
  }

  .request-form {
    padding-top: 16px;
    gap: 16px;
  }

  .request-section__header {
    gap: 10px;
  }

  .request-section__header h2 {
    font-size: var(--portal-type-section);
    line-height: 1.06;
  }

  .overview-card__route-head {
    gap: 8px;
    align-items: flex-start;
  }

  .overview-card__route-head strong {
    font-size: var(--portal-type-page);
  }

  .request-group,
  .request-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .segmented-control--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-footer {
    gap: 12px;
    padding-top: 12px;
  }

  .form-footer__actions {
    width: 100%;
  }

  .form-footer__actions > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .request-card.is-dev-mode .dev-workbench__top,
  .request-card.is-dev-mode .dev-itinerary__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .request-card.is-dev-mode .dev-card,
  .request-card.is-dev-mode .dev-card--shipment-details {
    border-radius: 20px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-shell {
    padding: 0;
  }

  .portal-dashboard {
    padding: 14px 12px calc(env(safe-area-inset-bottom, 0px) + 28px);
  }

  .quotations-header,
  .dashboard-hero,
  .dashboard-panel,
  .dashboard-kpi-card,
  .dashboard-top-widget,
  .quotations-table-card {
    padding: 18px;
  }

  .portal-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 12px 12px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
  }

  .portal-brand__logo {
    height: 28px;
  }

  .portal-brand {
    max-width: 104px;
    padding-top: 2px;
  }

  .portal-topbar__utility {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "dash quotes ship"
      "context context context"
      "language theme settings";
    width: 100%;
    gap: 8px;
    align-items: center;
  }

  .portal-topbar__controls {
    display: contents;
  }

  .portal-internal-switch__panel {
    width: min(100vw - 24px, 360px);
    left: 0;
    right: auto;
  }

  .portal-topbar__link {
    min-height: 36px;
    padding-inline: 8px;
    font-size: var(--portal-type-body);
    border-radius: 16px;
    letter-spacing: 0.01em;
  }

  .portal-internal-switch {
    grid-area: context;
    width: 100%;
  }

  .portal-topbar__badge--internal {
    width: 100%;
    min-height: 38px;
    font-size: var(--portal-type-caption);
    border-radius: 18px;
  }

  .portal-language {
    grid-area: language;
    width: 100%;
  }

  .portal-language .frontend-select__trigger {
    min-height: 38px;
    padding-left: 10px;
    padding-right: 28px;
    border-radius: 16px;
  }

  .portal-theme-toggle {
    grid-area: theme;
    justify-self: end;
  }

  .portal-topbar__icon-button--settings {
    grid-area: settings;
    justify-self: end;
  }

  .dashboard-view {
    gap: 12px;
  }

  .dashboard-hero,
  .dashboard-grid {
    display: none;
  }

  .dashboard-content-toolbar {
    display: none;
  }

  .dashboard-kpi-grid {
    overflow: visible;
  }

  .dashboard-top-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-top-widgets--mobile-fixed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-top-widget {
    min-height: 0;
    padding: 16px;
    gap: 8px;
    cursor: default;
    touch-action: pan-y;
  }

  .dashboard-top-widget > span {
    padding-right: 0;
    font-size: var(--portal-type-body);
  }

  .dashboard-top-widget strong {
    margin-top: 2px;
    padding-right: 0;
    font-size: var(--portal-type-page);
  }

  .dashboard-top-widget small {
    margin-top: 4px;
    max-width: none;
    font-size: var(--portal-type-caption);
    line-height: 1.5;
  }

  .dashboard-top-widget__icon-button {
    top: 14px;
    right: 14px;
  }

  .dashboard-top-widgets--mobile-fixed .dashboard-top-widget__icon-button,
  .dashboard-top-widget--placeholder {
    display: none !important;
  }

  .dashboard-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
  }

  .dashboard-mobile-actions .dashboard-filter-pill--action {
    min-height: 36px;
    padding-inline: 14px;
  }

  .dashboard-top-widget[data-widget-id="awaiting_customer_response"] {
    order: -6;
  }

  .dashboard-top-widget[data-widget-id="open_awaiting_action"] {
    order: -5;
  }

  .dashboard-top-widget[data-widget-id="pending"] {
    order: -4;
  }

  .dashboard-top-widget[data-widget-id="quoted"] {
    order: -3;
  }

  .dashboard-top-widget[data-widget-id="total_quotations"] {
    order: -2;
  }

  .dashboard-top-widget[data-widget-id="average_quote_value"] {
    order: -1;
  }

  .dashboard-top-widget:is(
    [data-widget-id="awaiting_customer_response"],
    [data-widget-id="open_awaiting_action"],
    [data-widget-id="pending"],
    [data-widget-id="quoted"],
    [data-widget-id="total_quotations"],
    [data-widget-id="average_quote_value"]
  ) {
    border-color: rgba(29, 111, 165, 0.14);
    background:
      radial-gradient(circle at top left, rgba(29, 111, 165, 0.12), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
    box-shadow: 0 18px 34px rgba(29, 111, 165, 0.08), 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .dashboard-top-widget:is(
    [data-widget-id="awaiting_customer_response"],
    [data-widget-id="open_awaiting_action"],
    [data-widget-id="pending"],
    [data-widget-id="quoted"],
    [data-widget-id="total_quotations"],
    [data-widget-id="average_quote_value"]
  ) > span {
    color: var(--brand);
  }

  html[data-theme="dark"] .dashboard-top-widget:is(
    [data-widget-id="awaiting_customer_response"],
    [data-widget-id="open_awaiting_action"],
    [data-widget-id="pending"],
    [data-widget-id="quoted"],
    [data-widget-id="total_quotations"],
    [data-widget-id="average_quote_value"]
  ) {
    border-color: rgba(125, 211, 252, 0.16);
    background:
      radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 42%),
      linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.34), 0 8px 18px rgba(8, 47, 73, 0.18);
  }

  html[data-theme="dark"] .dashboard-top-widget:is(
    [data-widget-id="awaiting_customer_response"],
    [data-widget-id="open_awaiting_action"],
    [data-widget-id="pending"],
    [data-widget-id="quoted"],
    [data-widget-id="total_quotations"],
    [data-widget-id="average_quote_value"]
  ) > span {
    color: rgba(186, 230, 253, 0.92);
  }

  .portal-language .frontend-select__trigger {
    min-height: 38px;
    padding-left: 10px;
    padding-right: 26px;
  }

  .request-tabs {
    gap: 12px;
  }

  .request-card {
    padding: 14px;
    border-radius: 24px;
  }

  .request-tabs__controls {
    justify-content: flex-start;
  }

  .request-tabs__view-toggle {
    flex: 0 0 auto;
  }

  .dashboard-hero__copy h1 {
    font-size: var(--portal-type-page);
  }

  .dashboard-hero__copy p,
  .quotations-header__copy p {
    font-size: var(--portal-type-body);
  }

  .dashboard-filter-group {
    padding: 4px;
  }

  .dashboard-filter-pill {
    flex-basis: 100%;
    min-height: 36px;
  }

  .quotations-overview {
    gap: 12px;
  }

  .quotations-kpi-grid {
    display: none;
  }

  .quotations-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "cta";
    gap: 14px;
    align-items: start;
    justify-items: stretch;
    padding-bottom: 0;
  }

  .quotations-header__copy {
    grid-area: copy;
    width: 100%;
    max-width: none;
    gap: 12px;
  }

  .quotations-header__copy h1 {
    max-width: none;
    width: 100%;
    font-size: var(--portal-type-page);
    line-height: 0.94;
    overflow-wrap: normal;
    word-break: keep-all;
    text-wrap: balance;
  }

  .quotations-header__copy p {
    width: 100%;
    max-width: none;
    font-size: var(--portal-type-body);
    line-height: 1.62;
  }

  #new-quote-button {
    grid-area: cta;
    width: auto;
    min-width: min(100%, 188px);
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 18px;
    font-size: var(--portal-type-body);
    letter-spacing: 0.05em;
    justify-self: end;
    align-self: start;
  }

  .quotations-table-card {
    padding: 14px;
    gap: 12px;
  }

  .quotations-table-card .dashboard-panel__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .quotations-table-card .dashboard-panel__header h3 {
    font-size: var(--portal-type-subheading);
  }

  .quotations-table-card__header-tools {
    justify-self: end;
  }

  #quotations-table-wrap {
    gap: 10px;
  }

  .quotations-table-toolbar {
    display: grid;
    gap: 6px;
  }

  .quotations-table-filter {
    width: min(100%, 168px);
    margin-inline: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-soft) 90%, var(--surface) 10%);
  }

  .quotations-table-filter__indicator {
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc((100% - 4px) / 2);
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(15, 15, 16, 0.06), 0 1px 2px rgba(15, 15, 16, 0.03);
  }

  .quotations-filter-pill {
    min-height: 32px;
    width: 100%;
    padding: 0 8px;
    font-size: var(--portal-type-body);
    font-weight: 600;
  }

  .quotations-filter-pill.is-active {
    font-weight: 700;
  }

  .quotations-table-card .dashboard-table-wrap {
    overflow: visible;
  }

  .quotations-table-card .dashboard-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .quotations-table thead {
    display: none;
  }

  .quotations-table tbody {
    display: grid;
    gap: 10px;
  }

  .quotations-table__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "select reference status"
      "select route route"
      "select load load"
      "select action action";
    column-gap: 12px;
    row-gap: 12px;
    padding: 16px 14px;
    border-radius: 24px;
    border: 1px solid rgba(15, 15, 16, 0.08);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 15, 16, 0.05);
    align-items: start;
  }

  .quotations-table__row td {
    display: block;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
    min-width: 0;
  }

  .quotations-table__row.is-clickable:hover td,
  .quotations-table__row.is-draft-clickable:hover td {
    background: transparent;
  }

  .quotations-table__row.is-clickable:hover,
  .quotations-table__row.is-draft-clickable:hover {
    border-color: rgba(29, 111, 165, 0.16);
    box-shadow: 0 14px 28px rgba(29, 111, 165, 0.08);
  }

  .quotations-table__row.is-selected {
    border-color: rgba(29, 111, 165, 0.22);
    box-shadow: 0 0 0 1px rgba(29, 111, 165, 0.1), 0 14px 28px rgba(29, 111, 165, 0.08);
  }

  .quotations-table__cell {
    min-width: 0;
  }

  .quotations-table__cell--selection {
    grid-area: select;
    align-self: start;
    padding-top: 2px;
  }

  .quotations-table__cell--reference {
    grid-area: reference;
  }

  .quotations-table__cell--customer-reference {
    display: none !important;
  }

  .quotations-table__cell--origin {
    grid-area: route;
  }

  .quotations-table__cell--destination {
    display: none !important;
  }

  .quotations-table__cell--mode {
    display: none !important;
  }

  .quotations-table__cell--status {
    grid-area: status;
    justify-self: end;
    align-self: start;
  }

  .quotations-table__cell--action {
    grid-area: action;
  }

  .quotations-table__cell--requested-load {
    grid-area: load;
    display: block !important;
  }

  .quotations-table__cell--created-at,
  .quotations-table__cell--updated-at {
    display: none !important;
  }

  .quotations-table__reference-cell {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  .quotations-table__reference-topline {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .quotations-table__reference-main {
    min-width: 0;
    align-items: flex-start;
  }

  .quotations-table__reference-cell strong {
    font-size: var(--portal-type-subheading);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
  }

  .quotations-table__cell--action .button {
    width: 100%;
    min-height: 44px;
    border-radius: 16px;
    white-space: normal;
  }

  .quotations-table__status-stack {
    align-items: flex-end;
    gap: 4px;
  }

  .quotations-table__mobile-secondary-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink-muted);
    font-size: var(--portal-type-body);
    line-height: 1.3;
    font-weight: 600;
  }

  .quotations-table__mobile-secondary-divider {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(88, 102, 126, 0.45);
  }

  .quotations-table__mobile-secondary-item--mode {
    color: var(--ink-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .quotations-table__origin-value {
    display: none;
  }

  .quotations-table__mobile-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 15, 16, 0.06);
    background: rgba(15, 15, 16, 0.025);
  }

  .quotations-table__mobile-route-point {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .quotations-table__mobile-route-point--destination {
    text-align: right;
  }

  .quotations-table__mobile-route-label {
    color: var(--ink-soft);
    font-size: var(--portal-type-body);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .quotations-table__mobile-route-point strong {
    min-width: 0;
    color: var(--brand);
    font-size: var(--portal-type-body);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quotations-table__mobile-route-arrow {
    color: var(--ink-soft);
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .quotations-table__mobile-customer-reference,
  .quotations-table__mobile-mode {
    display: none;
  }

  .quotations-table__requested-load-desktop {
    display: none;
  }

  .quotations-table__requested-load-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quotations-table__mobile-metric {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 15, 16, 0.03);
    border: 1px solid rgba(15, 15, 16, 0.06);
  }

  .quotations-table__mobile-metric-label {
    color: var(--ink-soft);
    font-size: var(--portal-type-body);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .quotations-table__mobile-metric strong {
    color: var(--brand);
    font-size: var(--portal-type-body);
    line-height: 1.2;
  }

  .quotations-table__row--booked td,
  .quotations-table__row--requote td,
  .quotations-table__row--rejected td {
    background: transparent;
  }

  .quotations-table__row--booked {
    border-color: rgba(34, 197, 94, 0.18);
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.08), 0 6px 14px rgba(15, 15, 16, 0.04);
  }

  .quotations-table__row--requote {
    border-color: rgba(217, 119, 6, 0.18);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.08), 0 6px 14px rgba(15, 15, 16, 0.04);
  }

  .quotations-table__row--rejected {
    border-color: rgba(220, 38, 38, 0.16);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.08), 0 6px 14px rgba(15, 15, 16, 0.04);
  }

  .quotations-table-filter,
  .dimensions-summary,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
    grid-template-columns: 1fr;
  }

  .request-tabs__nav {
    grid-template-columns: 1fr;
  }

  .request-tab {
    min-height: 40px;
  }

  .request-tabs__controls {
    gap: 8px;
  }

  .request-tabs__view-toggle {
    display: none;
  }

  .request-view-toggle__option {
    min-height: 30px;
  }

  .dimensions-line,
  .dimensions-metric {
    padding: 14px;
  }

  .dimensions-summary {
    grid-template-columns: 1fr;
  }

  .dimensions-line__group {
    grid-template-columns: 1fr;
  }

  .portal-dashboard,
  .portal-main,
  .quotations-create-view,
  .request-card,
  .request-card.is-dev-mode .dev-workbench,
  .request-card.is-dev-mode .dev-card,
  .request-card.is-dev-mode .dev-card__body,
  .request-card.is-dev-mode .dev-shipment-details__content,
  .request-card.is-dev-mode .dimensions-shell,
  .request-card.is-dev-mode .dimensions-shell__main,
  .request-card.is-dev-mode .dimensions-lines,
  .request-card.is-dev-mode .dimensions-line,
  .request-card.is-dev-mode .dimensions-line__row,
  .request-card.is-dev-mode .dimensions-line__group,
  .request-card.is-dev-mode .dimensions-summary {
    min-width: 0;
    max-width: 100%;
  }

  .portal-dashboard,
  .portal-main,
  .quotations-create-view,
  .request-card,
  .request-card.is-dev-mode .dev-workbench {
    overflow-x: clip;
  }

  .request-card.is-dev-mode .dev-card__header--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .request-card.is-dev-mode .dev-card__actions {
    justify-self: end;
    gap: 10px;
  }

  .request-card.is-dev-mode .dev-card__action {
    font-size: var(--portal-type-body);
    line-height: 1.2;
  }

  .request-card.is-dev-mode .dev-card--shipment-details .dev-card__header--spread h3 {
    flex-basis: 100%;
  }

  .request-card.is-dev-mode .dev-preferences-panel {
    justify-content: flex-end;
  }

  .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle {
    min-height: 32px;
    padding: 2px;
    border-radius: 999px;
  }

  .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option {
    min-height: 28px;
    padding-inline: 10px;
    font-size: var(--portal-type-body);
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-shell__main {
    order: 1;
    gap: 12px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
    order: 2;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(29, 111, 165, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(232, 246, 252, 0.96), rgba(224, 243, 250, 0.92));
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid rgba(15, 15, 16, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric:last-child {
    border-right: 0;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__head {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: var(--portal-type-body);
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric__value {
    font-size: var(--portal-type-body);
    line-height: 1.16;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines {
    overflow: visible;
    gap: 12px;
    padding-bottom: 0;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__toolbar,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__header {
    display: none;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(15, 15, 16, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 10px 22px rgba(15, 15, 16, 0.05);
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-head,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__row,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__section,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove-wrap {
    display: grid;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-head-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-kicker,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-label,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-label {
    display: block;
    color: var(--ink-soft);
    font-size: var(--portal-type-body);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-title {
    display: block;
    color: var(--brand);
    font-size: var(--portal-type-body);
    line-height: 1.14;
    letter-spacing: -0.02em;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__row {
    gap: 10px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__row--basics {
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__row--dimensions,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__section--dimensions,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__row--extras,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__section--stackable {
    grid-template-columns: 1fr;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field {
    gap: 6px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field input,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field select,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__field .frontend-select__trigger,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-field input,
  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle {
    min-height: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-label {
    margin-bottom: 0;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable {
    min-height: 0;
    height: auto;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle {
    width: 100%;
    justify-content: space-between;
    padding-inline: 14px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove-wrap {
    grid-column: auto;
    justify-items: end;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    height: 40px;
    align-self: start;
    justify-self: end;
    border-radius: 12px;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer {
    display: block;
  }

  .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: 14px;
  }

  .form-footer__actions {
    flex-direction: column;
  }

  .form-footer__actions > * {
    width: 100%;
  }

  html[data-theme="dark"] .quotations-table__row {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.32);
  }

  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
    border-color: rgba(125, 211, 252, 0.14);
    background: linear-gradient(180deg, rgba(18, 38, 52, 0.94), rgba(15, 32, 44, 0.92));
  }

  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.42);
  }

  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.24);
  }

  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-kicker,
  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-label,
  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mini-label {
    color: rgba(226, 232, 240, 0.68);
  }

  html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__mobile-title {
    color: rgba(248, 250, 252, 0.94);
  }

  html[data-theme="dark"] .quotations-table__row.is-clickable:hover,
  html[data-theme="dark"] .quotations-table__row.is-draft-clickable:hover {
    border-color: rgba(125, 211, 252, 0.2);
    box-shadow: 0 16px 30px rgba(8, 47, 73, 0.24);
  }

  html[data-theme="dark"] .quotations-table__row.is-selected {
    border-color: rgba(125, 211, 252, 0.26);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.12), 0 16px 30px rgba(8, 47, 73, 0.24);
  }

  html[data-theme="dark"] .quotations-table-filter__indicator {
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.34);
  }

  html[data-theme="dark"] .quotations-table__mobile-customer-reference,
  html[data-theme="dark"] .quotations-table__mobile-mode,
  html[data-theme="dark"] .quotations-table__mobile-metric-label,
  html[data-theme="dark"] .quotations-table__mobile-route-label,
  html[data-theme="dark"] .quotations-table__mobile-secondary-item--mode {
    color: rgba(226, 232, 240, 0.72);
  }

  html[data-theme="dark"] .quotations-table__mobile-metric {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.12);
  }

  html[data-theme="dark"] .quotations-table__mobile-secondary-line {
    color: rgba(226, 232, 240, 0.86);
  }

  html[data-theme="dark"] .quotations-table__mobile-secondary-divider {
    background: rgba(148, 163, 184, 0.56);
  }

  html[data-theme="dark"] .quotations-table__mobile-route {
    background: rgba(148, 163, 184, 0.07);
    border-color: rgba(148, 163, 184, 0.16);
  }

  html[data-theme="dark"] .quotations-table__mobile-route-point strong {
    color: rgba(248, 250, 252, 0.94);
  }

  html[data-theme="dark"] .quotations-table__mobile-route-arrow {
    color: rgba(226, 232, 240, 0.58);
  }

  html[data-theme="dark"] .quotations-table__mobile-metric strong {
    color: rgba(248, 250, 252, 0.94);
  }
}

/* Final cascade guard for the production shell makeover. */
@media (min-width: 1181px) {
  .portal-shell {
    display: grid;
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0;
    background: var(--app-page-bg);
  }

  .portal-sidebar {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .portal-topbar {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-height: 76px;
    padding: 18px 32px 10px;
    border-radius: 0;
    background: transparent;
    color: #111827;
  }

  .portal-dashboard {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 32px 34px;
    border-radius: 0;
    background: var(--app-page-bg);
  }

  .portal-topbar .portal-brand,
  .portal-topbar .portal-topbar__link {
    display: none;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-top-widgets,
  .dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dashboard-panel.dashboard-panel--chart-size-landscape,
  .dashboard-panel.dashboard-panel--chart-size-portrait {
    grid-column: span 1;
    --dashboard-card-height: 286px;
  }

  .dashboard-panel--chart {
    min-height: 286px;
    padding: 20px;
    border-radius: var(--app-radius-lg);
    background: #ffffff;
    border: 1px solid var(--app-card-border);
    box-shadow: var(--app-card-shadow-soft);
    overflow: hidden;
  }
}

@media (max-width: 1180px) {
  .portal-shell {
    display: block;
    background: var(--app-page-bg);
  }

  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    transform: translateX(calc(-100% - 18px));
  }

  .portal-shell.is-sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .portal-shell.is-sidebar-open .portal-sidebar-backdrop {
    display: block;
  }

  .portal-sidebar-toggle {
    display: inline-grid;
  }

  .portal-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* Dashboard target composition based on 111.png. */
@media (min-width: 1181px) {
  :root {
    --app-page-bg: #f4f5f7;
    --target-card-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    --target-card-border: rgba(17, 24, 39, 0.075);
  }

  .portal-shell {
    position: relative;
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    background: var(--app-page-bg);
  }

  .portal-sidebar {
    width: var(--app-sidebar-width);
    padding: 32px 10px 24px;
    background:
      radial-gradient(circle at 72% 8%, rgba(255, 255, 255, 0.08), transparent 26%),
      linear-gradient(90deg, #020202, #050505 72%, #0d0d0d);
  }

  .portal-sidebar__brand {
    justify-items: center;
    padding: 0 12px 10px;
  }

  .portal-sidebar__logo {
    width: 136px;
  }

  .portal-sidebar__nav {
    gap: 9px;
    align-self: start;
    align-content: start;
  }

  .portal-sidebar__item {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--portal-type-body);
    font-weight: 700;
    white-space: nowrap;
  }

  .portal-sidebar__item.is-active {
    height: 48px;
    min-height: 48px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.22);
  }

  .portal-sidebar__item.is-disabled {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-sidebar__item svg,
  .portal-sidebar__language svg {
    width: 20px;
    height: 20px;
  }

  .portal-sidebar__footer {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
    height: auto;
    align-content: start;
    gap: 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .portal-sidebar__language {
    height: 48px;
    min-height: 46px;
    padding: 0 8px;
    font-size: var(--portal-type-body);
  }

  .portal-sidebar__account {
    position: relative;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 11px;
    min-height: 54px;
    padding: 0;
    margin-top: 0;
  }

  .portal-sidebar__account::before {
    content: none;
  }

  .portal-sidebar__avatar {
    width: 43px;
    height: 43px;
    font-size: 0.86rem;
  }

  .portal-sidebar__account strong {
    font-size: var(--portal-type-body);
    letter-spacing: -0.01em;
  }

  .portal-sidebar__account small {
    font-size: var(--portal-type-caption);
  }

  .portal-topbar {
    position: absolute;
    top: 17px;
    right: 33px;
    z-index: 30;
    width: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .portal-topbar__utility,
  .portal-topbar__controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: auto;
    margin: 0;
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
  }

  .portal-topbar .portal-brand,
  .portal-topbar .portal-topbar__link,
  .portal-topbar__badge,
  .portal-internal-switch,
  .portal-topbar__icon-button--settings {
    display: none !important;
  }

  .portal-language {
    width: 96px;
    min-width: 96px;
    height: 36px;
    min-height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: none;
    opacity: 1;
  }

  .portal-language select {
    min-height: 36px;
    padding: 0 34px 0 14px;
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 600;
  }

  .portal-language .frontend-select,
  .portal-language .frontend-select__trigger {
    width: 100%;
    min-width: 100%;
  }

  .portal-language .frontend-select__trigger,
  html:not([data-theme="dark"]) .portal-language .frontend-select__trigger,
  html[data-theme="dark"] .portal-language .frontend-select__trigger {
    width: 96px;
    min-width: 96px;
    height: 36px;
    min-height: 36px;
    padding: 0 31px 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #ffffff;
    color: #050505;
    box-shadow: none;
    opacity: 1;
    font-size: var(--portal-type-body);
    font-weight: 600;
    letter-spacing: 0;
  }

  .portal-language .frontend-select__value {
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 600;
    line-height: 1;
  }

  .portal-language .frontend-select__trigger::after,
  html:not([data-theme="dark"]) .portal-language .frontend-select__trigger::after,
  html[data-theme="dark"] .portal-language .frontend-select__trigger::after {
    right: 13px;
    width: 8px;
    height: 8px;
    border-right-width: 1.75px;
    border-bottom-width: 1.75px;
    border-right-color: #050505;
    border-bottom-color: #050505;
    transform: translateY(-62%) rotate(45deg);
  }

  .portal-language .frontend-select__trigger:hover,
  html:not([data-theme="dark"]) .portal-language .frontend-select__trigger:hover,
  html[data-theme="dark"] .portal-language .frontend-select__trigger:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.2);
  }

  .portal-language .frontend-select__trigger:focus-visible,
  .portal-language .frontend-select__trigger.is-open,
  html[data-theme="dark"] .portal-language .frontend-select__trigger:focus-visible,
  html[data-theme="dark"] .portal-language .frontend-select__trigger.is-open {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.26);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  }

  .portal-notification-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 47px;
    min-width: 47px;
    height: 36px;
    min-height: 36px;
    margin-left: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #050505;
    box-shadow: none;
  }

  .portal-notification-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .portal-notification-button span {
    position: absolute;
    top: -3px;
    right: 5px;
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    font-size: var(--portal-type-body);
    font-weight: 700;
    line-height: 1;
  }

  .portal-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 66px;
    min-width: 66px;
    height: 36px;
    min-height: 36px;
    margin-left: 13px;
    padding: 0 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: none;
    color: #050505;
  }

  .portal-theme-toggle:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.2);
  }

  .portal-theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  }

  .portal-theme-toggle__track,
  .portal-theme-toggle__thumb,
  .portal-theme-toggle__icon,
  .portal-theme-toggle__icon--sun {
    display: none !important;
  }

  .portal-theme-toggle__moon {
    display: block;
    width: 18px;
    height: 18px;
    fill: #050505;
    stroke: none;
    flex: 0 0 auto;
  }

  .portal-theme-toggle__chevron {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #050505;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
  }

  .portal-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin-left: 30px;
    border-radius: 999px;
    background: #f1f2f4;
    border: 1px solid rgba(17, 24, 39, 0.1);
    color: #050505;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
  }

  .portal-topbar__controls {
    gap: 14px;
  }

  .portal-language,
  .portal-user-avatar {
    display: none !important;
  }

  .portal-notification-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin-left: 0;
    color: #15171b;
    transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
  }

  .portal-notification-button:hover {
    background: rgba(17, 24, 39, 0.055);
  }

  .portal-notification-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  }

  .portal-notification-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
  }

  .portal-notification-button span {
    top: -2px;
    right: -1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .portal-theme-toggle {
    position: relative;
    justify-content: space-between;
    gap: 0;
    width: 58px;
    min-width: 58px;
    height: 30px;
    min-height: 30px;
    margin-left: 0;
    padding: 0 8px;
    border-radius: 999px;
    background: #f5f6f8;
    border: 1px solid rgba(17, 24, 39, 0.14);
    box-shadow: none;
    color: #111827;
  }

  .portal-theme-toggle:hover {
    background: #eef1f5;
    border-color: rgba(17, 24, 39, 0.22);
  }

  .portal-theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  }

  .portal-theme-toggle[aria-pressed="true"] {
    background: #111827;
    border-color: #111827;
  }

  html:not([data-theme="dark"]) .portal-theme-toggle,
  html:not([data-theme="dark"]) .portal-theme-toggle[aria-pressed="false"] {
    background: #f5f6f8;
    border-color: rgba(17, 24, 39, 0.14);
  }

  html[data-theme="dark"] .portal-theme-toggle,
  html[data-theme="dark"] .portal-theme-toggle[aria-pressed="true"] {
    background: #111827;
    border-color: #111827;
    box-shadow: none;
  }

  html[data-theme="dark"] .portal-theme-toggle:hover {
    background: #0b1220;
    border-color: #0b1220;
  }

  .portal-theme-toggle__icon {
    position: relative;
    z-index: 2;
    display: inline-grid !important;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #5f6773;
  }

  .portal-theme-toggle__icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .portal-theme-toggle__icon--moon svg {
    fill: currentColor;
    stroke: none;
  }

  .portal-theme-toggle__thumb {
    position: absolute;
    z-index: 1;
    top: 2px;
    left: 2px;
    display: block !important;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
    transition: transform 180ms ease;
  }

  .portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun,
  .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon {
    color: #050505;
  }

  .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--sun {
    color: rgba(255, 255, 255, 0.42);
  }

  .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__thumb {
    transform: translateX(28px);
  }

  .portal-theme-toggle__moon,
  .portal-theme-toggle__chevron {
    display: none !important;
  }

  .portal-dashboard {
    grid-column: 2;
    grid-row: 1;
    min-height: 100vh;
    padding: 28px 38px 18px 26px;
    background: var(--app-page-bg);
  }

  .dashboard-view {
    gap: 12px;
  }

  .dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 24px;
    height: 115px;
    min-height: 115px;
    padding: 0;
  }

  .dashboard-hero__copy::before {
    margin-bottom: 8px;
    color: #050505;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .dashboard-hero__copy {
    padding-left: 25px;
  }

  .dashboard-hero__copy h1 {
    font-size: var(--portal-type-page);
    line-height: 0.98;
    letter-spacing: -0.065em;
    color: #050505;
  }

  .dashboard-hero__copy p {
    margin-top: 10px;
    color: #2f3747;
    font-size: var(--portal-type-body);
  }

  .dashboard-hero__tools {
    padding-top: 38px;
    justify-items: end;
  }

  .dashboard-filter-group {
    display: none !important;
  }

  .dashboard-hero__logo-card {
    width: 178px;
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .dashboard-hero__logo-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .dashboard-hero__logo-card img {
    width: 178px;
    max-width: 178px;
    max-height: none;
    filter: none;
  }

  .dashboard-kpi-grid {
    display: block;
  }

  .dashboard-target-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-target-kpi {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: 17px;
    height: 166px;
    min-height: 0;
    padding: 20px 18px 16px 20px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--target-card-border);
    box-shadow: var(--target-card-shadow);
    overflow: hidden;
  }

  .dashboard-target-kpi__icon {
    display: inline-grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #050505);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
  }

  .dashboard-target-kpi__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dashboard-target-kpi--target-pending .dashboard-target-kpi__icon {
    background: linear-gradient(135deg, #ff9f2f, #ff6b00);
  }

  .dashboard-target-kpi--target-quoted .dashboard-target-kpi__icon {
    background: linear-gradient(135deg, #aa5ff0, #7f35c9);
  }

  .dashboard-target-kpi--target-booked .dashboard-target-kpi__icon {
    background: linear-gradient(135deg, #28c76f, #11a855);
  }

  .dashboard-target-kpi__copy > span {
    display: block;
    margin-top: 1px;
    color: #3f4654;
    font-size: var(--portal-type-caption);
    font-weight: 700;
  }

  .dashboard-target-kpi__copy > strong {
    display: block;
    margin-top: 5px;
    color: #050505;
    font-size: var(--portal-type-metric);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .dashboard-target-kpi__copy > small {
    display: block;
    margin-top: 7px;
    color: #4e5562;
    font-size: var(--portal-type-caption);
    line-height: 1.3;
  }

  .dashboard-target-kpi__spark {
    grid-column: 1 / 3;
    align-self: end;
    width: 178px;
    height: 36px;
    margin-top: 5px;
    color: #1267ff;
    overflow: visible;
  }

  .dashboard-target-kpi--target-pending .dashboard-target-kpi__spark {
    color: #ff7a12;
  }

  .dashboard-target-kpi--target-quoted .dashboard-target-kpi__spark {
    color: #8e44d5;
  }

  .dashboard-target-kpi--target-booked .dashboard-target-kpi__spark {
    color: #14aa59;
  }

  .dashboard-target-kpi__spark-fill {
    fill: currentColor;
    opacity: 0.08;
  }

  .dashboard-target-kpi__spark-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dashboard-target-kpi__trend {
    grid-column: 3;
    align-self: end;
    justify-self: end;
    text-align: right;
  }

  .dashboard-target-kpi__trend strong {
    display: block;
    color: #10a95a;
    font-size: var(--portal-type-caption);
    font-weight: 700;
  }

  .dashboard-target-kpi--target-quoted .dashboard-target-kpi__trend strong {
    color: #4b5563;
  }

  .dashboard-target-kpi__trend[data-trend-direction="neutral"] strong {
    color: #4b5563;
  }

  .dashboard-target-kpi__trend[data-trend-direction="down"] strong {
    color: #dc2626;
  }

  .dashboard-target-kpi__trend small {
    display: block;
    margin-top: 6px;
    color: #4b5563;
    font-size: var(--portal-type-caption);
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: 625px minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-target-card {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 288px;
    min-height: 0;
    padding: 20px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--target-card-border);
    box-shadow: var(--target-card-shadow);
    overflow: hidden;
  }

  .dashboard-target-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
  }

  .dashboard-target-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 10px;
    border-radius: 6px;
    background: #f0f1f3;
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-card h3 {
    margin: 10px 0 0;
    color: #050505;
    font-size: var(--portal-type-subheading);
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .dashboard-target-card p {
    margin: 8px 0 0;
    color: #3f4654;
    font-size: var(--portal-type-body);
  }

  .dashboard-target-snapshot {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 31px;
    padding: 0 11px;
    border-radius: 5px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #ffffff;
    color: #050505;
  }

  .dashboard-target-snapshot small {
    color: #596274;
    font-size: var(--portal-type-caption);
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .dashboard-target-snapshot strong {
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-snapshot--float {
    position: absolute;
    top: 93px;
    right: 20px;
  }

  .dashboard-target-actions {
    display: flex;
    gap: 10px;
  }

  .dashboard-target-actions button {
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 5px;
    background: #ffffff;
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-routes {
    position: relative;
    display: grid;
    gap: 23px;
    align-content: center;
    padding: 24px 8px 12px 2px;
  }

  .dashboard-target-empty {
    display: grid;
    place-items: center;
    min-height: 78px;
    color: #6b7280;
    font-size: var(--portal-type-body);
    text-align: center;
  }

  .dashboard-target-route {
    display: grid;
    grid-template-columns: 26px minmax(170px, 0.8fr) minmax(170px, 1fr) auto;
    align-items: center;
    gap: 15px;
  }

  .dashboard-target-route__index,
  .dashboard-target-route__value {
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-route__copy strong {
    display: block;
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-route__copy small {
    display: block;
    margin-top: 4px;
    color: #4d5563;
    font-size: var(--portal-type-caption);
  }

  .dashboard-target-route__bar {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #eef1f6;
    overflow: hidden;
  }

  .dashboard-target-route__bar i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #071b6a, #1267ff);
  }

  .dashboard-target-route__bar--teal i {
    background: linear-gradient(90deg, #061b63, #2ab4b7);
  }

  .dashboard-target-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 600;
  }

  .dashboard-target-status-body {
    position: relative;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 18px 34px 8px 12px;
  }

  .dashboard-target-donut {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: conic-gradient(#ff8a16 0 25%, #050505 25% 100%);
  }

  .dashboard-target-donut::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: inherit;
    background: #ffffff;
  }

  .dashboard-target-donut strong,
  .dashboard-target-donut span {
    position: relative;
    z-index: 1;
  }

  .dashboard-target-donut strong {
    color: #050505;
    font-size: var(--portal-type-section);
    line-height: 1;
  }

  .dashboard-target-donut span {
    margin-top: 4px;
    color: #4b5563;
    font-size: var(--portal-type-body);
  }

  .dashboard-target-legend {
    display: grid;
    gap: 16px;
  }

  .dashboard-target-legend div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .dashboard-target-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
  }

  .dashboard-target-dot--orange {
    background: #ff8a16;
  }

  .dashboard-target-dot--black {
    background: #050505;
  }

  .dashboard-target-legend strong,
  .dashboard-target-legend b {
    color: #050505;
    font-size: var(--portal-type-body);
  }

  .dashboard-target-card--monthly,
  .dashboard-target-card--volume {
    height: 283px;
    min-height: 0;
  }

  .dashboard-target-chart {
    min-height: 0;
    padding-top: 8px;
  }

  .dashboard-target-chart__legend {
    position: absolute;
    top: 80px;
    right: 40px;
    display: grid;
    gap: 8px;
  }

  .dashboard-target-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #050505;
    font-size: var(--portal-type-caption);
  }

  .dashboard-target-chart__legend i {
    width: 10px;
    height: 10px;
  }

  .dashboard-target-chart__blue {
    background: #1267d8;
  }

  .dashboard-target-chart__teal {
    background: #25adb1;
  }

  .dashboard-target-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 24px;
    height: 118px;
    min-height: 0;
    margin: 10px 14px 0 30px;
    padding: 12px 48px 0 20px;
    border-left: 1px solid rgba(17, 24, 39, 0.12);
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  }

  .dashboard-target-bars__axis {
    position: absolute;
    left: 22px;
    top: 108px;
    bottom: 48px;
    display: grid;
    align-content: space-between;
    color: #111827;
    font-size: var(--portal-type-caption);
  }

  .dashboard-target-bars__item {
    display: grid;
    justify-items: center;
    align-items: end;
    gap: 7px;
  }

  .dashboard-target-bars__item > span {
    position: relative;
    display: block;
    width: 21px;
    height: calc(var(--weight) * 1px);
    min-height: 0;
    background: linear-gradient(180deg, #1267d8, #1267d8);
  }

  .dashboard-target-bars__item > span b {
    position: absolute;
    inset: auto 0 0;
    display: block;
    height: calc(var(--volume) * 1px);
    background: linear-gradient(180deg, rgba(37, 173, 177, 0.72), #25adb1);
  }

  .dashboard-target-bars__item small,
  .dashboard-target-line-labels span {
    color: #111827;
    font-size: var(--portal-type-caption);
  }

  .dashboard-target-chart--line {
    position: relative;
    padding: 14px 0 0;
  }

  .dashboard-target-chart--bars {
    position: relative;
  }

  .dashboard-target-kpi {
    position: relative;
  }

  .dashboard-target-card--volume {
    grid-template-rows: auto minmax(0, 1fr) 38px;
    padding: 20px 20px 0;
  }

  .dashboard-target-card--volume .dashboard-target-card__top {
    min-height: 72px;
  }

  .dashboard-target-card--volume .dashboard-target-badge {
    min-height: 23px;
    padding: 0 10px;
    border-radius: 6px;
  }

  .dashboard-target-card--volume .dashboard-target-snapshot {
    min-height: 31px;
    padding: 0 11px;
    transform: translateY(0);
  }

  .dashboard-target-card--volume .dashboard-target-chart--line {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 141px;
    min-height: 141px;
    padding: 16px 0 0 0;
    overflow: visible;
  }

  .dashboard-target-chart--line svg {
    display: block;
    width: calc(100% - 34px);
    height: 145px;
    margin-left: 28px;
  }

  .dashboard-target-card--volume .dashboard-target-chart--line svg {
    width: calc(100% - 46px);
    height: 104px;
    margin-left: 27px;
    overflow: visible;
  }

  .dashboard-target-line-axis {
    position: absolute;
    left: 0;
    top: 31px;
    bottom: 30px;
    display: grid;
    align-content: space-between;
    color: #111827;
    font-size: var(--portal-type-body);
  }

  .dashboard-target-card--volume .dashboard-target-line-axis {
    left: 0;
    top: 17px;
    bottom: 24px;
    color: #1f2937;
    font-size: var(--portal-type-body);
    line-height: 1;
  }

  .dashboard-target-line-grid {
    fill: none;
    stroke: rgba(17, 24, 39, 0.12);
    stroke-width: 1;
  }

  .dashboard-target-line {
    fill: none;
    stroke: #1267ff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dashboard-target-card--volume .dashboard-target-line {
    stroke-width: 2.15;
  }

  .dashboard-target-line-points circle {
    fill: #1267ff;
  }

  .dashboard-target-card--volume .dashboard-target-line-points circle {
    fill: #1267ff;
  }

  .dashboard-target-line-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 21px 0 61px;
    margin-top: -8px;
    text-align: center;
  }

  .dashboard-target-card--volume .dashboard-target-line-labels {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: calc(100% - 46px);
    margin: 8px 0 0 27px;
    padding: 0;
    text-align: center;
  }

  .dashboard-target-card--volume .dashboard-target-line-labels span {
    color: #111827;
    font-size: var(--portal-type-body);
    line-height: 1;
  }

  .dashboard-target-chart-interaction {
    --active-x: 50%;
    --active-y: 50%;
    --tooltip-x: 50%;
    position: absolute;
    pointer-events: none;
    z-index: 4;
  }

  .dashboard-target-card--volume .dashboard-target-chart-interaction {
    left: 27px;
    top: 16px;
    width: calc(100% - 46px);
    height: 104px;
  }

  .dashboard-target-chart-interaction--bars {
    left: 50px;
    top: 46px;
    width: calc(100% - 112px);
    height: 118px;
  }

  .dashboard-target-chart-interaction--routes {
    inset: 16px 0 0 0;
  }

  .dashboard-target-chart-interaction--status {
    inset: 12px 0 10px 0;
  }

  .dashboard-target-chart-interaction--kpi {
    inset: 0;
  }

  .dashboard-target-chart-hotspot {
    position: absolute;
    top: var(--hotspot-top, 0);
    left: var(--hotspot-left);
    width: var(--hotspot-width);
    height: var(--hotspot-height, 100%);
    min-width: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
  }

  .dashboard-target-chart-hotspot:focus-visible {
    outline: none;
  }

  .dashboard-target-chart-guide,
  .dashboard-target-chart-active-point,
  .dashboard-target-chart-tooltip {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
  }

  .dashboard-target-chart-guide {
    left: var(--active-x);
    top: var(--active-y);
    height: calc(100% - var(--active-y));
    border-left: 1px solid rgba(18, 103, 255, 0.22);
    transform: translateX(-0.5px);
  }

  .dashboard-target-chart-active-point {
    left: var(--active-x);
    top: var(--active-y);
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #1267ff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(18, 103, 255, 0.22);
    transform: translate(-50%, -50%);
  }

  .dashboard-target-chart-tooltip {
    left: var(--tooltip-x);
    top: var(--active-y);
    display: grid;
    gap: 3px;
    min-width: 96px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #101318;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    transform: translate(-50%, calc(-100% - 13px));
    text-align: left;
    white-space: nowrap;
  }

  .dashboard-target-chart-tooltip::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #1267ff;
  }

  .dashboard-target-chart-tooltip small,
  .dashboard-target-chart-tooltip strong {
    display: block;
    padding-left: 12px;
    line-height: 1.15;
  }

  .dashboard-target-chart-tooltip small {
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--portal-type-caption);
    font-weight: 700;
  }

  .dashboard-target-chart-tooltip strong {
    color: #ffffff;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  [data-dashboard-chart].is-active .dashboard-target-chart-guide,
  [data-dashboard-chart].is-active .dashboard-target-chart-active-point,
  [data-dashboard-chart].is-active .dashboard-target-chart-tooltip {
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .dashboard-target-chart-guide,
    .dashboard-target-chart-active-point,
    .dashboard-target-chart-tooltip {
      transition: none;
    }
  }

  .dashboard-target-card--volume .dashboard-target-footer-link {
    min-height: 38px;
    height: 38px;
    margin: 0;
    border-top-color: rgba(17, 24, 39, 0.1);
    font-size: var(--portal-type-body);
    font-weight: 600;
  }

  .dashboard-support-card {
    height: 76px;
    min-height: 76px;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: var(--target-card-shadow);
  }

  .dashboard-support-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .dashboard-support-card strong {
    font-size: var(--portal-type-body);
  }

  .dashboard-support-card p {
    font-size: var(--portal-type-body);
  }

  .dashboard-support-card__action {
    width: 156px;
    min-height: 45px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: var(--portal-type-body);
  }
}

/* Stable dashboard/chart geometry: keep desktop cards bounded and all chart
   interaction coordinates local to the same measured plot wrapper. */
:where(
  .dashboard-view,
  .dashboard-target-kpis,
  .dashboard-target-kpi,
  .dashboard-grid,
  .dashboard-target-card,
  .dashboard-target-chart,
  .dashboard-target-chart-interaction
) {
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-target-chart-interaction {
  --active-x: 0px;
  --active-y: 0px;
  --tooltip-x: 0px;
  overflow: visible;
  transform: none;
}

.dashboard-target-chart-guide {
  top: 0;
  bottom: 0;
  height: auto;
}

.dashboard-target-chart-interaction.is-tooltip-below .dashboard-target-chart-tooltip {
  transform: translate(-50%, 13px);
}

@media (min-width: 1181px) {
  .portal-dashboard {
    padding-right: 26px;
    padding-left: 26px;
  }

  .dashboard-view {
    width: min(100%, 1254px);
    max-width: 1254px;
    margin-right: auto;
    margin-left: auto;
  }

  .dashboard-target-kpis {
    width: 100%;
    max-width: 1254px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-target-kpi {
    width: 100%;
    max-width: 304.5px;
    height: 166px;
    flex: 0 0 auto;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 17px;
    padding: 20px 18px 18px 20px;
    border-radius: 12px;
    border-color: rgba(17, 24, 39, 0.07);
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.065);
  }

  .dashboard-target-kpi__icon {
    width: 50px;
    height: 50px;
    border-radius: 9px;
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.14);
  }

  .dashboard-target-kpi__icon svg {
    width: 24px;
    height: 24px;
  }

  .dashboard-target-kpi__copy {
    min-width: 0;
    padding-top: 0;
  }

  .dashboard-target-kpi__copy > span {
    margin-top: 0;
    font-size: var(--portal-type-caption);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  .dashboard-target-kpi__copy > strong {
    margin-top: 11px;
    font-size: var(--portal-type-metric);
    line-height: 1;
  }

  .dashboard-target-kpi__copy > small {
    max-width: 166px;
    margin-top: 5px;
    font-size: var(--portal-type-caption);
    line-height: 1.18;
  }

  .dashboard-target-kpi__spark {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    left: 20px;
    bottom: 16px;
    width: 172px;
    height: 28px;
    margin: 0;
  }

  .dashboard-target-kpi__spark-line {
    stroke-width: 2;
  }

  .dashboard-target-kpi__trend {
    position: absolute;
    right: 18px;
    bottom: 16px;
    min-width: 88px;
    line-height: 1;
  }

  .dashboard-target-kpi__trend strong {
    font-size: var(--portal-type-caption);
    line-height: 1.15;
  }

  .dashboard-target-kpi__trend small {
    margin-top: 7px;
    font-size: var(--portal-type-caption);
    line-height: 1.1;
  }

  .dashboard-grid {
    width: 100%;
    max-width: 1254px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-target-card {
    width: 100%;
    max-width: 621px;
    height: 288px;
    flex: 0 0 auto;
  }

  .dashboard-target-card--monthly,
  .dashboard-target-card--volume {
    height: 283px;
  }

  .dashboard-target-card--volume .dashboard-target-chart--line,
  .dashboard-target-card--volume .dashboard-target-chart-interaction,
  .dashboard-target-card--volume .dashboard-target-chart--line svg {
    box-sizing: border-box;
  }

  .dashboard-target-card--volume .dashboard-target-chart--line svg {
    max-width: none;
    aspect-ratio: auto;
  }

  .dashboard-target-chart-interaction--bars {
    top: 10px;
  }

  /* Reference-matched primary dashboard pair (Route spotlight / Current status). */
  .dashboard-target-card--route,
  .dashboard-target-card--status {
    height: 288px;
    padding: 18px;
    border-radius: 10px;
    border-color: rgba(17, 24, 39, 0.075);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.065);
  }

  .dashboard-target-card--route h3,
  .dashboard-target-card--status h3 {
    margin-top: 13px;
  }

  .dashboard-target-card--route .dashboard-target-snapshot {
    position: absolute;
    top: 50px;
    right: 18px;
    width: 154px;
    height: 31px;
    min-height: 31px;
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
    justify-content: space-between;
  }

  .dashboard-target-card--route .dashboard-target-snapshot strong {
    white-space: nowrap;
  }

  .dashboard-target-card--route .dashboard-target-routes {
    position: absolute;
    top: 124px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 0;
  }

  .dashboard-target-card--route .dashboard-target-route {
    grid-template-columns: 26px minmax(170px, 240px) minmax(170px, 253px) auto;
    gap: 15px;
  }

  .dashboard-target-card--route .dashboard-target-route__bar {
    width: 100%;
    max-width: 253px;
    justify-self: end;
  }

  .dashboard-target-card--route .dashboard-target-footer-link,
  .dashboard-target-card--status .dashboard-target-footer-link {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 38px;
    min-height: 38px;
  }

  .dashboard-target-card--status .dashboard-target-actions {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .dashboard-target-card--status .dashboard-target-actions button:first-child {
    width: 118px;
  }

  .dashboard-target-card--status .dashboard-target-actions button:last-child {
    width: 80px;
  }

  .dashboard-target-card--status .dashboard-target-snapshot--float {
    top: 94px;
    right: 18px;
    width: 98px;
    height: 31px;
    min-height: 31px;
    justify-content: space-between;
  }

  .dashboard-target-card--status .dashboard-target-status-body {
    position: absolute;
    inset: 0 0 38px;
    display: block;
    padding: 0;
  }

  .dashboard-target-card--status .dashboard-target-donut {
    position: absolute;
    top: 113px;
    left: clamp(28px, 5.64%, 35px);
  }

  .dashboard-target-card--status .dashboard-target-legend {
    position: absolute;
    top: 155px;
    right: 26px;
    left: clamp(180px, 34.8%, 216px);
  }

  .dashboard-target-card--status .dashboard-target-legend div {
    grid-template-columns: 11px minmax(0, 1fr) auto;
    gap: 12px;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .dashboard-view {
    width: min(100%, 960px);
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
  }

  .dashboard-target-kpis,
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-target-kpi,
  .dashboard-target-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .dashboard-target-kpis,
  .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-target-kpi,
  .dashboard-target-card {
    width: 100%;
    max-width: none;
  }
}

/* Notification popover: anchored to the existing utility bell without changing
   the dashboard/header flow or any content geometry underneath it. */
.portal-notification-button > .portal-notification-indicator {
  top: 3px;
  right: 2px;
  width: 9px;
  min-width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  border: 2px solid var(--app-page-bg, #f4f5f7);
  border-radius: 50%;
  background: #8257e6;
  font-size: 0;
  line-height: 0;
  transform: none;
  pointer-events: none;
}

.portal-notification-button > .portal-notification-indicator[hidden] {
  display: none;
}

.dashboard-hero__action-group .portal-notification-button.is-notification-open {
  background: rgba(130, 87, 230, 0.09);
  color: #111318;
}

.notification-popover {
  --notification-popover-top: 84px;
  --notification-popover-right: 12px;
  --notification-popover-max-height: calc(100vh - 96px);
  --notification-arrow-right: 8px;
  position: fixed;
  z-index: 260;
  top: var(--notification-popover-top);
  right: var(--notification-popover-right);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(740px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: var(--notification-popover-max-height);
  min-height: min(620px, var(--notification-popover-max-height));
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 11px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.17), 0 8px 22px rgba(15, 23, 42, 0.08);
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: calc(100% - var(--notification-arrow-right) - 7px) top;
  transition: opacity 200ms ease, transform 200ms ease;
}

.notification-popover[hidden] {
  display: none;
}

.notification-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notification-popover__arrow {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: var(--notification-arrow-right);
  width: 15px;
  height: 15px;
  border-top: 1px solid rgba(17, 24, 39, 0.11);
  border-left: 1px solid rgba(17, 24, 39, 0.11);
  background: #ffffff;
  transform: rotate(45deg);
}

.notification-popover__header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 26px 10px;
  border-radius: 11px 11px 0 0;
  background: #ffffff;
}

.notification-popover__header h2 {
  margin: 0;
  color: #111318;
  font-size: var(--portal-type-section);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.notification-popover__mark-all {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(130, 87, 230, 0.22);
  border-radius: 8px;
  background: rgba(130, 87, 230, 0.07);
  color: #7043d5;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 170ms ease, color 170ms ease, border-color 170ms ease;
}

.notification-popover__mark-all:hover:not(:disabled) {
  border-color: rgba(130, 87, 230, 0.36);
  background: rgba(130, 87, 230, 0.12);
  color: #5f32c8;
}

.notification-popover__mark-all:disabled {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(17, 24, 39, 0.035);
  color: #9aa1ac;
  cursor: default;
}

.notification-popover__tabs button:focus-visible,
.notification-item:focus-visible,
.notification-popover__mark-all:focus-visible,
.notification-popover__footer button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(130, 87, 230, 0.2);
}

.notification-popover__tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.notification-popover__tabs::-webkit-scrollbar {
  display: none;
}

.notification-popover__tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  gap: 10px;
  min-width: 94px;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: #626a78;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 170ms ease, background-color 170ms ease;
}

.notification-popover__tabs button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: #8257e6;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.notification-popover__tabs button:hover {
  background: rgba(130, 87, 230, 0.045);
  color: #2e3440;
}

.notification-popover__tabs button[aria-selected="true"] {
  color: #111318;
  font-weight: 700;
}

.notification-popover__tabs button[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.notification-popover__tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #8257e6;
  color: #ffffff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
}

.notification-popover__tabs b[hidden] {
  display: none;
}

.notification-popover__list {
  min-width: 0;
  min-height: 300px;
  padding: 10px 26px 12px;
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(130, 87, 230, 0.24) transparent;
  scrollbar-width: thin;
}

.notification-section + .notification-section {
  margin-top: 16px;
}

.notification-section__title {
  margin: 0;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  color: #15171b;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.2;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  margin: 0;
  padding: 14px 8px 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.notification-item::before {
  content: "";
  position: absolute;
  inset: 4px -8px;
  z-index: 0;
  border-radius: 9px;
  background: rgba(130, 87, 230, 0.055);
  opacity: 0;
  transition: opacity 180ms ease;
}

.notification-item:hover::before,
.notification-item:focus-visible::before {
  opacity: 1;
}

.notification-item > * {
  position: relative;
  z-index: 1;
}

.notification-item__icon,
.notification-item__copy {
  transition: background-color 180ms ease, transform 180ms ease;
}

.notification-item:hover .notification-item__icon,
.notification-item:focus-visible .notification-item__icon {
  filter: saturate(1.12);
}

.notification-item:hover .notification-item__copy,
.notification-item:focus-visible .notification-item__copy {
  transform: translateX(2px);
}

.notification-item.is-marking-read {
  opacity: 0.72;
}

.notification-item__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.notification-item__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-item__icon--message,
.notification-item__icon--team {
  background: #f0eaff;
  color: #7545df;
}

.notification-item__icon--shipment {
  background: #e8f1ff;
  color: #1467dd;
}

.notification-item__icon--document {
  background: #e5f8e9;
  color: #08a83f;
}

.notification-item__icon--alert {
  background: #fff1df;
  color: #ff850a;
}

.notification-item__copy {
  min-width: 0;
}

.notification-item__copy strong,
.notification-item__copy span {
  display: block;
  overflow-wrap: anywhere;
}

.notification-item__copy strong {
  color: #111318;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.3;
}

.notification-item__copy span {
  margin-top: 5px;
  color: #646c79;
  font-size: var(--portal-type-body);
  font-weight: 400;
  line-height: 1.35;
}

.notification-item__time {
  align-self: start;
  padding-top: 4px;
  color: #6b7280;
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.notification-item__unread {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8257e6;
  box-shadow: 0 0 0 3px rgba(130, 87, 230, 0.08);
}

.notification-item__unread[hidden] {
  visibility: hidden;
}

.notification-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 36px;
  color: #747c89;
  text-align: center;
}

.notification-empty svg {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  fill: none;
  stroke: #8257e6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-empty strong {
  display: block;
  color: #303641;
  font-size: var(--portal-type-body);
}

.notification-empty span {
  display: block;
  max-width: 360px;
  margin-top: 7px;
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.notification-popover__footer {
  min-height: 68px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 0 0 11px 11px;
  background: #ffffff;
  overflow: hidden;
}

.notification-popover__footer button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 67px;
  padding: 0 24px;
  border: 0;
  border-radius: 0 0 11px 11px;
  background: transparent;
  color: #8257e6;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.notification-popover__footer svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.notification-popover__footer button:hover {
  background: rgba(130, 87, 230, 0.055);
  color: #673ccf;
}

.notification-popover__footer button:hover svg {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .notification-popover {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-height: min(540px, var(--notification-popover-max-height));
    border-radius: 10px;
  }

  .notification-popover__header {
    gap: 12px;
    min-height: 62px;
    padding: 12px 16px 8px;
  }

  .notification-popover__mark-all {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .notification-popover__tabs {
    min-height: 50px;
    padding: 0 12px;
  }

  .notification-popover__tabs button {
    min-width: 92px;
    min-height: 50px;
    padding: 0 10px;
  }

  .notification-popover__list {
    padding: 8px 16px 10px;
  }

  .notification-item {
    grid-template-columns: 46px minmax(0, 1fr) auto 9px;
    gap: 11px;
    min-height: 82px;
    padding-right: 2px;
  }

  .notification-item__icon {
    width: 46px;
    height: 46px;
  }

  .notification-item__icon svg {
    width: 22px;
    height: 22px;
  }

  .notification-item__copy strong {
    font-size: var(--portal-type-body);
  }

  .notification-item__copy span {
    font-size: var(--portal-type-body);
  }

  .notification-item__time {
    font-size: var(--portal-type-body);
  }
}

@media (max-width: 480px) {
  .notification-item {
    grid-template-columns: 44px minmax(0, 1fr) 9px;
  }

  .notification-item__time {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding-top: 0;
  }

  .notification-item__unread {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-popover,
  .notification-popover__tabs button::after,
  .notification-item::before,
  .notification-item__icon,
  .notification-item__copy,
  .notification-popover__footer svg {
    transition: none;
  }

  .notification-popover {
    transform: none;
  }
}

/* Responsive target-dashboard foundation. The target component markup is used
   at every width, so its visual contract must not depend on desktop media rules. */
@media (max-width: 1180px) {
  html,
  body,
  .portal-shell,
  .portal-dashboard,
  .dashboard-view {
    max-width: 100%;
    overflow-x: clip;
  }

  .portal-shell,
  .portal-dashboard,
  .dashboard-view,
  .dashboard-hero,
  .dashboard-kpi-grid,
  .dashboard-target-kpis,
  .dashboard-grid,
  .dashboard-target-card,
  .dashboard-target-kpi {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .portal-topbar {
    position: relative;
    top: auto;
    right: auto;
    z-index: 40;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 12px clamp(14px, 2.4vw, 24px);
    border-radius: 0;
    background: rgba(244, 245, 247, 0.94);
    box-shadow: none;
  }

  .portal-sidebar-toggle {
    display: inline-grid;
    flex: 0 0 42px;
  }

  .portal-topbar .portal-brand {
    display: inline-flex;
    flex: 0 0 auto;
    width: 104px;
    min-width: 0;
    max-width: 104px;
    padding: 0;
  }

  .portal-topbar .portal-brand__logo {
    display: block;
    width: 96px;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
  }

  .portal-topbar .portal-topbar__link {
    display: none !important;
  }

  .portal-topbar__utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-left: auto;
  }

  .portal-topbar__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    margin-left: auto;
  }

  .portal-topbar__badge--runtime {
    display: none !important;
  }

  .portal-internal-switch {
    flex: 0 1 180px;
    min-width: 104px;
    max-width: 180px;
  }

  .portal-topbar__badge--internal {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-language {
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
  }

  .portal-language .frontend-select,
  .portal-language .frontend-select__trigger {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .portal-notification-button,
  .portal-theme-toggle,
  .portal-user-avatar,
  .portal-topbar__icon-button--settings {
    flex: 0 0 auto;
  }

  .portal-notification-button,
  .portal-topbar__icon-button--settings {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 10px;
    background: #ffffff;
  }

  .portal-notification-button {
    position: relative;
    margin: 0;
  }

  .portal-notification-button svg,
  .portal-topbar__icon-button--settings svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
  }

  .portal-notification-button span {
    position: absolute;
    top: -4px;
    right: -3px;
    display: inline-grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    font-size: var(--portal-type-body);
    font-weight: 700;
    line-height: 1;
  }

  .portal-theme-toggle {
    width: 58px;
    min-width: 58px;
    height: 32px;
    min-height: 32px;
  }

  .portal-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.1);
  }

  .portal-dashboard {
    display: block;
    min-height: 0;
    padding: 8px clamp(14px, 2.4vw, 24px) 32px;
  }

  .dashboard-view {
    display: grid;
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
  }

  .dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: center;
    gap: 24px;
    height: auto;
    min-height: 0;
    padding: 12px 0 8px;
  }

  .dashboard-hero__copy {
    min-width: 0;
    padding: 0;
  }

  .dashboard-hero__copy::before {
    margin-bottom: 6px;
    color: #111827;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .dashboard-hero__copy h1 {
    max-width: 100%;
    color: #050505;
    font-size: var(--portal-type-page);
    line-height: 1;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .dashboard-hero__copy p {
    max-width: 54ch;
    margin-top: 9px;
    color: #374151;
    font-size: var(--portal-type-body);
    line-height: 1.45;
  }

  .dashboard-hero__tools {
    display: grid;
    justify-items: stretch;
    min-width: 0;
    padding: 0;
  }

  .dashboard-filter-group {
    display: none !important;
  }

  .dashboard-hero__logo-card {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    max-width: 280px;
    min-height: 92px;
    padding: 16px 20px;
    border: 1px solid var(--app-card-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--app-card-shadow-soft);
    overflow: hidden;
  }

  .dashboard-hero__logo-frame {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .dashboard-hero__logo-card img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
  }

  .dashboard-kpi-grid {
    display: block;
  }

  .dashboard-target-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-target-kpi {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    min-height: 166px;
    height: auto;
    padding: 20px 18px 18px 20px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.065);
    overflow: hidden;
  }

  .dashboard-target-kpi__icon {
    display: inline-grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #050505);
    box-shadow: 0 9px 17px rgba(0, 0, 0, 0.14);
    overflow: hidden;
  }

  .dashboard-target-kpi__icon svg {
    display: block;
    flex: none;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .dashboard-target-kpi--target-pending .dashboard-target-kpi__icon {
    background: linear-gradient(135deg, #ff9f2f, #ff6b00);
  }

  .dashboard-target-kpi--target-quoted .dashboard-target-kpi__icon {
    background: linear-gradient(135deg, #aa5ff0, #7f35c9);
  }

  .dashboard-target-kpi--target-booked .dashboard-target-kpi__icon {
    background: linear-gradient(135deg, #28c76f, #11a855);
  }

  .dashboard-target-kpi__copy {
    min-width: 0;
  }

  .dashboard-target-kpi__copy > span,
  .dashboard-target-kpi__copy > strong,
  .dashboard-target-kpi__copy > small {
    display: block;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .dashboard-target-kpi__copy > span {
    margin: 0;
    color: #3f4654;
    font-size: var(--portal-type-caption);
    font-weight: 700;
    line-height: 1.2;
  }

  .dashboard-target-kpi__copy > strong {
    margin-top: 7px;
    color: #050505;
    font-size: var(--portal-type-metric);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .dashboard-target-kpi__copy > small {
    margin-top: 6px;
    color: #4e5562;
    font-size: var(--portal-type-caption);
    line-height: 1.3;
  }

  .dashboard-target-kpi__spark {
    position: absolute;
    left: 20px;
    bottom: 16px;
    display: block;
    width: min(172px, 52%);
    max-width: 52%;
    height: 28px;
    color: #1267ff;
    overflow: hidden;
  }

  .dashboard-target-kpi--target-pending .dashboard-target-kpi__spark {
    color: #ff7a12;
  }

  .dashboard-target-kpi--target-quoted .dashboard-target-kpi__spark {
    color: #8e44d5;
  }

  .dashboard-target-kpi--target-booked .dashboard-target-kpi__spark {
    color: #14aa59;
  }

  .dashboard-target-kpi__spark-fill {
    fill: currentColor;
    opacity: 0.08;
  }

  .dashboard-target-kpi__spark-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .dashboard-target-kpi__trend {
    position: absolute;
    right: 18px;
    bottom: 16px;
    min-width: 88px;
    max-width: 42%;
    color: #4b5563;
    text-align: right;
  }

  .dashboard-target-kpi__trend strong,
  .dashboard-target-kpi__trend small {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
  }

  .dashboard-target-kpi__trend strong {
    color: #10a95a;
    font-size: var(--portal-type-caption);
    line-height: 1.15;
  }

  .dashboard-target-kpi--target-quoted .dashboard-target-kpi__trend strong {
    color: #4b5563;
  }

  .dashboard-target-kpi__trend small {
    margin-top: 7px;
    font-size: var(--portal-type-caption);
    line-height: 1.15;
  }

  .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-target-card {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
    min-height: 288px;
    height: auto;
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, 0.075);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.065);
    overflow: hidden;
  }

  .dashboard-target-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    gap: 14px;
  }

  .dashboard-target-card__top > div {
    min-width: 0;
  }

  .dashboard-target-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 10px;
    border-radius: 6px;
    background: #f0f1f3;
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
    white-space: nowrap;
  }

  .dashboard-target-card h3 {
    margin: 10px 0 0;
    color: #050505;
    font-size: var(--portal-type-subheading);
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .dashboard-target-card p {
    margin: 8px 0 0;
    color: #3f4654;
    font-size: var(--portal-type-body);
    line-height: 1.4;
  }

  .dashboard-target-snapshot,
  .dashboard-target-actions button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 6px;
    background: #ffffff;
    color: #050505;
    white-space: nowrap;
  }

  .dashboard-target-snapshot {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .dashboard-target-snapshot small {
    color: #596274;
    font-size: var(--portal-type-caption);
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .dashboard-target-snapshot strong {
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .dashboard-target-actions button {
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-snapshot--float {
    position: absolute;
    top: 92px;
    right: 20px;
  }

  .dashboard-target-routes {
    position: relative;
    display: grid;
    gap: 18px;
    align-content: center;
    min-width: 0;
    padding: 20px 0 10px;
  }

  .dashboard-target-route {
    display: grid;
    grid-template-columns: 26px minmax(120px, 0.9fr) minmax(90px, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 10px;
  }

  .dashboard-target-route__copy,
  .dashboard-target-route__bar {
    min-width: 0;
  }

  .dashboard-target-route__index,
  .dashboard-target-route__value {
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-route__copy strong,
  .dashboard-target-route__copy small {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
  }

  .dashboard-target-route__copy strong {
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 700;
  }

  .dashboard-target-route__copy small {
    margin-top: 4px;
    color: #4d5563;
    font-size: var(--portal-type-caption);
    line-height: 1.3;
  }

  .dashboard-target-route__bar {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #eef1f6;
    overflow: hidden;
  }

  .dashboard-target-route__bar i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #071b6a, #1267ff);
  }

  .dashboard-target-route__bar--teal i {
    background: linear-gradient(90deg, #061b63, #2ab4b7);
  }

  .dashboard-target-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
    color: #050505;
    font-size: var(--portal-type-body);
    font-weight: 600;
  }

  .dashboard-target-status-body {
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    gap: 20px;
    padding: 18px 10px 8px;
  }

  .dashboard-target-donut {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    width: 124px;
    min-width: 124px;
    max-width: 124px;
    height: 124px;
    min-height: 124px;
    max-height: 124px;
    border-radius: 999px;
    background: conic-gradient(#ff8a16 0 25%, #050505 25% 100%);
    overflow: hidden;
  }

  .dashboard-target-donut::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: inherit;
    background: #ffffff;
  }

  .dashboard-target-donut strong,
  .dashboard-target-donut span {
    position: relative;
    z-index: 1;
  }

  .dashboard-target-donut strong {
    color: #050505;
    font-size: var(--portal-type-section);
    line-height: 1;
  }

  .dashboard-target-donut span {
    margin-top: 4px;
    color: #4b5563;
    font-size: var(--portal-type-body);
  }

  .dashboard-target-legend {
    display: grid;
    min-width: 0;
    gap: 14px;
  }

  .dashboard-target-legend div {
    display: grid;
    grid-template-columns: 11px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 10px;
  }

  .dashboard-target-dot {
    width: 11px;
    min-width: 11px;
    height: 11px;
    min-height: 11px;
    border-radius: 999px;
  }

  .dashboard-target-dot--orange {
    background: #ff8a16;
  }

  .dashboard-target-dot--black {
    background: #050505;
  }

  .dashboard-target-legend strong,
  .dashboard-target-legend b {
    color: #050505;
    font-size: var(--portal-type-body);
  }

  .dashboard-target-chart {
    position: relative;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    padding-top: 8px;
  }

  .dashboard-target-chart__legend {
    position: absolute;
    top: 2px;
    right: 8px;
    z-index: 2;
    display: grid;
    gap: 6px;
  }

  .dashboard-target-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--portal-type-caption);
    white-space: nowrap;
  }

  .dashboard-target-chart__legend i {
    width: 9px;
    height: 9px;
  }

  .dashboard-target-chart__blue {
    background: #1267d8;
  }

  .dashboard-target-chart__teal {
    background: #25adb1;
  }

  .dashboard-target-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: clamp(6px, 2vw, 18px);
    height: 124px;
    min-width: 0;
    margin: 8px 0 0 28px;
    padding: 16px 8px 0 12px;
    border-left: 1px solid rgba(17, 24, 39, 0.12);
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  }

  .dashboard-target-bars__axis {
    position: absolute;
    top: 40px;
    bottom: 24px;
    left: 0;
    display: grid;
    align-content: space-between;
    color: #111827;
    font-size: var(--portal-type-caption);
  }

  .dashboard-target-bars__item {
    display: grid;
    justify-items: center;
    align-items: end;
    min-width: 0;
    gap: 6px;
  }

  .dashboard-target-bars__item > span {
    position: relative;
    display: block;
    width: clamp(10px, 3vw, 20px);
    max-width: 100%;
    height: calc(var(--weight) * 1px);
    background: #1267d8;
  }

  .dashboard-target-bars__item > span b {
    position: absolute;
    inset: auto 0 0;
    display: block;
    height: calc(var(--volume) * 1px);
    background: #25adb1;
  }

  .dashboard-target-bars__item small,
  .dashboard-target-line-labels span {
    color: #111827;
    font-size: var(--portal-type-caption);
  }

  .dashboard-target-chart--line {
    position: relative;
    height: 141px;
    min-height: 141px;
    padding-top: 16px;
    overflow: visible;
  }

  .dashboard-target-chart--line svg {
    display: block;
    width: calc(100% - 46px);
    max-width: none;
    height: 104px;
    margin-left: 27px;
    overflow: visible;
  }

  .dashboard-target-line-axis {
    position: absolute;
    top: 17px;
    bottom: 24px;
    left: 0;
    display: grid;
    align-content: space-between;
    color: #1f2937;
    font-size: var(--portal-type-body);
    line-height: 1;
  }

  .dashboard-target-line-grid {
    fill: none;
    stroke: rgba(17, 24, 39, 0.12);
    stroke-width: 1;
  }

  .dashboard-target-line {
    fill: none;
    stroke: #1267ff;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dashboard-target-line-points circle {
    fill: #1267ff;
  }

  .dashboard-target-line-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: calc(100% - 46px);
    margin: 8px 0 0 27px;
    text-align: center;
  }

  .dashboard-target-chart-interaction--bars {
    left: 40px;
    top: 16px;
    width: calc(100% - 56px);
    height: 124px;
  }

  .dashboard-target-card--volume .dashboard-target-chart-interaction {
    left: 27px;
    top: 16px;
    width: calc(100% - 46px);
    height: 104px;
  }

  .dashboard-target-chart-interaction {
    --active-x: 0px;
    --active-y: 0px;
    --tooltip-x: 0px;
    position: absolute;
    z-index: 4;
    overflow: visible;
    pointer-events: none;
  }

  .dashboard-target-chart-interaction--kpi {
    inset: 0;
  }

  .dashboard-target-chart-interaction--routes {
    inset: 12px 0 0;
  }

  .dashboard-target-chart-interaction--status {
    inset: 8px 0;
  }

  .dashboard-target-chart-hotspot {
    position: absolute;
    top: var(--hotspot-top, 0);
    left: var(--hotspot-left);
    width: var(--hotspot-width);
    height: var(--hotspot-height, 100%);
    min-width: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
  }

  .dashboard-target-chart-hotspot:focus-visible {
    outline: 2px solid rgba(18, 103, 255, 0.55);
    outline-offset: -2px;
  }

  .dashboard-target-chart-guide,
  .dashboard-target-chart-active-point,
  .dashboard-target-chart-tooltip {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .dashboard-target-chart-guide {
    left: var(--active-x);
    top: 0;
    bottom: 0;
    height: auto;
    border-left: 1px solid rgba(18, 103, 255, 0.22);
    transform: translateX(-0.5px);
  }

  .dashboard-target-chart-active-point {
    left: var(--active-x);
    top: var(--active-y);
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #1267ff;
    box-shadow: 0 0 0 2px rgba(18, 103, 255, 0.22);
    transform: translate(-50%, -50%);
  }

  .dashboard-target-chart-tooltip {
    left: var(--tooltip-x);
    top: var(--active-y);
    display: grid;
    gap: 3px;
    min-width: 96px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #101318;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    transform: translate(-50%, calc(-100% - 13px));
    text-align: left;
    white-space: nowrap;
  }

  .dashboard-target-chart-tooltip small,
  .dashboard-target-chart-tooltip strong {
    display: block;
    padding-left: 12px;
    color: #ffffff;
    line-height: 1.15;
  }

  [data-dashboard-chart].is-active .dashboard-target-chart-guide,
  [data-dashboard-chart].is-active .dashboard-target-chart-active-point,
  [data-dashboard-chart].is-active .dashboard-target-chart-tooltip {
    opacity: 1;
    visibility: visible;
  }

  .dashboard-support-card {
    width: 100%;
    max-width: 100%;
  }

  html[data-theme="dark"] .dashboard-target-kpi,
  html[data-theme="dark"] .dashboard-target-card,
  html[data-theme="dark"] .dashboard-hero__logo-card {
    background: #191b1f;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  }

  html[data-theme="dark"] .dashboard-target-card h3,
  html[data-theme="dark"] .dashboard-target-kpi__copy > strong,
  html[data-theme="dark"] .dashboard-target-route__copy strong,
  html[data-theme="dark"] .dashboard-target-route__index,
  html[data-theme="dark"] .dashboard-target-route__value,
  html[data-theme="dark"] .dashboard-target-legend strong,
  html[data-theme="dark"] .dashboard-target-legend b,
  html[data-theme="dark"] .dashboard-target-donut strong {
    color: #f8fafc;
  }

  html[data-theme="dark"] .dashboard-target-donut::after {
    background: #191b1f;
  }
}

@media (max-width: 900px) {
  .portal-language,
  .portal-user-avatar {
    display: none !important;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .dashboard-hero__logo-card {
    max-width: 100%;
  }

  .dashboard-target-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-target-card {
    min-height: 288px;
  }
}

@media (max-width: 640px) {
  .portal-topbar {
    position: sticky;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    min-height: 62px;
    padding: max(9px, env(safe-area-inset-top, 0px)) 12px 9px;
    border-radius: 0;
  }

  .portal-topbar .portal-brand {
    width: 82px;
    max-width: 82px;
  }

  .portal-topbar .portal-brand__logo {
    width: 78px;
    height: 38px;
  }

  .portal-topbar__utility,
  .portal-topbar__controls {
    display: flex;
    grid-template-columns: none;
    grid-template-areas: none;
    width: auto;
    gap: 6px;
  }

  .portal-internal-switch {
    flex: 0 1 132px;
    min-width: 84px;
    max-width: 132px;
  }

  .portal-topbar__badge--internal {
    min-height: 36px;
    padding: 0 9px;
    font-size: var(--portal-type-caption);
  }

  .portal-notification-button,
  .portal-theme-toggle,
  .portal-user-avatar,
  .portal-language {
    display: none !important;
  }

  .portal-topbar__icon-button--settings {
    display: inline-grid !important;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .portal-dashboard {
    padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 24px);
  }

  .dashboard-view {
    display: grid;
    gap: 12px;
  }

  .dashboard-hero {
    display: grid !important;
    padding-top: 8px;
  }

  .dashboard-hero__copy h1 {
    font-size: var(--portal-type-page);
  }

  .dashboard-target-kpis,
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-target-kpi {
    min-height: 166px;
  }

  .dashboard-target-card {
    min-height: 0;
    padding: 18px;
  }

  .dashboard-target-card__top {
    flex-wrap: wrap;
  }

  .dashboard-target-snapshot,
  .dashboard-target-actions {
    margin-left: auto;
  }

  .dashboard-target-snapshot--float {
    position: static;
    grid-row: auto;
    justify-self: end;
    margin: 10px 0 0 auto;
  }

  .dashboard-target-status-body {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 16px;
    padding-right: 0;
    padding-left: 0;
  }

  .dashboard-target-route {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .dashboard-target-route__bar {
    grid-column: 2 / 4;
    width: 100%;
  }

  .dashboard-target-chart__legend {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 4px;
  }

  .dashboard-target-bars {
    gap: 5px;
    margin-left: 24px;
    padding-right: 2px;
    padding-left: 8px;
  }

  .dashboard-target-chart-interaction--bars {
    left: 32px;
    width: calc(100% - 40px);
  }

  .dashboard-support-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-support-card__action {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .portal-topbar .portal-brand {
    display: none;
  }

  .portal-internal-switch {
    flex-basis: 118px;
    max-width: 118px;
  }

  .dashboard-target-kpi {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 178px;
    padding: 16px;
  }

  .dashboard-target-kpi__icon {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
  }

  .dashboard-target-kpi__spark {
    left: 16px;
    bottom: 16px;
    width: 54%;
    max-width: 170px;
  }

  .dashboard-target-kpi__trend {
    right: 16px;
    bottom: 16px;
    max-width: 40%;
  }

  .dashboard-target-status-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .dashboard-target-legend {
    width: min(100%, 240px);
  }

  .dashboard-target-card--monthly,
  .dashboard-target-card--volume {
    min-height: 300px;
  }
}

/* Monthly shipments reference geometry. Keep the header, plot and footer in
   three normal-flow rows so chart labels can never collide with the action. */
.dashboard-target-card--monthly {
  grid-template-rows: 88px 145px 34px;
  height: 280px;
  min-height: 280px;
  padding: 12px 20px 0;
  overflow: visible;
}

.dashboard-target-card--monthly .dashboard-target-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 97px;
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.dashboard-target-card--monthly .dashboard-target-badge {
  min-height: 23px;
  padding: 0 10px;
  border-radius: 6px;
}

.dashboard-target-card--monthly h3 {
  margin-top: 9px;
}

.dashboard-target-card--monthly p {
  margin-top: 9px;
  line-height: 1.2;
}

.dashboard-target-card--monthly .dashboard-target-snapshot {
  width: 97px;
  height: 32px;
  min-height: 32px;
  margin: 26px 0 0;
  padding: 0 11px;
  justify-self: end;
}

.dashboard-target-card--monthly .dashboard-target-chart--bars {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 145px;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.dashboard-target-card--monthly .dashboard-target-chart__legend {
  position: absolute;
  top: 0;
  right: 7px;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 0;
}

.dashboard-target-card--monthly .dashboard-target-chart__legend span {
  gap: 8px;
  font-size: var(--portal-type-caption);
  line-height: 1;
}

.dashboard-target-card--monthly .dashboard-target-chart__legend i {
  width: 10px;
  height: 10px;
}

.dashboard-target-card--monthly .dashboard-target-bars__axis {
  top: 8px;
  bottom: 27px;
  left: 0;
  line-height: 1;
}

.dashboard-target-card--monthly .dashboard-target-bars {
  position: relative;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  height: 118px;
  margin: 13px 14px 0 28px;
  padding: 0 16px 0 7px;
  border-bottom: 0;
}

.dashboard-target-card--monthly .dashboard-target-bars::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.dashboard-target-card--monthly .dashboard-target-bars__item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  justify-items: center;
  align-items: stretch;
  min-width: 0;
  gap: 0;
}

.dashboard-target-card--monthly .dashboard-target-bars__item > span {
  align-self: end;
  width: 21px;
  max-width: 100%;
  transform: scaleY(0.94);
  transform-origin: center bottom;
}

.dashboard-target-card--monthly .dashboard-target-bars__item small {
  align-self: end;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-target-card--monthly .dashboard-target-chart-interaction--bars {
  top: 13px;
  right: 26px;
  left: 36px;
  width: auto;
  height: 100px;
}

.dashboard-target-card--monthly .dashboard-target-footer-link {
  min-height: 34px;
  height: 34px;
  margin: 0;
  transform: none;
}

@media (max-width: 480px) {
  .dashboard-target-card--monthly {
    grid-template-rows: 111px 166px 38px;
    height: 333px;
    min-height: 333px;
    padding: 18px 18px 0;
  }

  .dashboard-target-card--monthly .dashboard-target-footer-link {
    min-height: 38px;
    height: 38px;
  }

  .dashboard-target-card--monthly .dashboard-target-card__top {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
  }

  .dashboard-target-card--monthly .dashboard-target-snapshot {
    width: 92px;
  }

  .dashboard-target-card--monthly .dashboard-target-chart--bars {
    height: 166px;
  }

  .dashboard-target-card--monthly .dashboard-target-chart__legend {
    top: 0;
  }

  .dashboard-target-card--monthly .dashboard-target-bars__axis {
    top: 34px;
    bottom: 32px;
  }

  .dashboard-target-card--monthly .dashboard-target-bars {
    margin-top: 34px;
  }

  .dashboard-target-card--monthly .dashboard-target-chart-interaction--bars {
    top: 34px;
  }
}

/* Chats workspace */
.chats-view[hidden] {
  display: none !important;
}

.chats-view {
  display: grid;
  grid-template-rows: 102px minmax(0, 1fr);
  min-width: 0;
  min-height: calc(100vh - 46px);
}

.chats-hero {
  display: flex;
  align-items: start;
  min-width: 0;
  padding: 0 0 14px 25px;
}

.chats-hero__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.chats-hero h1 {
  margin: 0;
  color: #050505;
  font-size: var(--portal-type-page);
  line-height: 1;
  letter-spacing: -0.055em;
}

.chats-hero p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: var(--portal-type-body);
}

.chats-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(286px, 330px) minmax(450px, 1fr) minmax(270px, 315px);
  min-width: 0;
  height: calc(100vh - 148px);
  min-height: 650px;
  max-height: 910px;
  gap: 12px;
}

.chats-list-panel,
.chat-thread-panel,
.chat-detail-card {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.075);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.chats-list-panel,
.chat-thread-panel {
  overflow: hidden;
  border-radius: 12px;
}

.chats-list-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 18px 14px 0;
}

.chats-list-panel__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
}

.chats-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 7px;
  background: #ffffff;
  color: #687386;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.chats-search:focus-within {
  border-color: rgba(18, 103, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(18, 103, 255, 0.11);
}

.chats-search svg,
.chat-icon-button svg,
.chat-header-button svg,
.chat-send-button svg,
.chat-detail-action svg,
.chat-message__retry svg,
.chat-document-list svg,
.chat-related-list svg,
.chat-milestone-list svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chats-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: var(--portal-type-body);
}

.chats-search input::placeholder {
  color: #7b8494;
}

.chat-icon-button,
.chat-header-button,
.chat-send-button,
.chat-detail-action,
.chats-filter,
.chat-message__retry {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.chat-icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.chat-icon-button:hover,
.chat-icon-button:focus-visible {
  outline: 0;
  border-color: rgba(17, 24, 39, 0.22);
  background: #f7f8fa;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.chats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 17px 0 16px;
}

.chats-filter {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chats-filter:hover,
.chats-filter:focus-visible {
  outline: 0;
  border-color: rgba(17, 24, 39, 0.22);
}

.chats-filter.is-active {
  border-color: #080808;
  background: #080808;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 5, 5, 0.16);
}

.chats-conversation-list {
  min-height: 0;
  margin: 0 -5px;
  padding: 0 5px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.chat-conversation {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  width: 100%;
  min-width: 0;
  min-height: 87px;
  padding: 12px 9px;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  border-radius: 7px;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.chat-conversation:hover,
.chat-conversation:focus-visible {
  outline: 0;
  background: #f7f9fc;
}

.chat-conversation.is-selected {
  border: 1px solid rgba(18, 103, 255, 0.72);
  background: linear-gradient(135deg, rgba(18, 103, 255, 0.075), rgba(18, 103, 255, 0.025));
  box-shadow: 0 7px 18px rgba(18, 103, 255, 0.08);
}

.chat-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #16181d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.chat-avatar--blue { background: linear-gradient(135deg, #2878ff, #0753dc); }
.chat-avatar--teal { background: linear-gradient(135deg, #29b8a6, #059b8c); }
.chat-avatar--orange { background: linear-gradient(135deg, #ffad35, #ff7a00); }
.chat-avatar--purple { background: linear-gradient(135deg, #9a62d9, #7434bd); }
.chat-avatar--gold { background: linear-gradient(135deg, #e6bc52, #c79624); }
.chat-avatar--cyan { background: linear-gradient(135deg, #64c4d0, #3297a6); border-radius: 999px; }
.chat-avatar--person { background: linear-gradient(135deg, #496278, #25384a); border-radius: 999px; }
.chat-avatar--dark { background: linear-gradient(135deg, #25272d, #08090b); }

.chat-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #16a34a;
}

.chat-avatar > span > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-conversation__body,
.chat-conversation__body > span {
  min-width: 0;
}

.chat-conversation__body {
  display: grid;
  gap: 4px;
}

.chat-conversation__topline {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.chat-conversation__topline strong {
  overflow: hidden;
  color: #0b0c0f;
  font-size: var(--portal-type-body);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  background: #eef0f3;
  color: #5d6675;
  font-size: var(--portal-type-body);
  font-weight: 600;
  white-space: nowrap;
}

.chat-status-badge--blue { background: #e9f0ff; color: #1261e6; }
.chat-status-badge--green { background: #e7f8ed; color: #138a47; }
.chat-status-badge--internal { background: #e7f8ed; color: #16854a; }
.chat-status-badge--external { background: #f0f1f3; color: #626b78; }

.chat-conversation__context {
  color: #1f2937;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-conversation__preview {
  display: block;
  overflow: hidden;
  color: #667085;
  font-size: var(--portal-type-body);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-conversation__meta {
  display: grid;
  justify-items: end;
  gap: 18px;
  min-width: 42px;
}

.chat-conversation__meta time {
  color: #697386;
  font-size: var(--portal-type-caption);
  white-space: nowrap;
}

.chat-conversation__meta b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0d5bde;
  color: #ffffff;
  font-size: var(--portal-type-caption);
  line-height: 1;
}

.chat-thread-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-thread-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.09);
}

.chat-thread-header > .chat-avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.chat-thread-header__back {
  display: none;
}

.chat-thread-header__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.chat-thread-header__copy > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.chat-thread-header__copy h2 {
  overflow: hidden;
  margin: 0;
  color: #090a0c;
  font-size: var(--portal-type-section);
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-header__copy > span:not(.chat-status-badge) {
  color: #303848;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-thread-header__copy > .chat-status-badge {
  position: absolute;
  left: 76px;
  bottom: 10px;
}

.chat-thread-header__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-header-button:hover,
.chat-header-button:focus-visible {
  outline: 0;
  background: #f7f8fa;
  border-color: rgba(17, 24, 39, 0.22);
}

.chat-action-menu {
  position: absolute;
  top: 47px;
  right: 0;
  z-index: 20;
  display: grid;
  width: 205px;
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.chat-action-menu[hidden] { display: none !important; }

.chat-action-menu button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: var(--portal-type-body);
  text-align: left;
  cursor: pointer;
}

.chat-action-menu button:hover,
.chat-action-menu button:focus-visible { outline: 0; background: #f2f4f7; }

.chat-messages {
  min-height: 0;
  padding: 18px 18px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.chat-date-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 8px 0 24px;
  color: #384152;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-date-divider::before,
.chat-date-divider::after {
  content: "";
  height: 1px;
  background: rgba(17, 24, 39, 0.095);
}

.chat-message {
  display: flex;
  align-items: start;
  gap: 10px;
  width: min(75%, 430px);
  margin: 0 0 18px;
}

.chat-message--own {
  justify-content: flex-end;
  margin-left: auto;
}

.chat-message .chat-avatar {
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin-top: 1px;
  font-size: 0.64rem;
}

.chat-message__content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.chat-message--own .chat-message__content { justify-items: end; }

.chat-message__sender {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 6px;
}

.chat-message__sender strong { color: #111827; font-size: var(--portal-type-body); }
.chat-message__sender span { color: #7b8494; font-size: var(--portal-type-body); }

.chat-message--own .chat-message__sender {
  justify-content: flex-end;
  color: #164da7;
}

.chat-message__bubble {
  min-width: 160px;
  padding: 12px 14px 8px;
  border-radius: 9px;
  background: #f2f3f5;
  color: #111827;
}

.chat-message--own .chat-message__bubble {
  background: linear-gradient(135deg, #e9f1ff, #f0f4fb);
}

.chat-message.is-failed .chat-message__bubble {
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: #fff1f2;
}

.chat-message__bubble p {
  margin: 0;
  font-size: var(--portal-type-body);
  line-height: 1.5;
}

.chat-message__bubble > span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 5px;
  color: #70798a;
  font-size: var(--portal-type-body);
}

.chat-message__bubble i { color: #1267ff; font-style: normal; font-weight: 700; }

.chat-message__attachments {
  display: grid;
  gap: 6px;
  width: 100%;
}

.chat-message__attachment {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.64);
  color: inherit;
  text-decoration: none;
}

.chat-message__attachment:hover { border-color: rgba(18, 103, 255, 0.45); }
.chat-message__attachment svg { width: 14px; height: 14px; }
.chat-message__attachment strong { overflow: hidden; font-size: var(--portal-type-body); text-overflow: ellipsis; white-space: nowrap; }

.chat-message__retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: #b42318;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.chat-message__retry svg { width: 14px; height: 14px; }

.chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px auto 44px;
  align-items: end;
  gap: 8px;
  margin: 0 16px 14px;
  padding: 5px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
}

.chat-composer > label {
  display: grid;
  grid-column: 2;
  min-width: 0;
}

.chat-composer > .chat-composer__attach { grid-column: 1; }
.chat-composer > .chat-composer__emoji { grid-column: 3; }

.chat-composer > .chat-message__retry {
  grid-column: 4;
  align-self: center;
  min-height: 32px;
  padding: 0 8px;
}

.chat-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 110px;
  padding: 11px 4px 8px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: var(--portal-type-body);
  line-height: 1.35;
}

.chat-composer textarea::placeholder { color: #8a93a2; }
.chat-composer textarea:disabled { cursor: wait; opacity: .7; }

.chat-composer .chat-icon-button {
  border-color: transparent;
  background: transparent;
}

.chat-send-button {
  display: inline-grid;
  grid-column: 5;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  background: #08090b;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(5, 5, 5, 0.18);
}

.chat-send-button:hover,
.chat-send-button:focus-visible { outline: 0; background: #1d2026; box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12); }

.chat-send-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  box-shadow: none;
}

.chat-composer__status {
  grid-column: 1 / -1;
  color: #687386;
  font-size: var(--portal-type-caption);
}

.chat-composer__status:empty { display: none; }

.chat-composer__attachments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 3px 2px 2px;
}

.chat-composer__attachment {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  min-width: 170px;
  max-width: min(280px, 100%);
  min-height: 40px;
  padding: 5px 6px 5px 9px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
}

.chat-composer__attachment > svg { width: 17px; height: 17px; }
.chat-composer__attachment > span { min-width: 0; }
.chat-composer__attachment strong,
.chat-composer__attachment small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-composer__attachment strong { font-size: var(--portal-type-body); }
.chat-composer__attachment small { margin-top: 2px; color: #727c8c; font-size: var(--portal-type-caption); }
.chat-composer__attachment button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.chat-composer__attachment button:hover { background: rgba(17, 24, 39, .08); }
.chat-composer__attachment button svg { width: 13px; height: 13px; }

.chat-composer__emoji-popover {
  position: absolute;
  right: 52px;
  bottom: calc(100% + 9px);
  z-index: 12;
  width: min(300px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .13);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.chat-composer__emoji-popover header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 9px 0 12px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
}

.chat-composer__emoji-popover header strong { font-size: var(--portal-type-body); }
.chat-composer__emoji-popover header button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.chat-composer__emoji-popover header svg { width: 14px; height: 14px; }
.chat-composer__emoji-popover > div {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  max-height: 190px;
  padding: 8px;
  overflow-y: auto;
}
.chat-composer__emoji-popover > div button {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: var(--portal-type-body);
  cursor: pointer;
}
.chat-composer__emoji-popover > div button:hover,
.chat-composer__emoji-popover > div button:focus-visible { outline: 0; background: rgba(18, 103, 255, .1); }

.chat-composer.is-dragging {
  border-color: #176bff;
  box-shadow: 0 0 0 3px rgba(23, 107, 255, .16);
}

.chat-composer.is-dragging::after {
  position: absolute;
  inset: 4px;
  z-index: 10;
  display: grid;
  place-items: center;
  border: 1px dashed #176bff;
  border-radius: 7px;
  background: rgba(240, 246, 255, .96);
  color: #0b4fc6;
  content: "Drop files to attach";
  font-size: .7rem;
  font-weight: 700;
  pointer-events: none;
}

.chat-composer__status.is-error { color: #b42318; }

.chat-details-panel {
  min-width: 0;
  min-height: 0;
}

.chat-details-panel__scroll {
  display: grid;
  align-content: start;
  min-height: 0;
  max-height: 100%;
  gap: 9px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-details-panel__mobile-head,
.chat-details-backdrop {
  display: none;
}

.chat-detail-card {
  overflow: hidden;
  border-radius: 10px;
}

.chat-detail-card header {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.075);
}

.chat-detail-card h3 {
  margin: 0;
  color: #111827;
  font-size: var(--portal-type-subheading);
}

.chat-detail-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px 14px;
}

.chat-detail-card dl > div {
  display: grid;
  grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1.25fr);
  gap: 8px;
  align-items: start;
}

.chat-detail-card dt,
.chat-detail-card dd {
  margin: 0;
  color: #111827;
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.chat-detail-card dt { color: #4b5563; }
.chat-detail-card dd { overflow-wrap: anywhere; }
.chat-detail-card dd a { color: #1261d9; text-decoration: none; }

.chat-detail-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  min-height: 36px;
  margin: 0 14px 14px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-participant-list,
.chat-document-list,
.chat-milestone-list,
.chat-related-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 12px;
  list-style: none;
}

.chat-participant-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
}

.chat-participant-list .chat-avatar {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.5rem;
  box-shadow: none;
}

.chat-participant-list .chat-avatar i { width: 7px; height: 7px; border-width: 1.5px; }
.chat-participant-list strong,
.chat-participant-list small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-participant-list strong { color: #111827; font-size: var(--portal-type-body); }
.chat-participant-list small { margin-top: 2px; color: #687386; font-size: var(--portal-type-caption); }

.chat-document-list li > button,
.chat-document-list li > a,
.chat-document-list li > .chat-document-row,
.chat-related-list li > button {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 37px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.chat-document-list li > button:hover,
.chat-document-list li > a:hover,
.chat-related-list li > button:hover { color: #1261d9; }

.chat-document-list li > .chat-document-row { cursor: default; }

.chat-document-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 24px;
  border-radius: 3px;
  background: #205bc8;
  color: #ffffff;
  font-size: var(--portal-type-body);
  font-style: normal;
  font-weight: 700;
}

.chat-document-icon--pdf { background: #e03535; }
.chat-document-list strong,
.chat-document-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-document-list strong { color: inherit; font-size: var(--portal-type-body); }
.chat-document-list small { margin-top: 2px; color: #687386; font-size: var(--portal-type-caption); }
.chat-document-list svg,
.chat-related-list svg { width: 14px; height: 14px; }

.chat-milestone-list li {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 6px 0;
}

.chat-milestone-list li > i {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #20ae58;
  color: #ffffff;
}

.chat-milestone-list svg { width: 11px; height: 11px; stroke-width: 2.5; }
.chat-milestone-list strong,
.chat-milestone-list small { display: block; }
.chat-milestone-list strong { color: #111827; font-size: var(--portal-type-body); }
.chat-milestone-list small { margin-top: 3px; color: #687386; font-size: var(--portal-type-caption); }

.chat-contact-profile {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 14px 6px;
  text-align: center;
}

.chat-contact-profile .chat-avatar { width: 52px; min-width: 52px; height: 52px; border-radius: 999px; }
.chat-contact-profile strong { color: #111827; font-size: var(--portal-type-body); }
.chat-contact-profile > span:not(.chat-status-badge) { color: #687386; font-size: var(--portal-type-body); }

.chat-empty-state,
.chat-loading-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-height: 150px;
  padding: 24px;
  color: #687386;
  text-align: center;
}

.chat-empty-state strong,
.chat-loading-state strong { color: #111827; font-size: var(--portal-type-body); }
.chat-empty-state span { font-size: var(--portal-type-body); line-height: 1.4; }
.chat-empty-state--thread { min-height: 100%; }
.chat-empty-state--messages { min-height: 100%; }
.chat-empty-state--compact { min-height: 65px; padding: 12px; }
.chat-empty-state--error { min-height: 420px; border: 1px solid rgba(17, 24, 39, 0.08); border-radius: 12px; background: #ffffff; }
.chat-empty-state--error button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: #111827; color: #ffffff; cursor: pointer; }

.chats-app--state {
  grid-template-columns: minmax(0, 1fr);
}

.chats-app--state > .chat-loading-state,
.chats-app--state > .chat-empty-state--error {
  grid-column: 1 / -1;
  width: 100%;
}

.chat-loading-state {
  grid-column: 1 / -1;
  min-height: 420px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.chat-loading-state i {
  width: 28px;
  height: 28px;
  border: 3px solid #e1e5eb;
  border-top-color: #1267ff;
  border-radius: 999px;
  animation: chat-spinner 700ms linear infinite;
}

@keyframes chat-spinner { to { transform: rotate(360deg); } }

@media (min-width: 1181px) {
  .chat-thread-header__actions > [data-chat-details] {
    display: none;
  }
}

@media (max-width: 1420px) and (min-width: 1181px) {
  .chats-app { grid-template-columns: minmax(270px, 300px) minmax(420px, 1fr) 280px; }
  .chat-header-button span { display: none; }
  .chat-header-button { width: 40px; padding: 0; }
}

@media (max-width: 1180px) {
  .portal-dashboard--chats { padding-bottom: 18px; }
  .chats-view { grid-template-rows: 94px minmax(0, 1fr); min-height: calc(100vh - 86px); }
  .chats-hero { padding: 8px 0 14px; }
  .chats-app { grid-template-columns: minmax(270px, 315px) minmax(0, 1fr); height: calc(100vh - 180px); min-height: 620px; max-height: none; }
  .chat-details-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    width: min(390px, 92vw);
    height: 100dvh;
    padding: 0;
    background: #f4f5f7;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
    transform: translateX(105%);
    transition: transform 180ms ease;
  }
  .chat-details-panel.is-open { transform: translateX(0); }
  .chat-details-panel__mobile-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 14px; background: #ffffff; border-bottom: 1px solid rgba(17, 24, 39, 0.09); }
  .chat-details-panel__scroll { max-height: calc(100dvh - 64px); padding: 10px; }
  .chat-details-backdrop { position: fixed; inset: 0; z-index: 110; display: block; border: 0; background: rgba(3, 7, 18, 0.34); backdrop-filter: blur(2px); }
  .chat-details-backdrop[hidden] { display: none !important; }
}

@media (max-width: 760px) {
  .portal-dashboard--chats { padding: 8px 12px 12px; }
  .chats-view { grid-template-rows: 82px minmax(0, 1fr); min-height: calc(100dvh - 78px); }
  .chats-hero { padding: 4px 2px 12px; }
  .chats-hero__eyebrow { font-size: var(--portal-type-caption); }
  .chats-hero h1 { font-size: var(--portal-type-page); }
  .chats-hero p { margin-top: 5px; font-size: var(--portal-type-body); }
  .chats-app { display: block; height: calc(100dvh - 164px); min-height: 520px; }
  .chats-list-panel,
  .chat-thread-panel { position: absolute; inset: 0; width: 100%; height: 100%; }
  .chats-list-panel { padding: 14px 12px 0; }
  .chat-thread-panel { z-index: 5; visibility: hidden; transform: translateX(104%); transition: transform 180ms ease, visibility 180ms step-end; }
  .chats-app.is-conversation-open .chat-thread-panel { visibility: visible; transform: translateX(0); transition: transform 180ms ease; }
  .chat-thread-header { grid-template-columns: 40px 40px minmax(0, 1fr) auto; min-height: 68px; padding: 8px 10px; gap: 8px; }
  .chat-thread-header__back { display: inline-grid; }
  .chat-thread-header > .chat-avatar { width: 38px; min-width: 38px; height: 38px; }
  .chat-thread-header__copy h2 { font-size: var(--portal-type-section); }
  .chat-thread-header__copy > .chat-status-badge { display: none; }
  .chat-thread-header__actions { gap: 5px; }
  .chat-thread-header__actions > .chat-header-button,
  .chat-thread-header__actions > [data-chat-attach] { display: none; }
  .chat-thread-header__actions .chat-icon-button { width: 36px; min-width: 36px; height: 36px; }
  .chat-message { width: min(88%, 430px); }
  .chat-messages { padding: 14px 12px 20px; }
  .chat-composer { position: sticky; bottom: 0; margin: 0 10px max(10px, env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .chats-filters { gap: 6px; }
  .chats-filter { min-height: 31px; padding: 0 10px; font-size: var(--portal-type-body); }
  .chat-conversation { min-height: 82px; padding: 10px 7px; }
  .chat-conversation__meta { min-width: 35px; }
  .chat-thread-header__actions > [data-chat-details] { display: inline-grid; }
  .chat-message__sender { gap: 6px; }
  .chat-message__sender span { display: none; }
}

/* Final cascade guard for the Messages page header. */
.chats-view {
  grid-template-rows: var(--app-page-header-min-height, 115px) minmax(0, 1fr);
}
.chats-hero.app-page-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--app-page-header-min-height, 115px);
  padding: 38px 0 0 25px;
  gap: 24px;
  background: #000;
}
.chats-hero h1 {
  margin: 0;
  font-size: var(--portal-type-page);
  font-weight: 700;
  line-height: var(--app-page-title-line-height, .98);
  letter-spacing: var(--app-page-title-letter-spacing, -.065em);
}
.chats-hero p {
  margin: 10px 0 0;
  font-size: var(--portal-type-body);
  line-height: var(--app-page-subtitle-line-height, 1.55);
}
@media (min-width: 1181px) {
  .portal-shell:has(.portal-dashboard--chats) > .portal-topbar { display: flex; }
  .portal-dashboard.portal-dashboard--chats { height: calc(100dvh - 76px); min-height: 0; padding: 0 12px 4px; }
}
@media (max-width: 1180px) {
  .chats-view { grid-template-rows: 94px minmax(0, 1fr); }
  .chats-hero.app-page-header { min-height: 94px; padding: 15px 2px 12px; align-items: center; }
  .chats-app { height: 100%; min-height: 0; }
}
@media (max-width: 760px) {
  .chats-view { grid-template-rows: auto minmax(0, 1fr); }
  .chats-hero.app-page-header { min-height: 82px; padding: 8px 2px 12px; }
  .chats-hero h1 { font-size: var(--portal-type-page); }
  .chats-hero p { margin-top: 5px; font-size: var(--portal-type-body); }
}


html[data-theme="dark"] .chats-hero__eyebrow,
html[data-theme="dark"] .chats-hero h1,
html[data-theme="dark"] .chat-conversation__topline strong,
html[data-theme="dark"] .chat-thread-header__copy h2,
html[data-theme="dark"] .chat-message__sender strong,
html[data-theme="dark"] .chat-message__bubble,
html[data-theme="dark"] .chat-detail-card h3,
html[data-theme="dark"] .chat-detail-card dt,
html[data-theme="dark"] .chat-detail-card dd,
html[data-theme="dark"] .chat-participant-list strong,
html[data-theme="dark"] .chat-milestone-list strong,
html[data-theme="dark"] .chat-contact-profile strong,
html[data-theme="dark"] .chat-empty-state strong,
html[data-theme="dark"] .chat-loading-state strong {
  color: #f8fafc;
}

html[data-theme="dark"] .chats-hero p,
html[data-theme="dark"] .chat-conversation__context,
html[data-theme="dark"] .chat-conversation__preview,
html[data-theme="dark"] .chat-thread-header__copy > span:not(.chat-status-badge),
html[data-theme="dark"] .chat-message__sender span,
html[data-theme="dark"] .chat-detail-card dt,
html[data-theme="dark"] .chat-participant-list small,
html[data-theme="dark"] .chat-milestone-list small {
  color: #a9b3c2;
}

html[data-theme="dark"] .chats-list-panel,
html[data-theme="dark"] .chat-thread-panel,
html[data-theme="dark"] .chat-detail-card,
html[data-theme="dark"] .chats-search,
html[data-theme="dark"] .chat-icon-button,
html[data-theme="dark"] .chat-header-button,
html[data-theme="dark"] .chat-detail-action,
html[data-theme="dark"] .chat-composer,
html[data-theme="dark"] .chat-action-menu,
html[data-theme="dark"] .chat-loading-state,
html[data-theme="dark"] .chat-empty-state--error,
html[data-theme="dark"] .chat-details-panel__mobile-head {
  border-color: rgba(255, 255, 255, 0.1);
  background: #191b1f;
  color: #f8fafc;
}

html[data-theme="dark"] .chats-search input,
html[data-theme="dark"] .chat-composer textarea,
html[data-theme="dark"] .chat-action-menu button { color: #f8fafc; }
html[data-theme="dark"] .chats-filter { border-color: rgba(255, 255, 255, 0.12); background: #191b1f; color: #e5e7eb; }
html[data-theme="dark"] .chats-filter.is-active { background: #f8fafc; border-color: #f8fafc; color: #101216; }
html[data-theme="dark"] .chat-conversation:hover,
html[data-theme="dark"] .chat-conversation:focus-visible { background: #202329; }
html[data-theme="dark"] .chat-conversation.is-selected { background: rgba(18, 103, 255, 0.13); }
html[data-theme="dark"] .chat-message__bubble { background: #26292f; }
html[data-theme="dark"] .chat-message--own .chat-message__bubble { background: #15345f; }
html[data-theme="dark"] .chat-action-menu button:hover { background: #272a30; }
html[data-theme="dark"] .chat-avatar i { border-color: #191b1f; }
html[data-theme="dark"] .chat-details-panel { background: #111317; }

@media (prefers-reduced-motion: reduce) {
  .chat-loading-state i { animation-duration: 1.5s; }
  .chat-thread-panel,
  .chat-details-panel { transition: none; }
}

/* Reference-matched quotations overview */
.quotations-overview {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.quotations-overview[hidden] { display: none !important; }

.quotations-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 122px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quotations-header__copy { display: grid; gap: 0; }

.quotations-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #111827;
  font-size: var(--portal-type-body);
}

.quotations-breadcrumb a {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #111827;
}

.quotations-breadcrumb svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quotations-breadcrumb > span { color: #c1c5cc; }
.quotations-breadcrumb strong { font-weight: 700; }

.quotations-header__copy h1 {
  margin: 0;
  color: #050505;
  font-size: var(--portal-type-page);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.quotations-header__copy p {
  margin: 10px 0 0;
  color: #626873;
  font-size: var(--portal-type-body);
  line-height: 1.35;
}

#new-quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  min-height: 46px;
  margin-bottom: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(5, 5, 5, 0.13);
}

#new-quote-button:hover,
#new-quote-button:focus-visible {
  outline: none;
  background: #202226;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1), 0 9px 20px rgba(5, 5, 5, 0.14);
}

.quotations-filter-bar {
  position: relative;
  z-index: 15;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.quotation-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(150px, 0.95fr)) 54px;
  align-items: stretch;
  gap: 22px;
  min-width: 0;
}

.quotation-filter-search,
.quotation-filter-select,
.quotation-additional-filter__trigger {
  height: 58px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
}

.quotation-filter-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.quotation-filter-search:focus-within,
.quotation-filter-select:focus-within {
  border-color: rgba(17, 24, 39, 0.3);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.055);
}

.quotation-filter-search svg,
.quotation-filter-select svg,
.quotation-additional-filter__trigger svg,
.quotation-stat-card__icon svg,
.quotation-page-row__mode svg,
.quotation-favourite svg,
.quotations-page-empty > span svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quotation-filter-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: var(--portal-type-body);
}

.quotation-filter-search input::placeholder { color: #747b87; }

.quotation-filter-select {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 9px 14px 7px;
}

.quotation-filter-select > span {
  color: #767d88;
  font-size: var(--portal-type-body);
  line-height: 1;
}

.quotation-filter-select select {
  width: 100%;
  min-width: 0;
  padding: 3px 24px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}

.quotation-filter-select > svg {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.quotation-additional-filter { position: relative; }

.quotation-additional-filter__trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  padding: 0;
  cursor: pointer;
}

.quotation-additional-filter__trigger:hover,
.quotation-additional-filter__trigger:focus-visible {
  outline: none;
  border-color: rgba(17, 24, 39, 0.25);
  background: #f7f8fa;
}

.quotation-additional-filter__trigger i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #f59e0b;
}

.quotation-additional-filter__popover {
  position: absolute;
  top: 66px;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: 220px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.quotation-additional-filter__popover[hidden] { display: none !important; }
.quotation-additional-filter__popover strong { padding: 6px 8px; color: #111827; font-size: var(--portal-type-body); }
.quotation-additional-filter__popover button { min-height: 36px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #374151; font: inherit; font-size: var(--portal-type-body); text-align: left; cursor: pointer; }
.quotation-additional-filter__popover button:hover,
.quotation-additional-filter__popover button:focus-visible,
.quotation-additional-filter__popover button.is-active { outline: none; background: #f1f3f6; color: #050505; }

.quotations-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.quotation-stat-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  height: 112px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(15, 23, 42, 0.04);
}

.quotation-stat-card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  box-shadow: 0 7px 15px rgba(15, 23, 42, 0.13);
}

.quotation-stat-card--pending .quotation-stat-card__icon { background: #efa100; }
.quotation-stat-card--review .quotation-stat-card__icon { background: #1682d7; }
.quotation-stat-card--booked .quotation-stat-card__icon { background: #35aa4f; }
.quotation-stat-card--response .quotation-stat-card__icon { background: #8c5cc7; }

.quotation-stat-card__icon svg { width: 27px; height: 27px; }
.quotation-stat-card > div { display: grid; min-width: 0; }
.quotation-stat-card > div > span { overflow: hidden; color: #636a76; font-size: var(--portal-type-body); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.quotation-stat-card strong { margin-top: 5px; color: #050505; font-size: var(--portal-type-section); line-height: 1; }
.quotation-stat-card small { display: flex; align-items: center; gap: 6px; margin-top: 8px; overflow: hidden; color: #858b95; font-size: var(--portal-type-caption); text-overflow: ellipsis; white-space: nowrap; }
.quotation-stat-card small i { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid #a6abb3; border-radius: 999px; font-size: var(--portal-type-caption); font-style: normal; }

.quotations-table-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 20px 14px 16px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.quotations-table-card__header-tools[hidden] { display: none !important; }
#quotations-table-wrap,
.quotations-table-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.quotations-page-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: inline-size;
  overflow-x: auto;
  scrollbar-width: thin;
}

.quotation-page-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.quotation-page-table thead th {
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #69717d;
  font-size: var(--portal-type-caption);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.quotation-page-table thead th:nth-child(1) { width: 44px; }
.quotation-page-table thead th:nth-child(2) { width: 150px; }
.quotation-page-table thead th:nth-child(3) { width: 110px; }
.quotation-page-table thead th:nth-child(4) { width: 165px; }
.quotation-page-table thead th:nth-child(5) { width: 78px; }
.quotation-page-table thead th:nth-child(6) { width: 150px; }
.quotation-page-table thead th:nth-child(7) { width: 150px; }
.quotation-page-table thead th:nth-child(8) { width: 155px; }
.quotation-page-table thead th:nth-child(9) { width: 125px; }
.quotation-page-table thead th:nth-child(10) { width: 40px; }

/* Table rows stay anchored; hover feedback changes colour only. */
.quotation-page-row {
  position: relative;
  transform: none;
  transition: background-color 150ms ease;
}

.quotation-page-row:hover { transform: none; }

.quotation-page-row td {
  height: 86px;
  padding: 12px 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.09);
  border-bottom: 1px solid rgba(17, 24, 39, 0.09);
  background: #ffffff;
  color: #111827;
  font-size: var(--portal-type-body);
  vertical-align: middle;
}

.quotation-page-row:hover td { background: #fdfdfd; box-shadow: none; }
.quotation-page-row td:first-child { position: relative; border-left: 1px solid rgba(17, 24, 39, 0.09); border-radius: 9px 0 0 9px; }
.quotation-page-row td:last-child { border-right: 1px solid rgba(17, 24, 39, 0.09); border-radius: 0 9px 9px 0; }
.quotation-page-row--orange td:first-child::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 4px; border-radius: 9px 0 0 9px; background: #f5a000; }
.quotation-page-row.is-selected td { background: #fffaf1; }

.quotations-table__checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: #050505;
  cursor: pointer;
}

.quotation-page-reference,
.quotation-page-row__status > span,
.quotation-page-row__updated > span,
.quotation-page-load {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.quotation-page-reference > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.quotation-page-reference strong { overflow: hidden; color: #050505; font-size: var(--portal-type-body); text-overflow: ellipsis; white-space: nowrap; }
.quotation-page-reference small,
.quotation-page-row__status small,
.quotation-page-row__updated small,
.quotation-page-load small { color: #858b95; font-size: var(--portal-type-caption); line-height: 1.2; }

.quotation-favourite {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d8591;
  cursor: pointer;
}

.quotation-favourite svg { width: 17px; height: 17px; }
.quotation-favourite.is-active { color: #f59e0b; }
.quotation-favourite.is-active svg { fill: currentColor; }
.quotation-favourite:hover,
.quotation-favourite:focus-visible { outline: none; color: #f59e0b; }

.quotation-page-row__customer-reference { color: #6f7682 !important; }

.quotation-page-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
}

.quotation-page-route > span { display: grid; gap: 8px; min-width: 0; }
.quotation-page-route strong { color: #050505; font-size: var(--portal-type-body); }
.quotation-page-route small { overflow: hidden; color: #858b95; font-size: var(--portal-type-caption); text-overflow: ellipsis; white-space: nowrap; }
.quotation-page-route > span:last-child small { padding-left: 10px; border-left: 1px solid #d8dbe0; }
.quotation-page-route i { color: #47505e; font-size: var(--portal-type-body); font-style: normal; }

.quotation-page-row__mode > span { display: grid; justify-items: center; gap: 5px; width: max-content; }
.quotation-page-row__mode svg { width: 23px; height: 23px; }
.quotation-page-row__mode small { color: #4b5563; font-size: var(--portal-type-caption); }
.quotation-page-load strong,
.quotation-page-row__updated strong { color: #343b47; font-size: var(--portal-type-body); font-weight: 600; white-space: nowrap; }

.quotation-page-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef0f3;
  color: #596170;
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
}

.quotation-page-status--orange { background: #fff0d8; color: #c76a00; }
.quotation-page-status--blue { background: #e6f1ff; color: #1264c7; }
.quotation-page-status--green { background: #e5f7eb; color: #178447; }
.quotation-page-status--red { background: #fde8e8; color: #b42318; }

.quotation-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.quotation-view-button:hover,
.quotation-view-button:focus-visible { outline: none; background: #24262a; box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.09); }

.quotation-more-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #050505;
  font-size: var(--portal-type-section);
  line-height: 1;
  cursor: pointer;
}

.quotation-more-button:hover,
.quotation-more-button:focus-visible { outline: none; background: #f0f2f5; }

.quotations-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px 0;
  color: #737b87;
  font-size: var(--portal-type-body);
}

.quotations-pagination > span { grid-column: 2; }
.quotations-pagination nav { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 9px; }
.quotations-pagination button,
.quotations-pagination b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; font: inherit; }
.quotations-pagination button { border: 1px solid rgba(17, 24, 39, 0.1); background: #ffffff; color: #111827; cursor: pointer; }
.quotations-pagination button:disabled { opacity: 0.38; cursor: default; }
.quotations-pagination b { background: #050505; color: #ffffff; font-weight: 700; }

.quotations-page-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 310px;
  gap: 9px;
  padding: 32px;
  text-align: center;
}
.quotations-page-empty > span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: #f0f2f5; color: #4b5563; }
.quotations-page-empty strong { color: #111827; font-size: var(--portal-type-body); }
.quotations-page-empty p { margin: 0 0 7px; color: #7a828e; font-size: var(--portal-type-body); }

.quotations-page-skeleton { display: grid; gap: 10px; width: 100%; }
.quotations-page-skeleton i { display: block; height: 78px; border-radius: 10px; background: linear-gradient(90deg, #f1f3f5, #fafbfc, #f1f3f5); background-size: 200% 100%; animation: quotation-skeleton 1.1s linear infinite; }
.quotation-drawer__loading i { height: 120px; }
.quotation-drawer__loading i:nth-child(2) { height: 180px; }
.quotation-drawer__loading i:nth-child(3) { height: 84px; }
@keyframes quotation-skeleton { to { background-position: -200% 0; } }

@media (max-width: 1180px) {
  .quotation-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .quotation-filter-search { grid-column: span 2; }
  .quotation-additional-filter { justify-self: end; }
  .quotations-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotation-stat-card { height: 104px; }
}

@media (max-width: 760px) {
  .quotations-overview { gap: 12px; }
  .quotations-header { display: grid; align-items: start; min-height: 0; padding: 8px 2px 4px; }
  .quotations-breadcrumb { margin-bottom: 16px; }
  .quotations-header__copy h1 { font-size: var(--portal-type-page); }
  .quotations-header__copy p { font-size: var(--portal-type-body); }
  #new-quote-button { justify-self: stretch; width: 100%; margin: 6px 0 0; }
  .quotations-filter-bar { padding: 12px; }
  .quotation-filter-grid { grid-template-columns: minmax(0, 1fr) 54px; gap: 9px; }
  .quotation-filter-search { grid-column: 1 / -1; }
  .quotation-filter-select { grid-column: 1 / -1; }
  .quotation-additional-filter { grid-column: 2; grid-row: 6; }
  .quotations-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; overflow: visible; }
  .quotation-stat-card { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; height: 96px; padding: 13px; }
  .quotation-stat-card__icon { width: 44px; height: 44px; }
  .quotation-stat-card__icon svg { width: 22px; height: 22px; }
  .quotation-stat-card > div > span { font-size: var(--portal-type-body); }
  .quotation-stat-card strong { font-size: var(--portal-type-subheading); }
  .quotation-stat-card small { font-size: var(--portal-type-caption); }
  .quotations-table-card { padding: 10px; }
  .quotations-page-table-wrap { overflow: visible; }
  .quotation-page-table { display: block; min-width: 0; border-spacing: 0; }
  .quotation-page-table thead { display: none; }
  .quotation-page-table tbody { display: grid; gap: 10px; }
  .quotation-page-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "select quotation more" "select route route" "select status status" "select load load" "select updated updated" "select action action"; gap: 12px; padding: 14px; border: 1px solid rgba(17, 24, 39, 0.09); border-radius: 14px; background: #ffffff; }
  .quotation-page-row:hover { transform: none; }
  .quotation-page-row td { display: block; height: auto; min-width: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  .quotation-page-row td:first-child::before { top: -14px; bottom: -14px; left: -14px; }
  .quotation-page-row__select { grid-area: select; }
  .quotation-page-row__quotation { grid-area: quotation; }
  .quotation-page-row__more { grid-area: more; }
  .quotation-page-row__route { grid-area: route; }
  .quotation-page-row__status { grid-area: status; }
  .quotation-page-row__load { grid-area: load; }
  .quotation-page-row__updated { grid-area: updated; }
  .quotation-page-row__action { grid-area: action; }
  .quotation-page-row__customer-reference,
  .quotation-page-row__mode { display: none !important; }
  .quotation-page-row td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #9197a1; font-size: 0.58rem; text-transform: uppercase; }
  .quotation-page-row__quotation::before { display: none !important; }
  .quotation-page-route { max-width: 280px; }
  .quotation-view-button { width: 100%; min-height: 40px; }
  .quotations-pagination { grid-template-columns: 1fr auto; gap: 12px; padding-inline: 2px; }
  .quotations-pagination > span { grid-column: 1; }
  .quotations-pagination nav { grid-column: 2; }
}

html[data-theme="dark"] .quotations-header__copy h1,
html[data-theme="dark"] .quotations-breadcrumb,
html[data-theme="dark"] .quotations-breadcrumb a,
html[data-theme="dark"] .quotation-filter-search input,
html[data-theme="dark"] .quotation-filter-select select,
html[data-theme="dark"] .quotation-stat-card strong,
html[data-theme="dark"] .quotation-page-reference strong,
html[data-theme="dark"] .quotation-page-route strong,
html[data-theme="dark"] .quotations-page-empty strong { color: #f8fafc; }

html[data-theme="dark"] .quotations-filter-bar,
html[data-theme="dark"] .quotation-filter-search,
html[data-theme="dark"] .quotation-filter-select,
html[data-theme="dark"] .quotation-additional-filter__trigger,
html[data-theme="dark"] .quotation-additional-filter__popover,
html[data-theme="dark"] .quotation-stat-card,
html[data-theme="dark"] .quotations-table-card,
html[data-theme="dark"] .quotation-page-row td,
html[data-theme="dark"] .quotation-page-row,
html[data-theme="dark"] .quotations-pagination button { background: #191b1f; border-color: rgba(255, 255, 255, 0.1); }

html[data-theme="dark"] .quotation-page-row:hover td { background: #202328; }
html[data-theme="dark"] .quotation-filter-select > span,
html[data-theme="dark"] .quotation-stat-card > div > span,
html[data-theme="dark"] .quotation-stat-card small,
html[data-theme="dark"] .quotation-page-reference small,
html[data-theme="dark"] .quotation-page-route small,
html[data-theme="dark"] .quotation-page-row__status small,
html[data-theme="dark"] .quotation-page-row__updated small { color: #aab3c1; }

@media (prefers-reduced-motion: reduce) {
  .quotation-page-row,
  .quotations-page-skeleton i { transition: none; animation: none; }
}

/* Reference-matched Settings workspace */
.settings-view { width: 100%; max-width: 1240px; gap: 22px; margin: 0 auto; color: #16181d; }
.settings-hero { display: flex; align-items: center; justify-content: space-between; min-height: 98px; padding: 22px 30px; border: 1px solid rgba(17,24,39,.065); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.045); }
.settings-hero h2 { margin: 0; color: #090a0d; font-size: var(--portal-type-page); line-height: 1.05; letter-spacing: -.035em; }
.settings-hero p { margin: 8px 0 0; color: #777d87; font-size: var(--portal-type-body); }
.settings-hero__actions { display: flex; align-items: center; gap: 12px; }
.settings-save-indicator { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid #e3e6ea; border-radius: 10px; color: #333842; background: #fff; font-size: var(--portal-type-body); font-weight: 700; }
.settings-save-indicator::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 999px; background: #ff9418; }
.settings-save-indicator.is-saved::before { background: #26a65b; }
.settings-hero__actions .button { min-height: 42px; padding-inline: 20px; border-radius: 10px; }
.settings-hero__actions .button--primary { background: #080808; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.13); }
.settings-form { min-width: 0; }
.settings-shell { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 20px; align-items: start; }
.settings-sidebar { position: sticky; top: 20px; min-width: 0; }
.settings-sidebar__card { display: flex; flex-direction: column; min-height: 680px; padding: 22px 16px 18px; border: 1px solid rgba(17,24,39,.065); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.045); }
.settings-sidebar__eyebrow { padding: 0 7px; color: #858b95; font-size: var(--portal-type-caption); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.settings-sidebar__profile { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; align-items: center; padding: 15px 7px 20px; }
.settings-sidebar__profile strong { overflow: hidden; color: #15171b; font-size: var(--portal-type-body); text-overflow: ellipsis; white-space: nowrap; }
.settings-sidebar__profile span { display: block; margin-top: 4px; color: #777d87; font-size: var(--portal-type-body); }
.settings-sidebar__nav { display: grid; gap: 4px; }
.settings-sidebar__link { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 11px; align-items: center; min-height: 48px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: #575d67; font: inherit; font-size: var(--portal-type-body); text-align: left; cursor: pointer; }
.settings-sidebar__link > span { display: inline-grid; place-items: center; color: #707680; font-size: var(--portal-type-body); }
.settings-sidebar__link:hover,.settings-sidebar__link:focus-visible { outline: none; background: #f4f5f7; color: #111318; }
.settings-sidebar__link.is-active { background: #f3f4f6; color: #101216; font-weight: 700; }
.settings-sidebar__link.is-active::before { content: ""; position: absolute; inset: 7px auto 7px 0; width: 2px; border-radius: 2px; background: #050505; }
.settings-help-card { display: grid; gap: 9px; margin-top: auto; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.settings-help-card strong { font-size: var(--portal-type-body); }
.settings-help-card p { margin: 0; color: #747a84; font-size: var(--portal-type-body); line-height: 1.5; }
.settings-help-card a { display: flex; justify-content: space-between; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid #dde1e5; border-radius: 8px; background: #fff; color: #17191d; font-size: var(--portal-type-body); font-weight: 700; }
.settings-content { min-width: 0; }
.settings-panel { display: grid; gap: 12px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.settings-panel__header,.settings-subsection-card { border: 1px solid rgba(17,24,39,.065); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.04); }
.settings-panel__header { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 20px; margin: 0; }
.settings-panel__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e0e3e7; border-radius: 999px; background: #fff; color: #111; font-size: .75rem; font-weight: 700; }
.settings-panel__header h3,.settings-subsection-card__header h4 { margin: 0; color: #101216; font-size: var(--portal-type-subheading); }
.settings-panel__header p,.settings-subsection-card__header p { margin: 5px 0 0; color: #7b818a; font-size: var(--portal-type-body); }
.settings-subsection-stack { display: grid; gap: 12px; }
.settings-subsection-card { padding: 18px; }
.settings-profile-intro { display: none; }
.settings-profile-layout { display: grid; grid-template-columns: 142px minmax(0,1fr); gap: 22px; }
.settings-profile-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 13px 14px; border-right: 1px solid #e6e8eb; }
.settings-avatar--large { width: 80px; height: 80px; border-radius: 999px; background-position: center; background-size: cover; font-size: 1.15rem; }
.settings-avatar-edit { position: absolute; top: 67px; left: calc(50% + 20px); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dfe2e6; border-radius: 999px; background: #fff; color: #111; cursor: pointer; }
.settings-profile-card > strong { margin-top: 14px; padding: 5px 11px; border-radius: 999px; background: #e8f7eb; color: #29934a; font-size: var(--portal-type-body); }
.settings-profile-card > span { margin-top: 13px; font-size: var(--portal-type-body); font-weight: 700; }
.settings-profile-card > small { margin-top: 5px; color: #777d87; font-size: var(--portal-type-caption); line-height: 1.45; text-align: center; }
.settings-profile-card .settings-inline-actions { display: grid; gap: 3px; width: 100%; margin-top: 12px; }
.settings-profile-card .button { min-height: 32px; padding: 0 8px; font-size: var(--portal-type-body); }
.settings-profile-card #settings-avatar-remove { color: #d13d3d; }
.settings-grid { gap: 13px 20px; }
.settings-view .field { position: relative; gap: 7px; }
.settings-view .field > span { color: #4b515a; font-size: var(--portal-type-body); font-weight: 700; }
.settings-view .field input,.settings-view .field select,.settings-view .field textarea { min-height: 44px; border: 1px solid #dfe3e7; border-radius: 9px; background: #fff; color: #333842; font-size: var(--portal-type-body); box-shadow: none; }
.settings-view .field input:focus,.settings-view .field select:focus,.settings-view .field textarea:focus { outline: 2px solid rgba(17,24,39,.12); outline-offset: 1px; border-color: #9ba1aa; }
.settings-view .field input[readonly] { background: #fafafa; color: #555b65; }
.settings-character-count { justify-self: end; margin-top: -26px; padding: 0 8px 7px 0; color: #858b95; font-size: var(--portal-type-caption); pointer-events: none; }
.settings-field-error { display: block; margin-top: 5px; color: #c93434; font-size: var(--portal-type-caption); }
.settings-field-error[hidden] { display: none; }
.settings-subsection-card__header--split { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.settings-working-hours { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.settings-workday-row { display: grid; gap: 10px; min-width: 0; padding: 12px 7px; border: 1px solid #e4e7ea; border-radius: 10px; }
.settings-workday-row__day { display: flex; flex-direction: column-reverse; align-items: center; gap: 7px; font-size: var(--portal-type-body); font-weight: 700; }
.settings-workday-row__time { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 4px; align-items: center; }
.settings-workday-row__time input { width: 100%; min-width: 0; height: 34px; padding: 0 4px; border: 1px solid #e0e3e7; border-radius: 7px; background: #fff; font-size: var(--portal-type-body); text-align: center; }
.settings-workday-row__time span { color: #8b9098; font-size: var(--portal-type-body); }
.settings-workday-row__time input:disabled { background: #f4f5f6; color: #afb3b9; }
.settings-availability-footer { margin-top: 14px; }
.settings-preferences-grid { display: grid; grid-template-columns: 1.1fr 1.15fr 1.15fr 1fr; gap: 18px; padding-top: 4px; }
.settings-preference-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-preference-group legend,.settings-preference-group > strong { margin-bottom: 10px; color: #4d535c; font-size: var(--portal-type-body); font-weight: 700; }
.settings-preference-group > small { margin-top: 7px; color: #888e97; font-size: var(--portal-type-caption); line-height: 1.4; }
.settings-theme-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.settings-theme-selector label { cursor: pointer; }
.settings-theme-selector input { position: absolute; opacity: 0; pointer-events: none; }
.settings-theme-selector span { display: grid; place-items: center; gap: 5px; min-height: 58px; border: 1px solid #dfe3e7; border-radius: 8px; color: #252930; font-size: var(--portal-type-body); }
.settings-theme-selector small { font-size: var(--portal-type-caption); }
.settings-theme-selector input:checked + span { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.settings-theme-selector input:focus-visible + span { outline: 2px solid #738095; outline-offset: 2px; }
.settings-quick-preferences { display: grid; align-content: start; gap: 9px; }
.settings-quick-preferences label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #555b65; font-size: var(--portal-type-body); }
.settings-quick-preferences input { width: 30px; height: 17px; accent-color: #090909; }
.settings-integrations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
html[data-theme="dark"] .settings-hero,html[data-theme="dark"] .settings-sidebar__card,html[data-theme="dark"] .settings-panel__header,html[data-theme="dark"] .settings-subsection-card,html[data-theme="dark"] .settings-help-card { border-color: rgba(255,255,255,.1); background: #191b1f; color: #f8fafc; }
html[data-theme="dark"] .settings-hero h2,html[data-theme="dark"] .settings-panel__header h3,html[data-theme="dark"] .settings-subsection-card__header h4,html[data-theme="dark"] .settings-sidebar__profile strong { color: #f8fafc; }
html[data-theme="dark"] .settings-sidebar__link.is-active,html[data-theme="dark"] .settings-sidebar__link:hover { background: #282b31; color: #fff; }
html[data-theme="dark"] .settings-view .field input,html[data-theme="dark"] .settings-view .field select,html[data-theme="dark"] .settings-view .field textarea,html[data-theme="dark"] .settings-workday-row__time input { border-color: rgba(255,255,255,.12); background: #202329; color: #f1f5f9; }
@media (max-width:1180px) { .settings-view { max-width:none; } .settings-shell { grid-template-columns:210px minmax(0,1fr); } .settings-working-hours { grid-template-columns:repeat(4,minmax(0,1fr)); } .settings-preferences-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .settings-view { gap:12px; } .settings-hero { display:grid; gap:16px; padding:18px; } .settings-hero__actions { display:grid; grid-template-columns:1fr 1fr; width:100%; } .settings-save-indicator { grid-column:1/-1; }
  .settings-shell { grid-template-columns:minmax(0,1fr); gap:12px; } .settings-sidebar { position:static; overflow:hidden; } .settings-sidebar__card { min-height:0; padding:14px; } .settings-sidebar__profile { padding-bottom:12px; }
  .settings-sidebar__nav { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; } .settings-sidebar__link { grid-template-columns:auto auto; flex:0 0 auto; min-height:40px; padding:0 12px; } .settings-sidebar__link.is-active::before { inset:auto 8px 0; width:auto; height:2px; } .settings-help-card { display:none; }
  .settings-profile-layout { grid-template-columns:minmax(0,1fr); } .settings-profile-card { border-right:0; border-bottom:1px solid #e6e8eb; } .settings-grid--two,.settings-grid--three { grid-template-columns:minmax(0,1fr); } .settings-grid__span-2 { grid-column:auto; }
  .settings-working-hours { grid-template-columns:minmax(0,1fr); } .settings-workday-row { grid-template-columns:92px minmax(0,1fr); align-items:center; } .settings-workday-row__day { flex-direction:row; justify-content:flex-start; }
  .settings-preferences-grid { grid-template-columns:minmax(0,1fr); } .settings-subsection-card { padding:14px; } .settings-subsection-card__header--split { align-items:flex-start; flex-direction:column; }
}

/* Reports workspace */
.portal-dashboard--reports { padding-top: 26px; }
.reports-view { width: 100%; }
.reports-view[hidden] { display: none !important; }
.reports-root,.reports-page { width: 100%; min-width: 0; }
.reports-page { display: grid; gap: 14px; max-width: 1440px; margin: 0 auto; color: #111827; }
.reports-page button,.reports-page select { font: inherit; }
.reports-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; min-height: 88px; padding: 0 2px 8px; }
.reports-header h1 { margin: 0; color: #050505; font-size: var(--portal-type-page); line-height: 1; letter-spacing: -.05em; }
.reports-header p { margin: 12px 0 0; color: #4b5563; font-size: var(--portal-type-body); }
.reports-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.reports-controls > button,.reports-controls .date { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid #dfe3e8; border-radius: 7px; background: #fff; color: #111827; font-size: var(--portal-type-body); font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.02); }
.reports-controls .date { min-width: 230px; justify-content: flex-start; gap: 8px; }
.reports-controls .date select { min-width: 118px; border: 0; outline: 0; background: transparent; font-weight: 700; }
.reports-controls .date small { color: #667085; white-space: nowrap; }
.reports-controls button { cursor: pointer; }
.reports-controls button:hover,.reports-controls button:focus-visible { border-color: #9ca3af; box-shadow: 0 0 0 3px rgba(23,105,232,.1); outline: 0; }
.reports-controls button.active { border-color: #1769e8; color: #1769e8; }
.reports-controls button b { display: grid; place-items: center; min-width: 17px; height: 17px; margin-left: 7px; border-radius: 50%; background: #1769e8; color: #fff; font-size: var(--portal-type-body); }
.reports-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.reports-kpi,.reports-card,.reports-filter,.reports-state { position: relative; border: 1px solid #e3e6ea; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.045); }
.reports-kpi { min-height: 138px; padding: 17px 18px 12px; overflow: hidden; }
.reports-kpi > span:first-child { display: block; color: #374151; font-size: var(--portal-type-caption); font-weight: 700; }
.reports-kpi > strong { display: block; max-width: calc(100% - 42px); margin-top: 8px; color: #050505; font-size: var(--portal-type-metric); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.reports-kpi > i { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; background: #eef4ff; color: #1769e8; }
.reports-kpi > i svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reports-kpi--green > i { background:#edf9f1;color:#16a34a; }.reports-kpi--purple > i { background:#f4efff;color:#7c3aed; }.reports-kpi--orange > i { background:#fff5ea;color:#ff7a00; }
.reports-trend { display: block; margin-top: 11px; font-size: var(--portal-type-body); font-weight: 700; }.reports-trend small { color:#4b5563;font-weight: 500; }.reports-trend.is-good{color:#079447}.reports-trend.is-bad{color:#dc2626}.reports-trend.is-neutral{color:#667085;font-weight: 600}
.reports-spark { position:absolute; right:16px; bottom:8px; width:calc(100% - 32px); height:28px; overflow:visible; }.reports-spark polyline{fill:none;stroke:#1769e8;stroke-width:1.8;vector-effect:non-scaling-stroke}.reports-spark--green polyline{stroke:#16a34a}.reports-spark--purple polyline{stroke:#7c3aed}.reports-spark--orange polyline{stroke:#ff7a00}.reports-unavailable{position:absolute;left:18px;bottom:15px;color:#98a2b3;font-size: var(--portal-type-body)}
.reports-grid { display:grid; gap:12px; }.reports-grid.primary{grid-template-columns:1.6fr 1.15fr 1.1fr}.reports-grid.secondary{grid-template-columns:repeat(3,minmax(0,1fr))}
.reports-card { min-width:0; min-height:250px; padding:14px 16px 0; overflow:hidden; }.reports-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:28px; }.reports-card h2{margin:0;color:#111827;font-size: var(--portal-type-subheading);font-weight: 700;letter-spacing:-.015em}.reports-card header select,.reports-card header span,.reports-activity header select{min-height:30px;padding:0 10px;border:1px solid #dfe3e8;border-radius:6px;background:#fff;color:#344054;font-size: var(--portal-type-body);font-weight: 600}.reports-card header h2 button{width:17px;height:17px;padding:0;border:1px solid #cfd5dc;border-radius:50%;background:#fff;color:#667085;font-size: var(--portal-type-subheading)}
.reports-empty,.reports-state{display:grid;place-content:center;justify-items:center;min-height:190px;padding:24px;color:#667085;text-align:center;font-size: var(--portal-type-body)}.reports-state{min-height:320px}.reports-state strong{color:#111827;font-size: var(--portal-type-body)}.reports-state button{min-height:36px;padding:0 16px;border:0;border-radius:7px;background:#111;color:#fff}
.reports-line-wrap{height:205px;margin-top:4px}.reports-legend{display:flex;justify-content:center;gap:18px;height:26px}.reports-legend button{border:0;background:none;color:#667085;font-size: var(--portal-type-body)}.reports-legend button b{display:inline-block;width:8px;height:3px;margin-right:5px;background:#1769e8;vertical-align:middle}.reports-legend button:nth-child(2) b{background:#16a34a}.reports-legend button:not(.is-on){opacity:.35}.reports-line-wrap svg{width:100%;height:178px;overflow:visible}.reports-line-wrap svg .grid{fill:none;stroke:#edf0f3;stroke-width:1}.reports-line-wrap svg .line{fill:none;stroke-width:2}.reports-line-wrap svg .line.blue,.reports-line-wrap svg circle.blue{stroke:#1769e8}.reports-line-wrap svg .line.green,.reports-line-wrap svg circle.green{stroke:#16a34a}.reports-line-wrap svg circle{fill:#fff;stroke-width:2}.reports-line-wrap svg text{fill:#111827;font-size: var(--portal-type-body);text-anchor:middle;font-weight: 700}.reports-line-wrap svg text.axis{fill:#667085;font-weight: 500}
.reports-columns{display:flex;align-items:end;gap:12px;height:205px;padding:20px 8px 0;border-bottom:1px solid #e8ebef}.reports-columns button{display:grid;grid-template-rows:20px 1fr 22px;align-items:end;justify-items:center;flex:1;height:100%;padding:0;border:0;background:none;color:#111827;font-size: var(--portal-type-body)}.reports-columns button i{display:block;width:min(36px,72%);min-height:7px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#2581f5,#0865df)}.reports-columns button small{color:#667085}
.reports-ranking{display:grid;gap:12px;margin-top:18px}.reports-ranking button{display:grid;grid-template-columns:minmax(85px,1fr) minmax(80px,1.5fr) auto;align-items:center;gap:10px;padding:0;border:0;background:none;color:#344054;font-size: var(--portal-type-body);text-align:left}.reports-ranking button i,.reports-status-bars button i{height:7px;border-radius:99px;background:#eef1f4;overflow:hidden}.reports-ranking button i b{display:block;height:100%;border-radius:99px;background:#1769e8}.reports-ranking button strong{text-align:right;color:#111827;font-size: var(--portal-type-body)}.reports-footer{position:absolute;left:0;right:0;bottom:0;width:100%;min-height:34px;border:0;border-top:1px solid #e7eaee;background:#fff;color:#344054;font-size: var(--portal-type-body);font-weight: 600;cursor:pointer}
.reports-donut-row{display:grid;grid-template-columns:138px 1fr;align-items:center;gap:16px;min-height:200px}.reports-donut{display:grid;place-items:center;width:124px;height:124px;border:0;border-radius:50%;background:conic-gradient(var(--segments));cursor:pointer}.reports-donut:before{content:"";grid-area:1/1;width:72px;height:72px;border-radius:50%;background:#fff}.reports-donut span{z-index:1;grid-area:1/1;display:grid;text-align:center}.reports-donut span strong{font-size: var(--portal-type-subheading)}.reports-donut span small{color:#667085;font-size: var(--portal-type-caption)}.reports-donut-row > div{display:grid;gap:12px}.reports-donut-row > div button{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:8px;padding:0;border:0;background:none;color:#344054;font-size: var(--portal-type-body);text-align:left}.reports-donut-row > div button b{width:8px;height:8px;border-radius:50%}.reports-donut-row > div button strong{font-size: var(--portal-type-body)}
.reports-status-bars{display:grid;gap:17px;margin-top:24px}.reports-status-bars button{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:10px;padding:0;border:0;background:none;color:#344054;font-size: var(--portal-type-body);text-align:left}.reports-status-bars button i b{display:block;height:100%;border-radius:99px}.reports-status-bars button strong{font-size: var(--portal-type-body)}
.reports-activity{min-height:300px;padding:14px 12px 34px}.reports-activity > header{align-items:start;border-bottom:1px solid #e5e8ec}.reports-activity header nav{display:flex;gap:24px;margin-top:8px}.reports-activity header nav button{min-height:30px;padding:0 8px;border:0;border-bottom:2px solid transparent;background:none;color:#475467;font-size: var(--portal-type-body)}.reports-activity header nav button.is-active{border-color:#111;color:#111;font-weight: 700}.reports-activity header label{display:flex;align-items:center;gap:8px;color:#475467;font-size: var(--portal-type-body)}.reports-chip{display:flex;align-items:center;gap:10px;padding:8px 2px}.reports-chip span{padding:5px 9px;border-radius:99px;background:#eef4ff;color:#1769e8;font-size: var(--portal-type-body)}.reports-chip button{border:0;background:none;color:#344054;font-size: var(--portal-type-body);text-decoration:underline}.reports-table{overflow:auto}.reports-table table{width:100%;border-collapse:collapse;white-space:nowrap}.reports-table th{height:34px;padding:0 10px;color:#667085;font-size: var(--portal-type-caption);font-weight: 600;text-align:left}.reports-table td{height:42px;padding:0 10px;border-top:1px solid #edf0f2;color:#344054;font-size: var(--portal-type-body)}.reports-table td .type{display:flex;align-items:center;gap:7px}.reports-table td .type svg{width:20px;height:20px;padding:3px;border-radius:5px;background:#eef4ff;color:#1769e8;fill:none;stroke:currentColor;stroke-width:1.7}.reports-table td .status{display:inline-flex;padding:4px 10px;border-radius:99px;background:#eef2f6;color:#344054}.reports-table td button{min-height:28px;padding:0 12px;border:1px solid #dfe3e8;border-radius:5px;background:#fff;color:#344054;font-size: var(--portal-type-body)}
.reports-filter{position:absolute;z-index:40;top:82px;right:125px;width:min(620px,calc(100vw - 40px));padding:16px}.reports-filter header,.reports-filter footer{display:flex;align-items:center;justify-content:space-between}.reports-filter header button{border:0;background:none;font-size: var(--portal-type-section)}.reports-filter > div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.reports-filter label{display:grid;gap:6px;color:#475467;font-size: var(--portal-type-body);text-transform:capitalize}.reports-filter select,.reports-filter input{min-height:38px;padding:0 10px;border:1px solid #dfe3e8;border-radius:7px;background:#fff;color:#111827}.reports-filter footer{justify-content:flex-end;gap:10px}.reports-filter footer button{min-height:36px;padding:0 16px;border:1px solid #dfe3e8;border-radius:7px;background:#fff}.reports-filter footer .primary{background:#111;color:#fff}
html[data-theme="dark"] .reports-page{color:#f8fafc}.reports-page :focus-visible{outline:2px solid #1769e8;outline-offset:2px}
@media (max-width:1280px){.reports-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-grid.primary{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-grid.primary .wide{grid-column:1/-1}.reports-grid.secondary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.portal-dashboard--reports{padding-top:84px}.reports-header{align-items:start;flex-direction:column}.reports-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.reports-controls .date{flex:1 1 100%}.reports-kpis{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.reports-kpi{flex:0 0 230px;scroll-snap-align:start}.reports-grid.primary,.reports-grid.secondary{grid-template-columns:1fr}.reports-grid.primary .wide{grid-column:auto}.reports-filter{position:fixed;inset:auto 12px 12px;width:auto;max-height:80vh;overflow:auto}.reports-table table,.reports-table tbody,.reports-table tr,.reports-table td{display:block}.reports-table thead{display:none}.reports-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 0;border-top:1px solid #e5e8ec}.reports-table td{display:grid;height:auto;min-height:38px;padding:5px 10px;border:0;white-space:normal}.reports-table td:before{content:attr(data-label);color:#98a2b3;font-size: var(--portal-type-body);text-transform:uppercase}.reports-table td:nth-last-child(-n+2){display:none}}
@media (max-width:560px){.reports-controls>button{flex:1}.reports-kpis{margin-inline:-14px;padding-inline:14px}.reports-card{min-height:270px}.reports-donut-row{grid-template-columns:1fr;justify-items:center;padding:12px 0}.reports-donut-row>div{width:100%}.reports-activity header{flex-direction:column}.reports-activity header nav{gap:4px;overflow:auto}.reports-filter>div{grid-template-columns:1fr}.reports-table tr{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.reports-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Unified WW outline icons for Settings navigation */
.settings-sidebar__link { grid-template-columns: 20px minmax(0,1fr); column-gap: 14px; }
.settings-sidebar__link > .settings-sidebar__icon { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; color: currentColor; font-size: 0; }
.settings-sidebar__icon svg { display: block; width: 19px; height: 19px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.settings-sidebar__link:not(.is-active) { color: #626872; }
.settings-sidebar__link.is-active,.settings-sidebar__link:hover,.settings-sidebar__link:focus-visible { color: #14161a; }
html[data-theme="dark"] .settings-sidebar__link:not(.is-active) { color: #aeb5c0; }
html[data-theme="dark"] .settings-sidebar__link.is-active,html[data-theme="dark"] .settings-sidebar__link:hover,html[data-theme="dark"] .settings-sidebar__link:focus-visible { color: #fff; }

/* WW pixel-alignment pass */
@media (min-width:1181px) {
  .settings-view { left: 15px; max-width: 1118px; padding-top: 29px; position: relative; }
}
.settings-hero { height: 98px; min-height: 98px; box-sizing: border-box; }
.settings-panel__header { height: 65px; min-height: 65px; padding: 12px 18px; box-sizing: border-box; }
.settings-panel__icon svg,.settings-section-heading__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.settings-profile-fields { grid-template-rows: 65px 65px 65px 94px; column-gap: 24px; row-gap: 6px; align-items: start; width: 100%; max-width: 615px; padding-top: 6px; }
.settings-profile-fields .field { align-self: start; }
.settings-profile-bio textarea { height: 72px; min-height: 72px; resize: vertical; }
.settings-character-count { margin-top: -23px; }
.settings-section-heading { display: flex; align-items: center; gap: 12px; }
.settings-section-heading__icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid #e0e3e7; border-radius: 999px; color: #15171b; background: #fff; }
.settings-subsection-card__header--split { min-height: 48px; margin-bottom: 12px; }
.settings-subsection-stack > .settings-subsection-card:first-child { min-height: 367px; margin-bottom: 16px; box-sizing: border-box; }
.settings-availability-footer { display: none; }
.settings-subsection-stack > .settings-subsection-card:nth-child(2) { min-height: 198px; box-sizing: border-box; }
.settings-working-hours { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; padding: 12px 8px; border: 1px solid #e4e7ea; border-radius: 10px; }
.settings-workday-row { grid-template-columns: minmax(0,1fr); gap: 9px; padding: 0 6px; border: 0; border-radius: 0; }
.settings-workday-row + .settings-workday-row { border-left: 1px solid #e8eaed; }
.settings-workday-row__day { width: 100%; flex-direction: column; gap: 7px; }
.settings-workday-row__day input { width: 16px; height: 16px; margin: 0; accent-color: #090909; }
.settings-workday-row__time { width: 100%; min-width: 0; gap: 3px; }
.settings-workday-row__time input { width: 100%; min-width: 0; height: 31px; padding: 0 2px; font-size: var(--portal-type-body); }
.settings-workday-row__time input[type="time"] { width: 100%; min-width: 0; min-height: 31px; height: 31px; padding: 0 2px; border-radius: 7px; font-size: var(--portal-type-body); -webkit-appearance: none; appearance: none; }
.settings-preferences-card { height: 213px; min-height: 213px; padding: 16px; box-sizing: border-box; }
.settings-preferences-card > .settings-subsection-card__header { height: 38px; min-height: 38px; }
.settings-preferences-grid { height: 133px; gap: 16px; margin-top: 10px; padding: 10px; border: 1px solid #e4e7ea; border-radius: 10px; box-sizing: border-box; }
.settings-preferences-grid .field input,.settings-preferences-grid .field select { min-height: 40px; }
.settings-theme-selector span { min-height: 56px; }
.settings-quick-preferences input[role="switch"] { appearance: none; position: relative; width: 30px; height: 17px; margin: 0; border: 0; border-radius: 999px; background: #c8ccd1; cursor: pointer; transition: background-color 160ms ease; }
.settings-quick-preferences input[role="switch"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 160ms ease; }
.settings-quick-preferences input[role="switch"]:checked { background: #0b0b0b; }
.settings-quick-preferences input[role="switch"]:checked::after { transform: translateX(13px); }
html[data-theme="dark"] .settings-section-heading__icon { border-color: rgba(255,255,255,.14); background: #202329; color: #fff; }
html[data-theme="dark"] .settings-working-hours,html[data-theme="dark"] .settings-preferences-grid { border-color: rgba(255,255,255,.1); }

@media (max-width:1180px) {
  .settings-view { left: auto; padding-top: 0; position: static; }
  .settings-working-hours { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .settings-workday-row,.settings-workday-row + .settings-workday-row { padding: 9px; border: 1px solid #e4e7ea; border-radius: 9px; }
}
@media (max-width:760px) {
  .settings-profile-fields { grid-template-rows: none; }
  .settings-profile-fields { max-width: none; padding-top: 0; }
  .settings-subsection-stack > .settings-subsection-card:first-child { margin-bottom: 0; }
  .settings-subsection-stack > .settings-subsection-card:nth-child(2),.settings-preferences-card { height: auto; min-height: 0; }
  .settings-preferences-grid { height: auto; }
  .settings-working-hours { grid-template-columns: minmax(0,1fr); }
  .settings-workday-row { grid-template-columns: 82px minmax(0,1fr); }
  .settings-workday-row__day { flex-direction: row; }
}

/* Central dark-dashboard surface contract. Light mode remains governed by the
   existing production and responsive rules above. */
html[data-theme="dark"] body,
html[data-theme="dark"] .portal-shell,
html[data-theme="dark"] .portal-topbar,
html[data-theme="dark"] .portal-dashboard {
  background: var(--bg);
  color: var(--text-primary);
}

html[data-theme="dark"] .portal-dashboard--dashboard,
html[data-theme="dark"] .dashboard-view,
html[data-theme="dark"] .dashboard-hero,
html[data-theme="dark"] .dashboard-hero__copy,
html[data-theme="dark"] .dashboard-hero__tools,
html[data-theme="dark"] .dashboard-target-chart,
html[data-theme="dark"] .dashboard-chart-widget,
html[data-theme="dark"] .dashboard-chart-widget__visual {
  background: transparent;
}

html[data-theme="dark"] .dashboard-target-kpi,
html[data-theme="dark"] .dashboard-target-card,
html[data-theme="dark"] .dashboard-top-widget,
html[data-theme="dark"] .dashboard-panel--chart,
html[data-theme="dark"] .dashboard-support-card {
  border-color: var(--border);
  background: var(--card);
  box-shadow: var(--app-card-shadow-soft);
}

html[data-theme="dark"] .dashboard-target-card:hover,
html[data-theme="dark"] .dashboard-panel--chart:hover {
  border-color: var(--line-strong);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-dark);
}

html[data-theme="dark"] .dashboard-hero__copy::before,
html[data-theme="dark"] .dashboard-hero__copy h1,
html[data-theme="dark"] .dashboard-target-card h3,
html[data-theme="dark"] .dashboard-target-kpi__copy > strong,
html[data-theme="dark"] .dashboard-target-route__copy strong,
html[data-theme="dark"] .dashboard-target-route__index,
html[data-theme="dark"] .dashboard-target-route__value,
html[data-theme="dark"] .dashboard-target-legend strong,
html[data-theme="dark"] .dashboard-target-legend b,
html[data-theme="dark"] .dashboard-target-donut strong,
html[data-theme="dark"] .dashboard-support-card strong,
html[data-theme="dark"] .dashboard-panel__header--widget h3,
html[data-theme="dark"] .dashboard-panel__hero-metric {
  color: var(--text-primary);
}

html[data-theme="dark"] .dashboard-hero__copy p,
html[data-theme="dark"] .dashboard-target-card p,
html[data-theme="dark"] .dashboard-target-kpi__copy > span,
html[data-theme="dark"] .dashboard-target-kpi__copy > small,
html[data-theme="dark"] .dashboard-target-route__copy small,
html[data-theme="dark"] .dashboard-target-donut span,
html[data-theme="dark"] .dashboard-support-card p,
html[data-theme="dark"] .dashboard-panel__copy,
html[data-theme="dark"] .dashboard-panel__metric-label {
  color: var(--text-secondary);
}

html[data-theme="dark"] .dashboard-target-kpi__trend small,
html[data-theme="dark"] .dashboard-target-kpi--target-quoted .dashboard-target-kpi__trend strong {
  color: var(--text-muted);
}

html[data-theme="dark"] .dashboard-target-badge,
html[data-theme="dark"] .dashboard-target-snapshot,
html[data-theme="dark"] .dashboard-target-actions button,
html[data-theme="dark"] .dashboard-panel__metric-stack,
html[data-theme="dark"] .dashboard-filter-group,
html[data-theme="dark"] .dashboard-status-pill,
html[data-theme="dark"] .dashboard-widget-option {
  border-color: var(--border);
  background: var(--input);
  color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-target-badge,
html[data-theme="dark"] .dashboard-target-snapshot small {
  color: var(--text-secondary);
}

html[data-theme="dark"] .dashboard-target-actions button:hover,
html[data-theme="dark"] .dashboard-target-actions button:focus-visible,
html[data-theme="dark"] .dashboard-target-footer-link:hover,
html[data-theme="dark"] .dashboard-target-footer-link:focus-visible {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--text-primary);
}

html[data-theme="dark"] .dashboard-target-footer-link {
  border-top-color: var(--border);
  color: var(--text-primary);
}

html[data-theme="dark"] .dashboard-target-route__bar,
html[data-theme="dark"] .dashboard-ranking__bar,
html[data-theme="dark"] .dashboard-status-row__track {
  background: var(--surface-muted);
}

html[data-theme="dark"] .dashboard-target-bars {
  border-color: var(--chart-grid);
}

html[data-theme="dark"] .dashboard-target-bars__axis,
html[data-theme="dark"] .dashboard-target-bars__item small,
html[data-theme="dark"] .dashboard-target-line-axis,
html[data-theme="dark"] .dashboard-target-card--volume .dashboard-target-line-axis,
html[data-theme="dark"] .dashboard-target-line-labels span,
html[data-theme="dark"] .dashboard-target-card--volume .dashboard-target-line-labels span,
html[data-theme="dark"] .dashboard-target-chart__legend span,
html[data-theme="dark"] .dashboard-legend__row span,
html[data-theme="dark"] .dashboard-line-chart,
html[data-theme="dark"] .dashboard-bars {
  color: var(--chart-axis);
}

html[data-theme="dark"] .dashboard-target-line-grid {
  stroke: var(--chart-grid);
}

html[data-theme="dark"] .dashboard-target-donut::after,
html[data-theme="dark"] .dashboard-donut::after {
  background: var(--card);
}

html[data-theme="dark"] .dashboard-target-dot--black {
  background: #d7dae0;
}

html[data-theme="dark"] .dashboard-target-donut {
  background: conic-gradient(#ff8a16 0 25%, #d7dae0 25% 100%);
}

html[data-theme="dark"] .dashboard-target-chart-tooltip {
  border: 1px solid var(--border);
  background: var(--tooltip);
  color: var(--text-primary);
  box-shadow: var(--shadow-dark);
}

html[data-theme="dark"] .dashboard-target-chart-active-point {
  border-color: var(--surface-elevated);
}

html[data-theme="dark"] .dashboard-hero__logo-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-support-card__action {
  border: 1px solid var(--border);
  background: #000000;
  color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .portal-sidebar-toggle,
html[data-theme="dark"] .portal-topbar__icon-button,
html[data-theme="dark"] .portal-topbar__icon-button--settings,
html[data-theme="dark"] .portal-topbar__badge,
html[data-theme="dark"] .portal-language,
html[data-theme="dark"] .portal-language select,
html[data-theme="dark"] .portal-theme-toggle,
html[data-theme="dark"] .portal-user-avatar {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .portal-theme-toggle__track {
  background: var(--surface-muted);
}

html[data-theme="dark"] .portal-theme-toggle__thumb {
  background: var(--text-primary);
}

html[data-theme="dark"] .portal-sidebar-toggle:hover,
html[data-theme="dark"] .portal-notification-button:hover,
html[data-theme="dark"] .portal-topbar__icon-button:hover,
html[data-theme="dark"] .portal-theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--hover);
}

html[data-theme="dark"] .dashboard-view :is(button, a, select):focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Quotations DEV workspace: consume the same black surface hierarchy as the
   dashboard, without changing any light-mode component rules. */
html[data-theme="dark"] .portal-dashboard.is-dev-mode-workspace,
html[data-theme="dark"] .portal-dashboard.is-dev-mode-workspace .portal-main,
html[data-theme="dark"] .quotations-create-view.is-dev-mode,
html[data-theme="dark"] .request-card.is-dev-mode,
html[data-theme="dark"] .request-card.is-dev-mode .request-form {
  background: var(--bg);
  color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs {
  border-color: var(--border);
  background: var(--bg);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .quotations-back-button,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__view-toggle,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__nav,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__reference input {
  border-color: var(--border);
  background: var(--input);
  color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .quotations-back-button:hover,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .quotations-back-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--hover);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option {
  color: var(--text-muted);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option:hover {
  background: var(--hover);
  color: var(--text-primary);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-view-toggle__option.is-active {
  background: var(--active);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-tabs__reference input::placeholder {
  color: var(--text-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-card,
html[data-theme="dark"] .request-card.is-dev-mode .request-section,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--setup-shell,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--movement-scope,
html[data-theme="dark"] .request-card.is-dev-mode .request-panel--routing-air {
  border-color: var(--border);
  background: var(--card);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode :is(
  .dev-card__header h3,
  .request-section__header h2,
  .request-panel__header h3,
  .dev-goods-type__toggles .toggle-card strong,
  .dimensions-metric__value
) {
  color: var(--text-primary);
}

html[data-theme="dark"] .request-card.is-dev-mode :is(
  .dev-field__label,
  .dev-goods-type__label,
  .field-label,
  .field > span,
  .dimensions-lines__header,
  .dimensions-metric__head,
  .toggle-card small
) {
  color: var(--text-secondary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-grid,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control,
html[data-theme="dark"] .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle {
  border-color: var(--border);
  background: #000000;
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card__icon {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode strong {
  color: inherit;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode:hover,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--text-primary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected:hover,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected,
html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected:hover {
  border-color: var(--line-strong);
  background: var(--active);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected .choice-card__icon {
  background: var(--surface-muted);
  color: var(--text-primary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option::before {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-itinerary__scope .segmented-control__option.is-selected::before {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

html[data-theme="dark"] .request-card.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .dev-goods-type__field .field select,
  .field input,
  .field select,
  .field textarea,
  .incoterm-select__trigger,
  .frontend-select__trigger,
  .dangerous-goods-selector__trigger,
  .movement-address-card .address-section__search-field input,
  .movement-address-card .address-section__field input,
  .dimensions-line__field input,
  .dimensions-line__field select,
  .dimensions-line__field .frontend-select__trigger,
  .dimensions-line__mini-field input,
  .dimensions-line__stackable-toggle,
  .dimensions-line__remove
) {
  border-color: var(--border);
  background: var(--input);
  color: var(--text-primary);
  box-shadow: none;
  color-scheme: dark;
}

html[data-theme="dark"] .request-card.is-dev-mode :is(input, textarea)::placeholder,
html[data-theme="dark"] .request-card.is-dev-mode :is(.frontend-select__trigger, .incoterm-select__trigger).is-placeholder {
  color: var(--text-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode :is(
  input,
  select,
  textarea,
  button,
  .frontend-select__trigger,
  .incoterm-select__trigger
):focus-visible,
html[data-theme="dark"] .request-card.is-dev-mode :is(.frontend-select__trigger, .incoterm-select__trigger).is-open {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

html[data-theme="dark"] .request-card.is-dev-mode :is(input, select, textarea, button):disabled {
  color: var(--ink-soft);
  background: #0b0b0b;
  opacity: 0.62;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__field .dev-field__control::after {
  border-color: var(--text-secondary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input {
  border-color: var(--line-strong);
  background: var(--input);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card input:checked {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__toggles .toggle-card strong::after {
  border-color: var(--line-strong);
  color: var(--text-secondary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option {
  color: var(--text-muted);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option.is-active {
  background: var(--active);
  color: var(--text-primary);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines,
html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-shell {
  background: transparent;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button {
  border-color: var(--line-strong);
  background: var(--surface-elevated);
  color: #93c5fd;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-lines__footer .button:hover {
  background: var(--hover);
  color: #bfdbfe;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
  border-color: rgba(96, 165, 250, 0.22);
  background: var(--surface-elevated);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
  border-color: var(--border);
  background: transparent;
}

html[data-theme="dark"] .request-card.is-dev-mode .form-footer {
  border-top: 1px solid var(--border);
  background: #000000;
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode #save-draft-button {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode :is(#next-step, #submit-request) {
  border-color: var(--line-strong);
  background: #000000;
  color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .request-card.is-dev-mode :is(#next-step, #submit-request):hover {
  background: var(--hover);
}

html[data-theme="dark"] :is(
  .dangerous-goods-selector__menu,
  .frontend-incoterm-dropdown,
  .frontend-select__dropdown,
  .airport-autocomplete,
  .movement-address-card .address-section__search-results
) {
  border-color: var(--border);
  background: var(--popover);
  color: var(--text-primary);
  box-shadow: var(--shadow-dark);
}

html[data-theme="dark"] :is(
  .dangerous-goods-option,
  .frontend-incoterm-dropdown .airport-autocomplete__option,
  .frontend-select__dropdown .airport-autocomplete__option,
  .airport-autocomplete__option,
  .movement-address-card .address-section__search-result
) {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

html[data-theme="dark"] :is(
  .dangerous-goods-option,
  .frontend-incoterm-dropdown .airport-autocomplete__option,
  .frontend-select__dropdown .airport-autocomplete__option,
  .airport-autocomplete__option,
  .movement-address-card .address-section__search-result
):is(:hover, :focus-visible, .is-active, .is-selected) {
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Quotations DEV workspace: strict, flat black surface hierarchy.
   This final dark-only contract intentionally removes the shared grey layer
   and every decorative elevation effect from the create workspace. */
html[data-theme="dark"] .quotations-create-view.is-dev-mode {
  --dev-page-background: #000000;
  --dev-surface: #050505;
  --dev-surface-elevated: #080808;
  --dev-input: #111111;
  --dev-border: rgba(255, 255, 255, 0.10);
  --dev-border-strong: rgba(255, 255, 255, 0.14);
  --dev-shadow: none;
  --bg: var(--dev-page-background);
  --surface: var(--dev-surface);
  --surface-elevated: var(--dev-surface-elevated);
  --card: var(--dev-surface);
  --input: var(--dev-input);
  --border: var(--dev-border);
  --line: var(--dev-border);
  --line-strong: var(--dev-border-strong);
  --shadow-card: var(--dev-shadow);
  --shadow-dark: var(--dev-shadow);
  --app-card-shadow: var(--dev-shadow);
  --app-card-shadow-soft: var(--dev-shadow);
}

html[data-theme="dark"] .portal-dashboard.is-dev-mode-workspace,
html[data-theme="dark"] .portal-dashboard.is-dev-mode-workspace > .portal-main,
html[data-theme="dark"] .portal-dashboard.is-dev-mode-workspace #shipments-main,
html[data-theme="dark"] .quotations-create-view.is-dev-mode,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-card,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-form,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .form-step,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-section {
  background-color: #000000;
  background-image: none;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-card,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-section {
  border-color: transparent;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-card,
  .request-panel--setup-shell,
  .request-panel--movement-scope,
  .request-panel--routing-air
) {
  border: 1px solid var(--dev-border);
  background-color: var(--dev-surface);
  background-image: none;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* AA desktop density correction for the Quotations overview. */
@media (min-width: 1181px) {
  .quotations-overview { gap: 12px; }

  .quotations-header {
    align-items: center;
    min-height: 91px;
    padding: 0 7px;
  }

  .quotations-breadcrumb {
    gap: 7px;
    margin-bottom: 8px;
    font-size: var(--portal-type-body);
    line-height: 1;
  }

  .quotations-breadcrumb a { width: 14px; height: 14px; }
  .quotations-breadcrumb svg { width: 12px; height: 12px; }

  .quotations-header__copy h1 {
    font-size: var(--portal-type-page);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .quotations-header__copy p {
    margin-top: 5px;
    font-size: var(--portal-type-body);
    line-height: 1.25;
  }

  #new-quote-button {
    align-self: end;
    min-width: 116px;
    min-height: 32px;
    height: 32px;
    margin: 0 0 14px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: var(--portal-type-body);
    box-shadow: 0 5px 14px rgba(18, 103, 255, 0.2);
  }

  .quotations-kpi-grid { gap: 11px; }

  .quotation-stat-card {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: 1fr 24px;
    gap: 6px 9px;
    height: 105px;
    padding: 12px 11px 7px;
    border-radius: 7px;
  }

  .quotation-stat-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
  }

  .quotation-stat-card__icon svg { width: 17px; height: 17px; }
  .quotation-stat-card__content > span { font-size: var(--portal-type-body); line-height: 1.12; }
  .quotation-stat-card strong { margin-top: 3px; font-size: var(--portal-type-body); line-height: 1; }
  .quotation-stat-card small { gap: 4px; margin-top: 5px; font-size: var(--portal-type-caption); line-height: 1.1; }
  .quotation-stat-card small i { width: 11px; height: 11px; font-size: var(--portal-type-caption); }
  .quotation-stat-card__sparkline { height: 24px; }

  .quotations-filter-bar {
    padding: 8px;
    border-radius: 6px;
  }

  .quotation-filter-grid {
    grid-template-columns: minmax(205px, 1.45fr) repeat(4, minmax(106px, 0.82fr)) 82px;
    gap: 8px;
  }

  .quotation-filter-search,
  .quotation-filter-select,
  .quotation-additional-filter__trigger {
    height: 42px;
    border-radius: 5px;
  }

  .quotation-filter-search {
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 7px;
    padding: 0 10px;
  }

  .quotation-filter-search svg { width: 14px; height: 14px; }
  .quotation-filter-search input { font-size: var(--portal-type-body); }
  .quotation-filter-select { padding: 6px 9px 5px; }
  .quotation-filter-select > span { font-size: var(--portal-type-body); }
  .quotation-filter-select select { padding-top: 2px; font-size: var(--portal-type-body); }
  .quotation-filter-select > svg { right: 7px; bottom: 9px; width: 12px; height: 12px; }

  .quotation-additional-filter__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 82px;
    font: inherit;
    font-size: var(--portal-type-body);
    font-weight: 600;
  }

  .quotation-additional-filter__trigger svg { width: 14px; height: 14px; }
  .quotation-additional-filter__trigger i { top: 6px; right: 6px; width: 6px; height: 6px; }
  .quotation-additional-filter__popover { top: 49px; }

  .quotations-table-card {
    padding: 5px 6px 7px;
    border-radius: 6px;
  }

  .quotation-page-table {
    border-spacing: 0;
  }

  .quotation-page-table thead th {
    height: 31px;
    padding: 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: var(--portal-type-caption);
    font-weight: 600;
  }

  .quotation-page-table thead th:nth-child(1) { width: 34px; }
  .quotation-page-table thead th:nth-child(2) { width: 14%; }
  .quotation-page-table thead th:nth-child(3) { width: 10%; }
  .quotation-page-table thead th:nth-child(4) { width: 13%; }
  .quotation-page-table thead th:nth-child(5) { width: 7%; }
  .quotation-page-table thead th:nth-child(6) { width: 13%; }
  .quotation-page-table thead th:nth-child(7) { width: 13%; }
  .quotation-page-table thead th:nth-child(8) { width: 14%; }
  .quotation-page-table thead th:nth-child(9) { width: 11%; }
  .quotation-page-table thead th:nth-child(10) { width: 26px; }

  .quotation-page-row td {
    height: 58px;
    padding: 7px 6px;
    border-top: 0;
    border-bottom-color: rgba(255, 255, 255, 0.075);
    font-size: var(--portal-type-body);
  }

  .quotation-page-row td:first-child { border-radius: 0; }
  .quotation-page-row td:last-child { border-radius: 0; }
  .quotation-page-row td:first-child::before { width: 2px; border-radius: 2px 0 0 2px; }
  .quotations-table__checkbox { width: 14px; height: 14px; border-radius: 3px; }

  .quotation-page-reference,
  .quotation-page-row__status > span,
  .quotation-page-row__updated > span,
  .quotation-page-load { gap: 3px; }

  .quotation-page-reference > span { gap: 5px; }
  .quotation-page-reference strong,
  .quotation-page-route strong { font-size: var(--portal-type-body); }
  .quotation-page-reference small,
  .quotation-page-row__status small,
  .quotation-page-row__updated small,
  .quotation-page-load small { font-size: var(--portal-type-caption); }
  .quotation-favourite { width: 17px; height: 17px; }
  .quotation-favourite svg { width: 12px; height: 12px; }

  .quotation-page-route {
    grid-template-columns: minmax(0, 1fr) 11px minmax(0, 1fr);
    gap: 3px;
  }

  .quotation-page-route > span { gap: 3px; }
  .quotation-page-route small { font-size: var(--portal-type-caption); }
  .quotation-page-route i { font-size: var(--portal-type-body); }

  .quotation-page-row__mode > span {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .quotation-page-row__mode svg { width: 14px; height: 14px; }
  .quotation-page-row__mode small { font-size: var(--portal-type-caption); }
  .quotation-page-load strong,
  .quotation-page-row__updated strong { font-size: var(--portal-type-body); }
  .quotation-page-load strong i { color: #737b87; font-style: normal; font-weight: 400; }

  .quotation-page-status {
    min-height: 19px;
    padding: 0 7px;
    font-size: var(--portal-type-body);
  }

  .quotation-view-button {
    min-height: 27px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: var(--portal-type-body);
  }

  .quotation-more-button { width: 21px; height: 27px; font-size: var(--portal-type-body); }

  .quotations-pagination {
    min-height: 50px;
    padding: 3px 7px 0;
    font-size: var(--portal-type-body);
  }

  .quotations-pagination nav { gap: 6px; }
  .quotations-pagination button,
  .quotations-pagination b { width: 24px; height: 24px; }

  .quotations-bulk-bar {
    min-height: 36px;
    margin-bottom: 4px;
    padding: 4px 6px 4px 9px;
  }
}

/* Premium Quotations workspace */
.quotations-overview {
  --quotation-accent: #1267ff;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.portal-dashboard:has(.quotations-overview:not([hidden])) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  padding: 18px 22px 26px;
  overflow-x: clip;
}

.portal-dashboard:has(.quotations-overview:not([hidden])) > .portal-main,
.portal-dashboard:has(.quotations-overview:not([hidden])) #shipments-main {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.quotations-header {
  align-items: center;
  min-height: 92px;
  padding: 0 8px;
}

.quotations-breadcrumb { margin-bottom: 13px; font-size: var(--portal-type-body); }
.quotations-header__copy h1 { font-size: var(--portal-type-page); }
.quotations-header__copy p { margin-top: 7px; font-size: var(--portal-type-body); }

#new-quote-button {
  min-width: 154px;
  min-height: 44px;
  margin: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #126cff, #0644cb);
  box-shadow: 0 10px 25px rgba(18, 103, 255, .22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#new-quote-button:hover,
#new-quote-button:focus-visible {
  background: linear-gradient(180deg, #287aff, #074bd6);
  box-shadow: 0 14px 30px rgba(18, 103, 255, .3);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.quotations-kpi-grid { gap: 12px; }
.quotation-stat-card {
  --stat-color: #1267ff;
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr 32px;
  align-items: start;
  gap: 8px 12px;
  height: 136px;
  padding: 15px 15px 10px;
  overflow: hidden;
}

.quotation-stat-card--pending { --stat-color: #ff9500; }
.quotation-stat-card--review { --stat-color: #9447ff; }
.quotation-stat-card--booked { --stat-color: #16bf65; }
.quotation-stat-card--response { --stat-color: #8a55ff; }

.quotation-stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--stat-color) 68%, #020203 32%) !important;
  color: #fff;
  box-shadow: none;
}
.quotation-stat-card__icon svg { width: 21px; height: 21px; }
.quotation-stat-card__content { align-self: center; }
.quotation-stat-card__content > span { font-size: var(--portal-type-body); }
.quotation-stat-card strong { margin-top: 4px; font-size: var(--portal-type-section); }
.quotation-stat-card small { margin-top: 6px; font-size: var(--portal-type-caption); }
.quotation-stat-card__sparkline {
  grid-column: 1 / -1;
  align-self: end;
  width: 100%;
  height: 32px;
  overflow: visible;
  color: var(--stat-color);
}
.quotation-stat-card__sparkline polyline { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.quotation-stat-card__sparkline polygon { fill: color-mix(in srgb, var(--stat-color) 12%, transparent); }

.quotations-filter-bar { padding: 11px; border-radius: 12px; }
.quotation-filter-grid {
  grid-template-columns: minmax(210px, 1.45fr) repeat(4, minmax(112px, .9fr)) 48px;
  gap: 10px;
}
.quotation-filter-search,
.quotation-filter-select,
.quotation-additional-filter__trigger { height: 50px; border-radius: 8px; }
.quotation-filter-search { grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding: 0 12px; }
.quotation-filter-search svg { width: 18px; height: 18px; }
.quotation-filter-select { padding: 8px 11px 6px; }
.quotation-filter-select > span { font-size: var(--portal-type-body); }
.quotation-filter-select select { font-size: var(--portal-type-body); }
.quotation-filter-select > svg { right: 9px; bottom: 12px; }
.quotation-additional-filter__trigger { width: 48px; }

.quotation-additional-filter__popover {
  top: 58px;
  width: min(620px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 12px;
}
.quotation-additional-filter__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quotation-additional-filter__heading strong { padding: 0; font-size: var(--portal-type-body); }
.quotation-additional-filter__heading button { min-height: 28px; padding: 0 8px; color: #1267ff; }
.quotation-additional-filter__visibility { display: flex; gap: 6px; margin: 7px 0 9px; }
.quotation-additional-filter__visibility button { flex: 1; min-height: 34px; text-align: center; }
.quotation-additional-filter__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quotation-additional-filter__grid > label { display: grid; gap: 6px; min-width: 0; color: #858b95; font-size: var(--portal-type-body); }
.quotation-additional-filter__grid select,
.quotation-additional-filter__grid input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: var(--portal-type-body);
}
.quotation-range-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 5px; }
.quotation-range-filter i { font-style: normal; }

.quotations-table-card { padding: 8px 8px 10px; border-radius: 12px; }
.quotations-page-table-wrap { contain: none; overflow: hidden; }
.quotation-page-table { min-width: 0; border-spacing: 0 7px; }
.quotation-page-table thead th { height: 30px; padding: 0 7px; font-size: var(--portal-type-caption); }
.quotation-page-table thead th:nth-child(1) { width: 36px; }
.quotation-page-table thead th:nth-child(2) { width: 14%; }
.quotation-page-table thead th:nth-child(3) { width: 8%; }
.quotation-page-table thead th:nth-child(4) { width: 14%; }
.quotation-page-table thead th:nth-child(5) { width: 6%; }
.quotation-page-table thead th:nth-child(6) { width: 13%; }
.quotation-page-table thead th:nth-child(7) { width: 14%; }
.quotation-page-table thead th:nth-child(8) { width: 14%; }
.quotation-page-table thead th:nth-child(9) { width: 11%; }
.quotation-page-table thead th:nth-child(10) { width: 28px; }
.quotation-page-row { cursor: pointer; }
.quotation-page-row td { height: 74px; padding: 9px 7px; font-size: var(--portal-type-body); }
.quotation-page-row td:first-child::before { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 3px; border-radius: 8px 0 0 8px; background: #737a86; }
.quotation-page-row--orange td:first-child::before { background: #ff9500; }
.quotation-page-row--purple td:first-child::before { background: #9447ff; }
.quotation-page-row--green td:first-child::before { background: #16bf65; }
.quotation-page-row--red td:first-child::before { background: #ef4444; }
.quotation-page-reference,
.quotation-page-row__status > span,
.quotation-page-row__updated > span,
.quotation-page-load { gap: 5px; }
.quotation-page-reference strong,
.quotation-page-route strong { font-size: var(--portal-type-body); }
.quotation-page-reference small,
.quotation-page-row__status small,
.quotation-page-row__updated small,
.quotation-page-load small { font-size: var(--portal-type-caption); }
.quotation-page-route { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); gap: 4px; }
.quotation-page-route > span { gap: 5px; }
.quotation-page-route small { font-size: var(--portal-type-caption); }
.quotation-page-row__mode svg { width: 18px; height: 18px; }
.quotation-page-row__mode small { font-size: var(--portal-type-caption); }
.quotation-page-load strong,
.quotation-page-row__updated strong { font-size: var(--portal-type-body); }
.quotation-page-status { min-height: 22px; padding: 0 8px; font-size: var(--portal-type-body); }
.quotation-page-status--purple { background: #2b1249; color: #c993ff; }
.quotation-view-button { min-height: 31px; padding: 0 11px; border-radius: 7px; font-size: var(--portal-type-body); }
.quotation-more-button { width: 28px; height: 31px; }
.quotations-pagination { min-height: 50px; padding-top: 5px; font-size: var(--portal-type-body); }
.quotations-pagination button,
.quotations-pagination b { width: 31px; height: 31px; }

.quotations-bulk-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0 0 6px;
  padding: 6px 8px 6px 13px;
  border: 1px solid rgba(18, 103, 255, .32);
  border-radius: 9px;
  animation: quotation-bulk-in 180ms ease both;
}
.quotations-bulk-bar strong { font-size: var(--portal-type-body); }
.quotations-bulk-bar > span { flex: 1; }
.quotations-bulk-bar button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(17, 24, 39, .12); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: var(--portal-type-body); font-weight: 700; cursor: pointer; }
.quotations-bulk-bar button.is-danger { color: #ef4444; }
.quotations-bulk-bar__clear { border-color: transparent !important; color: #7d8591 !important; }
@keyframes quotation-bulk-in { from { opacity: 0; transform: translateY(-6px); } }

.quotation-row-preview {
  position: fixed;
  z-index: 84;
  width: 310px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 11px;
  background: #fff;
  color: #111827;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .2);
  pointer-events: none;
}
.quotation-row-preview[hidden] { display: none !important; }
.quotations-context-menu:not([hidden]) + .quotation-row-preview { display: none !important; }
.quotation-row-preview header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid rgba(17,24,39,.1); }
.quotation-row-preview header > span { font-size: var(--portal-type-body); font-weight: 700; }
.quotation-row-preview dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; }
.quotation-row-preview dl div { min-width: 0; }
.quotation-row-preview dt { margin-bottom: 3px; color: #858b95; font-size: var(--portal-type-body); text-transform: uppercase; }
.quotation-row-preview dd { overflow: hidden; margin: 0; font-size: var(--portal-type-body); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.quotation-row-preview p { margin: 0; color: #858b95; font-size: var(--portal-type-body); }

.quotations-context-menu__item--danger { color: #ef4444 !important; }

html[data-theme="dark"] .portal-dashboard:has(.quotations-overview:not([hidden])),
html[data-theme="dark"] .portal-dashboard:has(.quotations-overview:not([hidden])) > .portal-main,
html[data-theme="dark"] .portal-dashboard:has(.quotations-overview:not([hidden])) #shipments-main,
html[data-theme="dark"] .quotations-overview { background: #000; }
html[data-theme="dark"] .quotations-overview { color: #f7f8fa; }
html[data-theme="dark"] .quotations-header__copy p { color: #8d95a3; }
html[data-theme="dark"] .quotations-breadcrumb,
html[data-theme="dark"] .quotations-breadcrumb a { color: #d7dbe2; }
html[data-theme="dark"] .quotations-filter-bar,
html[data-theme="dark"] .quotation-stat-card,
html[data-theme="dark"] .quotations-table-card { border-color: rgba(255,255,255,.09); background: #070707; box-shadow: none; }
html[data-theme="dark"] .quotation-filter-search,
html[data-theme="dark"] .quotation-filter-select,
html[data-theme="dark"] .quotation-additional-filter__trigger {
  border-color: rgba(255, 255, 255, .22);
  background: #101114;
}
html[data-theme="dark"] .quotation-filter-search:focus-within,
html[data-theme="dark"] .quotation-filter-select:focus-within { border-color: rgba(18,103,255,.65); box-shadow: 0 0 0 2px rgba(18,103,255,.12); }
html[data-theme="dark"] .quotation-filter-search input,
html[data-theme="dark"] .quotation-filter-select select { color: #f1f3f6; }
html[data-theme="dark"] .quotation-filter-search { color: #d7dde7; }
html[data-theme="dark"] .quotation-filter-search svg { color: #d7dde7; }
html[data-theme="dark"] .quotation-filter-search input::placeholder { color: #aeb7c5; opacity: 1; }
html[data-theme="dark"] .quotation-additional-filter__trigger { color: #f1f5f9; }
html[data-theme="dark"] .quotation-additional-filter__trigger svg { color: #f1f5f9; }
html[data-theme="dark"] .quotation-additional-filter__trigger:hover,
html[data-theme="dark"] .quotation-additional-filter__trigger:focus-visible {
  border-color: rgba(255, 255, 255, .38);
  background: #1a1c21;
  color: #ffffff;
}
html[data-theme="dark"] .quotation-filter-select > span { color: #7e8795; }
html[data-theme="dark"] .quotation-stat-card__content > span { color: #b8bec9; }
html[data-theme="dark"] .quotation-stat-card small { color: #7f8794; }
html[data-theme="dark"] .quotation-additional-filter__popover,
html[data-theme="dark"] .quotation-row-preview,
html[data-theme="dark"] .quotations-context-menu__panel { border-color: rgba(255,255,255,.12); background: #0b0b0d; color: #f7f8fa; box-shadow: 0 18px 50px rgba(0,0,0,.55); backdrop-filter: none; }
html[data-theme="dark"] .quotation-additional-filter__popover button { color: #b7bdc8; }
html[data-theme="dark"] .quotation-additional-filter__popover button:hover,
html[data-theme="dark"] .quotation-additional-filter__popover button:focus-visible,
html[data-theme="dark"] .quotation-additional-filter__popover button.is-active { background: #16171a; color: #fff; }
html[data-theme="dark"] .quotation-additional-filter__grid select,
html[data-theme="dark"] .quotation-additional-filter__grid input { border-color: rgba(255,255,255,.1); background: #08080a; color: #f7f8fa; }
html[data-theme="dark"] .quotation-page-row td { border-color: rgba(255,255,255,.08); background: #070707; color: #e8eaee; box-shadow: none; }
html[data-theme="dark"] .quotation-page-table thead th { color: #747d8b; }
html[data-theme="dark"] .quotation-page-row__customer-reference,
html[data-theme="dark"] .quotation-page-load strong,
html[data-theme="dark"] .quotation-page-row__updated strong,
html[data-theme="dark"] .quotation-page-row__mode small { color: #c0c5ce !important; }
html[data-theme="dark"] .quotation-page-row:hover td { background: #101014; box-shadow: none; }
html[data-theme="dark"] .quotation-page-row.is-selected td { background: #081326; }
html[data-theme="dark"] .quotation-page-route > span:last-child small { border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .quotation-view-button { border: 1px solid rgba(255,255,255,.16); background: #050505; }
html[data-theme="dark"] .quotation-view-button:hover,
html[data-theme="dark"] .quotation-view-button:focus-visible { background: #fff; color: #000; box-shadow: none; }
html[data-theme="dark"] .quotation-more-button:hover,
html[data-theme="dark"] .quotation-more-button:focus-visible { background: #18191d; }
html[data-theme="dark"] .quotations-pagination button { border-color: rgba(255,255,255,.1); background: #09090b; color: #fff; }
html[data-theme="dark"] .quotations-pagination b { background: #0d4bd6; }
html[data-theme="dark"] .quotations-bulk-bar { border-color: rgba(18,103,255,.34); background: #071126; }
html[data-theme="dark"] .quotations-bulk-bar button { border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .quotation-row-preview header { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .quotations-context-menu__item { color: #edf0f5; }
html[data-theme="dark"] .quotations-context-menu__item:hover,
html[data-theme="dark"] .quotations-context-menu__item:focus-visible { background: #18191d; }

@media (max-width: 1280px) {
  .portal-dashboard:has(.quotations-overview:not([hidden])) { padding-inline: 16px; }
  .quotation-stat-card { padding-inline: 12px; }
  .quotation-filter-grid { grid-template-columns: minmax(190px, 1.35fr) repeat(4, minmax(102px, .9fr)) 46px; gap: 8px; }
  .quotation-additional-filter__trigger { width: 46px; }
  .quotation-page-table thead th,
  .quotation-page-row td { padding-inline: 5px; }
  .quotation-page-route small,
  .quotation-page-row__status small { display: none; }
}

@media (max-width: 1100px) {
  .quotations-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotation-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotation-filter-search { grid-column: span 2; }
  .quotation-additional-filter { justify-self: end; }
  .quotation-page-row__customer-reference,
  .quotation-page-table thead th:nth-child(3) { display: none; }
  .quotation-page-table thead th:nth-child(2) { width: 16%; }
  .quotation-page-table thead th:nth-child(4) { width: 17%; }
}

@media (max-width: 850px) {
  .portal-dashboard:has(.quotations-overview:not([hidden])) { padding: 76px 12px 24px; }
  .quotations-header { display: grid; min-height: 0; padding: 0; }
  #new-quote-button { width: 100%; margin-top: 8px; }
  .quotations-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotation-filter-grid { grid-template-columns: minmax(0, 1fr) 48px; }
  .quotation-filter-search,
  .quotation-filter-select { grid-column: 1 / -1; }
  .quotation-additional-filter { grid-column: 2; grid-row: 6; }
  .quotation-additional-filter__popover { position: fixed; inset: auto 12px 12px; width: auto; max-height: min(620px, calc(100vh - 24px)); overflow-y: auto; }
  .quotation-additional-filter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotations-bulk-bar { flex-wrap: wrap; }
  .quotations-bulk-bar > span { display: none; }
  .quotations-bulk-bar strong { width: 100%; }
}

@media (max-width: 760px) {
  .quotation-stat-card { grid-template-columns: 38px minmax(0,1fr); grid-template-rows: 1fr 26px; height: 118px; }
  .quotation-stat-card__icon { width: 38px; height: 38px; }
  .quotation-additional-filter__grid { grid-template-columns: 1fr; }
  html[data-theme="dark"] .quotation-page-row { border-color: rgba(255,255,255,.09); background: #070707; }
  .quotations-pagination { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  #new-quote-button { transition: none; }
  .quotations-bulk-bar { animation: none; }
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .request-tabs,
  .request-tabs__view-toggle,
  .request-tabs__nav,
  .dev-itinerary__mode .choice-grid,
  .dev-itinerary__scope .segmented-control,
  .dev-preferences-panel__slot .dimensions-toggle
) {
  border-color: var(--dev-border);
  background-color: #000000;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .quotations-back-button,
  .request-tabs__reference input,
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .dev-goods-type__field .field select,
  .field input,
  .field select,
  .field textarea,
  .incoterm-select__trigger,
  .frontend-select__trigger,
  .dangerous-goods-selector__trigger,
  .movement-address-card .address-section__search-field input,
  .movement-address-card .address-section__field input,
  .dimensions-line__field input,
  .dimensions-line__field select,
  .dimensions-line__field .frontend-select__trigger,
  .dimensions-line__mini-field input,
  .dimensions-line__stackable-toggle,
  .dimensions-line__remove
) {
  border-color: var(--dev-border);
  background-color: var(--dev-input);
  background-image: none;
  box-shadow: none;
  filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .request-view-toggle__option.is-active,
  .dimensions-toggle__option.is-active,
  .dev-itinerary__scope .segmented-control__option.is-selected
) {
  border-color: var(--dev-border-strong);
  background-color: var(--dev-surface-elevated);
  background-image: none;
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-itinerary__mode .choice-card--mode,
  .dev-itinerary__scope .segmented-control__option
) {
  background-color: var(--dev-surface-elevated);
  background-image: none;
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .choice-card__icon,
  .dimensions-line__stackable-control,
  .dimensions-toggle__option
) {
  box-shadow: none;
  filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected,
html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected:hover {
  border-color: #ffffff;
  background: #f3f4f6;
  color: #111827;
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 39, 0.05),
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected .choice-card__icon {
  background: transparent;
  color: #111827;
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected strong {
  color: #111827;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected:focus-visible {
  border-color: #ffffff;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 39, 0.08),
    0 0 0 3px rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  input,
  select,
  textarea,
  button,
  .frontend-select__trigger,
  .incoterm-select__trigger
):focus-visible,
html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .frontend-select__trigger,
  .incoterm-select__trigger
).is-open {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-color: var(--dev-border-strong);
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .field input,
  .field textarea,
  .dimensions-line__field input,
  .dimensions-line__mini-field input
):-webkit-autofill,
html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .field input,
  .field textarea,
  .dimensions-line__field input,
  .dimensions-line__mini-field input
):-webkit-autofill:hover,
html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-field__control .field input,
  .dev-goods-type__field .field input,
  .field input,
  .field textarea,
  .dimensions-line__field input,
  .dimensions-line__mini-field input
):-webkit-autofill:focus {
  background-color: var(--dev-input);
  -webkit-text-fill-color: var(--text-primary);
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .dev-shipment-details__content .dimensions-line {
  border: 1px solid var(--dev-border);
  background-color: var(--dev-surface-elevated);
  background-image: none;
  box-shadow: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .dev-shipment-details__content .dimensions-summary {
  border: 1px solid var(--dev-border);
  background-color: #070707;
  background-image: none;
  box-shadow: none;
  filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .dev-shipment-details__content .dimensions-metric {
  border-right-color: var(--dev-border);
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode .form-footer {
  border: 0;
  border-top: 1px solid var(--dev-border);
  background-color: #000000;
  background-image: none;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  #save-draft-button,
  #next-step,
  #submit-request
) {
  border-color: var(--dev-border);
  background-color: var(--dev-surface-elevated);
  background-image: none;
  box-shadow: none;
  filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-card,
  .request-card,
  .request-section,
  .form-footer
)::before,
html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dev-card,
  .request-card,
  .request-section,
  .form-footer
)::after {
  background-image: none;
  box-shadow: none;
  filter: none;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode :is(
  .dangerous-goods-selector__menu,
  .frontend-incoterm-dropdown,
  .frontend-select__dropdown,
  .airport-autocomplete,
  .movement-address-card .address-section__search-results
) {
  border-color: var(--dev-border);
  background-color: var(--dev-surface-elevated);
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Final AA density cascade lock: keep this after all overview/theme rules. */
@media (min-width: 1181px) {
  .quotations-overview { gap: 12px; }
  .quotations-header { align-items: center; min-height: 91px; padding: 0 7px; }
  .quotations-breadcrumb { gap: 7px; margin-bottom: 8px; font-size: var(--portal-type-body); line-height: 1; }
  .quotations-breadcrumb a { width: 14px; height: 14px; }
  .quotations-breadcrumb svg { width: 12px; height: 12px; }
  .quotations-header__copy h1 { font-size: var(--portal-type-page); line-height: .98; letter-spacing: -.045em; }
  .quotations-header__copy p { margin-top: 5px; font-size: var(--portal-type-body); line-height: 1.25; }
  #new-quote-button { align-self: end; min-width: 116px; min-height: 32px; height: 32px; margin: 0 0 14px; padding: 0 14px; border-radius: 6px; font-size: var(--portal-type-body); box-shadow: 0 5px 14px rgba(18,103,255,.2); }

  .quotations-kpi-grid { gap: 11px; }
  .quotation-stat-card { grid-template-columns: 34px minmax(0,1fr); grid-template-rows: 1fr 24px; gap: 6px 9px; height: 105px; padding: 12px 11px 7px; border-radius: 7px; }
  .quotation-stat-card__icon { width: 34px; height: 34px; border-radius: 6px; }
  .quotation-stat-card__icon svg { width: 17px; height: 17px; }
  .quotation-stat-card__content > span { font-size: var(--portal-type-body); line-height: 1.12; }
  .quotation-stat-card strong { margin-top: 3px; font-size: var(--portal-type-body); line-height: 1; }
  .quotation-stat-card small { gap: 4px; margin-top: 5px; font-size: var(--portal-type-caption); line-height: 1.1; }
  .quotation-stat-card small i { width: 11px; height: 11px; font-size: var(--portal-type-caption); }
  .quotation-stat-card__sparkline { height: 24px; }

  .quotations-filter-bar { padding: 8px; border-radius: 6px; }
  .quotation-filter-grid { grid-template-columns: minmax(205px,1.45fr) repeat(4,minmax(106px,.82fr)) 82px; gap: 8px; }
  .quotation-filter-search,
  .quotation-filter-select,
  .quotation-additional-filter__trigger { height: 42px; border-radius: 5px; }
  .quotation-filter-search { grid-template-columns: 15px minmax(0,1fr); gap: 7px; padding: 0 10px; }
  .quotation-filter-search svg { width: 14px; height: 14px; }
  .quotation-filter-search input { font-size: var(--portal-type-body); }
  .quotation-filter-select { padding: 6px 9px 5px; }
  .quotation-filter-select > span { font-size: var(--portal-type-body); }
  .quotation-filter-select select { padding-top: 2px; font-size: var(--portal-type-body); }
  .quotation-filter-select > svg { right: 7px; bottom: 9px; width: 12px; height: 12px; }
  .quotation-additional-filter__trigger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 82px; font: inherit; font-size: var(--portal-type-body); font-weight: 600; }
  .quotation-additional-filter__trigger svg { width: 14px; height: 14px; }
  .quotation-additional-filter__trigger i { top: 6px; right: 6px; width: 6px; height: 6px; }
  .quotation-additional-filter__popover { top: 49px; }

  .quotations-table-card { padding: 5px 6px 7px; border-radius: 6px; }
  .quotation-page-table { border-spacing: 0; }
  .quotation-page-table thead th { height: 31px; padding: 0 6px; border-bottom: 1px solid rgba(255,255,255,.055); font-size: var(--portal-type-caption); font-weight: 600; }
  .quotation-page-table thead th:nth-child(1) { width: 34px; }
  .quotation-page-table thead th:nth-child(2) { width: 14%; }
  .quotation-page-table thead th:nth-child(3) { width: 10%; }
  .quotation-page-table thead th:nth-child(4) { width: 13%; }
  .quotation-page-table thead th:nth-child(5) { width: 7%; }
  .quotation-page-table thead th:nth-child(6) { width: 13%; }
  .quotation-page-table thead th:nth-child(7) { width: 13%; }
  .quotation-page-table thead th:nth-child(8) { width: 14%; }
  .quotation-page-table thead th:nth-child(9) { width: 11%; }
  .quotation-page-table thead th:nth-child(10) { width: 26px; }
  .quotation-page-row td { height: 58px; padding: 7px 6px; border-top: 0; border-bottom-color: rgba(255,255,255,.075); font-size: var(--portal-type-body); }
  .quotation-page-row td:first-child,
  .quotation-page-row td:last-child { border-radius: 0; }
  .quotation-page-row td:first-child::before { width: 2px; border-radius: 2px 0 0 2px; }
  .quotations-table__checkbox { width: 14px; height: 14px; border-radius: 3px; }
  .quotation-page-reference,
  .quotation-page-row__status > span,
  .quotation-page-row__updated > span,
  .quotation-page-load { gap: 3px; }
  .quotation-page-reference > span { gap: 5px; }
  .quotation-page-reference strong,
  .quotation-page-route strong { font-size: var(--portal-type-body); }
  .quotation-page-reference small,
  .quotation-page-row__status small,
  .quotation-page-row__updated small,
  .quotation-page-load small { font-size: var(--portal-type-caption); }
  .quotation-favourite { width: 17px; height: 17px; }
  .quotation-favourite svg { width: 12px; height: 12px; }
  .quotation-page-route { grid-template-columns: minmax(0,1fr) 11px minmax(0,1fr); gap: 3px; }
  .quotation-page-route > span { gap: 3px; }
  .quotation-page-route small { font-size: var(--portal-type-caption); }
  .quotation-page-route i { font-size: var(--portal-type-body); }
  .quotation-page-row__mode > span { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; }
  .quotation-page-row__mode svg { width: 14px; height: 14px; }
  .quotation-page-row__mode small { font-size: var(--portal-type-caption); }
  .quotation-page-load strong,
  .quotation-page-row__updated strong { font-size: var(--portal-type-body); }
  .quotation-page-load strong i { color: #737b87; font-style: normal; font-weight: 400; }
  .quotation-page-status { min-height: 19px; padding: 0 7px; font-size: var(--portal-type-body); }
  .quotation-view-button { min-height: 27px; padding: 0 9px; border-radius: 5px; font-size: var(--portal-type-body); }
  .quotation-more-button { width: 21px; height: 27px; font-size: var(--portal-type-body); }
  .quotations-pagination { min-height: 50px; padding: 3px 7px 0; font-size: var(--portal-type-body); }
  .quotations-pagination nav { gap: 6px; }
  .quotations-pagination button,
  .quotations-pagination b { width: 24px; height: 24px; }
  .quotations-bulk-bar { min-height: 36px; margin-bottom: 4px; padding: 4px 6px 4px 9px; }
}

/* Shared application page shell: Dashboard is the geometry source of truth. */
:root {
  --app-page-max-width: 1254px;
  --app-page-gutter: 12px;
  --app-page-top-padding: 22px;
  --app-page-bottom-padding: 28px;
  --app-page-section-gap: 12px;
  --app-page-header-min-height: 115px;
  --app-page-title-size: 2.75rem;
  --app-page-title-line-height: 0.98;
  --app-page-title-letter-spacing: -0.065em;
  --app-page-subtitle-size: 0.95rem;
  --app-page-subtitle-line-height: 1.55;
  --app-header-action-height: 42px;
  --app-card-radius: 12px;
  --app-control-height: 42px;
}

@media (min-width: 1181px) {
  .portal-dashboard.portal-dashboard {
    padding: var(--app-page-top-padding) var(--app-page-gutter) var(--app-page-bottom-padding);
  }

  .portal-dashboard.portal-dashboard:has(.quotations-overview:not([hidden])) {
    padding: var(--app-page-top-padding) var(--app-page-gutter) var(--app-page-bottom-padding);
  }

  .portal-dashboard > .app-page,
  .portal-dashboard > .app-page-shell,
  .app-page-shell > .app-page,
  .reports-root > .app-page {
    width: min(100%, var(--app-page-max-width));
    max-width: var(--app-page-max-width);
    margin-right: auto;
    margin-left: auto;
  }

  .app-page {
    gap: var(--app-page-section-gap);
  }

  .dashboard-hero.app-page-header,
  .quotations-header.app-page-header,
  .chats-hero.app-page-header,
  .reports-header.app-page-header,
  .settings-hero.app-page-header {
    box-sizing: border-box;
    min-height: var(--app-page-header-min-height);
  }

  :is(
    .dashboard-hero__copy h1,
    .quotations-header__copy h1,
    .chats-hero h1,
    .reports-header h1,
    .settings-hero h2
  ) {
    margin: 0;
    font-size: var(--app-page-title-size);
    font-weight: 700;
    line-height: var(--app-page-title-line-height);
    letter-spacing: var(--app-page-title-letter-spacing);
  }

  :is(
    .dashboard-hero__copy p,
    .quotations-header__copy p,
    .chats-hero p,
    .reports-header p,
    .settings-hero p
  ) {
    max-width: 54ch;
    margin-top: 10px;
    font-size: var(--app-page-subtitle-size);
    line-height: var(--app-page-subtitle-line-height);
  }

  .quotations-overview {
    gap: var(--app-page-section-gap);
  }

  .quotations-header {
    align-items: flex-start;
    height: var(--app-page-header-min-height);
    padding: 0 25px;
  }

  .quotations-header__copy {
    min-width: 0;
    padding-top: 7px;
  }

  .quotations-breadcrumb {
    gap: 9px;
    min-height: 18px;
    margin-bottom: 13px;
    font-size: var(--portal-type-body);
    line-height: 1.5;
  }

  .quotations-breadcrumb a {
    width: 18px;
    height: 18px;
  }

  .quotations-breadcrumb svg {
    width: 14px;
    height: 14px;
  }

  #new-quote-button {
    align-self: flex-start;
    min-width: 154px;
    min-height: var(--app-header-action-height);
    height: var(--app-header-action-height);
    margin: 38px 0 0;
    padding: 0 18px;
    border-radius: 8px;
    font-size: var(--portal-type-body);
    box-shadow: 0 8px 18px rgba(18, 103, 255, 0.18);
  }

  .quotations-kpi-grid {
    gap: var(--app-page-section-gap);
  }

  .quotation-stat-card {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: 1fr 26px;
    gap: 7px 12px;
    height: 126px;
    padding: 14px 14px 10px;
    border-radius: var(--app-card-radius);
  }

  .quotation-stat-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 9px;
  }

  .quotation-stat-card__icon svg {
    width: 21px;
    height: 21px;
  }

  .quotation-stat-card__content > span {
    font-size: var(--portal-type-body);
    line-height: 1.2;
  }

  .quotation-stat-card strong {
    margin-top: 5px;
    font-size: var(--portal-type-section);
    line-height: 1;
  }

  .quotation-stat-card small {
    gap: 4px;
    margin-top: 6px;
    font-size: var(--portal-type-caption);
    line-height: 1.25;
  }

  .quotation-stat-card small i {
    width: 12px;
    height: 12px;
    font-size: var(--portal-type-caption);
  }

  .quotation-stat-card__sparkline {
    height: 26px;
  }

  .quotations-filter-bar,
  .quotations-table-card {
    border-radius: var(--app-card-radius);
  }

  .quotations-filter-bar {
    padding: 10px;
  }

  .quotation-filter-search,
  .quotation-filter-select,
  .quotation-additional-filter__trigger {
    height: var(--app-control-height);
    border-radius: 8px;
  }

  .quotation-filter-search input {
    font-size: var(--portal-type-body);
  }

  .quotation-filter-select > span {
    font-size: var(--portal-type-body);
  }

  .quotation-filter-select select,
  .quotation-additional-filter__trigger {
    font-size: var(--portal-type-body);
  }

  .quotations-table-card {
    padding: 8px 10px 10px;
  }

  .quotation-page-table thead th {
    height: 34px;
    font-size: var(--portal-type-caption);
  }

  .quotation-page-row td {
    height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: var(--portal-type-body);
  }

  .quotation-page-reference strong,
  .quotation-page-route strong {
    font-size: var(--portal-type-body);
  }

  .quotation-page-reference small,
  .quotation-page-row__status small,
  .quotation-page-row__updated small,
  .quotation-page-load small,
  .quotation-page-route small {
    font-size: var(--portal-type-caption);
  }

  .quotation-page-row__mode small,
  .quotation-page-load strong,
  .quotation-page-row__updated strong {
    font-size: var(--portal-type-caption);
  }

  .quotation-page-status {
    min-height: 22px;
    padding: 0 9px;
    font-size: var(--portal-type-body);
  }

  .quotation-view-button {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: var(--portal-type-body);
  }

  .quotation-more-button {
    width: 28px;
    height: 32px;
  }

  .quotations-pagination {
    min-height: 48px;
    font-size: var(--portal-type-body);
  }

  .quotations-pagination button,
  .quotations-pagination b {
    width: 28px;
    height: 28px;
  }

  .chats-view {
    grid-template-rows: var(--app-page-header-min-height) minmax(0, 1fr);
    gap: var(--app-page-section-gap);
  }

  .chats-hero {
    padding: 12px 0 0 25px;
  }

  .reports-page {
    gap: var(--app-page-section-gap);
  }

  .reports-header {
    align-items: flex-start;
    height: var(--app-page-header-min-height);
    padding: 0;
  }

  .reports-header > div:first-child {
    padding: 38px 0 0 25px;
  }

  .reports-controls,
  .settings-hero__actions {
    margin-top: 38px;
  }

  .reports-controls > button,
  .reports-controls .date,
  .settings-save-indicator,
  .settings-hero__actions .button {
    min-height: var(--app-header-action-height);
    height: var(--app-header-action-height);
    border-radius: 8px;
    font-size: var(--portal-type-body);
  }

  .settings-view {
    left: auto;
    max-width: var(--app-page-max-width);
    padding-top: 0;
    position: static;
  }

  .settings-hero {
    align-items: flex-start;
    height: var(--app-page-header-min-height);
    min-height: var(--app-page-header-min-height);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  :root {
    --app-page-gutter: 20px;
    --app-page-title-size: clamp(2rem, 8vw, 2.65rem);
    --app-page-subtitle-size: 0.9rem;
  }

  .portal-dashboard > .app-page,
  .portal-dashboard > .app-page-shell,
  .app-page-shell > .app-page,
  .reports-root > .app-page {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  :is(
    .dashboard-hero__copy h1,
    .quotations-header__copy h1,
    .chats-hero h1,
    .reports-header h1,
    .settings-hero h2
  ) {
    font-size: var(--app-page-title-size);
    line-height: 1;
  }

  :is(
    .dashboard-hero__copy p,
    .quotations-header__copy p,
    .chats-hero p,
    .reports-header p,
    .settings-hero p
  ) {
    font-size: var(--app-page-subtitle-size);
    line-height: 1.45;
  }
}

/* Quotations header uses the exact dashboard page background in dark mode. */
html[data-theme="dark"] .portal-shell:has(.quotations-overview:not([hidden])) .portal-topbar,
html[data-theme="dark"] .portal-dashboard:has(.quotations-overview:not([hidden])),
html[data-theme="dark"] .portal-dashboard:has(.quotations-overview:not([hidden])) > .portal-main,
html[data-theme="dark"] .portal-dashboard:has(.quotations-overview:not([hidden])) #shipments-main,
html[data-theme="dark"] .quotations-overview,
html[data-theme="dark"] .quotations-header.app-page-header,
html[data-theme="dark"] .quotations-header__copy {
  background: var(--bg);
  background-image: none;
  box-shadow: none;
  filter: none;
  opacity: 1;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .quotations-header::before,
html[data-theme="dark"] .quotations-header::after,
html[data-theme="dark"] .quotations-header__copy::before,
html[data-theme="dark"] .quotations-header__copy::after {
  display: none;
  content: none;
}

/* Shared KPI card interaction: one motion contract for every current and future KPI. */
:root {
  --kpi-lift-distance: -3px;
  --kpi-transition-duration: 210ms;
  --kpi-transition-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --kpi-hover-border: rgba(18, 103, 255, 0.28);
  --kpi-hover-glow: 0 0 0 1px rgba(18, 103, 255, 0.08), 0 8px 18px rgba(15, 23, 42, 0.075);
  --kpi-focus-glow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(18, 103, 255, 0.42), 0 8px 18px rgba(15, 23, 42, 0.075);
  --kpi-counter-duration: 760ms;
  --kpi-sparkline-duration: 720ms;
}

html[data-theme="dark"] {
  --kpi-hover-border: rgba(104, 151, 255, 0.34);
  --kpi-hover-glow: 0 0 0 1px rgba(72, 126, 255, 0.13), 0 4px 10px rgba(0, 0, 0, 0.34);
  --kpi-focus-glow: 0 0 0 1px #000000, 0 0 0 3px rgba(90, 143, 255, 0.62), 0 4px 10px rgba(0, 0, 0, 0.34);
}

.kpi-motion-card {
  backface-visibility: hidden;
  transition:
    transform var(--kpi-transition-duration) var(--kpi-transition-easing),
    border-color var(--kpi-transition-duration) ease-out,
    box-shadow var(--kpi-transition-duration) var(--kpi-transition-easing);
}

.kpi-motion-value {
  font-variant-numeric: tabular-nums;
}

.kpi-motion-value--reveal {
  animation: kpi-value-reveal 360ms var(--kpi-transition-easing) both;
}

.kpi-motion-sparkline {
  transform-origin: left center;
  transition:
    transform var(--kpi-transition-duration) var(--kpi-transition-easing),
    opacity var(--kpi-transition-duration) ease-out;
}

.kpi-motion-sparkline__line[style*="--kpi-path-length"] {
  stroke-dasharray: var(--kpi-path-length);
  stroke-dashoffset: 0;
}

.kpi-motion-card.is-kpi-entering .kpi-motion-sparkline {
  animation: kpi-sparkline-enter var(--kpi-sparkline-duration) var(--kpi-transition-easing) both;
}

.kpi-motion-card.is-kpi-entering .kpi-motion-sparkline__line[style*="--kpi-path-length"] {
  animation: kpi-sparkline-draw var(--kpi-sparkline-duration) var(--kpi-transition-easing) both;
}

.kpi-motion-card.is-kpi-entering .kpi-motion-sparkline__fill {
  animation: kpi-sparkline-fill var(--kpi-sparkline-duration) ease-out both;
}

@media (hover: hover) and (pointer: fine) {
  .kpi-motion-card:hover,
  .kpi-motion-card:focus-within,
  .kpi-motion-card:focus-visible {
    border-color: var(--kpi-hover-border);
    box-shadow: var(--kpi-hover-glow);
    transform: translate3d(0, var(--kpi-lift-distance), 0);
  }

  .kpi-motion-card:focus-within,
  .kpi-motion-card:focus-visible {
    box-shadow: var(--kpi-focus-glow);
    outline: none;
  }

  .kpi-motion-card:hover .kpi-motion-sparkline,
  .kpi-motion-card:focus-within .kpi-motion-sparkline,
  .kpi-motion-card:focus-visible .kpi-motion-sparkline {
    transform: translate3d(2px, 0, 0);
  }

  .kpi-motion-card:hover .kpi-motion-sparkline__line[style*="--kpi-path-length"],
  .kpi-motion-card:focus-within .kpi-motion-sparkline__line[style*="--kpi-path-length"],
  .kpi-motion-card:focus-visible .kpi-motion-sparkline__line[style*="--kpi-path-length"] {
    animation: kpi-sparkline-hover 460ms var(--kpi-transition-easing) both;
  }
}

@media (hover: none), (pointer: coarse) {
  .kpi-motion-card:active {
    opacity: 0.985;
  }
}

@keyframes kpi-value-reveal {
  from { opacity: 0; transform: translate3d(0, 3px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes kpi-sparkline-enter {
  from { opacity: 0.25; transform: translate3d(-2px, 0, 0) scaleX(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scaleX(1); }
}

@keyframes kpi-sparkline-draw {
  from { stroke-dashoffset: var(--kpi-path-length); }
  to { stroke-dashoffset: 0; }
}

@keyframes kpi-sparkline-hover {
  from { stroke-dashoffset: 8px; }
  to { stroke-dashoffset: 0; }
}

@keyframes kpi-sparkline-fill {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kpi-motion-card,
  .kpi-motion-sparkline,
  .kpi-motion-sparkline__line,
  .kpi-motion-sparkline__fill,
  .kpi-motion-value {
    animation: none !important;
    transition: none !important;
  }

  .kpi-motion-card:hover,
  .kpi-motion-card:focus-within,
  .kpi-motion-card:focus-visible,
  .kpi-motion-card:hover .kpi-motion-sparkline,
  .kpi-motion-card:focus-within .kpi-motion-sparkline,
  .kpi-motion-card:focus-visible .kpi-motion-sparkline {
    transform: none !important;
  }
}

html[data-reduced-motion="true"] .kpi-motion-card,
html[data-reduced-motion="true"] .kpi-motion-sparkline,
html[data-reduced-motion="true"] .kpi-motion-sparkline__line,
html[data-reduced-motion="true"] .kpi-motion-sparkline__fill,
html[data-reduced-motion="true"] .kpi-motion-value {
  animation: none !important;
  transition: none !important;
}

html[data-reduced-motion="true"] .kpi-motion-card:hover,
html[data-reduced-motion="true"] .kpi-motion-card:focus-within,
html[data-reduced-motion="true"] .kpi-motion-card:focus-visible,
html[data-reduced-motion="true"] .kpi-motion-card:hover .kpi-motion-sparkline,
html[data-reduced-motion="true"] .kpi-motion-card:focus-within .kpi-motion-sparkline,
html[data-reduced-motion="true"] .kpi-motion-card:focus-visible .kpi-motion-sparkline {
  transform: none !important;
}

/* Reference-accurate three-column Chats workspace (2026-07-14). */
.portal-dashboard--chats {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: #000;
}

.portal-dashboard--chats > .portal-main,
.portal-dashboard--chats #shipments-main,
.portal-dashboard--chats .chats-view {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.chats-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

.chats-hero {
  display: none !important;
}

.chats-app {
  grid-template-columns: minmax(310px, 350px) minmax(480px, 1fr) minmax(250px, 270px);
  height: 100%;
  min-height: 0;
  max-height: none;
  gap: 14px;
  color: #f5f7fb;
}

.chats-list-panel,
.chat-thread-panel,
.chat-detail-overview,
.chat-detail-accordion,
.chat-shipment-health,
.chat-detail-card {
  border: 1px solid #202329;
  background: #020202;
  box-shadow: none;
}

.chats-list-panel,
.chat-thread-panel {
  border-radius: 9px;
}

.chats-list-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 14px 10px 0;
}

.chats-list-panel__tools {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
}

.chats-search {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #25282e;
  border-radius: 7px;
  background: #050505;
  color: #adb4c0;
  box-shadow: none;
}

.chats-search:focus-within {
  border-color: #176bff;
  box-shadow: 0 0 0 2px rgba(23, 107, 255, .16);
}

.chats-search input {
  color: #f6f7fa;
  font-size: var(--portal-type-body);
}

.chats-search input::placeholder {
  color: #9298a4;
}

.chat-icon-button {
  width: 44px;
  min-width: 44px;
  height: 42px;
  border-color: #24272c;
  border-radius: 7px;
  background: #040404;
  color: #e8ebf0;
  box-shadow: none;
}

.chat-icon-button:hover,
.chat-icon-button:focus-visible,
.chat-header-button:hover,
.chat-header-button:focus-visible {
  border-color: #3a404a;
  background: #111318;
  box-shadow: 0 0 0 2px rgba(36, 113, 255, .16);
}

.chats-filter-menu,
.chat-action-menu {
  position: absolute;
  z-index: 30;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid #2a2e35;
  border-radius: 8px;
  background: #0b0c0f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .44);
}

.chats-filter-menu[hidden],
.chat-action-menu[hidden] {
  display: none !important;
}

.chats-filter-menu {
  top: 49px;
  right: 0;
  width: 178px;
}

.chats-filter-menu strong {
  padding: 7px 9px 5px;
  color: #9098a6;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chats-filter-menu button,
.chat-action-menu button {
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f3f5f8;
  font: inherit;
  font-size: var(--portal-type-body);
  text-align: left;
  cursor: pointer;
}

.chats-filter-menu button:hover,
.chats-filter-menu button:focus-visible,
.chat-action-menu button:hover,
.chat-action-menu button:focus-visible {
  outline: 0;
  background: #181b20;
}

.chats-filters {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 14px 0 13px;
}

.chats-filter {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  padding: 0 11px;
  border-color: #25282e;
  border-radius: 7px;
  background: #030303;
  color: #c3c8d1;
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.chats-filter.is-active {
  border-color: #eef1f6;
  background: #f4f6fa;
  color: #101216;
  box-shadow: none;
}

.chats-conversation-list {
  margin: 0 -2px;
  padding: 0 2px 8px;
}

.chat-conversation {
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  gap: 12px;
  min-height: 90px;
  margin-bottom: 6px;
  padding: 12px 9px;
  border: 1px solid transparent;
  border-bottom-color: #111318;
  border-radius: 8px;
  background: #050505;
  color: #f7f8fb;
}

.chat-conversation:hover,
.chat-conversation:focus-visible {
  background: #0c0e12;
}

.chat-conversation.is-selected {
  border: 1px solid #1267ff;
  background: #080b10;
  box-shadow: none;
}

.chat-avatar {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: .76rem;
  box-shadow: none;
}

.chat-avatar--blue { background: #064ecb; }
.chat-avatar--teal { background: #079c91; }
.chat-avatar--orange { background: #ff920a; }
.chat-avatar--purple { background: #6b27bb; }
.chat-avatar--gold { background: #c6971e; }
.chat-avatar--cyan { background: #3298a7; }
.chat-avatar--person { background: #1d2e46; }
.chat-avatar--dark { background: #111216; border: 1px solid #2d3138; }

.chat-avatar i {
  border-color: #050505;
  background: #10bd51;
}

.chat-conversation__body {
  gap: 5px;
}

.chat-conversation__topline {
  gap: 7px;
}

.chat-conversation__topline strong {
  color: #f7f8fa;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.chat-status-badge {
  min-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-status-badge--blue { background: #102756; color: #c5d9ff; }
.chat-status-badge--green,
.chat-status-badge--internal { background: #082b18; color: #25d26a; }
.chat-status-badge--external { background: #25272b; color: #d8dbe1; }

.chat-conversation__context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d3d7df;
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.chat-conversation__context i {
  color: #69717e;
  font-style: normal;
}

.chat-conversation__context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-conversation__preview {
  color: #aeb4bf;
  font-size: var(--portal-type-body);
}

.chat-conversation__meta {
  gap: 23px;
  min-width: 38px;
}

.chat-conversation__meta time {
  color: #adb3bf;
  font-size: var(--portal-type-caption);
}

.chat-conversation__meta b {
  min-width: 21px;
  height: 21px;
  background: #1267ff;
  font-size: var(--portal-type-caption);
}

.chats-load-more {
  display: block;
  min-height: 42px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #858c98;
  font: inherit;
  font-size: var(--portal-type-body);
  cursor: pointer;
}

.chats-load-more:hover,
.chats-load-more:focus-visible {
  outline: 0;
  color: #f2f4f7;
}

.chat-thread-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #010101;
}

.chat-thread-header {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 112px;
  padding: 18px 18px 16px;
  border-bottom-color: #1d2025;
}

.chat-thread-header > .chat-avatar {
  width: 48px;
  min-width: 48px;
  height: 48px;
}

.chat-thread-header__copy {
  align-self: start;
  gap: 5px;
}

.chat-thread-header__copy h2 {
  color: #f7f8fb;
  font-size: var(--portal-type-section);
  font-weight: 700;
}

.chat-thread-header__copy > span:not(.chat-status-badge) {
  color: #e3e6eb;
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.chat-thread-header__copy > span:not(.chat-status-badge) i {
  padding: 0 7px;
  color: #68717e;
  font-style: normal;
}

.chat-thread-header__copy > .chat-status-badge {
  position: static;
  margin-top: 1px;
}

.chat-thread-header__actions {
  align-self: start;
  gap: 10px;
}

.chat-thread-header__actions .chat-icon-button {
  height: 46px;
}

.chat-details-toggle {
  display: none;
}

.chat-action-menu {
  top: 53px;
  right: 0;
  width: 205px;
}

.chat-messages {
  padding: 12px 18px 16px;
}

.chat-date-divider {
  gap: 16px;
  margin: 5px 0 17px;
  color: #777e89;
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.chat-date-divider::before,
.chat-date-divider::after {
  background: #171a1f;
}

.chat-message {
  width: min(78%, 420px);
  margin-bottom: 16px;
}

.chat-message .chat-avatar {
  width: 37px;
  min-width: 37px;
  height: 37px;
  font-size: .61rem;
}

.chat-message__content {
  gap: 6px;
}

.chat-message__sender {
  gap: 9px;
  padding: 0;
}

.chat-message__sender strong {
  color: #f4f6f9;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-message__sender span {
  color: #868e9b;
  font-size: var(--portal-type-body);
}

.chat-message--own .chat-message__sender span {
  color: #b6c9f2;
}

.chat-message__bubble {
  min-width: 0;
  padding: 11px 13px 7px;
  border-radius: 8px;
  background: #111214;
  color: #f3f5f7;
}

.chat-message--own .chat-message__bubble {
  background: #072451;
}

.chat-message__bubble p {
  font-size: var(--portal-type-body);
  line-height: 1.48;
}

.chat-message__bubble > span {
  margin-top: 3px;
  color: #9ca4b1;
  font-size: var(--portal-type-body);
}

.chat-message__reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: #161719;
  color: #f6f7f9;
  font-size: var(--portal-type-body);
}

.chat-message__reaction b {
  font-weight: 600;
}

.chat-message__seen {
  color: #757c87;
  font-size: var(--portal-type-body);
}

.chat-message__seen i {
  color: #1267ff;
  font-style: normal;
}

.chat-thread-footer {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  background: #010101;
}

.chat-composer {
  grid-template-columns: 38px minmax(0, 1fr) 38px auto 48px;
  gap: 5px;
  margin: 0;
  padding: 4px;
  border-color: #24272d;
  border-radius: 8px;
  background: #050505;
  box-shadow: none;
}

.chat-composer textarea {
  min-height: 43px;
  padding: 12px 4px 8px;
  color: #f3f5f8;
  font-size: var(--portal-type-body);
}

.chat-composer .chat-icon-button {
  width: 38px;
  min-width: 38px;
  height: 43px;
  color: #cbd0d8;
}

.chat-send-button {
  width: 48px;
  height: 43px;
  border: 1px solid #1c62d8;
  border-radius: 7px;
  background: #0b4fc6;
  box-shadow: none;
}

.chat-send-button:hover,
.chat-send-button:focus-visible {
  background: #176bff;
  box-shadow: 0 0 0 2px rgba(23, 107, 255, .18);
}

.chat-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.chat-quick-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid #24272d;
  border-radius: 7px;
  background: #030303;
  color: #f0f2f5;
  font: inherit;
  font-size: var(--portal-type-body);
  white-space: nowrap;
  cursor: pointer;
}

.chat-quick-actions button:hover,
.chat-quick-actions button:focus-visible {
  outline: 0;
  border-color: #3a404a;
  background: #101216;
}

.chat-quick-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-details-panel {
  min-width: 0;
  min-height: 0;
}

.chat-details-panel__scroll {
  gap: 10px;
  max-height: 100%;
}

.chat-detail-overview,
.chat-detail-accordion,
.chat-shipment-health {
  overflow: hidden;
  border-radius: 9px;
}

.chat-detail-overview > header,
.chat-shipment-health > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 15px;
  border-bottom: 1px solid #1b1e23;
}

.chat-detail-overview h3,
.chat-shipment-health h3 {
  margin: 0;
  color: #f4f6f9;
  font-size: var(--portal-type-subheading);
  font-weight: 600;
}

.chat-detail-overview > header button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef0f3;
  cursor: pointer;
}

.chat-detail-overview > header button svg,
.chat-detail-accordion > button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.chat-detail-overview > header button[aria-expanded="true"] svg,
.chat-detail-accordion.is-open > button svg {
  transform: rotate(180deg);
}

.chat-shipment-overview {
  padding: 0 14px 14px;
}

.chat-shipment-overview dl {
  display: grid;
  margin: 0 0 14px;
}

.chat-shipment-overview dl > div {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid #171a1f;
}

.chat-shipment-overview dt,
.chat-shipment-overview dd {
  margin: 0;
  font-size: var(--portal-type-body);
}

.chat-shipment-overview dt {
  color: #a5acb8;
}

.chat-shipment-overview dd {
  color: #f2f4f7;
  text-align: right;
}

.chat-shipment-overview dd small {
  display: block;
  margin-top: 4px;
  color: #9299a5;
}

.chat-detail-action {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-color: #25292f;
  border-radius: 7px;
  background: #020202;
  color: #f3f5f7;
  font-size: var(--portal-type-body);
}

.chat-detail-action:hover,
.chat-detail-action:focus-visible {
  outline: 0;
  border-color: #3a404a;
  background: #101216;
}

.chat-detail-accordion > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px 20px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: #f2f4f7;
  text-align: left;
  cursor: pointer;
}

.chat-detail-accordion > button strong {
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-detail-accordion > button > span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1e2024;
  color: #f4f5f7;
  font-size: var(--portal-type-body);
}

.chat-detail-accordion:first-of-type > button > span {
  background: #0b2d61;
  color: #d9e7ff;
}

.chat-detail-accordion__content {
  max-height: 270px;
  overflow: auto;
  border-top: 1px solid #1b1e23;
}

.chat-shipment-health > header {
  min-height: 64px;
}

.chat-shipment-health__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 14px;
  padding: 24px 0 20px;
  border-bottom: 1px solid #191c21;
}

.chat-shipment-health__stats > span {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid #1d2025;
}

.chat-shipment-health__stats > span:last-child {
  border-right: 0;
}

.chat-shipment-health__stats small,
.chat-shipment-health__milestone > small {
  color: #959ca8;
  font-size: var(--portal-type-caption);
}

.chat-shipment-health__stats strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f3f6;
  font-size: var(--portal-type-body);
  font-weight: 500;
}

.chat-shipment-health__stats strong > i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #23c965;
}

.chat-shipment-health__stats strong > b {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 3px solid #1267ff;
  border-radius: 999px;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-shipment-health__milestone {
  display: grid;
  gap: 18px;
  padding: 20px 15px 18px;
}

.chat-shipment-health__milestone > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.chat-shipment-health__milestone svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #f5f6f8;
  stroke-width: 1.7;
}

.chat-shipment-health__milestone strong,
.chat-shipment-health__milestone span {
  color: #f1f3f5;
  font-size: var(--portal-type-body);
  font-weight: 600;
}

.chat-shipment-health__milestone span {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid #1d2025;
  text-align: right;
}

.chat-shipment-health__milestone span small {
  color: #8f96a1;
  font-size: var(--portal-type-caption);
}

.chat-participant-list,
.chat-document-list,
.chat-milestone-list {
  background: #040404;
}

.chat-participant-list strong,
.chat-document-list strong,
.chat-milestone-list strong {
  color: #f2f4f7;
}

html[data-theme="dark"] .chats-list-panel,
html[data-theme="dark"] .chat-thread-panel,
html[data-theme="dark"] .chats-search,
html[data-theme="dark"] .chat-icon-button,
html[data-theme="dark"] .chat-composer {
  background: #020202;
  border-color: #202329;
}

html[data-theme="dark"] .chat-conversation.is-selected {
  background: #080b10;
}

html[data-theme="dark"] .chat-message__bubble {
  background: #111214;
}

html[data-theme="dark"] .chat-message--own .chat-message__bubble {
  background: #072451;
}

html[data-theme="dark"] .chat-message__attachment {
  border-color: #252930;
  background: #0b0d10;
  color: #f1f3f6;
}

html[data-theme="dark"] .chat-composer__status { color: #929aa8; }
html[data-theme="dark"] .chat-composer__status.is-error { color: #ff8b8b; }
html[data-theme="dark"] .chat-composer__attachment,
html[data-theme="dark"] .chat-composer__emoji-popover {
  border-color: #292d34;
  background: #0b0d10;
  color: #f2f4f7;
}
html[data-theme="dark"] .chat-composer__emoji-popover header { border-color: #252930; }
html[data-theme="dark"] .chat-composer__attachment small { color: #929aa8; }
html[data-theme="dark"] .chat-composer.is-dragging::after {
  background: rgba(5, 15, 31, .96);
  color: #8ab7ff;
}

@media (min-width: 1181px) {
  .portal-shell:has(.portal-dashboard--chats) > .portal-topbar {
    display: none;
  }

  .portal-dashboard.portal-dashboard--chats {
    height: calc(100dvh - 18px);
    min-height: 720px;
    padding: 14px 12px 4px;
  }

  .portal-dashboard--chats .portal-main,
  .portal-dashboard--chats #shipments-main,
  .portal-dashboard--chats .chats-view {
    height: 100%;
  }
}

@media (max-width: 1380px) and (min-width: 1181px) {
  .chats-app {
    grid-template-columns: minmax(260px, 300px) minmax(400px, 1fr) minmax(240px, 250px);
    gap: 10px;
  }

  .chat-quick-actions button {
    gap: 5px;
    padding: 0 5px;
    font-size: var(--portal-type-body);
  }
}

@media (max-width: 1180px) {
  .portal-dashboard--chats {
    padding-bottom: 12px;
  }

  .chats-view {
    min-height: calc(100dvh - 86px);
  }

  .chats-app {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    height: calc(100dvh - 102px);
    min-height: 620px;
  }

  .chat-details-toggle {
    display: inline-grid;
  }

  .chat-details-panel {
    background: #000;
    box-shadow: -14px 0 32px rgba(0, 0, 0, .56);
  }

  .chat-details-panel__scroll {
    padding: 10px;
  }

  .chat-details-panel__mobile-head {
    background: #050505;
    border-bottom-color: #202329;
    color: #f5f7fa;
  }
}

@media (max-width: 760px) {
  .portal-dashboard--chats {
    padding: 8px 10px 10px;
  }

  .chats-view {
    min-height: calc(100dvh - 78px);
  }

  .chats-app {
    height: calc(100dvh - 94px);
    min-height: 520px;
  }

  .chats-list-panel {
    padding: 12px 10px 0;
  }

  .chat-thread-header {
    grid-template-columns: 38px 42px minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 9px 10px;
  }

  .chat-thread-header__actions > [data-chat-open-shipment],
  .chat-thread-header__actions > [data-chat-attach] {
    display: none;
  }

  .chat-thread-footer {
    padding: 0 9px max(9px, env(safe-area-inset-bottom));
  }

  .chat-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .chats-filter {
    padding: 0 7px;
    font-size: var(--portal-type-body);
  }

  .chat-conversation {
    min-height: 86px;
  }

  .chat-emoji-button {
    display: none;
  }

  .chat-composer {
    grid-template-columns: 36px minmax(0, 1fr) 36px auto 46px;
  }

  .chat-composer .chat-send-button {
    width: 46px;
  }
}

/* Messages header must win over the reference-workspace density overrides above. */
.chats-view { grid-template-rows: var(--app-page-header-min-height, 115px) minmax(0, 1fr); }
.chats-hero.app-page-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  min-height: var(--app-page-header-min-height, 115px);
  padding: 38px 0 0 25px;
  gap: 24px;
  background: #000;
}
.chats-hero h1 {
  margin: 0;
  font-size: var(--portal-type-page);
  font-weight: 700;
  line-height: var(--app-page-title-line-height, .98);
  letter-spacing: var(--app-page-title-letter-spacing, -.065em);
}
.chats-hero p {
  margin: 10px 0 0;
  font-size: var(--portal-type-body);
  line-height: var(--app-page-subtitle-line-height, 1.55);
}
@media (min-width: 1181px) {
  .portal-shell:has(.portal-dashboard--chats) > .portal-topbar { display: flex; }
  .portal-dashboard.portal-dashboard--chats { height: calc(100dvh - 76px); min-height: 0; padding: 0 12px 4px; }
}
@media (max-width: 1180px) {
  .chats-view { grid-template-rows: 94px minmax(0, 1fr); }
  .chats-hero.app-page-header { min-height: 94px; padding: 15px 2px 12px; align-items: center; }
  .chats-app { height: 100%; min-height: 0; }
}
@media (max-width: 760px) {
  .chats-view { grid-template-rows: auto minmax(0, 1fr); }
  .chats-hero.app-page-header { min-height: 82px; padding: 8px 2px 12px; }
  .chats-hero h1 { font-size: var(--portal-type-page); }
  .chats-hero p { margin-top: 5px; font-size: var(--portal-type-body); }
}
/* Messages follows the global html[data-theme] contract used by Shipments. */
.portal-dashboard--chats,
.chats-hero.app-page-header {
  background: var(--app-page-bg);
}

html:not([data-theme="dark"]) .chats-app {
  color: var(--ink);
}

html:not([data-theme="dark"]) .chats-list-panel,
html:not([data-theme="dark"]) .chat-thread-panel,
html:not([data-theme="dark"]) .chat-detail-overview,
html:not([data-theme="dark"]) .chat-detail-accordion,
html:not([data-theme="dark"]) .chat-shipment-health,
html:not([data-theme="dark"]) .chat-detail-card {
  border-color: var(--app-card-border);
  background: var(--app-card-bg);
  box-shadow: var(--app-card-shadow-soft);
}

html:not([data-theme="dark"]) .chats-hero.app-page-header,
html:not([data-theme="dark"]) .chats-hero h1,
html:not([data-theme="dark"]) .chat-conversation__topline strong,
html:not([data-theme="dark"]) .chat-thread-header__copy h2,
html:not([data-theme="dark"]) .chat-message__sender strong,
html:not([data-theme="dark"]) .chat-detail-overview h3,
html:not([data-theme="dark"]) .chat-shipment-health h3,
html:not([data-theme="dark"]) .chat-detail-overview > header button,
html:not([data-theme="dark"]) .chat-shipment-overview dd,
html:not([data-theme="dark"]) .chat-detail-accordion > button,
html:not([data-theme="dark"]) .chat-shipment-health__stats strong,
html:not([data-theme="dark"]) .chat-shipment-health__milestone strong,
html:not([data-theme="dark"]) .chat-shipment-health__milestone span,
html:not([data-theme="dark"]) .chat-participant-list strong,
html:not([data-theme="dark"]) .chat-document-list strong,
html:not([data-theme="dark"]) .chat-milestone-list strong {
  color: var(--ink);
}

html:not([data-theme="dark"]) .chats-hero p,
html:not([data-theme="dark"]) .chat-conversation__preview,
html:not([data-theme="dark"]) .chat-conversation__meta time,
html:not([data-theme="dark"]) .chat-message__sender span,
html:not([data-theme="dark"]) .chat-message__bubble > span,
html:not([data-theme="dark"]) .chat-message__seen,
html:not([data-theme="dark"]) .chat-shipment-overview dt,
html:not([data-theme="dark"]) .chat-shipment-overview dd small,
html:not([data-theme="dark"]) .chat-shipment-health__stats small,
html:not([data-theme="dark"]) .chat-shipment-health__milestone > small,
html:not([data-theme="dark"]) .chat-shipment-health__milestone span small,
html:not([data-theme="dark"]) .chats-load-more {
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .chats-search,
html:not([data-theme="dark"]) .chat-icon-button,
html:not([data-theme="dark"]) .chat-composer,
html:not([data-theme="dark"]) .chat-detail-action,
html:not([data-theme="dark"]) .chat-quick-actions button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}

html:not([data-theme="dark"]) .chats-search input,
html:not([data-theme="dark"]) .chat-composer textarea {
  color: var(--ink);
}

html:not([data-theme="dark"]) .chats-search input::placeholder,
html:not([data-theme="dark"]) .chat-composer textarea::placeholder {
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .chat-icon-button:hover,
html:not([data-theme="dark"]) .chat-icon-button:focus-visible,
html:not([data-theme="dark"]) .chat-header-button:hover,
html:not([data-theme="dark"]) .chat-header-button:focus-visible,
html:not([data-theme="dark"]) .chat-detail-action:hover,
html:not([data-theme="dark"]) .chat-detail-action:focus-visible,
html:not([data-theme="dark"]) .chat-quick-actions button:hover,
html:not([data-theme="dark"]) .chat-quick-actions button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

html:not([data-theme="dark"]) .chats-filter-menu,
html:not([data-theme="dark"]) .chat-action-menu {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--app-card-shadow);
}

html:not([data-theme="dark"]) .chats-filter-menu strong {
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .chats-filter-menu button,
html:not([data-theme="dark"]) .chat-action-menu button {
  color: var(--ink);
}

html:not([data-theme="dark"]) .chats-filter-menu button:hover,
html:not([data-theme="dark"]) .chats-filter-menu button:focus-visible,
html:not([data-theme="dark"]) .chat-action-menu button:hover,
html:not([data-theme="dark"]) .chat-action-menu button:focus-visible {
  background: var(--surface-soft);
}

html:not([data-theme="dark"]) .chats-filter {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .chats-filter:hover,
html:not([data-theme="dark"]) .chats-filter:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
}

html:not([data-theme="dark"]) .chats-filter.is-active {
  border-color: var(--app-blue);
  background: rgba(18, 103, 255, .09);
  color: #0b56d6;
}

html:not([data-theme="dark"]) .chat-conversation {
  border-bottom-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

html:not([data-theme="dark"]) .chat-conversation:hover,
html:not([data-theme="dark"]) .chat-conversation:focus-visible {
  background: var(--surface-soft);
}

html:not([data-theme="dark"]) .chat-conversation.is-selected {
  border-color: var(--app-blue);
  background: rgba(18, 103, 255, .075);
}

html:not([data-theme="dark"]) .chat-avatar i {
  border-color: var(--surface);
}

html:not([data-theme="dark"]) .chat-avatar--dark {
  border-color: var(--line-strong);
  background: #4b5563;
}

html:not([data-theme="dark"]) .chat-status-badge--blue { background: #e9f0ff; color: #1261e6; }
html:not([data-theme="dark"]) .chat-status-badge--green,
html:not([data-theme="dark"]) .chat-status-badge--internal { background: var(--success-bg); color: var(--success-text); }
html:not([data-theme="dark"]) .chat-status-badge--external { background: var(--surface-muted); color: var(--ink-muted); }

html:not([data-theme="dark"]) .chat-conversation__context,
html:not([data-theme="dark"]) .chat-thread-header__copy > span:not(.chat-status-badge) {
  color: var(--ink-2);
}

html:not([data-theme="dark"]) .chat-conversation__context i,
html:not([data-theme="dark"]) .chat-thread-header__copy > span:not(.chat-status-badge) i {
  color: var(--ink-soft);
}

html:not([data-theme="dark"]) .chats-load-more:hover,
html:not([data-theme="dark"]) .chats-load-more:focus-visible {
  color: var(--ink);
}

html:not([data-theme="dark"]) .chat-thread-panel {
  background: var(--surface);
}

html:not([data-theme="dark"]) .chat-thread-footer {
  background: var(--surface-soft);
}

html:not([data-theme="dark"]) .chat-thread-header,
html:not([data-theme="dark"]) .chat-detail-overview > header,
html:not([data-theme="dark"]) .chat-shipment-health > header,
html:not([data-theme="dark"]) .chat-detail-accordion__content,
html:not([data-theme="dark"]) .chat-shipment-overview dl > div,
html:not([data-theme="dark"]) .chat-shipment-health__stats {
  border-color: var(--line);
}

html:not([data-theme="dark"]) .chat-messages {
  background: var(--surface-soft);
}

html:not([data-theme="dark"]) .chat-date-divider {
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .chat-date-divider::before,
html:not([data-theme="dark"]) .chat-date-divider::after {
  background: var(--line-strong);
}

html:not([data-theme="dark"]) .chat-message__bubble {
  background: var(--surface-muted);
  color: var(--ink);
}

html:not([data-theme="dark"]) .chat-message--own .chat-message__bubble {
  background: #0d5bea;
  color: #fff;
}

html:not([data-theme="dark"]) .chat-message--own .chat-message__bubble > span,
html:not([data-theme="dark"]) .chat-message--own .chat-message__sender span {
  color: rgba(255, 255, 255, .76);
}

html:not([data-theme="dark"]) .chat-message__reaction {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

html:not([data-theme="dark"]) .chat-detail-accordion > button > span {
  background: var(--surface-muted);
  color: var(--ink-2);
}

html:not([data-theme="dark"]) .chat-detail-accordion:first-of-type > button > span {
  background: #e9f0ff;
  color: #1261e6;
}

html:not([data-theme="dark"]) .chat-shipment-health__stats > span,
html:not([data-theme="dark"]) .chat-shipment-health__milestone span {
  border-color: var(--line);
}

html:not([data-theme="dark"]) .chat-shipment-health__milestone svg {
  stroke: var(--ink);
}

html:not([data-theme="dark"]) .chat-participant-list,
html:not([data-theme="dark"]) .chat-document-list,
html:not([data-theme="dark"]) .chat-milestone-list {
  background: var(--surface);
}

html:not([data-theme="dark"]) .chat-details-panel {
  background: var(--app-page-bg);
}

html:not([data-theme="dark"]) .chat-details-panel__mobile-head {
  border-bottom-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

html:not([data-theme="dark"]) .chats-new-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

html:not([data-theme="dark"]) .chats-new-button:hover {
  border-color: var(--ink-2);
  background: var(--ink-2);
}

html:not([data-theme="dark"]) .new-chat-dialog {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--app-card-shadow);
}

html:not([data-theme="dark"]) .new-chat-dialog > header,
html:not([data-theme="dark"]) .new-chat-dialog footer {
  border-color: var(--line);
}

html:not([data-theme="dark"]) .new-chat-dialog header p,
html:not([data-theme="dark"]) .new-chat-contact small,
html:not([data-theme="dark"]) .new-chat-contact em,
html:not([data-theme="dark"]) .new-chat-recipient small,
html:not([data-theme="dark"]) .new-chat-recipient em,
html:not([data-theme="dark"]) .new-chat-body > label > span small,
html:not([data-theme="dark"]) .new-chat-state {
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .new-chat-body > label:not(.new-chat-search) {
  color: var(--ink-2);
}

html:not([data-theme="dark"]) .new-chat-search,
html:not([data-theme="dark"]) .new-chat-body input,
html:not([data-theme="dark"]) .new-chat-body select,
html:not([data-theme="dark"]) .new-chat-body textarea,
html:not([data-theme="dark"]) .new-chat-recipient {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

html:not([data-theme="dark"]) .new-chat-search input {
  color: var(--ink);
}

html:not([data-theme="dark"]) .new-chat-contact {
  background: var(--surface);
  color: var(--ink);
}

html:not([data-theme="dark"]) .new-chat-contact:hover {
  background: var(--surface-soft);
}

html:not([data-theme="dark"]) .new-chat-contact.is-selected {
  border-color: var(--app-blue);
  background: rgba(18, 103, 255, .075);
}

html:not([data-theme="dark"]) .new-chat-state button,
html:not([data-theme="dark"]) .new-chat-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

html:not([data-theme="dark"]) .new-chat-primary:disabled {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--ink-soft);
}

html:not([data-theme="dark"]) .chat-empty-state--error,
html:not([data-theme="dark"]) .chat-loading-state {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-muted);
}

html:not([data-theme="dark"]) .chat-empty-state--error button {
  background: var(--ink);
  color: var(--surface);
}

html:not([data-theme="dark"]) .chats-conversation-list,
html:not([data-theme="dark"]) .chat-messages,
html:not([data-theme="dark"]) .chat-details-panel__scroll,
html:not([data-theme="dark"]) .new-chat-body,
html:not([data-theme="dark"]) .new-chat-contact-list,
html:not([data-theme="dark"]) .chat-detail-accordion__content {
  scrollbar-color: var(--ink-soft) transparent;
}

/* Shared two-row application header: global utilities above page title/actions. */
:root {
  --app-utility-row-height: 60px;
  --app-page-header-block-padding: 4px;
  --app-page-header-content-gap: 20px;
  --app-page-header-action-gap: 12px;
  --app-utility-control-size: 40px;
  --app-page-eyebrow-height: 16px;
  --app-page-eyebrow-gap: 4px;
  --app-page-title-offset: calc(var(--app-page-eyebrow-height) + var(--app-page-eyebrow-gap));
}

.app-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "page-copy page-actions";
  align-items: start;
  column-gap: var(--app-page-header-content-gap);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: var(--app-page-header-block-padding) var(--app-page-gutter) 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page-header__copy,
.app-page-header > :first-child,
.reports-header > :first-child {
  grid-area: page-copy;
  display: grid;
  grid-template-rows: var(--app-page-eyebrow-height) auto auto;
  align-content: start;
  min-width: 0;
  padding: 0;
}

.app-page-header__copy::before,
.reports-header > :first-child::before {
  content: "";
  display: block;
  grid-row: 1;
  min-height: var(--app-page-eyebrow-height);
  margin: 0 0 var(--app-page-eyebrow-gap);
  font-size: 0.8rem;
  line-height: var(--app-page-eyebrow-height);
}

.quotations-header__copy::before {
  content: none;
}

.quotations-breadcrumb {
  grid-row: 1;
  min-height: var(--app-page-eyebrow-height);
  margin: 0 0 var(--app-page-eyebrow-gap);
  line-height: var(--app-page-eyebrow-height);
}

.app-page-header__copy > :is(h1, h2),
.reports-header > :first-child > h1 {
  grid-row: 2;
}

.app-page-header__copy > p,
.reports-header > :first-child > p {
  grid-row: 3;
}

.app-page-header__actions,
.app-page-header__primary-action,
.reports-controls,
.shipment-page-actions,
#new-quote-button {
  grid-area: page-actions;
  align-self: start;
  justify-self: end;
  margin: var(--app-page-title-offset) 0 0;
}

.app-page-header__actions,
.reports-controls,
.shipment-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--app-page-header-action-gap);
  min-width: 0;
}

.app-page-header :is(h1, h2),
.shipment-page-header h1 {
  margin: 0;
}

.app-page-header__copy > p,
.app-page-header > :first-child > p,
.reports-header > :first-child > p,
.shipment-page-header p {
  margin: 5px 0 0;
  color: var(--ink-muted);
}

.app-page-header__primary-action,
.shipment-page-actions .shipment-button--primary,
.settings-hero__actions .button,
#new-quote-button {
  min-height: var(--app-header-action-height);
  height: var(--app-header-action-height);
}

.chats-view {
  grid-template-rows: auto minmax(0, 1fr);
}

.chats-hero.app-page-header {
  display: grid !important;
  align-items: start;
  min-height: 0;
  padding: var(--app-page-header-block-padding) var(--app-page-gutter) 16px;
  gap: 0 var(--app-page-header-content-gap);
}

.chats-new-button {
  align-self: start;
  margin-top: var(--app-page-title-offset);
}

/* New Chat uses the same primary-action contrast in both themes. */
html:not([data-theme="dark"]) .chats-new-button {
  border-color: #171717;
  background: #171717;
  color: #fff;
  box-shadow: var(--app-card-shadow-soft);
}

html:not([data-theme="dark"]) .chats-new-button:hover {
  border-color: #303030;
  background: #303030;
}

html[data-theme="dark"] .chats-new-button {
  border-color: #fff;
  background: #fff;
  color: #171717;
  box-shadow: var(--app-card-shadow-soft);
}

html[data-theme="dark"] .chats-new-button:hover {
  border-color: #e9e9e9;
  background: #e9e9e9;
}

.portal-topbar {
  overflow: visible;
}

.portal-topbar__utility,
.portal-topbar__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin: 0 0 0 auto;
}

.portal-notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--app-utility-control-size);
  width: var(--app-utility-control-size);
  min-width: var(--app-utility-control-size);
  height: var(--app-utility-control-size);
  min-height: var(--app-utility-control-size);
  margin: 0;
  padding: 0;
  overflow: visible;
}

.portal-notification-button svg {
  width: 20px;
  height: 20px;
}

.portal-notification-button > span {
  top: 0;
  right: 0;
  transform: translate(24%, -24%);
}

.portal-theme-toggle {
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  height: 32px;
  min-height: 32px;
  margin: 0;
}

@media (min-width: 1181px) {
  .portal-shell {
    grid-template-rows: var(--app-utility-row-height) minmax(0, 1fr);
  }

  .portal-topbar,
  .portal-shell:has(.portal-dashboard--chats) > .portal-topbar {
    position: relative;
    top: auto;
    right: auto;
    z-index: 40;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--app-utility-row-height);
    min-height: var(--app-utility-row-height);
    max-height: var(--app-utility-row-height);
    box-sizing: border-box;
    padding: 18px max(var(--app-page-gutter), calc((100% - var(--app-page-max-width)) / 2)) 2px;
    background: var(--app-page-bg);
  }

  .portal-dashboard,
  .portal-dashboard.portal-dashboard--chats {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }

  .portal-dashboard.portal-dashboard--chats {
    height: calc(100dvh - var(--app-utility-row-height));
    padding-top: 0;
  }

  .portal-dashboard.portal-dashboard--dashboard,
  .portal-dashboard.portal-dashboard--quotations,
  .portal-dashboard.portal-dashboard--shipments,
  .portal-dashboard.portal-dashboard--chats,
  .portal-dashboard.portal-dashboard--reports,
  .portal-dashboard.portal-dashboard--settings,
  .portal-dashboard:has(.settings-view:not([hidden])),
  .portal-dashboard:has(.quotations-overview:not([hidden])) {
    padding-top: 0;
  }

  .portal-dashboard > .app-page,
  .portal-dashboard > .app-page-shell,
  .app-page-shell > .app-page,
  .reports-root > .app-page {
    width: min(100%, var(--app-page-max-width));
    max-width: var(--app-page-max-width);
    margin-inline: auto;
  }

  .dashboard-hero.app-page-header,
  .quotations-header.app-page-header,
  .shipment-page-header.app-page-header,
  .chats-hero.app-page-header,
  .reports-header.app-page-header,
  .settings-hero.app-page-header {
    min-height: 0;
    height: auto;
    padding: var(--app-page-header-block-padding) 0 16px;
  }

  .reports-controls,
  .settings-hero__actions {
    margin-top: var(--app-page-title-offset);
  }

  .quotations-header__copy {
    padding-top: 0;
  }

  #new-quote-button {
    margin-top: var(--app-page-title-offset);
  }
}

@media (max-width: 1180px) {
  .portal-topbar {
    min-height: var(--app-utility-row-height);
    padding: 6px var(--app-page-gutter);
  }

  .app-page-header,
  .chats-hero.app-page-header {
    min-height: 0;
    padding: var(--app-page-header-block-padding) var(--app-page-gutter) 16px;
  }
}

@media (max-width: 760px) {
  :root {
    --app-page-header-content-gap: 14px;
  }

  .portal-topbar__controls {
    gap: 10px;
  }

  .app-page-header,
  .chats-hero.app-page-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "page-copy"
      "page-actions";
    row-gap: 14px;
    min-height: 0;
  }

  .app-page-header__actions,
  .app-page-header__primary-action,
  .reports-controls,
  .shipment-page-actions,
  #new-quote-button {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }

  .chats-new-button,
  .shipment-page-actions .shipment-button--primary,
  #new-quote-button {
    justify-content: center;
  }

  .shipment-page-actions,
  .reports-controls,
  .settings-hero__actions {
    flex-wrap: wrap;
  }
}

/* Final unified dashboard-header contract. Keep this after legacy responsive
   rules so older page variants cannot reintroduce overlap or fixed heights. */
.portal-shell.is-dashboard-view {
  grid-template-rows: minmax(0, 1fr);
}

.portal-shell.is-dashboard-view > .portal-topbar {
  display: none;
}

.portal-shell.is-dashboard-view > .portal-dashboard {
  grid-row: 1;
}

.dashboard-view.app-page {
  gap: 18px;
}

.dashboard-hero.app-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  grid-template-areas: "dashboard-copy dashboard-tools";
  align-items: start;
  column-gap: clamp(24px, 4vw, 48px);
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 28px 0 22px;
  overflow: visible;
}

.dashboard-hero__copy.app-page-header__copy {
  grid-area: dashboard-copy;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.dashboard-hero__copy::before {
  content: none;
}

.dashboard-hero__eyebrow {
  display: block;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: var(--portal-type-caption);
  font-weight: 700;
  line-height: 1.4;
}

#dashboard-view .dashboard-hero__copy > h1 {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: var(--portal-type-page);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

#dashboard-view .dashboard-hero__copy > p {
  display: block;
  max-width: 54ch;
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dashboard-hero__tools.app-page-header__actions {
  grid-area: dashboard-tools;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: start;
  justify-self: end;
  gap: 12px;
  width: min(100%, 240px);
  min-width: 0;
  margin: 0;
  padding: 0;
}

.dashboard-hero__action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  box-sizing: border-box;
  width: 120px;
  min-width: 120px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.dashboard-hero__action-group .portal-notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111318;
  box-shadow: none;
  overflow: visible;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dashboard-hero__action-group .portal-notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-hero__action-group .portal-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 58px;
  gap: 0;
  width: 58px;
  min-width: 58px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 4px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #5b6470;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
  overflow: visible;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-hero__action-group .portal-theme-toggle__icon {
  position: relative;
  z-index: 2;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #5b6470;
  transform: none;
}

.dashboard-hero__action-group .portal-theme-toggle__icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-hero__action-group .portal-theme-toggle__icon--moon svg {
  fill: none;
  stroke: currentColor;
}

.dashboard-hero__action-group .portal-theme-toggle__thumb {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  display: block !important;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  transition: transform 180ms ease;
}

.dashboard-hero__action-group .portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun,
.dashboard-hero__action-group .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon {
  color: #111318;
  transform: none;
}

.dashboard-hero__action-group .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--sun {
  color: #6b7280;
  transform: none;
}

.dashboard-hero__action-group .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__thumb {
  transform: translateX(24px);
}

.dashboard-hero__action-group .portal-notification-button:hover {
  background: rgba(17, 24, 39, 0.045);
}

.dashboard-hero__action-group .portal-theme-toggle:hover {
  border-color: rgba(17, 24, 39, 0.18);
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.1);
}

.dashboard-hero__action-group :is(.portal-notification-button, .portal-theme-toggle):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 103, 255, 0.2);
}

.dashboard-hero__action-group .portal-notification-button > span {
  position: absolute;
  top: -3px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  border-radius: 50%;
  background: #050505;
  color: #ffffff;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
  transform: none;
  pointer-events: none;
}

.dashboard-hero__logo-card {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 220px;
  max-width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.dashboard-hero__logo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.dashboard-hero__logo-frame > * {
  grid-area: 1 / 1;
}

.dashboard-hero__logo-card img {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  filter: none;
}

.dashboard-hero__logo-placeholder {
  min-height: 0;
  font-size: var(--portal-type-body);
}

html[data-theme="dark"] .dashboard-hero__action-group {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-hero__logo-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-notification-button {
  color: #f8fafc;
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-notification-button:hover {
  background: rgba(248, 250, 252, 0.08);
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle,
html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1d2026;
  color: #aeb6c4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #252932;
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun,
html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon {
  color: #ffffff;
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--sun {
  color: #8f98a6;
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-theme-toggle__thumb {
  border-color: rgba(255, 255, 255, 0.14);
  background: #323741;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 1180px) {
  .portal-shell.is-dashboard-view > .portal-dashboard {
    padding-top: 0;
  }

  .dashboard-hero.app-page-header {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
    grid-template-areas: "dashboard-copy dashboard-tools";
    column-gap: 20px;
    padding: 24px 0 20px;
  }

  .dashboard-hero__tools.app-page-header__actions {
    justify-self: end;
    width: min(100%, 220px);
    margin: 0;
  }

  .dashboard-hero__logo-card {
    width: 200px;
    min-height: 60px;
    padding: 0;
  }

  .dashboard-hero__logo-card img {
    max-width: 180px;
    max-height: 52px;
  }
}

@media (max-width: 720px) {
  .dashboard-view.app-page {
    gap: 16px;
  }

  .dashboard-hero.app-page-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "dashboard-copy"
      "dashboard-tools";
    row-gap: 18px;
    padding: 20px 0 18px;
  }

  #dashboard-view .dashboard-hero__copy > h1 {
    font-size: var(--portal-type-page);
    line-height: 1.1;
  }

  #dashboard-view .dashboard-hero__copy > p {
    max-width: 100%;
    margin-top: 9px;
  }

  .dashboard-hero__tools.app-page-header__actions {
    align-items: flex-start;
    justify-self: stretch;
    width: 100%;
  }

  .dashboard-hero__action-group {
    justify-content: flex-start;
  }

  .dashboard-hero__action-group .portal-notification-button {
    display: inline-grid !important;
  }

  .dashboard-hero__action-group .portal-theme-toggle {
    display: inline-flex !important;
  }

  .dashboard-hero__logo-card {
    width: min(100%, 200px);
    margin: 0;
  }
}

/* Final notification-indicator cascade guard. */
.portal-notification-button > .portal-notification-indicator,
.dashboard-hero__action-group .portal-notification-button > .portal-notification-indicator {
  top: 3px;
  right: 2px;
  display: block;
  width: 9px;
  min-width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  border: 2px solid var(--app-page-bg, #f4f5f7);
  border-radius: 50%;
  background: #8257e6;
  color: transparent;
  font-size: 0;
  line-height: 0;
  transform: none;
  pointer-events: none;
}

.portal-notification-button > .portal-notification-indicator[hidden],
.dashboard-hero__action-group .portal-notification-button > .portal-notification-indicator[hidden] {
  display: none;
}

/* Dark notification popover. Keep the purple type language while separating
   the floating surface clearly from the dark dashboard behind it. */
html[data-theme="dark"] .portal-notification-button > .portal-notification-indicator,
html[data-theme="dark"] .dashboard-hero__action-group .portal-notification-button > .portal-notification-indicator {
  border-color: #111318;
}

html[data-theme="dark"] .dashboard-hero__action-group .portal-notification-button.is-notification-open {
  background: rgba(146, 104, 255, 0.18);
  color: #ffffff;
}

html[data-theme="dark"] .notification-popover {
  border-color: rgba(255, 255, 255, 0.13);
  background: #17191f;
  color: #f4f6fa;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), 0 10px 28px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .notification-popover__arrow {
  border-color: rgba(255, 255, 255, 0.13);
  background: #1b1e25;
}

html[data-theme="dark"] .notification-popover__header,
html[data-theme="dark"] .notification-popover__tabs,
html[data-theme="dark"] .notification-popover__footer {
  background: #1b1e25;
}

html[data-theme="dark"] .notification-popover__header h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .notification-popover__mark-all {
  border-color: rgba(176, 145, 255, 0.28);
  background: rgba(146, 104, 255, 0.12);
  color: #c0a9ff;
}

html[data-theme="dark"] .notification-popover__mark-all:hover:not(:disabled) {
  border-color: rgba(176, 145, 255, 0.45);
  background: rgba(146, 104, 255, 0.2);
  color: #d2c2ff;
}

html[data-theme="dark"] .notification-popover__mark-all:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #707783;
}

html[data-theme="dark"] .notification-popover__tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .notification-popover__tabs button {
  color: #a7afbd;
}

html[data-theme="dark"] .notification-popover__tabs button:hover {
  background: rgba(146, 104, 255, 0.1);
  color: #e9e4ff;
}

html[data-theme="dark"] .notification-popover__tabs button[aria-selected="true"] {
  color: #ffffff;
}

html[data-theme="dark"] .notification-popover__tabs button::after,
html[data-theme="dark"] .notification-popover__tabs b,
html[data-theme="dark"] .notification-item__unread {
  background: #9468ff;
}

html[data-theme="dark"] .notification-popover__list {
  background: #17191f;
  scrollbar-color: rgba(148, 104, 255, 0.46) transparent;
}

html[data-theme="dark"] .notification-section__title {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #f1f4f8;
}

html[data-theme="dark"] .notification-item {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  color: #f4f6fa;
}

html[data-theme="dark"] .notification-item::before {
  background: rgba(146, 104, 255, 0.11);
}

html[data-theme="dark"] .notification-item__icon--message,
html[data-theme="dark"] .notification-item__icon--team {
  background: rgba(148, 104, 255, 0.18);
  color: #b79bff;
}

html[data-theme="dark"] .notification-item__icon--shipment {
  background: rgba(45, 124, 255, 0.18);
  color: #69a4ff;
}

html[data-theme="dark"] .notification-item__icon--document {
  background: rgba(34, 197, 94, 0.16);
  color: #58d57f;
}

html[data-theme="dark"] .notification-item__icon--alert {
  background: rgba(255, 142, 32, 0.16);
  color: #ffad5c;
}

html[data-theme="dark"] .notification-item__copy strong {
  color: #f7f9fc;
}

html[data-theme="dark"] .notification-item__copy span {
  color: #adb5c2;
}

html[data-theme="dark"] .notification-item__time {
  color: #929cab;
}

html[data-theme="dark"] .notification-item__unread {
  box-shadow: 0 0 0 3px rgba(148, 104, 255, 0.14);
}

html[data-theme="dark"] .notification-empty {
  color: #a7afbd;
}

html[data-theme="dark"] .notification-empty svg {
  stroke: #a985ff;
}

html[data-theme="dark"] .notification-empty strong {
  color: #f1f4f8;
}

html[data-theme="dark"] .notification-empty span {
  color: #a7afbd;
}

html[data-theme="dark"] .notification-popover__footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .notification-popover__footer button {
  color: #b091ff;
}

html[data-theme="dark"] .notification-popover__footer button:hover {
  background: rgba(146, 104, 255, 0.12);
  color: #c4afff;
}

/* Reports: complete dark-mode surface contract (layout intentionally unchanged). */
html[data-theme="dark"] .reports-page {
  color: #f8fafc;
}

html[data-theme="dark"] .reports-header h1,
html[data-theme="dark"] .reports-card h2,
html[data-theme="dark"] .reports-state strong,
html[data-theme="dark"] .reports-kpi > strong {
  color: #f8fafc;
}

html[data-theme="dark"] .reports-header p,
html[data-theme="dark"] .reports-controls .date small,
html[data-theme="dark"] .reports-trend small,
html[data-theme="dark"] .reports-unavailable,
html[data-theme="dark"] .reports-empty,
html[data-theme="dark"] .reports-state {
  color: #9aa4b2;
}

html[data-theme="dark"] .reports-controls > button,
html[data-theme="dark"] .reports-controls .date,
html[data-theme="dark"] .reports-card header select,
html[data-theme="dark"] .reports-card header span,
html[data-theme="dark"] .reports-activity header select,
html[data-theme="dark"] .reports-card header h2 button {
  border-color: rgba(255, 255, 255, 0.13);
  background: #111318;
  color: #e8edf4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

html[data-theme="dark"] .reports-controls .date select {
  color: #f8fafc;
  color-scheme: dark;
}

html[data-theme="dark"] .reports-controls button:hover,
html[data-theme="dark"] .reports-controls button:focus-visible,
html[data-theme="dark"] .reports-card header h2 button:hover {
  border-color: rgba(110, 168, 255, 0.65);
  background: #171a21;
  box-shadow: 0 0 0 3px rgba(72, 137, 255, 0.15);
}

html[data-theme="dark"] .reports-controls button.active {
  border-color: #6ea8ff;
  color: #8bb8ff;
}

/* Export is the primary Reports action in both portal themes. */
html .reports-controls > button[data-export],
html[data-theme="dark"] .reports-controls > button[data-export] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 5px 16px #0000000e;
}

html[data-theme="dark"] .reports-kpi,
html[data-theme="dark"] .reports-card,
html[data-theme="dark"] .reports-filter,
html[data-theme="dark"] .reports-state {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0b0d11;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .reports-kpi > span:first-child {
  color: #c6ced9;
}

html[data-theme="dark"] .reports-kpi > i {
  background: rgba(53, 125, 255, 0.16);
  color: #72a9ff;
}

html[data-theme="dark"] .reports-kpi--green > i {
  background: rgba(34, 197, 94, 0.14);
  color: #57d680;
}

html[data-theme="dark"] .reports-kpi--purple > i {
  background: rgba(148, 104, 255, 0.16);
  color: #b093ff;
}

html[data-theme="dark"] .reports-kpi--orange > i {
  background: rgba(255, 138, 31, 0.14);
  color: #ffae62;
}

html[data-theme="dark"] .reports-trend.is-neutral,
html[data-theme="dark"] .reports-legend button,
html[data-theme="dark"] .reports-line-wrap svg text.axis,
html[data-theme="dark"] .reports-columns button small,
html[data-theme="dark"] .reports-donut span small {
  color: #929cab;
  fill: #929cab;
}

html[data-theme="dark"] .reports-line-wrap svg .grid {
  stroke: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .reports-line-wrap svg circle {
  fill: #0b0d11;
}

html[data-theme="dark"] .reports-line-wrap svg text {
  fill: #e5eaf1;
}

html[data-theme="dark"] .reports-columns {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .reports-columns button,
html[data-theme="dark"] .reports-ranking button,
html[data-theme="dark"] .reports-ranking button strong,
html[data-theme="dark"] .reports-donut-row > div button,
html[data-theme="dark"] .reports-status-bars button {
  color: #c7d0dc;
}

html[data-theme="dark"] .reports-ranking button i,
html[data-theme="dark"] .reports-status-bars button i {
  background: #222630;
}

html[data-theme="dark"] .reports-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: #0d0f14;
  color: #c7d0dc;
}

html[data-theme="dark"] .reports-footer:hover {
  background: #14171d;
  color: #ffffff;
}

html[data-theme="dark"] .reports-donut::before {
  background: #0b0d11;
}

html[data-theme="dark"] .reports-activity > header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .reports-activity header nav button,
html[data-theme="dark"] .reports-activity header label,
html[data-theme="dark"] .reports-chip button {
  color: #aab4c2;
}

html[data-theme="dark"] .reports-activity header nav button:hover,
html[data-theme="dark"] .reports-activity header nav button.is-active {
  border-bottom-color: #f8fafc;
  color: #f8fafc;
}

html[data-theme="dark"] .reports-chip span {
  background: rgba(53, 125, 255, 0.16);
  color: #72a9ff;
}

html[data-theme="dark"] .reports-table th {
  color: #929cab;
}

html[data-theme="dark"] .reports-table td {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #c7d0dc;
}

html[data-theme="dark"] .reports-table td .type svg {
  background: rgba(53, 125, 255, 0.16);
  color: #72a9ff;
}

html[data-theme="dark"] .reports-table td .status {
  background: #20242d;
  color: #c9d2de;
}

html[data-theme="dark"] .reports-table td button,
html[data-theme="dark"] .reports-filter footer button {
  border-color: rgba(255, 255, 255, 0.13);
  background: #12151b;
  color: #dbe2eb;
}

html[data-theme="dark"] .reports-table td button:hover,
html[data-theme="dark"] .reports-filter footer button:hover {
  border-color: rgba(110, 168, 255, 0.55);
  background: #1a1e26;
}

html[data-theme="dark"] .reports-filter header,
html[data-theme="dark"] .reports-filter header button {
  color: #f8fafc;
}

html[data-theme="dark"] .reports-filter label {
  color: #aab4c2;
}

html[data-theme="dark"] .reports-filter select,
html[data-theme="dark"] .reports-filter input {
  border-color: rgba(255, 255, 255, 0.13);
  background: #14171d;
  color: #f3f6fa;
  color-scheme: dark;
}

html[data-theme="dark"] .reports-filter footer .primary,
html[data-theme="dark"] .reports-state button {
  border-color: #f8fafc;
  background: #f8fafc;
  color: #090b0e;
}

@media (max-width: 900px) {
  html[data-theme="dark"] .reports-table tr {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  html[data-theme="dark"] .reports-table td::before {
    color: #7f8a99;
  }
}

/* Dashboard-aligned primary page headers (2026-07-15).
   Dashboard is the visual reference: every desktop workspace starts its title
   on the same x/y line and keeps the global utility controls on that same
   fixed top-right baseline. */
@media (min-width: 1181px) {
  :root {
    --app-dashboard-aligned-header-height: 122px;
    --app-dashboard-utility-offset-y: 16px;
  }

  .portal-shell:not(.is-dashboard-view) > .portal-topbar .portal-topbar__controls {
    transform: translateY(var(--app-dashboard-utility-offset-y));
  }

  .portal-dashboard.portal-dashboard:has(.quotations-overview:not([hidden])) {
    padding-top: 0;
  }

  :is(
    .quotations-header.app-page-header,
    .shipment-page-header.app-page-header,
    .chats-hero.app-page-header,
    .reports-header.app-page-header,
    .settings-hero.app-page-header
  ) {
    min-height: var(--app-dashboard-aligned-header-height);
    height: var(--app-dashboard-aligned-header-height);
    padding: var(--app-page-header-block-padding) 0 16px;
  }

  :is(
    .quotations-header__copy.app-page-header__copy,
    .shipment-page-header > .app-page-header__copy,
    .chats-hero > .app-page-header__copy,
    .reports-header > :first-child,
    .settings-hero > :first-child
  ) {
    display: grid;
    grid-template-rows: var(--app-page-eyebrow-height) auto auto;
    align-content: start;
    min-width: 0;
    padding: 0;
  }

  .quotations-header__copy::before {
    content: "";
    display: block;
    grid-row: 1;
    min-height: var(--app-page-eyebrow-height);
    margin: 0 0 var(--app-page-eyebrow-gap);
  }

  .reports-header > :first-child {
    padding: 0;
  }

  .chats-hero > .chats-new-button,
  .quotations-header > .quotation-header-actions,
  .shipment-page-header > .shipment-page-actions {
    align-self: start;
    justify-self: end;
    margin: var(--app-page-title-offset) 0 0;
  }
}

/* Keep the dashboard support CTA readable as one compact label. */
.portal-context-support {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.dashboard-support-card__action {
  border: 0;
  font: inherit;
  cursor: pointer;
  justify-content: center;
  width: auto;
  min-width: 178px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dashboard-support-card__action {
    width: 100%;
    min-width: 0;
  }
}

/* Context-first New Chat wizard. Light is the default surface; dark mode only
   swaps semantic surface tokens so the layout and focus order stay identical. */
.new-chat-dialog--wizard {
  --new-chat-surface: #ffffff;
  --new-chat-surface-soft: #f7f8fa;
  --new-chat-surface-hover: #f0f3f7;
  --new-chat-border: #dfe3e9;
  --new-chat-border-strong: #cbd2dc;
  --new-chat-text: #161a22;
  --new-chat-muted: #6f7785;
  --new-chat-shadow: 0 26px 80px rgba(19, 27, 39, 0.22);
  width: min(520px, 100%);
  max-height: min(720px, calc(100dvh - 48px));
  border-color: var(--new-chat-border);
  background: var(--new-chat-surface);
  color: var(--new-chat-text);
  box-shadow: var(--new-chat-shadow);
}

html[data-theme="dark"] .new-chat-dialog--wizard {
  --new-chat-surface: #080a0d;
  --new-chat-surface-soft: #0e1115;
  --new-chat-surface-hover: #141820;
  --new-chat-border: #252a32;
  --new-chat-border-strong: #343b47;
  --new-chat-text: #f5f7fb;
  --new-chat-muted: #929aa7;
  --new-chat-shadow: 0 26px 90px rgba(0, 0, 0, 0.72);
}

.new-chat-dialog--wizard > header {
  align-items: center;
  padding: 20px;
  border-bottom-color: var(--new-chat-border);
}

.new-chat-dialog--wizard .new-chat-dialog__heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.new-chat-dialog--wizard .new-chat-dialog__heading > div {
  min-width: 0;
}

.new-chat-dialog--wizard h2 {
  color: var(--new-chat-text);
  font-size: var(--portal-type-section);
}

.new-chat-dialog--wizard header p {
  color: var(--new-chat-muted);
  font-size: var(--portal-type-body);
}

.new-chat-dialog--wizard .chat-icon-button {
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
  color: var(--new-chat-text);
}

.new-chat-dialog--wizard .chat-icon-button:hover {
  border-color: var(--new-chat-border);
  background: var(--new-chat-surface-hover);
}

.new-chat-dialog--wizard .new-chat-body {
  gap: 12px;
  padding: 18px 20px 20px;
  background: var(--new-chat-surface);
}

.new-chat-type-list,
.new-chat-target-list {
  display: grid;
  gap: 8px;
}

.new-chat-type-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--new-chat-border);
  border-radius: 10px;
  background: var(--new-chat-surface-soft);
  color: var(--new-chat-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.new-chat-type-card:hover {
  border-color: var(--new-chat-border-strong);
  background: var(--new-chat-surface-hover);
}

.new-chat-type-card:first-child {
  border-color: #1768ff;
  box-shadow: inset 0 0 0 1px rgba(23, 104, 255, 0.08);
}

.new-chat-type-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.new-chat-type-card strong {
  font-size: var(--portal-type-body);
}

.new-chat-type-card small {
  color: var(--new-chat-muted);
  font-size: var(--portal-type-caption);
}

.new-chat-type-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
}

.new-chat-type-card__icon svg,
.new-chat-type-card__arrow svg,
.new-chat-record__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.new-chat-type-card--blue .new-chat-type-card__icon { background: rgba(23, 104, 255, 0.12); color: #1768ff; }
.new-chat-type-card--green .new-chat-type-card__icon { background: rgba(16, 185, 102, 0.12); color: #0baa5b; }
.new-chat-type-card--purple .new-chat-type-card__icon { background: rgba(126, 70, 229, 0.12); color: #8247eb; }
.new-chat-type-card--yellow .new-chat-type-card__icon { background: rgba(232, 171, 0, 0.14); color: #c78e00; }
.new-chat-type-card__arrow,
.new-chat-record__arrow { color: var(--new-chat-muted); }

.new-chat-dialog--wizard .new-chat-search {
  min-height: 40px;
  border-color: var(--new-chat-border);
  background: var(--new-chat-surface-soft);
}

.new-chat-dialog--wizard .new-chat-search input {
  color: var(--new-chat-text);
}

.new-chat-dialog--wizard .new-chat-search input::placeholder {
  color: var(--new-chat-muted);
}

.new-chat-filter-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.new-chat-filter-pills::-webkit-scrollbar { display: none; }

.new-chat-filter-pills button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--new-chat-border);
  border-radius: 7px;
  background: var(--new-chat-surface-soft);
  color: var(--new-chat-text);
  font: inherit;
  font-size: var(--portal-type-body);
  cursor: pointer;
}

.new-chat-filter-pills button.is-active {
  border-color: #1768ff;
  background: #1158d7;
  color: #fff;
}

.new-chat-target-list {
  max-height: 390px;
  overflow: auto;
  padding-right: 2px;
}

.new-chat-employee,
.new-chat-record {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--new-chat-border);
  border-radius: 9px;
  background: var(--new-chat-surface-soft);
  color: var(--new-chat-text);
}

.new-chat-record {
  grid-template-columns: minmax(0, 1fr) auto 20px;
  text-align: left;
  cursor: pointer;
}

.new-chat-record:hover,
.new-chat-employee:hover {
  border-color: var(--new-chat-border-strong);
  background: var(--new-chat-surface-hover);
}

.new-chat-employee > span:nth-child(2),
.new-chat-record > span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.new-chat-employee strong,
.new-chat-record strong { font-size: var(--portal-type-body); }
.new-chat-employee small,
.new-chat-record small {
  overflow: hidden;
  color: var(--new-chat-muted);
  font-size: var(--portal-type-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-chat-employee > button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--new-chat-border);
  border-radius: 7px;
  background: var(--new-chat-surface);
  color: var(--new-chat-text);
  font: inherit;
  font-size: var(--portal-type-body);
  cursor: pointer;
}

.new-chat-employee > button:hover { border-color: #1768ff; }
.new-chat-dialog--wizard button:disabled { opacity: 0.55; cursor: wait; }

.new-chat-dialog--wizard .new-chat-state {
  min-height: 220px;
  color: var(--new-chat-muted);
}

.new-chat-dialog--wizard .new-chat-state button {
  border-color: var(--new-chat-border);
  background: var(--new-chat-surface-soft);
  color: var(--new-chat-text);
}

.new-chat-casual {
  display: grid;
  min-height: 350px;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.new-chat-casual > span {
  margin-bottom: 18px;
  font-size: var(--portal-type-hero);
  filter: drop-shadow(0 10px 24px rgba(232, 171, 0, 0.2));
}

.new-chat-casual strong { font-size: var(--portal-type-body); }
.new-chat-casual p { margin: 0; color: var(--new-chat-muted); font-size: var(--portal-type-body); }
.new-chat-casual .new-chat-primary {
  width: min(320px, 100%);
  min-height: 42px;
  margin-top: 34px;
  border-radius: 8px;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
}

.new-chat-dialog--wizard .new-chat-error {
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
}

.chat-status-badge--purple { background: #f0e8ff; color: #7040c9; }
.chat-status-badge--yellow { background: #fff3cf; color: #946800; }
.chat-status-badge--orange { background: #ffeddc; color: #b45400; }

html[data-theme="dark"] .chat-status-badge--purple { background: #261642; color: #c9a9ff; }
html[data-theme="dark"] .chat-status-badge--yellow { background: #342700; color: #ffd75f; }
html[data-theme="dark"] .chat-status-badge--orange { background: #3b2108; color: #ffad5c; }

@media (max-width: 760px) {
  .new-chat-dialog--wizard {
    width: 100%;
    height: 100dvh;
    max-height: none;
  }

  .new-chat-target-list { max-height: none; }
}

@media (max-width: 480px) {
  .new-chat-type-card { min-height: 68px; padding: 10px; }
  .new-chat-employee { grid-template-columns: 38px minmax(0, 1fr); }
  .new-chat-employee > button { grid-column: 2; justify-self: start; }
}

/* Always-visible Shipments search and filter bar. */
.shipment-filter-bar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(125px, 0.9fr)) auto;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--shipment-border);
  border-radius: var(--app-card-radius, 12px);
  background: var(--shipment-surface);
  box-shadow: var(--shipment-shadow);
}

.shipment-filter-search,
.shipment-filter-select,
.shipment-filter-more__trigger {
  min-width: 0;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid var(--shipment-border);
  border-radius: 8px;
  background: var(--shipment-surface);
  color: #17191f;
}

.shipment-filter-search {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.shipment-filter-search > svg,
.shipment-filter-select > svg,
.shipment-filter-more__trigger > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shipment-filter-search > svg { color: #697180; }

.shipment-filter-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--portal-type-body);
}

.shipment-filter-search input::placeholder { color: #7a8290; opacity: 1; }

.shipment-filter-select {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 8px 11px 6px;
}

.shipment-filter-select > span {
  color: #7a8290;
  font-size: var(--portal-type-body);
  line-height: 1;
}

.shipment-filter-select select {
  width: 100%;
  min-width: 0;
  padding: 3px 22px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}

.shipment-filter-select > svg {
  position: absolute;
  right: 9px;
  bottom: 11px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.shipment-filter-search:focus-within,
.shipment-filter-select:focus-within,
.shipment-filter-more__trigger:focus-visible {
  border-color: #1267ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 103, 255, 0.12);
}

.shipment-filter-more { position: relative; }

.shipment-filter-more__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 98px;
  padding: 0 12px;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}

.shipment-filter-more__trigger:hover,
.shipment-filter-more__trigger.is-active { border-color: #9ea8b7; background: #f7f9fc; }

.shipment-filter-more__trigger b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #1267ff;
  color: #fff;
  font-size: var(--portal-type-body);
}

.shipment-filter-more__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  display: grid;
  width: 220px;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--shipment-border);
  border-radius: 9px;
  background: var(--shipment-surface);
  color: #17191f;
  box-shadow: 0 18px 45px rgba(27, 35, 52, 0.16);
}

.shipment-filter-more__popover strong { font-size: var(--portal-type-body); }
.shipment-filter-more__popover span { color: var(--shipment-muted); font-size: var(--portal-type-body); }
.shipment-filter-more__popover button {
  min-height: 34px;
  margin-top: 5px;
  border: 1px solid var(--shipment-border);
  border-radius: 7px;
  background: transparent;
  color: #1267ff;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}
.shipment-filter-more__popover button:disabled { color: var(--shipment-muted); cursor: not-allowed; }

html[data-theme="dark"] .shipment-filter-search,
html[data-theme="dark"] .shipment-filter-select,
html[data-theme="dark"] .shipment-filter-more__trigger,
html[data-theme="dark"] .shipment-filter-more__popover {
  border-color: rgba(255, 255, 255, 0.1);
  background: #08080a;
  color: #f1f3f6;
}

html[data-theme="dark"] .shipment-filter-search > svg,
html[data-theme="dark"] .shipment-filter-search input::placeholder,
html[data-theme="dark"] .shipment-filter-select > span { color: #89919e; }

html[data-theme="dark"] .shipment-filter-more__trigger:hover,
html[data-theme="dark"] .shipment-filter-more__trigger.is-active { border-color: rgba(255, 255, 255, 0.25); background: #121216; }

html[data-theme="dark"] .shipment-filter-more__popover { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }

@media (max-width: 980px) {
  .shipment-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shipment-filter-search { grid-column: 1 / -1; }
  .shipment-filter-more,
  .shipment-filter-more__trigger { width: 100%; }
}

@media (max-width: 640px) {
  .shipment-filter-bar { grid-template-columns: 1fr; }
  .shipment-filter-search { grid-column: auto; }
  .shipment-filter-more__popover { right: auto; left: 0; width: min(220px, calc(100vw - 48px)); }
}

/* DEV address editor: keep the compact search field in the route, but open
   manual entry as a full-width floating workspace instead of squeezing it
   into one itinerary column. */
.request-card.is-dev-mode .dev-card--itinerary {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.request-card.is-dev-mode .dev-field:has(.movement-address-card.is-manual-address-expanded) {
  z-index: 30;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card.is-manual-address-expanded {
  isolation: auto;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel {
  position: absolute;
  top: calc(100% - 18px);
  left: 26px;
  right: 26px;
  z-index: 1400;
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 160ms;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel.is-expanded {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel-inner {
  display: grid;
  gap: 20px;
  max-height: min(610px, calc(100vh - 128px));
  padding: 22px;
  border: 1px solid #d8e1ed;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.22),
    0 8px 24px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(18px);
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e9f0;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-panel-header > div {
  display: grid;
  gap: 4px;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-panel-header strong {
  color: #101828;
  font-size: var(--portal-type-body);
  line-height: 1.3;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-panel-header span {
  color: #667085;
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-close {
  flex: 0 0 auto;
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  background: #f8fafc;
  color: #344054;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-close span {
  color: inherit;
  font-size: var(--portal-type-section);
  font-weight: 400;
  line-height: 1;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-close:hover {
  border-color: #b9c4d3;
  background: #eef2f7;
  color: #101828;
}

.request-card.is-dev-mode .movement-address-card .address-section__manual-close:focus-visible {
  outline: 2px solid #146ef5;
  outline-offset: 2px;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__field {
  gap: 8px;
  min-width: 0;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__field label {
  display: block;
  color: #475467;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.3;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd8e5;
  border-radius: 9px;
  background: #ffffff;
  color: #101828;
  font-size: var(--portal-type-body);
  box-shadow: none;
}

.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel input:focus {
  border-color: #146ef5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 110, 245, 0.14);
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control
  .movement-address-card .address-section__manual-panel-inner {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 14, 0.985);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.68),
    0 10px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card
  .address-section__manual-panel-header {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card
  .address-section__manual-panel-header strong {
  color: #f5f7fa;
}

html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card
  .address-section__manual-panel-header span,
html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control
  .movement-address-card .address-section__field label {
  color: #a4acb9;
}

html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card
  .address-section__manual-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: #17171a;
  color: #d9dde5;
}

html[data-theme="dark"] .request-card.is-dev-mode .movement-address-card
  .address-section__manual-close:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: #202024;
  color: #ffffff;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control
  .movement-address-card .address-section__manual-panel input {
  border-color: rgba(255, 255, 255, 0.14);
  background: #111114;
  color: #f5f7fa;
  color-scheme: dark;
}

html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control
  .movement-address-card .address-section__manual-panel input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

@media (max-width: 900px) {
  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel {
    position: fixed;
    top: 50%;
    left: 16px;
    right: 16px;
    transform: translateY(calc(-50% - 8px)) scale(0.985);
  }

  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel.is-expanded {
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 640px) {
  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel-inner {
    gap: 16px;
    max-height: calc(100vh - 32px);
    padding: 18px;
  }

  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__top-grid,
  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__detail-grid {
    grid-template-columns: 1fr;
  }

  .request-card.is-dev-mode .dev-field__control .movement-address-card :is(
    .address-span-4,
    .address-span-3,
    .address-span-2,
    .address-span-1
  ) {
    grid-column: 1;
  }
}

/* Keep the selected DEV modality neutral in dark mode. This final lock sits
   after the shared button cascade so generic DEV focus/active rules cannot
   restore the old blue fill or the icon tile. */
html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected,
html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected:hover,
html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected:focus-visible {
  border-color: #ffffff !important;
  background-color: #f3f4f6 !important;
  background-image: none !important;
  color: #111827 !important;
}

html[data-theme="dark"] .quotations-create-view.is-dev-mode
  .dev-itinerary__mode .choice-card--mode.is-selected .choice-card__icon {
  background-color: transparent !important;
  background-image: none !important;
  color: #111827 !important;
  box-shadow: none !important;
}

/* Submitted quotation confirmation */
.portal-dashboard > .success-panel {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: min(100%, var(--app-page-max-width));
  min-height: calc(100dvh - var(--app-utility-row-height, 76px) - 54px);
  margin-inline: auto;
  padding: clamp(30px, 6vh, 72px) 18px;
}

.success-panel .success-card {
  display: grid;
  justify-items: center;
  width: min(100%, 720px);
  max-width: 720px;
  margin: 0;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  text-align: center;
}

.success-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 1px solid rgba(17, 151, 81, 0.18);
  border-radius: 999px;
  background: #eaf9f0;
  color: #128147;
  box-shadow: 0 12px 28px rgba(18, 129, 71, 0.12);
}

.success-card__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card__copy {
  max-width: 590px;
}

.success-card__eyebrow {
  color: #128147;
  font-size: var(--portal-type-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-panel .success-card h2 {
  margin: 9px 0 0;
  color: #101318;
  font-size: var(--portal-type-subheading);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.success-panel .success-card__copy > p {
  margin: 14px auto 0;
  max-width: 58ch;
  color: #68707c;
  font-size: var(--portal-type-body);
  line-height: 1.65;
}

.success-card__reference {
  width: min(100%, 520px);
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #e2e5e9;
  border-radius: 14px;
  background: #f6f7f8;
  text-align: left;
}

.success-card__reference > span {
  display: block;
  color: #727985;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.success-card__reference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
}

.success-card__reference-row strong {
  min-width: 0;
  overflow: hidden;
  color: #111318;
  font-size: var(--portal-type-page);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-card__copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d7dbe0;
  border-radius: 9px;
  background: #ffffff;
  color: #20242a;
  font: inherit;
  font-size: var(--portal-type-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.success-card__copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card__copy-button:hover {
  border-color: #bfc5cc;
  background: #fbfbfc;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.09);
}

.success-card__copy-button.is-copied {
  border-color: rgba(18, 129, 71, 0.3);
  background: #eaf9f0;
  color: #128147;
}

.success-card__copy-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.success-card__copy-button:focus-visible,
.success-card__actions .button:focus-visible {
  outline: 3px solid rgba(18, 103, 255, 0.28);
  outline-offset: 3px;
}

.success-panel .success-card__copy-status {
  min-height: 18px;
  margin: 5px 0 -8px;
  color: #128147;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.3;
}

.success-card__next-step {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(100%, 520px);
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fafafa;
  text-align: left;
}

.success-card__next-step-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eceff2;
  color: #353b44;
}

.success-card__next-step-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card__next-step strong {
  color: #1b1e23;
  font-size: var(--portal-type-body);
}

.success-panel .success-card__next-step p {
  margin: 3px 0 0;
  color: #737a85;
  font-size: var(--portal-type-body);
  line-height: 1.45;
}

.success-panel .success-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 520px);
  margin-top: 24px;
}

.success-panel .success-card__actions .button {
  min-height: 46px;
  margin: 0;
  padding-inline: 18px;
  border-radius: 10px;
  white-space: nowrap;
}

html[data-theme="dark"] .portal-dashboard > .success-panel {
  background: transparent;
}

html[data-theme="dark"] .success-panel .success-card {
  border-color: rgba(255, 255, 255, 0.11);
  background: #0c0d0f;
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .success-card__icon {
  border-color: rgba(66, 211, 132, 0.22);
  background: rgba(38, 176, 99, 0.14);
  color: #65dc9b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .success-card__eyebrow,
html[data-theme="dark"] .success-panel .success-card__copy-status {
  color: #65dc9b;
}

html[data-theme="dark"] .success-panel .success-card h2,
html[data-theme="dark"] .success-card__reference-row strong,
html[data-theme="dark"] .success-card__next-step strong {
  color: #f7f8fa;
}

html[data-theme="dark"] .success-panel .success-card__copy > p,
html[data-theme="dark"] .success-card__reference > span,
html[data-theme="dark"] .success-panel .success-card__next-step p {
  color: #9aa1ac;
}

html[data-theme="dark"] .success-card__reference {
  border-color: rgba(255, 255, 255, 0.11);
  background: #141619;
}

html[data-theme="dark"] .success-card__copy-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: #202328;
  color: #f3f4f6;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .success-card__copy-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #282b30;
}

html[data-theme="dark"] .success-card__copy-button.is-copied {
  border-color: rgba(101, 220, 155, 0.28);
  background: rgba(38, 176, 99, 0.15);
  color: #65dc9b;
}

html[data-theme="dark"] .success-card__next-step {
  background: #111316;
}

html[data-theme="dark"] .success-card__next-step-icon {
  background: #25282d;
  color: #e1e4e8;
}

@media (max-width: 700px) {
  .portal-dashboard > .success-panel {
    min-height: auto;
    padding: 22px 0 32px;
  }

  .success-panel .success-card {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .success-card__reference-row {
    align-items: stretch;
    flex-direction: column;
  }

  .success-card__copy-button {
    width: 100%;
  }

  .success-panel .success-card__actions {
    grid-template-columns: 1fr;
  }
}

/* Settings profile accordions and spacious preferences layout */
.settings-subsection-stack > .settings-collapsible-card,
.settings-subsection-stack > .settings-collapsible-card:nth-child(2),
.settings-subsection-stack > .settings-preferences-card {
  min-height: 0;
  height: auto;
  margin-bottom: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.settings-collapsible-card__header,
.settings-preferences-card > .settings-collapsible-card__header {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
}

.settings-collapsible-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 74px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.settings-collapsible-card__toggle:hover {
  background: #fafbfc;
}

.settings-collapsible-card__toggle:focus-visible {
  outline: 3px solid rgba(18, 103, 255, 0.24);
  outline-offset: -3px;
}

.settings-collapsible-card__toggle .settings-section-heading {
  min-width: 0;
}

.settings-collapsible-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-collapsible-card__copy h4 {
  margin: 0;
  color: #14171b;
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  line-height: 1.2;
}

.settings-collapsible-card__copy p {
  margin: 0;
  overflow: hidden;
  color: #7b818b;
  font-size: var(--portal-type-body);
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-collapsible-card__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 62px;
  color: #656c76;
  font-size: var(--portal-type-body);
  font-weight: 700;
}

.settings-collapsible-card__indicator svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.settings-collapsible-card.is-expanded .settings-collapsible-card__indicator svg {
  transform: rotate(180deg);
}

.settings-collapsible-card__body[hidden] {
  display: none !important;
}

.settings-collapsible-card__body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  border-top: 1px solid #eceef1;
}

.settings-collapsible-card__toolbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.settings-collapsible-card__toolbar .button {
  margin: 0;
}

.settings-collapsible-card .settings-working-hours {
  margin: 0;
}

.settings-preferences-card .settings-collapsible-card__body {
  padding-top: 18px;
}

.settings-preferences-card .settings-preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.settings-preferences-card .settings-preference-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 142px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  background: #fafbfc;
}

.settings-preferences-card fieldset.settings-preference-group {
  min-inline-size: 0;
}

.settings-preferences-card .settings-preference-group > :is(legend, strong),
.settings-preferences-card .settings-preference-group.field > span {
  margin: 0;
  padding: 0;
  color: #343941;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.3;
}

.settings-preferences-card .settings-preference-group.field > select {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding-inline: 13px 38px;
  border-radius: 9px;
  background-color: #ffffff;
  font-size: var(--portal-type-body);
}

.settings-preferences-card .settings-preference-group.field > small {
  margin: 0;
  color: #858c96;
  font-size: var(--portal-type-caption);
  line-height: 1.5;
}

.settings-preferences-card .settings-theme-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-preferences-card .settings-theme-selector span {
  min-height: 84px;
  border-radius: 10px;
  background: #ffffff;
  font-size: var(--portal-type-subheading);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.settings-preferences-card .settings-theme-selector small {
  color: #59606a;
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.settings-preferences-card .settings-theme-selector input:checked + span {
  border-color: #17191d;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #17191d, 0 7px 18px rgba(15, 23, 42, 0.08);
}

.settings-preferences-card .settings-quick-preferences {
  gap: 7px;
}

.settings-preferences-card .settings-quick-preferences label {
  min-height: 34px;
  padding: 5px 2px;
  border-bottom: 1px solid #eceef1;
  color: #545b65;
  font-size: var(--portal-type-body);
}

.settings-preferences-card .settings-quick-preferences label:last-child {
  border-bottom: 0;
}

.settings-preferences-card .settings-quick-preferences input[role="switch"] {
  flex: 0 0 34px;
  width: 34px;
  height: 20px;
}

.settings-preferences-card .settings-quick-preferences input[role="switch"]::after {
  width: 16px;
  height: 16px;
}

.settings-preferences-card .settings-quick-preferences input[role="switch"]:checked::after {
  transform: translateX(14px);
}

html[data-theme="dark"] .settings-collapsible-card__toggle:hover {
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .settings-collapsible-card__copy h4 {
  color: #f4f6f8;
}

html[data-theme="dark"] .settings-collapsible-card__copy p,
html[data-theme="dark"] .settings-collapsible-card__indicator {
  color: #9ba2ad;
}

html[data-theme="dark"] .settings-collapsible-card__body {
  border-top-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .settings-preferences-card .settings-preference-group {
  border-color: rgba(255, 255, 255, 0.1);
  background: #141619;
}

html[data-theme="dark"] .settings-preferences-card .settings-preference-group > :is(legend, strong),
html[data-theme="dark"] .settings-preferences-card .settings-preference-group.field > span {
  color: #e8ebef;
}

html[data-theme="dark"] .settings-preferences-card .settings-preference-group.field > select,
html[data-theme="dark"] .settings-preferences-card .settings-theme-selector span {
  border-color: rgba(255, 255, 255, 0.13);
  background: #202329;
  color: #f3f4f6;
}

html[data-theme="dark"] .settings-preferences-card .settings-theme-selector small,
html[data-theme="dark"] .settings-preferences-card .settings-quick-preferences label {
  color: #c2c7cf;
}

html[data-theme="dark"] .settings-preferences-card .settings-theme-selector input:checked + span {
  border-color: #f8fafc;
  background: #2a2d32;
  box-shadow: inset 0 0 0 1px #f8fafc, 0 8px 20px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .settings-preferences-card .settings-quick-preferences label {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .settings-preferences-card .settings-preferences-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .settings-collapsible-card__toggle {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .settings-collapsible-card__copy p {
    white-space: normal;
  }

  .settings-collapsible-card__indicator > span {
    display: none;
  }

  .settings-collapsible-card__body {
    padding: 0 14px 14px;
  }

  .settings-collapsible-card__toolbar {
    justify-content: stretch;
  }

  .settings-collapsible-card__toolbar .button {
    width: 100%;
  }

  .settings-preferences-card .settings-theme-selector {
    grid-template-columns: 1fr;
  }

  .settings-preferences-card .settings-theme-selector span {
    min-height: 58px;
  }
}

/* Settings notifications: spacious, professional toggle cards */
#settings-notifications {
  gap: 18px;
}

#settings-notifications .settings-panel__header {
  margin-bottom: 2px;
}

#settings-notifications .settings-panel__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#settings-notifications .settings-toggle-list {
  gap: 14px;
  align-items: stretch;
}

#settings-notifications .settings-toggle-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 100px;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 16px;
  border-color: rgba(15, 15, 16, 0.09);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 15, 16, 0.025);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#settings-notifications .settings-toggle-row:hover {
  border-color: rgba(15, 15, 16, 0.17);
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft) 6%);
  box-shadow: 0 10px 24px rgba(15, 15, 16, 0.05);
  transform: translateY(-1px);
}

#settings-notifications .settings-toggle-row > span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

#settings-notifications .settings-toggle-row strong {
  display: block;
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

#settings-notifications .settings-toggle-row small {
  display: block;
  max-width: 34rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  line-height: 1.55;
}

#settings-notifications .settings-toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 15, 16, 0.16);
  border-radius: 999px;
  background: #d6dae0;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

#settings-notifications .settings-toggle-row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 15, 16, 0.22);
  transition: transform 160ms ease;
}

#settings-notifications .settings-toggle-row input[type="checkbox"]:checked {
  border-color: #22bd5e;
  background: #22bd5e;
}

#settings-notifications .settings-toggle-row input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

#settings-notifications .settings-toggle-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px rgba(34, 189, 94, 0.38);
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: #16181c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1b1e23;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row strong {
  color: #f2f4f7;
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row small {
  color: #aeb4bd;
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.2);
  background: #41464f;
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row input[type="checkbox"]:checked {
  border-color: #22bd5e;
  background: #22bd5e;
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row input[type="checkbox"]:checked::before {
  background: #fff;
}

html[data-theme="dark"] #settings-notifications .settings-toggle-row input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px #16181c, 0 0 0 5px rgba(34, 189, 94, 0.5);
}

@media (max-width: 900px) {
  #settings-notifications .settings-toggle-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #settings-notifications .settings-toggle-row {
    min-height: 88px;
  }
}

@media (max-width: 520px) {
  #settings-notifications .settings-toggle-row {
    gap: 14px;
    padding: 16px;
  }

  #settings-notifications .settings-toggle-row small {
    font-size: var(--portal-type-caption);
  }
}

/* Profile-owned workspace preferences */
.settings-personal-workspace-preferences {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(15, 15, 16, 0.1);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft) 8%);
}

.settings-personal-workspace-preferences__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.settings-personal-workspace-preferences__header h5 {
  margin: 0;
  color: var(--brand);
  font-size: var(--portal-type-subheading);
  line-height: 1.3;
}

.settings-personal-workspace-preferences__header p {
  max-width: 38rem;
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.5;
}

.settings-personal-workspace-preferences__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(15, 15, 16, 0.1);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  font-weight: 700;
}

.settings-personal-workspace-preferences__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-personal-workspace-preferences__fields .field {
  min-width: 0;
}

.settings-personal-workspace-preferences__fields :is(input, select) {
  min-height: 46px;
}

.settings-personal-workspace-preferences__mode {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.settings-personal-workspace-preferences__mode legend {
  margin-bottom: 10px;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-personal-workspace-preferences__toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-personal-workspace-preferences__toggles .settings-toggle-row {
  min-height: 82px;
  align-items: center;
  padding: 14px;
}

.settings-personal-workspace-preferences__toggles .settings-toggle-row input {
  margin-top: 0;
}

.settings-personal-workspace-preferences__toggles .settings-toggle-row > span {
  display: grid;
  gap: 4px;
}

.settings-personal-workspace-preferences__toggles .settings-toggle-row strong,
.settings-personal-workspace-preferences__toggles .settings-toggle-row small {
  display: block;
}

html[data-theme="dark"] .settings-personal-workspace-preferences {
  border-color: rgba(255, 255, 255, 0.1);
  background: #141619;
}

html[data-theme="dark"] .settings-personal-workspace-preferences__header h5 {
  color: #f2f4f7;
}

html[data-theme="dark"] .settings-personal-workspace-preferences__badge {
  border-color: rgba(255, 255, 255, 0.13);
  background: #202329;
  color: #c4c9d0;
}

@media (max-width: 900px) {
  .settings-personal-workspace-preferences__fields,
  .settings-personal-workspace-preferences__toggles {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-personal-workspace-preferences__toggles .settings-toggle-row {
    min-height: 72px;
  }
}

@media (max-width: 520px) {
  .settings-personal-workspace-preferences {
    margin-top: 14px;
    padding: 16px;
  }

  .settings-personal-workspace-preferences__header {
    align-items: flex-start;
  }
}

/* Billing VAT validation */
.settings-billing-vat-field {
  position: relative;
  z-index: 5;
  align-content: start;
  isolation: isolate;
}

.settings-vat-validation-control {
  position: relative;
  display: block;
  min-width: 0;
}

.settings-vat-validation-control > input {
  width: 100%;
  padding-right: 48px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.settings-vat-validation-indicator {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.settings-vat-validation-indicator svg {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-vat-validation-control[data-state="checking"] .settings-vat-validation-indicator::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid color-mix(in srgb, var(--ink-muted) 28%, transparent);
  border-top-color: var(--ink-muted);
  border-radius: 50%;
  animation: settings-vat-validation-spin 700ms linear infinite;
}

.settings-view .settings-vat-validation-control[data-state="valid"] > input {
  border-color: #35a365;
  background: color-mix(in srgb, #e9f8ef 42%, var(--surface) 58%);
  box-shadow: 0 0 0 3px rgba(53, 163, 101, 0.09);
}

.settings-vat-validation-control[data-state="valid"] .settings-vat-validation-indicator {
  color: #16834a;
}

.settings-vat-validation-control[data-state="valid"] .settings-vat-validation-indicator__check {
  display: block;
}

.settings-view .settings-vat-validation-control[data-state="invalid"] > input {
  border-color: #d25353;
  background: color-mix(in srgb, #fff0f0 44%, var(--surface) 56%);
  box-shadow: 0 0 0 3px rgba(210, 83, 83, 0.08);
}

.settings-vat-validation-control[data-state="invalid"] .settings-vat-validation-indicator {
  color: #c23f3f;
}

.settings-vat-validation-control[data-state="invalid"] .settings-vat-validation-indicator__cross {
  display: block;
}

.settings-vat-validation-control[data-state="unavailable"] .settings-vat-validation-indicator::before {
  content: "!";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #b47b24;
  border-radius: 50%;
  color: #946213;
  font-size: 0.7rem;
  font-weight: 700;
}

.settings-vat-validation-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 9px);
  right: 0;
  width: min(420px, calc(100vw - 48px));
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 15, 16, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 15, 16, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transform: translateY(-5px);
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
}

.settings-billing-vat-field:hover .settings-vat-validation-popover,
.settings-billing-vat-field:focus-within .settings-vat-validation-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-vat-validation-popover__arrow {
  position: absolute;
  top: -6px;
  right: 20px;
  width: 11px;
  height: 11px;
  border-top: 1px solid rgba(15, 15, 16, 0.12);
  border-left: 1px solid rgba(15, 15, 16, 0.12);
  background: inherit;
  transform: rotate(45deg);
}

.settings-vat-validation-status {
  display: block;
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  line-height: 1.5;
}

.settings-vat-validation-status:empty {
  display: none;
}

.settings-vat-validation-popover[data-state="valid"] .settings-vat-validation-status {
  color: #16834a;
}

.settings-vat-validation-popover[data-state="invalid"] .settings-vat-validation-status {
  color: #bd3939;
}

.settings-vat-validation-popover[data-state="unavailable"] .settings-vat-validation-status {
  color: #946213;
}

.settings-vat-validation-details {
  display: grid;
  gap: 3px;
  padding: 1px 0;
  border: 0;
}

.settings-vat-validation-details[hidden] {
  display: none;
}

.settings-vat-validation-details strong {
  color: #126d3d;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.settings-vat-validation-details small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: var(--portal-type-caption);
  line-height: 1.55;
  white-space: pre-line;
}

html[data-theme="dark"] .settings-view .settings-vat-validation-control[data-state="valid"] > input {
  border-color: #4fbd7b;
  background: rgba(32, 93, 58, 0.22);
  color: #f1f5f2;
}

html[data-theme="dark"] .settings-vat-validation-control[data-state="valid"] .settings-vat-validation-indicator,
html[data-theme="dark"] .settings-vat-validation-popover[data-state="valid"] .settings-vat-validation-status {
  color: #74d79b;
}

html[data-theme="dark"] .settings-view .settings-vat-validation-control[data-state="invalid"] > input {
  border-color: #da6969;
  background: rgba(116, 39, 39, 0.2);
  color: #f7f1f1;
}

html[data-theme="dark"] .settings-vat-validation-control[data-state="invalid"] .settings-vat-validation-indicator,
html[data-theme="dark"] .settings-vat-validation-popover[data-state="invalid"] .settings-vat-validation-status {
  color: #f08b8b;
}

html[data-theme="dark"] .settings-vat-validation-popover[data-state="unavailable"] .settings-vat-validation-status,
html[data-theme="dark"] .settings-vat-validation-control[data-state="unavailable"] .settings-vat-validation-indicator::before {
  color: #e2b56d;
  border-color: #a8782f;
}

html[data-theme="dark"] .settings-vat-validation-popover {
  border-color: rgba(255, 255, 255, 0.13);
  background: #202329;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .settings-vat-validation-popover__arrow {
  border-color: rgba(255, 255, 255, 0.13);
}

html[data-theme="dark"] .settings-vat-validation-details strong {
  color: #9ae5b8;
}

html[data-theme="dark"] .settings-vat-validation-details small {
  color: #c7cbd1;
}

@keyframes settings-vat-validation-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-vat-validation-control[data-state="checking"] .settings-vat-validation-indicator::before {
    animation-duration: 1400ms;
  }
}

@media (max-width: 640px) {
  .settings-vat-validation-popover {
    right: auto;
    left: 0;
    width: min(360px, calc(100vw - 40px));
  }

  .settings-vat-validation-popover__arrow {
    right: auto;
    left: 20px;
  }
}

/* Match the Quotations header controls to the Shipments action group. */
.quotation-header-actions {
  --shipment-border: #e2e6ec;
  --shipment-surface: #ffffff;
  flex-wrap: nowrap;
}

.quotation-header-date-control {
  display: block;
  height: var(--app-header-action-height, 42px);
}

.quotation-header-actions #new-quote-button {
  min-width: 154px;
  min-height: var(--app-header-action-height, 42px);
  height: var(--app-header-action-height, 42px);
  margin: 0;
  padding: 0 17px;
  border: 1px solid #050505;
  border-radius: 8px;
  background: #050505;
  color: #ffffff;
  font-size: var(--portal-type-body);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
  filter: none;
  transform: none;
}

.quotation-header-actions #new-quote-button:hover,
.quotation-header-actions #new-quote-button:focus-visible {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
  filter: none;
  transform: none;
}

.quotation-header-actions .shipment-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .quotation-header-actions #new-quote-button {
  border-color: #f3f4f6;
  background: #f3f4f6;
  color: #070707;
  box-shadow: none;
}

html[data-theme="dark"] .quotation-header-actions {
  --shipment-border: rgba(255, 255, 255, 0.12);
  --shipment-surface: #070707;
}

html[data-theme="dark"] .quotation-header-actions #new-quote-button:hover,
html[data-theme="dark"] .quotation-header-actions #new-quote-button:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #070707;
  box-shadow: none;
}

@media (max-width: 760px) {
  .quotation-header-actions {
    flex-wrap: wrap;
  }

  .quotation-header-actions #new-quote-button {
    width: 100%;
    min-width: 0;
  }
}

/* Keep quotation route endpoints compact and align each city with its own IATA code. */
.quotation-page-route {
  --quotation-route-endpoint-width: 36px;
  --quotation-route-city-max-width: 100px;
  display: inline-grid;
  grid-template-columns:
    var(--quotation-route-endpoint-width)
    12px
    var(--quotation-route-endpoint-width);
  align-items: start;
  justify-content: start;
  column-gap: 7px;
  width: calc(
    var(--quotation-route-endpoint-width)
    + var(--quotation-route-endpoint-width)
    + 26px
  );
  max-width: 100%;
}

.quotation-page-route > span {
  display: grid;
  /* City labels may overflow, but must not widen the airport-code track. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: start;
  align-content: start;
  gap: 3px;
  width: var(--quotation-route-endpoint-width);
  max-width: var(--quotation-route-endpoint-width);
  min-width: 0;
}

.quotation-page-route__endpoint:first-child {
  justify-items: end;
}

.quotation-page-route__endpoint:last-child {
  justify-items: start;
}

.quotation-page-route strong,
.quotation-page-route small {
  display: block;
  padding-left: 0;
  border-left: 0;
  line-height: 1.2;
  text-align: left;
}

.quotation-page-route strong {
  width: 100%;
  max-width: var(--quotation-route-endpoint-width);
  white-space: nowrap;
}

.quotation-page-route__endpoint:first-child strong,
.quotation-page-route__endpoint:first-child small {
  text-align: right;
}

.quotation-page-route small {
  width: max-content;
  max-width: var(--quotation-route-city-max-width);
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.quotation-page-route > span:last-child small {
  padding-left: 0;
  border-left: 0;
}

.quotation-page-route i {
  align-self: start;
  justify-self: center;
  line-height: 1;
  transform: translateY(0.05em);
}

.quotation-page-row__mode > span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  white-space: nowrap;
}

.quotation-page-row__mode .shipment-mode-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  overflow: visible;
  color: currentColor;
  stroke-width: 2;
  transition: color 150ms ease;
}

.quotation-page-row__mode small {
  min-width: 0;
}

.quotation-page-row:hover .shipment-mode-icon,
.quotation-page-row:focus-visible .shipment-mode-icon {
  color: #111318;
}

html[data-theme="dark"] .quotation-page-row:hover .shipment-mode-icon,
html[data-theme="dark"] .quotation-page-row:focus-visible .shipment-mode-icon {
  color: #ffffff;
}

/* Keep the Shipments overview inside the page scroll context.
   The table must contract to the available desktop width instead of creating
   a nested horizontal or vertical scrolling surface. */
.portal-dashboard.portal-dashboard--shipments,
.portal-dashboard.portal-dashboard--shipments > .portal-main,
.portal-dashboard.portal-dashboard--shipments #shipments-main,
.shipments-view,
.shipments-root,
.shipments-page,
.shipments-overview-page,
.shipment-overview-content,
.shipment-table-card,
.shipment-table-scroll {
  height: auto;
  max-height: none;
  overflow: visible;
}

.portal-dashboard.portal-dashboard--shipments {
  min-height: 100vh;
}

.shipment-table-scroll {
  width: 100%;
  max-width: none;
  overscroll-behavior: auto;
}

.shipment-table {
  width: 100%;
  min-width: 0;
}

.shipment-col-number { width: 10.5%; }
.shipment-col-quotation { width: 8.5%; }
.shipment-col-route { width: 8.5%; }
.shipment-col-mode { width: 10.5%; }
.shipment-col-status { width: 9.5%; }
.shipment-col-etd { width: 8%; }
.shipment-col-eta { width: 8%; }
.shipment-col-progress { width: 16%; }
.shipment-col-docs { width: 5%; }
.shipment-col-action { width: 12%; }
.shipment-col-menu { width: 3%; }

.shipment-table th,
.shipment-table td {
  padding-right: clamp(5px, 0.65vw, 10px);
  padding-left: clamp(5px, 0.65vw, 10px);
}

.shipment-open-button {
  width: 100%;
  min-width: 0;
  padding-inline: 7px;
}

.shipment-progress {
  grid-template-columns: minmax(42px, 1fr) 30px;
  gap: 6px;
}

@media (max-width: 1180px) {
  .shipment-table {
    font-size: var(--portal-type-body);
  }

  .shipment-table th {
    font-size: var(--portal-type-caption);
  }

  .shipment-mode {
    gap: 6px;
  }

  .shipment-mode .shipment-mode-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .shipment-status {
    max-width: 100%;
    padding-inline: 6px;
    font-size: var(--portal-type-body);
  }

  .shipment-open-button {
    font-size: var(--portal-type-body);
  }
}

/* Keep desktop shipment KPIs as compact as the quotation overview so the
   shipment rows remain the primary content on screen. */
@media (min-width: 1181px) {
  .shipment-kpi-grid {
    gap: var(--app-page-section-gap);
  }

  .shipment-kpi-card {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: 1fr 26px;
    gap: 7px 12px;
    height: 126px;
    min-height: 126px;
    padding: 14px 14px 10px;
  }

  .shipment-icon-tile {
    width: 46px;
    height: 46px;
    border-radius: 9px;
  }

  .shipment-icon-tile svg {
    width: 21px;
    height: 21px;
  }

  .shipment-kpi-card > div > span {
    min-height: 28px;
    font-size: var(--portal-type-caption);
    line-height: 1.2;
  }

  .shipment-kpi-card strong {
    margin-top: 5px;
    font-size: var(--portal-type-metric);
  }

  .shipment-kpi-card small {
    margin-top: 6px;
    font-size: var(--portal-type-caption);
    line-height: 1.25;
  }

  .shipment-sparkline {
    height: 26px;
  }
}

/* Subtle alternating quotation rows improve horizontal scanning. */
.quotation-page-table tbody .quotation-page-row {
  background: #ffffff;
  transition: background-color 150ms ease;
}

.quotation-page-table tbody .quotation-page-row > td {
  background: transparent;
  box-shadow: none;
}

.quotation-page-table tbody .quotation-page-row:nth-child(even) {
  background: #f6f7f9;
}

.quotation-page-table tbody .quotation-page-row:hover {
  background: #edf2f8;
}

.quotation-page-table tbody .quotation-page-row.is-selected {
  background: #fffaf1;
}

html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row {
  background: #070707;
}

html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row:nth-child(even) {
  background: #0d0e11;
}

html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row:hover {
  background: #141b26;
}

html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row.is-selected {
  background: #081326;
}

@media (max-width: 760px) {
  .quotation-page-table tbody .quotation-page-row:nth-child(even) {
    background: #f6f7f9;
  }

  .quotation-page-table tbody .quotation-page-row:hover {
    background: #edf2f8;
  }

  .quotation-page-table tbody .quotation-page-row.is-selected {
    background: #fffaf1;
  }

  html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row:nth-child(even) {
    background: #0d0e11;
  }

  html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row:hover {
    background: #141b26;
  }

  html[data-theme="dark"] .quotation-page-table tbody .quotation-page-row.is-selected {
    background: #081326;
  }
}


/* Shipment document actions and native, keyboard-accessible preview dialog. */
.shipment-documents .shipment-document-row { grid-template-columns: minmax(0, 1.4fr) minmax(80px, .8fr) minmax(90px, .8fr) 76px; gap: 12px; padding: 8px 5px; }
.shipment-document-name { overflow-wrap: anywhere; }
.shipment-document-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.shipment-document-actions .shipment-icon-button { width: 34px; height: 34px; }
.shipment-document-preview { width: min(960px, calc(100vw - 32px)); max-width: none; height: min(840px, calc(100dvh - 40px)); max-height: none; margin: auto; padding: 20px; border: 1px solid var(--shipment-border); border-radius: 14px; background: var(--shipment-surface); color: var(--shipment-text); }
.shipment-document-preview[open] { display: flex; flex-direction: column; gap: 16px; }
.shipment-document-preview::backdrop { background: rgba(7, 10, 14, .66); }
.shipment-document-preview header, .shipment-document-preview footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shipment-document-preview h2 { margin: 0; font-size: var(--portal-type-section); overflow-wrap: anywhere; }
.shipment-document-preview footer { justify-content: flex-end; }
.shipment-document-preview-content { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; color: var(--shipment-muted); }
.shipment-document-preview-content iframe { width: 100%; height: 100%; border: 0; background: white; }
.shipment-document-preview-content img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .shipment-documents .shipment-document-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 0; }
  .shipment-documents .shipment-document-head { display: none; }
  .shipment-document-name { font-weight: 600; }
  .shipment-document-preview { width: calc(100vw - 16px); height: calc(100dvh - 24px); padding: 12px; }
}


/* Black Settings surfaces: keep section separation without grey backplates or glow. */
html[data-theme="dark"] .settings-view {
  --settings-black-surface: #080808;
  --settings-black-field: #101010;
  --settings-black-border: #262626;
  background: #000;
  color: #f5f5f5;
}

html[data-theme="dark"] .settings-view :is(.settings-hero, .settings-panel) {
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .settings-view :is(
  .settings-sidebar__card, .settings-panel__header, .settings-subsection-card,
  .settings-help-card, .settings-profile-card, .settings-preview-card,
  .settings-utility-card, .settings-build-card, .settings-personal-workspace-preferences,
  .settings-preferences-card .settings-preference-group, .settings-working-hours,
  .settings-toggle-row, .settings-activity-item, .settings-security-meter,
  .settings-logo-uploader, .settings-logo-uploader__preview, .settings-empty-state,
  .settings-employee-editor__summary, .settings-employee-details__grid div,
  .settings-role-grid article
) {
  background: var(--settings-black-surface);
  border-color: var(--settings-black-border);
  box-shadow: none;
}

html[data-theme="dark"] .settings-view .settings-sidebar__link {
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .settings-view .settings-sidebar__link:is(.is-active, :hover, :focus-visible) {
  background: #181818;
  color: #fff;
}

html[data-theme="dark"] .settings-view .settings-sidebar__link.is-active::before {
  background: #e5e5e5;
}

html[data-theme="dark"] .settings-view :is(
  .field input, .field select, .field textarea, .frontend-select__trigger,
  .frontend-select__menu, .settings-workday-row__time input,
  .settings-preferences-card .settings-theme-selector span,
  .settings-section-heading__icon, .settings-save-indicator,
  .settings-personal-workspace-preferences__badge
) {
  background: var(--settings-black-field);
  border-color: #303030;
  color: #ededed;
  box-shadow: none;
}

html[data-theme="dark"] .settings-view :is(
  .field input, .field select, .field textarea, .frontend-select__trigger,
  .settings-sidebar__link
):focus-visible {
  outline: 2px solid #9a9a9a;
  outline-offset: 3px;
}

html[data-theme="dark"] .settings-view :is(
  .field > span, .settings-profile-card > span, .settings-workday-row__day
) {
  color: #c4c4c4;
}

html[data-theme="dark"] .settings-view :is(
  .settings-hero p, .settings-panel__header p, .settings-subsection-card__header p,
  .settings-sidebar__profile span, .settings-profile-card > small, .settings-help-card p
) {
  color: #a3a3a3;
}

html[data-theme="dark"] .settings-view .settings-preferences-card .settings-theme-selector input:checked + span {
  background: #181818;
  border-color: #dedede;
  box-shadow: inset 0 0 0 1px #dedede;
}

html[data-theme="dark"] .settings-view #settings-notifications .settings-toggle-row {
  background: var(--settings-black-surface);
  border-color: var(--settings-black-border);
  box-shadow: none;
}

html[data-theme="dark"] .settings-view #settings-notifications .settings-toggle-row:hover {
  background: #111;
  border-color: #383838;
  box-shadow: none;
}

/* Published customer options retain the drawer's cards and theme. */
.quotation-drawer__offer[data-canonical-option] {
  display: grid;
  width: 100%;
  gap: 6px;
  text-align: left;
  color: inherit;
  font: inherit;
}
.quotation-drawer__offer[data-canonical-option] p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: var(--portal-type-body);
}
.quotation-drawer__offer[data-canonical-option] small {
  font-size: var(--portal-type-caption);
}
.quotation-drawer__offer[data-canonical-option]:disabled {
  cursor: default;
  opacity: 1;
  transform: none;
}

.quotation-drawer__customer-offer > p {
  margin: 0;
  font-size: var(--portal-type-body);
  color: var(--ink-muted);
}
.quotation-drawer__offer[data-canonical-option] .quotation-drawer__section-head {
  width: 100%;
}

/* Transport legend beside the quotation table's Mode heading. */
.quotation-mode-help { display: inline-flex; margin-left: 3px; vertical-align: middle; }
.quotation-mode-help__button {
  display: inline-grid; place-items: center; width: 16px; height: 16px;
  padding: 0; border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; font: 600 11px Georgia, serif;
  cursor: help;
}
.quotation-mode-help__button:focus-visible { outline: 2px solid #2768ff; outline-offset: 3px; }
.quotation-mode-legend {
  position: fixed; inset: auto; margin: 0; padding: 14px 16px;
  width: 205px; max-width: calc(100vw - 16px); box-sizing: border-box;
  /* Top-layer flex children must size to their content, never the viewport. */
  height: max-content; min-height: 0; max-height: calc(100dvh - 16px);
  align-self: start; justify-self: start; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-card);
  font: 500 12px/1.4 var(--font-sans, sans-serif); text-align: left;
}
.quotation-mode-legend:popover-open { display: grid; grid-auto-rows: max-content; align-content: start; gap: 11px; }
.quotation-mode-legend__row { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.quotation-mode-legend__row .shipment-mode-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; }
.quotations-table__sortable-header:has(.quotation-mode-help) .quotations-table__sort-indicator[data-sort-direction="none"] {
  display: none;
}

/* Position in the same coordinate system as the info button, also when zoomed. */
@supports (anchor-name: --quotation-mode-info) and (top: anchor(bottom)) {
  .quotation-mode-help__button { anchor-name: --quotation-mode-info; }
  .quotation-mode-legend {
    position-anchor: --quotation-mode-info;
    top: calc(anchor(bottom) + 6px);
    left: anchor(left);
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
  }
}

/* The transport label follows the pointer, above table overflow and row layers. */
.quotation-mode-hover { display: inline-flex; align-items: center; cursor: default; }
.quotation-mode-hover:focus-visible { outline: 2px solid #2768ff; outline-offset: 4px; border-radius: 3px; }
.quotation-mode-tooltip {
  position: fixed; inset: auto; margin: 0; padding: 7px 10px;
  width: max-content; height: max-content; min-height: 0;
  max-width: calc(100vw - 16px); box-sizing: border-box;
  align-self: start; justify-self: start;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card);
  font: 500 12px/1.4 var(--font-sans, sans-serif);
  pointer-events: none;
}

/* Outgoing message receipts must contrast with the blue bubble in both themes. */
.chat-message--own .chat-message__bubble > span > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  color: #fff;
  opacity: 1;
  font-size: var(--portal-type-body);
  font-weight: 700;
  line-height: 1;
}

/* Read receipts use green; neutral ticks remain white on outgoing blue bubbles. */
.chat-message--own .chat-message__bubble > span > i.is-read { color: #86efac; }
.quotation-drawer__message-status--sent,
.quotation-drawer__message-status--delivered { color: #526174; }
.quotation-drawer__message-status--read { color: #15723d; }
html[data-theme="dark"] .quotation-drawer__message-status--sent,
html[data-theme="dark"] .quotation-drawer__message-status--delivered { color: #e2e8f0; }
html[data-theme="dark"] .quotation-drawer__message-status--read { color: #86efac; }

/* Customer airline comparison: restore carrier identities and a clear price hierarchy. */
.quotation-drawer__customer-offer {
  container: quotation-offers / inline-size;
  gap: 12px;
  padding: 14px;
}
.quotation-drawer__customer-offer > .quotation-drawer__section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.quotation-offer-count { color: var(--ink-muted); font-size: var(--portal-type-body); white-space: nowrap; }
.quotation-drawer__customer-offer .quotation-drawer__offers-list { gap: 9px; }
.quotation-airline-option {
  display: grid; gap: 10px; width: 100%; min-width: 0; padding: 12px 14px;
  border: 1px solid #e2e6ec; border-radius: 16px; background: #fff;
  color: #17202d; font: inherit; text-align: left; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.quotation-airline-option:not(:disabled):not(.is-selected):hover { border-color: #9babbe; box-shadow: 0 4px 14px rgba(20, 39, 68, .06); }
.quotation-airline-option.is-selected { border-color: #396ee8; background: #f8faff; box-shadow: 0 0 0 1px #396ee8; }
.quotation-airline-option:focus-visible { outline: 3px solid #5a88ef; outline-offset: 3px; }
.quotation-airline-option:disabled { opacity: 1; cursor: default; }
.quotation-airline-option__top { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; }
.quotation-airline-option__identity { display: flex; gap: 10px; align-items: center; min-width: 0; }
.quotation-airline-option__logo {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 64px;
  width: 64px; height: 44px; padding: 6px; box-sizing: border-box;
  border: 1px solid #e9ebef; border-radius: 10px; background: #fff; color: #334155;
  font-size: var(--portal-type-body); font-weight: 700;
}
.quotation-airline-option__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.quotation-airline-option__name { display: grid; gap: 5px; min-width: 0; }
.quotation-airline-option__name > strong { font-size: var(--portal-type-body); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.quotation-airline-option__name > span { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: var(--portal-type-body); color: #64748b; }
.quotation-airline-option__badge { display: inline-flex; padding: 2px 6px; border-radius: 5px; background: #f0f2f5; color: #596577; font-size: var(--portal-type-caption); font-weight: 600; line-height: 1.25; }
.quotation-airline-option__price { display: grid; gap: 3px; justify-items: end; }
.quotation-airline-option__price small,
.quotation-airline-option__fact small,
.quotation-airline-option__schedule small { font-size: var(--portal-type-caption); font-weight: 400; line-height: 1.4; color: #697789; }
.quotation-airline-option__price > strong { font-size: var(--portal-type-subheading); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quotation-airline-option__selection { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #bcc5d2; border-radius: 50%; font-size: var(--portal-type-body); font-weight: 700; }
.is-selected > .quotation-airline-option__top > .quotation-airline-option__selection { background: #3267df; border-color: #3267df; color: #fff; }
.quotation-airline-option__facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; border-top: 1px solid #e9edf3; padding-top: 8px; }
.quotation-airline-option__fact { display: grid; align-content: start; gap: 3px; font-size: var(--portal-type-body); }
.quotation-airline-option__fact > strong { font-weight: 600; }
.quotation-airline-option__route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--portal-type-body); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.quotation-airline-option__arrow { color: #8995a5; font-weight: 400; }
.quotation-airline-option__schedule { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--portal-type-body); }
.quotation-airline-option__note { font-size: var(--portal-type-body); line-height: 1.6; color: #617084; white-space: pre-line; overflow-wrap: anywhere; }
.quotation-offer-alternative-note { margin: 0; padding: 10px 12px; border-radius: 8px; color: #385582; background: #edf3ff; font-size: var(--portal-type-body); line-height: 1.5; }
.quotation-offer-breakdown { display: grid; gap: 10px; font-size: var(--portal-type-body); }
.quotation-offer-breakdown h4 { margin: 0; font-size: var(--portal-type-subheading); }
.quotation-offer-breakdown > div { display: flex; justify-content: space-between; gap: 20px; }
.quotation-offer-breakdown strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quotation-offer-terms { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--portal-type-body); line-height: 1.5; color: var(--ink-muted); }
.quotation-offer-terms > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
.quotation-offer-terms > div > span:first-child { font-weight: 600; }
html[data-theme="dark"] .quotation-airline-option { background: #15171b; border-color: #333841; color: #f2f4f8; }
html[data-theme="dark"] .quotation-airline-option.is-selected { background: #161f30; border-color: #7098ff; box-shadow: 0 0 0 1px #7098ff; }
html[data-theme="dark"] .quotation-airline-option:not(:disabled):not(.is-selected):hover { border-color: #8192ad; }
html[data-theme="dark"] .quotation-airline-option__name > span,
html[data-theme="dark"] .quotation-airline-option__price small,
html[data-theme="dark"] .quotation-airline-option__fact small,
html[data-theme="dark"] .quotation-airline-option__schedule small,
html[data-theme="dark"] .quotation-airline-option__note { color: #a9b5c8; }
html[data-theme="dark"] .quotation-airline-option__badge { color: #c0cada; background: #2b3039; }
html[data-theme="dark"] .quotation-airline-option__facts { border-color: #343b47; }
html[data-theme="dark"] .quotation-offer-alternative-note { background: #1b2c48; color: #b4cfff; }
@container quotation-offers (max-width: 470px) {
  .quotation-airline-option { padding: 12px; gap: 10px; }
  .quotation-airline-option__top { grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; }
  .quotation-airline-option__price { grid-column: 1; grid-row: 2; justify-items: start; }
  .quotation-airline-option__selection { grid-column: 2; grid-row: 1; }
  .quotation-airline-option__price > strong { font-size: var(--portal-type-subheading); }
  .quotation-airline-option__logo { flex-basis: 64px; width: 64px; height: 44px; }
  .quotation-airline-option__name > strong { font-size: var(--portal-type-body); }
  .quotation-offer-terms > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Match the characteristics and color families in the backend airline table. */
.quotation-airline-option__badge { border: 1px solid transparent; }
.quotation-airline-option__badge--best-price { background: #e6f6e9; color: #16703a; border-color: #b9dfc2; }
.quotation-airline-option__badge--direct-flight { background: #eaf3fd; color: #155fa9; border-color: #bdd6f4; }
.quotation-airline-option__badge--indirect-flight { background: #fff4e3; color: #9a5a10; border-color: #efd3a9; }
.quotation-airline-option__badge--fastest-route { background: #f1edff; color: #6545b5; border-color: #cfc6f1; }
html[data-theme="dark"] .quotation-airline-option__badge--best-price { background: #203525; color: #80d49a; border-color: #31573a; }
html[data-theme="dark"] .quotation-airline-option__badge--direct-flight { background: #202f3d; color: #89bff1; border-color: #31516f; }
html[data-theme="dark"] .quotation-airline-option__badge--indirect-flight { background: #382d21; color: #e8b56e; border-color: #644c2e; }
html[data-theme="dark"] .quotation-airline-option__badge--fastest-route { background: #2f2942; color: #c3b1f2; border-color: #514475; }

/* Compact quotation review chrome leaves more room for the offered options. */
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__topbar {
  min-height: 56px; padding: 9px 16px;
}
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__brand-logo { height: 30px; }
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__context { padding: 10px 16px; }
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__header-copy { gap: 5px; }
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__header h2 { font-size: var(--portal-type-subheading); line-height: 1; }
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__eyebrow { min-height: 21px; padding: 0 8px; font-size: var(--portal-type-caption); }
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__body { padding: 10px 16px; }
.quotation-drawer__panel:has(.quotation-drawer__customer-offer) .quotation-drawer__footer { padding: 9px 16px 11px; }

/* Selection details can change without replacing the airline cards or logos. */
.quotation-offer-selection-details { display: contents; }

/* Compact quote specifications, aligned with the airline comparison cards. */
.quotation-drawer__details-panel.quotation-specs {
  container: quote-specs / inline-size;
  padding: 16px; gap: 14px; border-radius: 18px;
  background: #fff; border-color: #e2e6ec; color: #17202d;
}
.quotation-specs__heading h3 { margin: 0; font-size: var(--portal-type-subheading); font-weight: 700; letter-spacing: -.02em; }
.quotation-specs dl { margin: 0; }
.quotation-specs dt { color: #697789; font-size: var(--portal-type-body); font-weight: 500; line-height: 1.4; }
.quotation-specs dd { margin: 5px 0 0; font-size: var(--portal-type-body); line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.quotation-specs__overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 12px 14px; background: #f7f9fc; border: 1px solid #e9edf3; border-radius: 12px; }
.quotation-specs__route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 14px; }
.quotation-specs__route > div { text-align: center; }
.quotation-specs__route dd { font-size: var(--portal-type-subheading); font-weight: 700; letter-spacing: -.02em; }
.quotation-specs__arrow { align-self: end; padding-bottom: 4px; color: #8995a5; font-size: 18px; }
.quotation-specs__load { border-left: 1px solid #e2e6ec; padding-left: 18px; align-content: start; }
.quotation-specs__load dd { font-size: var(--portal-type-body); font-variant-numeric: tabular-nums; }
.quotation-specs__metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 14px; }
.quotation-specs__field { min-width: 0; align-content: start; }
.quotation-specs__addresses { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
.quotation-specs__address-field { display: grid; grid-template-rows: subgrid; grid-row: span var(--address-rows, 5); margin: 0; min-width: 0; }
.quotation-specs__address-field dt { padding-bottom: 5px; }
.quotation-specs__address-field dd, .quotation-specs__address { display: contents; }
.quotation-specs__address { margin: 0; font-style: normal; font-weight: 500; line-height: 1.65; }
.quotation-specs__address-company, .quotation-specs__address-line { display: block; min-width: 0; overflow-wrap: anywhere; line-height: 1.65; }
.quotation-specs__address-company { font-weight: 700; }
@container quote-specs (max-width: 280px) {
  .quotation-specs__addresses { grid-column: 1; grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .quotation-specs__address-field { display: block; }
}
.quotation-specs .quotation-drawer__reference-display { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.quotation-specs .quotation-drawer__reference-edit-button { padding: 3px 8px; border: 1px solid #dce3ed; border-radius: 6px; background: #f7f9fc; color: #435774; font-size: var(--portal-type-body); font-weight: 600; line-height: 1.5; }
.quotation-specs .quotation-drawer__reference-edit-button:hover { background: #eaf1ff; border-color: #b8cef5; color: #2458ba; }
.quotation-specs .quotation-drawer__reference-editor { gap: 8px; }
.quotation-specs .quotation-drawer__reference-field input { box-sizing: border-box; min-width: 0; font-size: var(--portal-type-body); }
html[data-theme="dark"] .quotation-drawer__details-panel.quotation-specs { background: #15171b; border-color: #333841; color: #f2f4f8; }
html[data-theme="dark"] .quotation-specs dt { color: #a9b5c8; }
html[data-theme="dark"] .quotation-specs__overview { background: #1a1e25; border-color: #343b47; }
html[data-theme="dark"] .quotation-specs__load { border-color: #343b47; }
html[data-theme="dark"] .quotation-specs .quotation-drawer__reference-edit-button { background: #202b3d; border-color: #394b67; color: #b4cbf5; }
html[data-theme="dark"] .quotation-specs .quotation-drawer__reference-edit-button:hover { background: #2c3f60; border-color: #7098ff; color: #e5edff; }
@container quote-specs (max-width: 480px) {
  .quotation-specs__overview { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quotation-specs__load { border-left: 0; border-top: 1px solid #e2e6ec; padding: 10px 0 0; }
  .quotation-specs__metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container quote-specs (max-width: 280px) {
  .quotation-specs__metadata { grid-template-columns: minmax(0, 1fr); }
}

.quotation-specs__mode { display: inline-flex; align-items: center; gap: 7px; }
.quotation-specs__mode svg { width: 18px; height: 18px; flex: 0 0 18px; }
.quotation-specs__badge { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: var(--portal-type-caption); font-weight: 600; background: #f1f4f8; color: #43536a; line-height: 1.5; }
.quotation-specs__badge--warning { background: #fff3e1; color: #985710; }
.quotation-specs__badge--cool { background: #eaf2ff; color: #255caf; }
.quotation-specs__badge--muted { color: #697789; }
html[data-theme="dark"] .quotation-specs__badge { background: #252c37; color: #c3cedf; }
html[data-theme="dark"] .quotation-specs__badge--warning { background: #382d21; color: #e8b56e; }
html[data-theme="dark"] .quotation-specs__badge--cool { background: #202f45; color: #9ec2ff; }

/* Explicit, keyboard-accessible agreement before accepting a customer offer. */
.quotation-consent { min-width: 0; margin: 4px 0 0; padding: 14px; border: 1px solid #e2e6ec; border-radius: 12px; background: #fff; color: #17202d; }
.quotation-consent legend { padding: 0 6px; font-size: var(--portal-type-body); font-weight: 600; }
.quotation-consent__row { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 0; }
.quotation-consent__row + .quotation-consent__row { margin-top: 4px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.quotation-consent__check { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 19px; height: 19px; min-width: 19px; margin: 1px 0 0; padding: 0; border: 1.5px solid #acb8ca; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: none; }
.quotation-consent__check::after { content: ''; width: 8px; height: 4px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.quotation-consent__check:checked { background: #3267df; border-color: #3267df; }
.quotation-consent__check:checked::after { opacity: 1; }
.quotation-consent__check:focus-visible { outline: 3px solid #8ab0ff; outline-offset: 3px; }
.quotation-consent__check:disabled { cursor: default; opacity: .5; }
.quotation-consent__copy { display: grid; gap: 4px; min-width: 0; }
.quotation-consent__copy label, .quotation-consent__copy > strong { font-size: var(--portal-type-body); font-weight: 600; line-height: 1.5; cursor: pointer; }
.quotation-consent__copy > div { color: #697789; font-size: var(--portal-type-body); line-height: 1.5; overflow-wrap: anywhere; }
.quotation-consent__link { color: #315ea8; text-decoration: underline; text-decoration-color: #bdcee9; text-underline-offset: 3px; }
.quotation-consent__link:hover { color: #184ba4; text-decoration-color: currentColor; }
.quotation-consent__link:focus-visible { outline: 2px solid #5687ec; outline-offset: 3px; border-radius: 2px; }
.quotation-consent__link svg { display: inline-block; width: 11px; height: 11px; margin-left: 5px; vertical-align: -1px; }
.quotation-consent__status { margin: 2px 0 10px; padding: 10px 12px; border: 1px solid #efd3a9; border-radius: 8px; background: #fff6e8; color: #854c0d; font-size: var(--portal-type-caption); line-height: 1.5; }
.quotation-consent__status[hidden] { display: none; }
.quotation-consent__check[aria-invalid="true"] { border-color: #bf7c28; box-shadow: 0 0 0 3px rgba(191, 124, 40, .1); }
.quotation-consent--readonly .quotation-consent__row { grid-template-columns: minmax(0, 1fr); }
html[data-theme="dark"] .quotation-consent { background: #15171b; border-color: #343b47; color: #f2f4f8; }
html[data-theme="dark"] .quotation-consent__row + .quotation-consent__row { border-color: #303640; }
html[data-theme="dark"] .quotation-consent__check { background: #1a1e25; border-color: #7c8ca6; }
html[data-theme="dark"] .quotation-consent__check:checked { background: #4779eb; border-color: #7098ff; }
html[data-theme="dark"] .quotation-consent__copy > div,
html[data-theme="dark"] .quotation-consent__status { color: #a9b5c8; }
html[data-theme="dark"] .quotation-consent__link { color: #a6c6ff; text-decoration-color: #536d94; }
html[data-theme="dark"] .quotation-consent__link:hover { color: #d7e6ff; }

html[data-theme="dark"] .quotation-consent__status { background: #34291c; border-color: #725330; color: #f0c48b; }
html[data-theme="dark"] .quotation-consent__check[aria-invalid="true"] { border-color: #e8b56e; }
#quotation-drawer-book[data-consent-required="true"]:not(:disabled) { opacity: .65; cursor: pointer; }
#quotation-drawer-book[data-consent-required="true"]:not(:disabled):hover,
#quotation-drawer-book[data-consent-required="true"]:focus-visible { opacity: 1; }

/* Informational chat milestones, visually distinct from user messages. */
.chat-system-milestone { display:flex; align-items:center; justify-content:center; gap:6px; margin:4px auto; padding:5px 9px; max-width:90%; border:1px solid #cbd5e1; border-radius:7px; background:#f1f5f9; color:#475569; font-size: var(--portal-type-body); line-height:1.4; text-align:center; }
.chat-system-milestone p { margin:0; overflow-wrap:anywhere; }
.chat-system-milestone > span { color:#16814b; flex:none; }
.chat-system-milestone svg { width:16px; height:16px; }
[data-theme="dark"] .chat-system-milestone, .dark .chat-system-milestone { background:#1e293b; border-color:#475569; color:#e2e8f0; }
[data-theme="dark"] .chat-system-milestone > span, .dark .chat-system-milestone > span { color:#86efac; }

/* Acceptance confirmation shares the portal's light/dark surfaces and actions. */
.quotation-accept-dialog {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  height: fit-content;
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}
.quotation-accept-dialog::backdrop { background: rgba(15, 20, 28, .42); backdrop-filter: blur(5px); }
.quotation-accept-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.quotation-accept-dialog__eyebrow { display: block; margin-bottom: 6px; color: var(--ink-muted); font-size: var(--portal-type-caption); font-weight: 600; }
.quotation-accept-dialog h2 { margin: 0; font-size: var(--portal-type-section); line-height: 1.3; letter-spacing: -.4px; }
.quotation-accept-dialog button { border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--ink); padding: 11px 16px; font: inherit; font-size: var(--portal-type-body); font-weight: 600; cursor: pointer; }
.quotation-accept-dialog .quotation-accept-dialog__close { flex-shrink: 0; width: 34px; height: 34px; padding: 0; font-size: var(--portal-type-section); font-weight: 400; }
.quotation-accept-dialog__body { padding: 20px 24px 24px; }
.quotation-accept-dialog__body > p { margin: 0 0 20px; color: var(--ink-muted); font-size: var(--portal-type-body); line-height: 1.65; }
.quotation-accept-dialog label { display: block; margin-bottom: 8px; font-size: var(--portal-type-body); font-weight: 600; }
.quotation-accept-dialog label span { color: var(--ink-muted); font-weight: 400; }
.quotation-accept-dialog input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: var(--portal-type-body); }
.quotation-accept-dialog input:focus-visible, .quotation-accept-dialog button:focus-visible { outline: 2px solid #3969e8; outline-offset: 3px; }
.quotation-accept-dialog input[aria-invalid="true"] { border-color: var(--danger-text); }
.quotation-accept-dialog__body .quotation-accept-dialog__error { color: var(--danger-text); margin: 10px 0 0; }
.quotation-accept-dialog__reference { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); font-size: var(--portal-type-body); }
.quotation-accept-dialog__reference span { color: var(--ink-muted); }
.quotation-accept-dialog__reference strong { overflow-wrap: anywhere; text-align: right; }
.quotation-accept-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.quotation-accept-dialog .quotation-accept-dialog__submit { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* Distinguish alternatives by their surface, preserving logo and badge colours. */
.quotation-airline-option.is-unaccepted { background: #f0f1f3; }
html[data-theme="dark"] .quotation-airline-option.is-unaccepted { background: #25272b; }
.quotation-drawer__accepted-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #b9dfc2;
  border-radius: 999px;
  background: #e6f6e9;
  color: #166534;
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.quotation-drawer__accepted-status[hidden] { display: none; }
html[data-theme="dark"] .quotation-drawer__accepted-status { background: #203525; color: #91e0aa; border-color: #396346; }

/* One persistent navigation bar for every compact portal view. */
@media (max-width: 1180px) {
  .portal-shell { --portal-mobile-bar-height: calc(68px + env(safe-area-inset-top, 0px)); padding-top: var(--portal-mobile-bar-height); }
  #portal-app-shell > .portal-topbar,
  html[data-theme="dark"] #portal-app-shell > .portal-topbar {
    display: flex;
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    width: 100%;
    height: var(--portal-mobile-bar-height);
    min-height: var(--portal-mobile-bar-height);
    max-height: var(--portal-mobile-bar-height);
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 12px;
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    background: #080808;
    color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
  }
  html .portal-shell > .portal-topbar .portal-brand { display: inline-flex; flex: 0 0 90px; width: 90px; max-width: 90px; margin: 0; padding: 0; }
  html .portal-shell > .portal-topbar .portal-brand__logo { display: block; width: 90px; height: 52px; object-fit: contain; }
  html .portal-shell > .portal-topbar .portal-sidebar-toggle {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #202020;
    color: #fff;
    border: 1px solid #454545;
    box-shadow: none;
  }
  html .portal-shell > .portal-topbar .portal-sidebar-toggle:hover { background: #303030; }
  html .portal-shell > .portal-topbar .portal-sidebar-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  #portal-app-shell > .portal-topbar .portal-notification-button { display: inline-grid !important; color: #fff; background: #202020; border-color: #454545; }
  #portal-app-shell > .portal-topbar .portal-theme-toggle { display: inline-flex !important; }
  #portal-app-shell > .portal-topbar .portal-topbar__icon-button--settings { display: none !important; }
  #portal-app-shell > .portal-topbar [hidden] { display: none !important; }
  .portal-shell > .portal-topbar .portal-topbar__utility { flex: 1 1 auto; min-width: 0; }
  .portal-shell > .portal-topbar .portal-topbar__controls { flex: 1 1 auto; gap: 8px; transform: none; }
  .portal-shell > .portal-sidebar { top: var(--portal-mobile-bar-height); height: calc(100dvh - var(--portal-mobile-bar-height)); }
  .portal-shell > .portal-sidebar-backdrop { top: var(--portal-mobile-bar-height); }
  .portal-shell.is-dashboard-view .dashboard-hero__action-group:empty { display: none; }
}
@media (max-width: 430px) {
  .portal-shell > .portal-topbar .portal-internal-switch { display: none; }
}

/* Identity images retain their aspect ratio; photographs use a circular crop. */
.chat-avatar--image > span { visibility: hidden; }
.chat-avatar--image > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.chat-avatar--photo { border-radius: 50%; }
.chat-avatar--company { background: #fff; border: 1px solid #dfe4ec; }
.chat-avatar--brand { background: #080808; border: 1px solid #303030; }
.chat-avatar--company > img, .chat-avatar--brand > img { object-fit: contain; padding: 5px; box-sizing: border-box; }
.chat-message--own > .chat-avatar { order: 2; }

/* Sender labels belong to the first bubble in each consecutive message group. */
.chat-message__bubble .chat-message__sender { justify-content: flex-start; margin: 0 0 4px; padding: 0; }
.chat-message__bubble .chat-message__sender strong { font-size: var(--portal-type-body); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
html:not([data-theme="dark"]) .chat-message__bubble .chat-message__sender strong { color: #315d9c; }
html[data-theme="dark"] .chat-message__bubble .chat-message__sender strong { color: #a7c4ff; }
html:not([data-theme="dark"]) .chat-message--own .chat-message__bubble .chat-message__sender strong { color: #fff; }
html[data-theme="dark"] .chat-message--own .chat-message__bubble .chat-message__sender strong { color: #c6dcff; }

/* Compact message rhythm, with the time alongside the final line of text. */
.chat-message { gap: 7px; margin-bottom: 8px; }
.chat-message .chat-avatar { width: 26px; min-width: 26px; height: 26px; font-size: .52rem; }
.chat-message__content { gap: 4px; }
.chat-message__bubble { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 8px; row-gap: 2px; padding: 7px 9px; border-radius: 8px; }
.chat-message__bubble .chat-message__sender { grid-column: 1 / -1; margin-bottom: 1px; }
.chat-message__bubble .chat-message__sender strong { font-size: var(--portal-type-body); }
.chat-message__bubble p { line-height: 1.4; overflow-wrap: anywhere; }
.chat-message__bubble > span { margin-top: 0; gap: 4px; white-space: nowrap; }

/* Close each sender group with one avatar and a small matching bubble tail. */
.chat-message .chat-avatar, .chat-avatar-spacer { align-self: flex-end; }
.chat-avatar-spacer { flex: 0 0 26px; width: 26px; height: 1px; }
.chat-message--own > .chat-avatar-spacer { order: 2; }
.chat-message:not(.chat-message--group-end) { margin-bottom: 4px; }
.chat-message__bubble { position: relative; }
.chat-message--group-end .chat-message__bubble { border-bottom-left-radius: 2px; }
.chat-message--group-end .chat-message__bubble::before { content: ""; position: absolute; bottom: 0; left: -6px; width: 8px; height: 10px; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.chat-message--group-end.chat-message--own .chat-message__bubble { border-bottom-left-radius: 8px; border-bottom-right-radius: 2px; }
.chat-message--group-end.chat-message--own .chat-message__bubble::before { left: auto; right: -6px; clip-path: polygon(0 0, 100% 100%, 0 100%); }

.chat-document-list .chat-linked-document { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 6px; }
.chat-document-list .chat-linked-document > .chat-linked-document__download { display: grid; place-items: center; grid-template-columns: 1fr; width: 28px; min-height: 32px; padding: 4px; }
.chat-linked-document__download svg { width: 15px; height: 15px; }
.chat-linked-document button:disabled { opacity: .5; cursor: default; }

/* The header reflects the same live participant roster as the details panel. */
.chat-header-participants { display: flex; align-items: center; isolation: isolate; padding-right: 4px; }
.chat-header-participants__person { position: relative; display: flex; }
.chat-header-participants__person + .chat-header-participants__person,
.chat-header-participants__more { margin-left: -9px; }
.chat-header-participants .chat-avatar,
.chat-header-participants__more { width: 30px; min-width: 30px; height: 30px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; font-size: .6rem; }
.chat-header-participants__person:hover { z-index: 1; }
.chat-header-participants__more { position: relative; display: grid; place-items: center; background: #edf0f5; color: #495569; font-weight: 600; }
html[data-theme="dark"] .chat-header-participants .chat-avatar,
html[data-theme="dark"] .chat-header-participants__more { border-color: #161a21; }
html[data-theme="dark"] .chat-header-participants__more { background: #303846; color: #e4e9f2; }
@media (max-width: 760px) {
  .chat-thread-header__actions { flex-wrap: wrap; justify-content: flex-end; max-width: 78px; }
  .chat-header-participants { flex-basis: 100%; justify-content: flex-end; padding-right: 0; }
  .chat-header-participants .chat-avatar,
  .chat-header-participants__more { width: 24px; min-width: 24px; height: 24px; font-size: .5rem; }
  .chat-header-participants__person + .chat-header-participants__person,
  .chat-header-participants__more { margin-left: -11px; }
}

/* Public participant profile, available on hover, keyboard focus and tap. */
.chat-header-participants__trigger { display: flex; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.chat-header-participants__trigger:focus-visible { outline: 2px solid #3568e8; outline-offset: 2px; }
.chat-participant-profile { position: absolute; z-index: 2; top: calc(100% + 10px); right: 0; display: grid; gap: 4px; width: max-content; min-width: 185px; max-width: 230px; padding: 12px 14px; border: 1px solid #e2e6ed; border-radius: 12px; background: #fff; color: #18202d; box-shadow: 0 8px 24px rgba(20, 30, 48, .14); text-align: left; white-space: normal; overflow-wrap: anywhere; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms ease; }
.chat-participant-profile::before { content: ""; position: absolute; right: 9px; top: -5px; width: 8px; height: 8px; background: inherit; border-left: inherit; border-top: inherit; transform: rotate(45deg); }
.chat-participant-profile strong { font-size: var(--portal-type-body); font-weight: 600; line-height: 1.4; }
.chat-participant-profile > span { font-size: var(--portal-type-body); line-height: 1.4; color: #596578; }
.chat-participant-profile small { margin-top: 4px; padding-top: 8px; border-top: 1px solid #edf0f4; color: #596578; font-size: var(--portal-type-caption); line-height: 1.4; }
.chat-header-participants__person:is(:hover, :focus-within) { z-index: 3; }
.chat-header-participants__person:is(:hover, :focus-within) .chat-participant-profile { visibility: visible; opacity: 1; }
html[data-theme="dark"] .chat-participant-profile { border-color: #343b47; background: #1b2029; color: #f1f4f9; }
html[data-theme="dark"] .chat-participant-profile > span,
html[data-theme="dark"] .chat-participant-profile small { color: #b8c3d3; border-color: #343b47; }
@media (prefers-reduced-motion: reduce) { .chat-participant-profile { transition: none; } }

.chat-participant-profile__company { display: flex; align-items: center; gap: 9px; }
.chat-participant-profile__company .chat-avatar { flex: 0 0 80px; width: 80px; min-width: 80px; height: 44px; border: 1px solid #e2e6ed; border-radius: 6px; font-size: .6rem; background: #fff; color: #344054; }
.chat-participant-profile__company .chat-avatar--brand { background: #080808; }
.chat-participant-profile__company .chat-avatar > img { object-fit: contain; padding: 5px; }
.chat-participant-profile__company > span:last-child { min-width: 0; }

html[data-theme="dark"] .chat-participant-profile__company .chat-avatar--company { background: #fff; }
/* Full customer frontend opened from Partners with a server-enforced read-only grant. */
.portal-readonly-preview-notice { position: fixed; z-index: 100000; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: min(760px,calc(100vw - 28px)); padding: 12px 14px; border: 1px solid #b7cbe5; border-radius: 14px; background: #f8fbff; color: #17263c; box-shadow: 0 12px 42px #10213930; font: 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.portal-readonly-preview-notice strong { white-space: nowrap; color: #0966c5; }
.portal-readonly-preview-notice span { flex: 1; }
.portal-readonly-preview-notice button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #b7cbe5; border-radius: 9px; background: #fff; color: #0966c5; font: inherit; font-weight: 600; cursor: pointer; }
html[data-theme="dark"] .portal-readonly-preview-notice { background: #252527; color: #f0f1f3; border-color: #48484f; }
html[data-theme="dark"] .portal-readonly-preview-notice strong { color: #a5caff; }
html[data-theme="dark"] .portal-readonly-preview-notice button { background: #303034; color: #a5caff; border-color: #48484f; }
@media(max-width:700px) { .portal-readonly-preview-notice { flex-wrap: wrap; gap: 6px 10px; bottom: 10px; } .portal-readonly-preview-notice strong,.portal-readonly-preview-notice span { flex-basis: 100%; } }

/* Customer Settings: calm grouped surfaces and recognizable section colors. */
.settings-view {
  --settings-line: #e7e9ee;
  --settings-shadow: 0 8px 28px rgba(24, 39, 65, .045);
  max-width: 1260px;
  gap: 16px;
  align-content: start;
  padding-top: 0;
  left: auto;
  color: #1b1d23;
}
.settings-view :is(.settings-sidebar__card, .settings-panel__header, .settings-subsection-card) {
  border: 1px solid var(--settings-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--settings-shadow);
}
.settings-view .settings-hero { border: 0; background: transparent; box-shadow: none; }
.settings-view .settings-hero h2 { color: #101115; }
.settings-view .settings-hero p { color: #717784; }
.settings-view .settings-hero__actions .button { border-radius: 11px; font-size: var(--portal-type-body); font-weight: 700; }
.settings-view .settings-hero__actions .button--primary:not(:disabled) { background: #17181b; color: #fff; }
.settings-view .settings-save-indicator { border-color: var(--settings-line); border-radius: 11px; color: #596170; background: #fff; }
.settings-view .settings-shell { grid-template-columns: 228px minmax(0, 1fr); gap: 18px; }
.settings-view .settings-sidebar__card { min-height: 0; padding: 20px 13px 14px; }
.settings-view .settings-sidebar__eyebrow { color: #9298a3; font-size: var(--portal-type-caption); letter-spacing: .12em; }
.settings-view .settings-sidebar__profile { padding: 15px 8px 18px; margin: 0 0 8px; border-bottom: 1px solid var(--settings-line); }
.settings-view .settings-sidebar__profile strong { color: #20232a; font-size: var(--portal-type-body); }
.settings-view .settings-sidebar__profile span { color: #7d8490; font-size: var(--portal-type-body); font-weight: 500; }
.settings-view .settings-sidebar__nav { gap: 3px; }
.settings-view .settings-sidebar__link {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  min-height: 43px;
  padding: 4px 9px;
  border-radius: 11px;
  color: #525a68;
  font-size: var(--portal-type-body);
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease;
}
.settings-view .settings-sidebar__link::before { display: none; }
.settings-view .settings-sidebar__link:is(:hover, :focus-visible) { background: #f6f7f9; color: #171b23; }
.settings-view .settings-sidebar__link.is-active { background: #f3f6fc; color: #17233b; font-weight: 700; box-shadow: none; }
.settings-view .settings-sidebar__link:focus-visible { outline: 2px solid #80acfa; outline-offset: 2px; }
.settings-view .settings-sidebar__link > .settings-sidebar__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--section-tint);
  color: var(--section-color);
}
.settings-view .settings-sidebar__icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.settings-view [data-settings-nav="profile"], .settings-view #settings-profile { --section-color: #1672d9; --section-tint: #e9f3ff; }
.settings-view [data-settings-nav="security"], .settings-view #settings-security { --section-color: #25a45a; --section-tint: #e8f8ed; }
.settings-view [data-settings-nav="notifications"], .settings-view #settings-notifications { --section-color: #ed8a0c; --section-tint: #fff3e0; }
.settings-view [data-settings-nav="employees"], .settings-view #settings-employees { --section-color: #7f56d9; --section-tint: #f2edff; }
.settings-view [data-settings-nav="company"], .settings-view #settings-company { --section-color: #168b9e; --section-tint: #e6f8fa; }
.settings-view [data-settings-nav="billing"], .settings-view #settings-billing { --section-color: #cf6596; --section-tint: #fff0f6; }
.settings-view [data-settings-nav="integrations"], .settings-view #settings-integrations { --section-color: #6765c6; --section-tint: #efefff; }
.settings-view .settings-help-card { gap: 8px; margin-top: 24px; padding: 14px; border: 0; border-radius: 12px; background: #f6f7fa; }
.settings-view .settings-help-card strong { color: #20242c; font-size: var(--portal-type-body); }
.settings-view .settings-help-card p { color: #747d8b; font-size: var(--portal-type-body); }
.settings-view .settings-help-card a { min-height: 36px; border-color: #e1e5ec; border-radius: 9px; font-size: var(--portal-type-body); }
.settings-view .settings-panel { gap: 12px; }
.settings-view .settings-panel__header { min-height: 72px; height: auto; padding: 14px 18px; gap: 13px; }
.settings-view .settings-panel__icon,
.settings-view .settings-section-heading__icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: var(--section-tint, #eef2ff);
  color: var(--section-color, #4f67bf);
}
.settings-view .settings-panel__icon svg,
.settings-view .settings-section-heading__icon svg { width: 19px; height: 19px; stroke-width: 1.8; }
.settings-view .settings-panel__header h3,
.settings-view .settings-subsection-card__header h4 { color: #191d25; font-size: var(--portal-type-subheading); font-weight: 700; }
.settings-view .settings-panel__header p,
.settings-view .settings-subsection-card__header p { color: #79818f; font-size: var(--portal-type-body); line-height: 1.4; }
.settings-view .settings-subsection-card { padding: 20px; }
.settings-view .settings-subsection-stack { gap: 12px; }
.settings-view .settings-subsection-stack > .settings-subsection-card:first-child { min-height: 0; margin-bottom: 0; }
.settings-view .settings-profile-layout { grid-template-columns: 174px minmax(0, 1fr); gap: 22px; }
.settings-view .settings-profile-card {
  padding: 18px 14px;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  background: #f8f9fb;
}
.settings-view .settings-profile-card > span { color: #303640; font-size: var(--portal-type-body); }
.settings-view .settings-profile-card > small { color: #818a98; font-size: var(--portal-type-caption); }
.settings-view .settings-profile-card .button { min-height: 32px; border-radius: 8px; font-size: var(--portal-type-body); }
.settings-view .settings-profile-fields { max-width: none; grid-template-rows: none; row-gap: 14px; padding-top: 2px; }
.settings-view .field { gap: 7px; }
.settings-view .field > span { color: #555d69; font-size: var(--portal-type-body); font-weight: 600; }
.settings-view .field :is(input, select, textarea) { min-height: 43px; border-color: #dfe4eb; border-radius: 10px; background: #fff; color: #1f2732; font-size: var(--portal-type-body); }
.settings-view .field :is(input, select, textarea):focus { border-color: #4b91ed; outline: 3px solid rgba(62, 135, 236, .14); outline-offset: 0; }
.settings-view .field input[readonly] { background: #f6f7f9; }
.settings-view .settings-profile-bio textarea { min-height: 74px; }
.settings-view .settings-collapsible-card { padding: 0; overflow: hidden; }
.settings-view .settings-collapsible-card__toggle { min-height: 68px; padding: 14px 18px; }
.settings-view .settings-collapsible-card__toggle:hover { background: #f8faff; }
.settings-view [data-settings-collapsible="working-hours"] { --section-color: #eb8d1a; --section-tint: #fff3e3; }
.settings-view [data-settings-collapsible="preferences"] { --section-color: #7956d4; --section-tint: #f1ecff; }
.settings-view .settings-preferences-grid { height: auto; }
.settings-view .settings-workday-row__day input { accent-color: #2084ed; }
.settings-view .settings-quick-preferences input[role="switch"]:checked { background: #34c36a; }
html[data-theme="dark"] .settings-view { --settings-line: #292d34; --settings-shadow: none; color: #f3f4f7; }
html[data-theme="dark"] .settings-view :is(.settings-sidebar__card, .settings-panel__header, .settings-subsection-card) { background: #15171b; border-color: var(--settings-line); }
html[data-theme="dark"] .settings-view .settings-sidebar__profile { border-color: var(--settings-line); }
html[data-theme="dark"] .settings-view .settings-sidebar__profile strong,
html[data-theme="dark"] .settings-view .settings-panel__header h3,
html[data-theme="dark"] .settings-view .settings-subsection-card__header h4,
html[data-theme="dark"] .settings-view .settings-help-card strong { color: #f3f4f7; }
html[data-theme="dark"] .settings-view .settings-sidebar__link:is(:hover, :focus-visible, .is-active) { background: #242831; color: #f6f7fa; }
html[data-theme="dark"] .settings-view.settings-view .settings-sidebar__link > .settings-sidebar__icon,
html[data-theme="dark"] .settings-view.settings-view .settings-panel__icon,
html[data-theme="dark"] .settings-view #settings-profile .settings-section-heading__icon { background: color-mix(in srgb, var(--section-color) 18%, #17191d); color: color-mix(in srgb, var(--section-color) 68%, white); border-color: transparent; }
html[data-theme="dark"] .settings-view .settings-profile-card,
html[data-theme="dark"] .settings-view .settings-help-card { background: #1d2026; border-color: #30343c; }
html[data-theme="dark"] .settings-view .settings-collapsible-card__toggle:hover { background: #20242b; }
html[data-theme="dark"] .settings-view .field input[readonly] { background: #1c1f25; }
@media (max-width: 1180px) {
  .settings-view .settings-shell { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .settings-view .settings-hero.app-page-header { height: auto; min-height: 0; grid-template-rows: auto auto; align-content: start; }
  .settings-view .settings-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .settings-view .settings-save-indicator { grid-column: 1 / -1; }
  .settings-view .settings-shell { grid-template-columns: minmax(0, 1fr); }
  .settings-view .settings-sidebar__card { padding: 12px; }
  .settings-view .settings-sidebar__profile { display: none; }
  .settings-view .settings-sidebar__nav { display: flex; gap: 6px; overflow-x: auto; }
  .settings-view .settings-sidebar__link { flex: 0 0 auto; grid-template-columns: 31px auto; padding-inline: 8px 12px; }
  .settings-view .settings-profile-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-view .settings-profile-card { border: 1px solid #e9edf3; }
}
@media (max-width: 520px) {
  .settings-view .settings-hero__actions { grid-template-columns: 1fr 1fr; }
  .settings-view .settings-profile-fields { grid-template-columns: minmax(0, 1fr); }
  .settings-view .settings-subsection-card { padding: 16px; }
}

/* Profile: one clear identity strip above an evenly spaced editable form. */
.settings-view #settings-profile .settings-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.settings-view #settings-profile .settings-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 18px;
  min-width: 0;
  padding: 16px 20px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: linear-gradient(110deg, #f7faff 0%, #f9fafc 55%, #f7f8fa 100%);
  text-align: left;
}
.settings-view #settings-profile .settings-profile-card__avatar { position: relative; width: 72px; height: 72px; }
.settings-view #settings-profile .settings-avatar--large {
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  box-shadow: 0 3px 14px rgba(28, 49, 77, .12);
}
.settings-view #settings-profile .settings-avatar-edit {
  top: auto;
  left: auto;
  right: -4px;
  bottom: -4px;
  width: 26px;
  height: 26px;
  border-color: #e0e6ef;
  box-shadow: 0 2px 8px rgba(20, 34, 56, .12);
}
.settings-view #settings-profile .settings-profile-card__details { display: grid; min-width: 0; gap: 6px; }
.settings-view #settings-profile .settings-profile-card__heading { display: flex; align-items: center; gap: 10px; }
.settings-view #settings-profile .settings-profile-card__heading > div { min-width: 0; }
.settings-view #settings-profile .settings-profile-card__heading span { display: block; color: #1e2735; font-size: var(--portal-type-body); font-weight: 700; }
.settings-view #settings-profile .settings-profile-card__heading p { margin: 3px 0 0; color: #697484; font-size: var(--portal-type-body); line-height: 1.35; }
.settings-view #settings-profile #settings-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 24px;
  margin: 0;
  padding: 0 9px;
  background: #e5f6e9;
  color: #23834a;
  font-size: var(--portal-type-body);
  font-weight: 700;
}
.settings-view #settings-profile #settings-profile-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.settings-view #settings-profile .settings-profile-card__details small { color: #8b95a2; font-size: var(--portal-type-caption); line-height: 1.3; }
.settings-view #settings-profile .settings-profile-card .settings-inline-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3px;
  width: auto;
  margin: 0;
}
.settings-view #settings-profile .settings-profile-card .button { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: var(--portal-type-body); white-space: nowrap; }
.settings-view #settings-profile .settings-profile-fields { width: 100%; max-width: none; column-gap: 22px; row-gap: 17px; padding: 0 2px 2px; }
.settings-view #settings-profile .settings-profile-bio { grid-column: 1 / -1; }
.settings-view #settings-profile .settings-profile-bio textarea { min-height: 80px; }
html[data-theme="dark"] .settings-view #settings-profile .settings-profile-card { border-color: #303846; background: linear-gradient(110deg, #202734, #1b2028); }
html[data-theme="dark"] .settings-view #settings-profile .settings-avatar--large { border-color: #303946; }
html[data-theme="dark"] .settings-view #settings-profile .settings-profile-card__heading span { color: #f2f5f9; }
html[data-theme="dark"] .settings-view #settings-profile .settings-profile-card__heading p { color: #a1acba; }
html[data-theme="dark"] .settings-view #settings-profile .settings-profile-card__details small { color: #8e99a9; }
html[data-theme="dark"] .settings-view #settings-profile #settings-profile-status { background: #173624; color: #67d48d; }
@media (max-width: 900px) {
  .settings-view #settings-profile .settings-profile-card { grid-template-columns: 72px minmax(0, 1fr); }
  .settings-view #settings-profile .settings-profile-card .settings-inline-actions { grid-column: 2; flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 520px) {
  .settings-view #settings-profile .settings-profile-card { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .settings-view #settings-profile .settings-profile-card__avatar,
  .settings-view #settings-profile .settings-avatar--large { width: 60px; height: 60px; }
  .settings-view #settings-profile .settings-profile-card__heading { align-items: flex-start; flex-wrap: wrap; gap: 5px 9px; }
  .settings-view #settings-profile .settings-profile-card .settings-inline-actions { grid-column: 1 / -1; }
}

/* Security: calm status surfaces and consistent Settings typography. */
.settings-view #settings-security { gap: 14px; }
.settings-view #settings-security .settings-password-card {
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 35, 53, .035);
}
.settings-view #settings-security .settings-password-card__fields {
  padding: 18px 19px 16px;
}
.settings-view #settings-security .settings-security-meter {
  gap: 11px;
  padding: 16px 19px 17px;
  border: 0;
  border-top: 1px solid #e9edf3;
  border-radius: 0;
  background: #f9fbfd;
  box-shadow: none;
}
.settings-view #settings-security .settings-security-meter__summary { display: flex; align-items: center; gap: 11px; min-width: 0; }
.settings-view #settings-security .settings-security-meter__icon,
.settings-view #settings-security .settings-security-insight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e8f6ee;
  color: #23975b;
}
.settings-view #settings-security :is(.settings-security-meter__icon, .settings-security-insight__icon) svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-view #settings-security .settings-security-meter__summary > div { display: grid; gap: 2px; min-width: 0; }
.settings-view #settings-security .settings-security-meter__eyebrow { color: #7d8998; font-size: var(--portal-type-caption); font-weight: 600; letter-spacing: .015em; }
.settings-view #settings-security #settings-password-strength-label { color: #202936; font-size: var(--portal-type-body); font-weight: 700; line-height: 1.25; }
.settings-view #settings-security .settings-security-meter__bar { height: 5px; background: #edf0f4; }
.settings-view #settings-security #settings-password-feedback { color: #6f7c8c; font-size: var(--portal-type-caption); line-height: 1.45; }
.settings-view #settings-security #settings-password-error { color: #c4313d; font-size: var(--portal-type-body); line-height: 1.4; }
.settings-view #settings-security .settings-security-insights { gap: 12px; }
.settings-view #settings-security .settings-security-insight {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 10px 12px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 35, 53, .035);
}
.settings-view #settings-security .settings-security-insight__icon--sessions { background: #eaf2ff; color: #3878cf; }
.settings-view #settings-security .settings-security-insight__copy { display: grid; gap: 5px; min-width: 0; }
.settings-view #settings-security .settings-security-insight__copy strong { color: #202936; font-size: var(--portal-type-body); font-weight: 700; line-height: 1.25; }
.settings-view #settings-security .settings-security-insight__copy > span { color: #6f7c8c; font-size: var(--portal-type-body); line-height: 1.45; }
.settings-view #settings-security .settings-security-insight__badge {
  grid-column: 2;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f3f6;
  color: #697584;
  font-size: var(--portal-type-caption);
  font-weight: 600;
  line-height: 1;
}
html[data-theme="dark"] .settings-view #settings-security :is(.settings-security-meter, .settings-security-insight) { background: #191d23; border-color: #303743; box-shadow: none; }
html[data-theme="dark"] .settings-view #settings-security .settings-password-card { background: #191d23; border-color: #303743; box-shadow: none; }
html[data-theme="dark"] .settings-view #settings-security .settings-password-card .settings-security-meter { background: #1c222b; border-top-color: #303743; }
html[data-theme="dark"] .settings-view #settings-security :is(#settings-password-strength-label, .settings-security-insight__copy strong) { color: #eef2f7; }
html[data-theme="dark"] .settings-view #settings-security :is(.settings-security-meter__eyebrow, #settings-password-feedback, .settings-security-insight__copy > span) { color: #9da9b8; }
html[data-theme="dark"] .settings-view #settings-security :is(.settings-security-meter__icon, .settings-security-insight__icon--shield) { background: #193a2a; color: #6ad49a; }
html[data-theme="dark"] .settings-view #settings-security .settings-security-insight__icon--sessions { background: #1d324b; color: #83b5f5; }
html[data-theme="dark"] .settings-view #settings-security .settings-security-meter__bar { background: #313842; }
html[data-theme="dark"] .settings-view #settings-security .settings-security-insight__badge { background: #2b3038; color: #aeb8c6; }
@media (max-width: 800px) {
  .settings-view #settings-security .settings-security-insights { grid-template-columns: minmax(0, 1fr); }
  .settings-view #settings-security .settings-security-insight { min-height: 0; }
}

/* Customer employee editor: compact two-pane management sheet. */
.settings-view #settings-employees .settings-employee-editor .settings-employee-modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: min(100%, 940px);
  max-height: min(790px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e5ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(20, 28, 40, .20);
}
.settings-view #settings-employees .settings-employee-modal__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 15px 24px;
  border-bottom: 0;
}
.settings-view #settings-employees .settings-employee-modal__header::after,
.settings-view #settings-employees .settings-employee-modal__footer::before {
  position: absolute;
  right: 22px;
  left: 22px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e6eaf0 5%, #e6eaf0 95%, transparent);
  content: "";
}
.settings-view #settings-employees .settings-employee-modal__header::after { bottom: 0; }
.settings-view #settings-employees .settings-employee-modal__footer::before { top: 0; }
.settings-view #settings-employees .settings-employee-modal__header h4 {
  margin: 0;
  color: #171b23;
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  letter-spacing: -.03em;
}
.settings-view #settings-employees .settings-employee-modal__header p {
  margin: 3px 0 0;
  color: #818995;
  font-size: var(--portal-type-body);
}
.settings-view #settings-employees .settings-employee-modal__close {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f1f3;
  color: #69717d;
  font: 400 1.3rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.settings-view #settings-employees .settings-employee-modal__close:hover { background: #e4e7eb; color: #1d232b; }
.settings-view #settings-employees .settings-employee-modal__close:focus-visible { outline: 3px solid #83aff1; outline-offset: 2px; }
.settings-view #settings-employees .settings-employee-modal__body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px 14px;
  overflow: hidden;
  background: #fbfcfd;
}
.settings-view #settings-employees .settings-employee-editor[data-mode="create"] .settings-employee-modal__body {
  grid-template-columns: minmax(0, 1fr);
}
.settings-view #settings-employees .settings-employee-editor__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #e6eaf0;
  border-radius: 15px;
  background: #f6f8fb;
}
.settings-view #settings-employees .settings-employee-editor__summary[hidden] { display: none; }
.settings-view #settings-employees .settings-employee-editor__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  margin-bottom: 20px;
}
.settings-view #settings-employees #settings-employee-summary-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border: 1px solid #e2e6ec;
  border-radius: 50%;
  background: #fff;
  background-position: center;
  background-size: cover;
  color: #344766;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 9px rgba(18, 25, 37, .05);
}
.settings-view #settings-employees .settings-employee-editor__identity,
.settings-view #settings-employees .settings-employee-editor__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; width: 100%; }
.settings-view #settings-employees .settings-employee-editor__identity strong {
  max-width: 100%;
  overflow: hidden;
  color: #20242b;
  font-size: var(--portal-type-body);
  font-weight: 700;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-view #settings-employees #settings-employee-summary-email {
  max-width: 100%;
  overflow: hidden;
  color: #727c89;
  font-size: var(--portal-type-body);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-view #settings-employees .settings-employee-editor__meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.settings-view #settings-employees #settings-employee-summary-status,
.settings-view #settings-employees #settings-employee-summary-role {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid #e2e5e9;
  border-radius: 7px;
  background: #fff;
  color: #515d6c;
  font-size: var(--portal-type-body);
  font-weight: 600;
}
.settings-view #settings-employees #settings-employee-summary-status { border-color: #cdebd6; background: #e8f7ed; color: #1d7840; }
.settings-view #settings-employees #settings-employee-summary-status[data-state="inactive"] { border-color: #e2e5e9; background: #fff; color: #687381; }
.settings-view #settings-employees .settings-employee-editor__activity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  padding-top: 3px;
  text-align: right;
}
.settings-view #settings-employees #settings-employee-summary-presence {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #687381;
  font-size: var(--portal-type-body);
  font-weight: 600;
}
.settings-view #settings-employees #settings-employee-summary-presence[data-state="online"] { color: #22834c; }
.settings-view #settings-employees #settings-employee-summary-presence .settings-presence-dot { width: 8px; height: 8px; margin: 0; }
.settings-view #settings-employees .settings-employee-editor__activity small {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #7d8794;
  font-size: var(--portal-type-caption);
  line-height: 1.25;
}
.settings-view #settings-employees .settings-employee-editor__activity strong { color: #333d49; font-size: var(--portal-type-body); font-weight: 700; white-space: nowrap; }
.settings-view #settings-employees .settings-employee-editor__form {
  display: grid;
  align-content: start;
  gap: 25px;
  min-width: 0;
  padding: 23px 25px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e9ecf1;
  border-radius: 15px;
  background: #fff;
}
.settings-view #settings-employees .settings-employee-form-section { display: grid; gap: 14px; min-width: 0; }
.settings-view #settings-employees .settings-employee-form-section + .settings-employee-form-section {
  position: relative;
  padding-top: 23px;
  border-top: 0;
}
.settings-view #settings-employees .settings-employee-form-section + .settings-employee-form-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e7ebf0 5%, #e7ebf0 95%, transparent);
  content: "";
}
.settings-view #settings-employees .settings-employee-form-section__heading h5 {
  margin: 0;
  color: #242b35;
  font-size: var(--portal-type-subheading);
  font-weight: 700;
  letter-spacing: -.01em;
}
.settings-view #settings-employees .settings-employee-form-section .settings-grid { gap: 13px 16px; }
.settings-view #settings-employees .settings-employee-form-section .field { gap: 6px; min-width: 0; }
.settings-view #settings-employees .settings-employee-form-section .field > span { color: #626d7b; font-size: var(--portal-type-body); font-weight: 600; }
.settings-view #settings-employees .settings-employee-form-section .field :is(input, select, .frontend-select__trigger) {
  min-height: 40px;
  height: 40px;
  border: 1px solid #dce1e8;
  border-radius: 9px;
  background: #fff;
  color: #25303d;
  font-size: var(--portal-type-body);
}
.settings-view #settings-employees .settings-employee-form-section .field :is(input, select, .frontend-select__trigger):focus-visible { border-color: #679ef4; outline: 3px solid #679ef42b; }
.settings-view #settings-employees .settings-employee-status-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px 0 13px;
  border: 1px solid #dce1e8;
  border-radius: 9px;
  background: #fff;
  color: #25303d;
  font-size: var(--portal-type-body);
  font-weight: 600;
  cursor: pointer;
}
.settings-view #settings-employees .settings-employee-status-control:focus-within { border-color: #679ef4; box-shadow: 0 0 0 3px #679ef42b; }
.settings-view #settings-employees .settings-employee-status-control label { flex: 1 1 auto; cursor: pointer; }
.settings-view #settings-employees #settings-employee-status {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: #cbd1d9;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.settings-view #settings-employees #settings-employee-status::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 15, 16, .22);
  content: "";
  transition: transform 160ms ease;
}
.settings-view #settings-employees #settings-employee-status:checked { background: #22bd5e; }
.settings-view #settings-employees #settings-employee-status:checked::before { transform: translateX(18px); }
.settings-view #settings-employees #settings-employee-password-field small { color: #818b98; font-size: var(--portal-type-caption); line-height: 1.4; }
.settings-view #settings-employees .settings-employee-modal__footer {
  position: relative;
  min-height: 65px;
  padding: 12px 24px;
  border-top: 0;
  background: #fff;
}
.settings-view #settings-employees .settings-employee-modal__footer .settings-inline-actions { justify-content: flex-end; gap: 9px; }
.settings-view #settings-employees .settings-employee-modal__footer .button { min-height: 38px; padding: 0 17px; border-radius: 9px; font-size: var(--portal-type-body); font-weight: 700; }
.settings-view #settings-employees .settings-employee-modal__footer .button--primary { background: #17191d; color: #fff; }
.settings-view #settings-employees .settings-employee-modal__footer .button--secondary { border: 1px solid #dde2e8; background: #fff; color: #495565; }
.settings-view #settings-employees .settings-employee-modal__footer .settings-field-error { margin: 0 0 8px; font-size: var(--portal-type-caption); }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor .settings-employee-modal__panel { border-color: #343a44; background: #1b1e24; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__body { background: #1b1e24; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__header::after,
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__footer::before,
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-form-section + .settings-employee-form-section::before { background: linear-gradient(90deg, transparent, #353b45 5%, #353b45 95%, transparent); }
html[data-theme="dark"] .settings-view #settings-employees :is(.settings-employee-editor__summary, .settings-employee-editor__form) { border-color: #353b45; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__header h4,
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-form-section__heading h5,
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__identity strong { color: #f3f5f7; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__header p,
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-summary-email { color: #9ba6b5; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__summary { background: #22262e; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__form { background: #20242b; }
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-summary-avatar { border-color: #414955; background-color: #2d3440; color: #e4ecf8; }
html[data-theme="dark"] .settings-view #settings-employees :is(#settings-employee-summary-role, #settings-employee-summary-status[data-state="inactive"]) { border-color: #414955; background: #303640; color: #c1cad5; }
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-summary-status { border-color: #24553a; background: #1b3b2a; color: #86dca6; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__activity { border-color: #3a404a; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__activity strong { color: #dbe3ee; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__close { background: #303640; color: #c5ceda; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__footer { background: #1b1e24; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-modal__footer .button--secondary { background: #282d35; border-color: #414955; color: #ebeff4; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-form-section .field :is(input, select, .frontend-select__trigger) { background: #242932; border-color: #434b57; color: #f0f3f7; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-status-control { border-color: #434b57; background: #242932; color: #f0f3f7; }
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-status { background: #5c6572; }
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-status:checked { background: #22bd5e; }
@media (max-width: 700px) {
  .settings-view #settings-employees .settings-employee-editor { padding: 10px; }
  .settings-view #settings-employees .settings-employee-editor .settings-employee-modal__panel { max-height: calc(100dvh - 20px); border-radius: 16px; }
  .settings-view #settings-employees .settings-employee-modal__header { min-height: 62px; padding: 12px 17px; }
  .settings-view #settings-employees .settings-employee-modal__body { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; overflow-y: auto; }
  .settings-view #settings-employees .settings-employee-editor__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 17px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
  }
  .settings-view #settings-employees .settings-employee-editor__summary[hidden] { display: none; }
  .settings-view #settings-employees .settings-employee-editor__top { min-height: 44px; margin-bottom: 12px; }
  .settings-view #settings-employees #settings-employee-summary-avatar { width: 44px; height: 44px; margin: 0; }
  .settings-view #settings-employees .settings-employee-editor__meta { margin-top: 10px; }
  .settings-view #settings-employees .settings-employee-editor__activity { padding-top: 0; }
  .settings-view #settings-employees .settings-employee-editor__form { padding: 20px 18px; overflow: visible; border-radius: 12px; }
  .settings-view #settings-employees .settings-employee-modal__footer { padding: 11px 17px; }
  .settings-view #settings-employees .settings-employee-form-section .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-view #settings-employees .settings-employee-form-section .settings-grid__span-2 { grid-column: auto; }
}

/* Employee directory: one aligned toolbar with secondary filters. */
.settings-view #settings-employees .settings-table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.settings-view #settings-employees .settings-team-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 520px;
}
.settings-view #settings-employees .settings-team-search svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8390a0;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.settings-view #settings-employees .settings-team-search input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 14px 0 41px;
  border: 1px solid #dce2ea;
  border-radius: 11px;
  background: #fff;
  color: #202936;
  font-size: var(--portal-type-body);
}
.settings-view #settings-employees .settings-team-search input:focus-visible,
.settings-view #settings-employees .settings-team-filter__button:focus-visible,
.settings-view #settings-employees .settings-team-add:focus-visible {
  outline: 3px solid #6096ed44;
  outline-offset: 2px;
}
.settings-view #settings-employees .settings-team-toolbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.settings-view #settings-employees .settings-team-filter { position: relative; }
.settings-view #settings-employees .settings-team-filter__button,
.settings-view #settings-employees .settings-team-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: var(--portal-type-body);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.settings-view #settings-employees .settings-team-filter__button { border: 1px solid #dce2ea; background: #fff; color: #394555; }
.settings-view #settings-employees .settings-team-filter__button:hover,
.settings-view #settings-employees .settings-team-filter__button[aria-expanded="true"] { border-color: #b9c7d8; background: #f7f9fc; }
.settings-view #settings-employees .settings-team-filter__button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.settings-view #settings-employees .settings-team-filter__count { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e8f0ff; color: #2357a7; font-size: var(--portal-type-body); }
.settings-view #settings-employees .settings-team-filter__count[hidden] { display: none; }
.settings-view #settings-employees .settings-team-add { border: 1px solid #16191e; background: #16191e; color: #fff; box-shadow: 0 5px 12px #16191e19; }
.settings-view #settings-employees .settings-team-add:hover { background: #303742; }
.settings-view #settings-employees .settings-team-add > span { font-size: var(--portal-type-subheading); font-weight: 400; line-height: 1; }
.settings-view #settings-employees .settings-team-filter__panel {
  position: absolute;
  z-index: 35;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 13px;
  width: 282px;
  padding: 16px;
  border: 1px solid #e1e6ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px #1b273022;
}
.settings-view #settings-employees .settings-team-filter__panel[hidden] { display: none; }
.settings-view #settings-employees .settings-team-filter__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-view #settings-employees .settings-team-filter__heading strong { color: #202936; font-size: var(--portal-type-body); font-weight: 700; }
.settings-view #settings-employees .settings-team-filter__heading button { padding: 3px; border: 0; background: transparent; color: #3970ba; font-size: var(--portal-type-body); font-weight: 600; cursor: pointer; }
.settings-view #settings-employees .settings-team-filter__panel .field { gap: 6px; }
.settings-view #settings-employees .settings-team-filter__panel .field > span { color: #6a7685; font-size: var(--portal-type-body); font-weight: 600; }
.settings-view #settings-employees .settings-team-filter__panel :is(select, .frontend-select__trigger) { width: 100%; height: 40px; min-height: 40px; border: 1px solid #dce2ea; border-radius: 9px; background: #fff; color: #263343; font-size: var(--portal-type-body); }
html[data-theme="dark"] .settings-view #settings-employees .settings-team-search input,
html[data-theme="dark"] .settings-view #settings-employees .settings-team-filter__button,
html[data-theme="dark"] .settings-view #settings-employees .settings-team-filter__panel,
html[data-theme="dark"] .settings-view #settings-employees .settings-team-filter__panel :is(select, .frontend-select__trigger) { border-color: #3e4651; background: #242932; color: #edf1f6; }
html[data-theme="dark"] .settings-view #settings-employees .settings-team-filter__button:hover,
html[data-theme="dark"] .settings-view #settings-employees .settings-team-filter__button[aria-expanded="true"] { background: #303641; }
html[data-theme="dark"] .settings-view #settings-employees .settings-team-filter__heading strong { color: #f0f2f5; }
html[data-theme="dark"] .settings-view #settings-employees .settings-team-add { border-color: #fff; background: #fff; color: #16191e; }
html[data-theme="dark"] .settings-view #settings-employees .settings-team-add:hover { background: #e4e9ef; }
@media (max-width: 680px) {
  .settings-view #settings-employees .settings-table-toolbar { flex-wrap: wrap; }
  .settings-view #settings-employees .settings-team-search { flex-basis: 100%; max-width: none; }
  .settings-view #settings-employees .settings-team-toolbar-actions { width: 100%; justify-content: flex-end; }
  .settings-view #settings-employees .settings-team-filter__panel { right: 0; width: min(282px, calc(100vw - 32px)); }
}

/* Editable team portrait and verified session activity. */
.settings-view #settings-employees .settings-employee-editor__photo {
  position: relative; display: block; flex: 0 0 68px; width: 68px; height: 68px; margin: 0;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.settings-view #settings-employees .settings-employee-editor__photo:hover #settings-employee-summary-avatar { border-color: #a9b7c9; }
.settings-view #settings-employees .settings-employee-editor__photo:focus-visible { outline: 3px solid #6096ed; outline-offset: 4px; }
.settings-view #settings-employees .settings-employee-editor__photo #settings-employee-summary-avatar { margin: 0; }
.settings-view #settings-employees .settings-employee-editor__photo-pencil {
  position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center;
  width: 26px; height: 26px; border: 2px solid #f7f8fa; border-radius: 50%;
  background: #252b35; color: #fff; font-size: 15px; line-height: 1;
  box-shadow: 0 2px 7px #11182724;
}
.settings-view #settings-employees .settings-employee-editor__photo-pencil svg { width: 13px; height: 13px; }
.settings-view #settings-employees .settings-employee-editor__sessions { position: relative; display: grid; gap: 7px; width: 100%; margin-top: 24px; padding-top: 17px; border-top: 0; }
.settings-view #settings-employees .settings-employee-editor__sessions::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; border-radius: 999px; background: linear-gradient(90deg, transparent, #e0e5ec 5%, #e0e5ec 95%, transparent); content: ""; }
.settings-view #settings-employees .settings-employee-editor__sessions > strong { color: #4e5969; font-size: var(--portal-type-body); font-weight: 700; }
.settings-view #settings-employees #settings-employee-summary-sessions { display: grid; gap: 5px; }
.settings-view #settings-employees #settings-employee-summary-sessions > span { display: flex; justify-content: space-between; gap: 6px; color: #6c7684; font-size: var(--portal-type-body); }
.settings-view #settings-employees #settings-employee-summary-sessions b { color: #22834c; font-weight: 700; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__photo-pencil { border-color: #22262e; background: #e8edf4; color: #242932; }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__sessions::before { background: linear-gradient(90deg, transparent, #353b45 5%, #353b45 95%, transparent); }
html[data-theme="dark"] .settings-view #settings-employees .settings-employee-editor__sessions > strong { color: #dce3ec; }
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-summary-presence,
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-summary-sessions > span { color: #b7c2d2; }
html[data-theme="dark"] .settings-view #settings-employees #settings-employee-summary-sessions b { color: #77d99e; }
@media (max-width: 700px) {
  .settings-view #settings-employees .settings-employee-editor__photo { flex-basis: 44px; width: 44px; height: 44px; margin: 0; }
  .settings-view #settings-employees .settings-employee-editor__photo-pencil { width: 20px; height: 20px; font-size: 12px; }
  .settings-view #settings-employees .settings-employee-editor__sessions { margin-top: 16px; }
}

/* Canonical frontend header geometry, shared by all seven workspaces. */
:root {
  --app-utility-row-height: 64px;
  --app-page-header-min-height: 0px;
  --app-page-title-size: 40px;
  --app-page-title-line-height: 1.2;
  --app-page-title-letter-spacing: -.035em;
  --app-header-action-height: 42px;
  --app-page-gutter: 24px;
}
.portal-shell.portal-shell > .portal-topbar {
  display: flex;
  position: relative;
  inset: auto;
  z-index: 40;
  box-sizing: border-box;
  height: var(--app-utility-row-height);
  min-height: var(--app-utility-row-height);
  max-height: var(--app-utility-row-height);
  padding: 12px max(var(--app-page-gutter), calc((100% - var(--app-page-max-width)) / 2));
  background: var(--app-page-bg);
}
.portal-shell.portal-shell > .portal-topbar .portal-topbar__controls {
  transform: none;
  gap: 12px;
  margin: 0 0 0 auto;
}
.portal-shell .portal-topbar .portal-notification-button {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  margin: 0;
}
.portal-shell .portal-topbar .portal-theme-toggle {
  display: inline-flex;
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  height: 32px;
  min-height: 32px;
  margin: 0;
}
.portal-shell > .portal-dashboard.portal-dashboard {
  padding: 0 var(--app-page-gutter) 28px;
}
.portal-shell .app-page,
.portal-shell .app-page-shell,
.portal-shell .documents-root {
  width: min(100%, var(--app-page-max-width));
  max-width: var(--app-page-max-width);
  min-width: 0;
  margin-inline: auto;
  gap: 14px;
  align-content: start;
}
.portal-shell .settings-view {
  position: static;
  inset: auto;
  padding: 0;
}
.portal-shell .app-page-header.app-page-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "page-copy page-actions";
  grid-template-rows: auto;
  align-items: start;
  align-content: start;
  gap: 24px;
  box-sizing: border-box;
  height: auto;
  min-height: var(--app-page-header-min-height);
  align-self: start;
  padding: 16px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.portal-shell .app-page-header > .app-page-header__copy {
  grid-area: page-copy;
  display: block;
  align-self: start;
  min-width: 0;
  padding: 0;
}
.portal-shell .app-page-header > .app-page-header__copy::before,
.portal-shell .dashboard-hero__eyebrow { display: none; }
.portal-shell .app-page-header > .app-page-header__copy > :is(h1, h2),
#dashboard-view .dashboard-hero__copy > h1 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--app-page-title-size);
  font-weight: 600;
  line-height: var(--app-page-title-line-height);
  letter-spacing: var(--app-page-title-letter-spacing);
}
.portal-shell .app-page-header > .app-page-header__copy > p,
#dashboard-view .dashboard-hero__copy > p {
  max-width: none;
  margin: 6px 0 0;
  color: #8b919a;
  font-family: inherit;
  font-size: var(--portal-type-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.portal-shell .app-page-header > :is(.app-page-header__actions, .app-page-header__primary-action) {
  grid-area: page-actions;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: start;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: wrap;
  width: auto;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  margin: 3px 0 0;
  padding: 0;
}
/* Only page actions are normalized; menus and their options keep their own layout. */
.portal-shell .app-page-header #new-quote-button,
.portal-shell .app-page-header :is(.shipment-button, .doc-button, .doc-icon-button, .chats-new-button, .settings-hero__actions > .button, .reports-controls > button, .reports-controls > .date) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--app-header-action-height);
  min-height: var(--app-header-action-height);
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 1px 2px #10182804;
}
.portal-shell .app-page-header #new-quote-button,
.portal-shell .app-page-header :is(.shipment-button--primary, .doc-button--primary, .chats-new-button, .settings-hero__actions > .button--primary) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 4px 10px #1018280c;
}
.portal-shell .app-page-header :is(button, select):focus-visible { outline: 3px solid #397cf44a; outline-offset: 3px; }
.portal-shell .app-page-header button:disabled { opacity: .45; cursor: not-allowed; }
.portal-shell .app-page-header .app-page-header__primary-action.app-page-header__primary-action { margin: 3px 0 0; }
.portal-shell .app-page-header .doc-icon-button.doc-icon-button { width: 42px; padding: 0; }
.portal-shell .app-page-header svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-shell .reports-controls .date { flex: 0 1 auto; min-width: 0; }
.portal-shell .reports-controls .date select { min-width: 0; height: 40px; padding: 0; font: inherit; color: inherit; border: 0; background: transparent; }
.portal-shell .reports-controls .date small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.portal-shell .settings-hero__actions .settings-save-indicator { height: 42px; min-height: 42px; padding: 0 12px; font-family: inherit; font-size: var(--portal-type-body); font-weight: 600; line-height: 1.2; }
.portal-shell #dashboard-header-action-slot { display: none; }
.portal-shell .dashboard-hero__logo-card { width: 180px; height: 63px; min-height: 63px; padding: 0; }
.portal-shell .dashboard-hero__logo-card img { max-width: 180px; max-height: 63px; }
.portal-shell .chats-view { grid-template-rows: auto minmax(0, 1fr); }
@media (min-width: 1181px) {
  .portal-shell.portal-shell { grid-template-rows: var(--app-utility-row-height) minmax(0, 1fr); }
  .portal-shell.portal-shell > .portal-topbar { grid-column: 2; grid-row: 1; }
  .portal-shell > .portal-dashboard.portal-dashboard { grid-column: 2; grid-row: 2; }
  .portal-shell > .portal-dashboard.portal-dashboard--chats { height: calc(100dvh - var(--app-utility-row-height)); }
}
@media (max-width: 1180px) {
  .portal-shell.portal-shell > .portal-topbar { padding-inline: var(--app-page-gutter); }
}
@media (max-width: 1000px) {
  .portal-shell .app-page-header.app-page-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "page-copy" "page-actions";
    gap: 16px;
  }
  .portal-shell .app-page-header > :is(.app-page-header__actions, .app-page-header__primary-action) { justify-self: start; justify-content: flex-start; margin: 0; }
}
@media (max-width: 600px) {
  :root { --app-page-gutter: 16px; --app-page-title-size: 2rem; }
  .portal-shell .app-page-header.app-page-header { padding: 16px 0 10px; }
  .portal-shell .app-page-header > .app-page-header__copy > p { font-size: var(--portal-type-body); }
}

.portal-shell .app-page-header button > span:not(.settings-team-filter__count) { font-size: inherit; font-weight: inherit; line-height: inherit; }
/* Utility controls share the same icon geometry on desktop and compact bars. */
.portal-shell .portal-topbar .portal-notification-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.portal-shell .portal-topbar .portal-theme-toggle { position: relative; align-items: center; justify-content: space-between; gap: 0; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-soft); }
.portal-shell .portal-topbar .portal-theme-toggle__icon { position: relative; z-index: 2; display: inline-grid !important; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; color: var(--ink-muted); }
.portal-shell .portal-topbar .portal-theme-toggle__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-shell .portal-topbar .portal-theme-toggle__icon--moon svg { fill: currentColor; stroke: none; }
.portal-shell .portal-topbar .portal-theme-toggle__thumb { position: absolute; z-index: 1; top: 2px; left: 2px; display: block !important; width: 26px; height: 26px; border: 1px solid #10182810; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #10182820; transform: none; }
.portal-shell .portal-topbar .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__thumb { transform: translateX(26px); }
.portal-shell .portal-topbar .portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun,
.portal-shell .portal-topbar .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon { color: #171717; }
.portal-shell .shipments-overview-page { padding: 0; }
.portal-shell .app-page-header > .app-page-header__copy > p { display: block; }
@media (max-width: 600px) {
  .portal-shell .app-page-header.app-page-header { min-height: 0; }
  .portal-shell .app-page-header > .app-page-header__copy > p { min-height: 0; }
}

/* Routing captions sit inside airport and address controls; the date uses its inline hint. */
.request-card.is-dev-mode .dev-itinerary__grid .dev-field {
  --address-label-row: 0px;
  position: relative;
  gap: 0;
}
.request-card.is-dev-mode .dev-itinerary__grid .dev-field:has(.movement-address-card, #air-origin, #air-destination) > .dev-field__label {
  position: absolute;
  z-index: 22;
  top: calc(var(--address-label-row) + 7px);
  left: 17px;
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
  font-weight: 600;
  line-height: 1.5;
  cursor: text;
}
.request-card.is-dev-mode .dev-itinerary__grid .dev-field #air-origin,
.request-card.is-dev-mode .dev-itinerary__grid .dev-field #air-destination,
.request-card.is-dev-mode .dev-itinerary__grid .dev-field .movement-address-card .address-section__search-field input {
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  padding: 21px 16px 5px;
  font-size: var(--portal-type-body);
  line-height: 22px;
}
.request-card.is-dev-mode .dev-itinerary__grid .dev-field:has(#ready-date) > .dev-field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.request-card.is-dev-mode .dev-itinerary__grid .dev-field:has(#ready-date) .dev-field__control::before,
.request-card.is-dev-mode .dev-itinerary__grid .dev-field:has(#ready-date) .dev-field__control::after {
  border-color: var(--ink-muted);
}

/* Clear stackable states and unboxed row actions in the DEV quotation form. */
.quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle[aria-pressed="true"] .dimensions-line__stackable-control {
  background: #22bd5e;
  border-color: #22bd5e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle[aria-pressed="false"] .dimensions-line__stackable-control {
  background: #d1d5db;
  border-color: #b9bfc8;
  box-shadow: none;
}
.quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-control::after {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle,
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove {
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-theme="dark"] .quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle[aria-pressed="false"] .dimensions-line__stackable-control {
  background: #505561;
  border-color: #68707d;
}
.quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__stackable-toggle:focus-visible,
.quotations-create-view.is-dev-mode .request-card.is-dev-mode .dev-shipment-details__content .dimensions-line__remove:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 3px;
}

/* Manual address entry: a spacious sheet, independent of route-column width. */
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  width: min(680px, calc(100vw - 32px));
  transform: translate(-50%, calc(-50% - 8px)) scale(.985);
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel.is-expanded {
  transform: translate(-50%, -50%) scale(1);
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel-inner {
  gap: 24px;
  padding: 28px;
  max-height: calc(100dvh - 48px);
  border-radius: 24px;
}
.request-card.is-dev-mode .movement-address-card .address-section__manual-panel-header strong {
  font-size: var(--portal-type-subheading);
  letter-spacing: -.025em;
}
.request-card.is-dev-mode .movement-address-card .address-section__manual-close {
  border: 0;
  border-radius: 50%;
  background: #f0f2f5;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__top-grid {
  padding: 18px;
  background: #f6f7f9;
  border: 1px solid #eceef2;
  border-radius: 16px;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border-radius: 10px;
  font-size: var(--portal-type-body);
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__field label {
  font-weight: 600;
}
html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__top-grid {
  background: #18181c;
  border-color: #2b2b30;
}
@media(max-width:640px) {
  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel-inner {
    padding: 20px;
    gap: 20px;
  }
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel::before {
  content: "";
  position: fixed;
  inset: -100vmax;
  z-index: -1;
  background: rgba(20, 25, 35, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Searchable commodity choices, following the quotation form surfaces. */
.commodity-picker { position: relative; }
.commodity-picker__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1500;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid #e0e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(20,30,50,.16), 0 3px 10px rgba(20,30,50,.06);
}
.commodity-picker__list[hidden] { display: none; }
.commodity-picker__category {
  padding: 10px 10px 5px;
  color: #8791a1;
  font-size: var(--portal-type-body);
  font-weight: 600;
}
.commodity-picker__option {
  padding: 10px;
  color: #253041;
  font-size: var(--portal-type-body);
  line-height: 1.4;
  border-radius: 9px;
  cursor: pointer;
}
.commodity-picker__option:hover,
.commodity-picker__option[aria-selected="true"] { background: #edf4ff; color: #0864df; }
.commodity-picker__empty { padding: 16px 10px; font-size: var(--portal-type-body); color: var(--ink-muted); }
html[data-theme="dark"] .commodity-picker__list { background: #161619; border-color: #303036; box-shadow: 0 18px 48px rgba(0,0,0,.5); }
html[data-theme="dark"] .commodity-picker__option { color: #ececf0; }
html[data-theme="dark"] .commodity-picker__option:hover,
html[data-theme="dark"] .commodity-picker__option[aria-selected="true"] { background: #152b48; color: #83b7ff; }
.request-card.is-dev-mode .dev-card--goods-type { position: relative; z-index: 19; overflow: visible; }
/* Quiet manual-entry disclosure inside each DEV address search control. */
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__search-block {
  position: relative;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle {
  position: absolute;
  z-index: 21;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #697586;
  box-shadow: none;
  cursor: pointer;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle:hover {
  background: transparent;
  color: #1e293b;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle [data-role="manual-toggle-label"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.request-card.is-dev-mode .dev-itinerary__grid .dev-field__control .movement-address-card .address-section__search-field input {
  padding-right: 50px;
  text-overflow: ellipsis;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}
html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle {
  background: transparent;
  color: #b3bac6;
}
html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-toggle:hover {
  background: transparent;
  color: #fff;
}

/* Manual address popover grows from its disclosure and stays attached. */
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel {
  top: var(--manual-top, 100%);
  left: var(--manual-left, 16px);
  width: min(600px, calc(100vw - 32px));
  transform: translateY(-8px) scale(.94);
  transform-origin: var(--manual-anchor-x, 50%) top;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 240ms;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel.is-expanded {
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel-inner {
  padding: 24px;
  gap: 20px;
  max-height: var(--manual-height, calc(100dvh - 48px));
  border-radius: 20px;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel::before {
  content: none;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel::after {
  content: "";
  position: absolute;
  left: calc(var(--manual-anchor-x, 50%) - 6px);
  top: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-top: 1px solid #d8e1ed;
  border-left: 1px solid #d8e1ed;
  pointer-events: none;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel[data-placement="above"] {
  transform: translateY(calc(-100% + 8px)) scale(.94);
  transform-origin: var(--manual-anchor-x, 50%) bottom;
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel.is-expanded[data-placement="above"] {
  transform: translateY(-100%) scale(1);
}
.request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel[data-placement="above"]::after {
  top: auto;
  bottom: -6px;
  transform: rotate(225deg);
}
html[data-theme="dark"] .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel::after {
  background: #0c0c0e;
  border-color: #303036;
}
@media(prefers-reduced-motion:reduce) {
  .request-card.is-dev-mode .dev-field__control .movement-address-card .address-section__manual-panel {
    transition: opacity 100ms ease;
  }
}

/* Submission errors remain visible above the DEV input surface styles. */
.request-card :is(input, select, textarea)[aria-invalid="true"],
.request-card :is(.frontend-select__trigger, .incoterm-select__trigger).is-invalid,
.request-card #dangerous-goods-field.is-invalid #dangerous-goods-trigger,
.request-card :is(.choice-grid, .segmented-control).is-invalid > button,
.request-card :is(#shipment-type-group, #movement-scope-group, #shipment-direction-group).is-invalid > button,
.request-card .movement-address-card.has-validation-error .address-section__search-field input {
  border-color: #d92d43 !important;
  background: #fff3f5 !important;
  box-shadow: 0 0 0 2px rgba(217,45,67,.12) !important;
}
html[data-theme="dark"] .request-card :is(input, select, textarea)[aria-invalid="true"],
html[data-theme="dark"] .request-card :is(.frontend-select__trigger, .incoterm-select__trigger).is-invalid,
html[data-theme="dark"] .request-card #dangerous-goods-field.is-invalid #dangerous-goods-trigger,
html[data-theme="dark"] .request-card :is(.choice-grid, .segmented-control).is-invalid > button,
html[data-theme="dark"] .request-card :is(#shipment-type-group, #movement-scope-group, #shipment-direction-group).is-invalid > button,
html[data-theme="dark"] .request-card .movement-address-card.has-validation-error .address-section__search-field input {
  border-color: #ff667a !important;
  background: #30171d !important;
}

.request-card :is(.address-section__field-error, #dangerous-goods-error, #temperature-range-error) { display: none !important; }

/* Choice validation belongs to each button, never the connecting group. */
.request-card :is(.choice-grid, .segmented-control).attention-target-pulse {
  animation: none !important;
  box-shadow: none !important;
}

/* Keep selected transport modes readable on light-theme hover. */
html:not([data-theme="dark"]) .request-card.is-dev-mode .dev-itinerary__mode .choice-card--mode.is-selected:is(:hover, :focus-visible) {
  border-color: #020817;
  background: linear-gradient(180deg, #060c1d 0%, #010512 100%);
  color: #fff;
}

/* Customer address book: quiet surfaces, aligned actions and readable entries. */
.settings-sidebar__link[data-settings-nav="addressbook"] .settings-sidebar__icon {color:#0891b2;background:#e5f6fb}
.address-section__book-button {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#556274;margin-left:auto;cursor:pointer}
.address-section__book-button svg {width:20px;height:20px}
.address-section__book-button:hover,.address-section__book-button[aria-expanded="true"] {background:#edf3fa;color:#1366c5}
.address-section__book-button:focus-visible {outline:2px solid #4485e5;outline-offset:2px}
.address-book-toolbar {display:flex;align-items:center;gap:12px;margin:20px 0}
.address-book-toolbar input {flex:1;min-width:0}
.address-book-toolbar .button {height:44px;white-space:nowrap}
.address-book-list {display:grid;gap:10px}
.address-book-row {display:flex;align-items:center;gap:12px;border:1px solid #e1e6ed;border-radius:16px;background:#fff;padding:14px 16px}
.address-book-item {display:grid;gap:5px;flex:1;min-width:0;text-align:left;border:0;background:transparent;color:#202631;cursor:pointer;font:inherit;padding:0}
.address-book-item strong {font-size: var(--portal-type-body);font-weight: 600}
.address-book-item span,.address-book-item small {font-size: var(--portal-type-caption);color:#758195;line-height:1.5;overflow-wrap:anywhere}
.address-book-item:focus-visible {outline:2px solid #4485e5;outline-offset:5px;border-radius:5px}
.address-book-row-actions {display:flex;align-items:center;gap:10px}
.address-book-delete {background:none;border:0;color:#bd3444;font:inherit;font-size: var(--portal-type-body);cursor:pointer}
.address-book-empty,.address-book-message {font-size: var(--portal-type-body);color:#768195;padding:16px 0;margin:0}
.address-book-message {color:#296b49}
.address-book-picker {background:#f7f9fc;border:1px solid #e1e6ee;border-radius:16px;padding:16px;margin:0 0 20px}
.address-book-picker h4 {margin:0 0 12px;font-size: var(--portal-type-subheading);font-weight: 600}
.address-book-picker-list {max-height:220px;overflow:auto;margin-top:12px;display:grid;gap:8px}
.address-book-save-current {display:grid;gap:10px;border-top:1px solid #e1e6ee;padding-top:14px;margin-top:14px}
.address-book-save-current label,.address-book-form label {display:grid;gap:7px;font-size: var(--portal-type-body);color:#607089}
.address-book-save-current .button {justify-self:end;min-height:40px}
.address-book-scrim {position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:20px;background:rgba(25,31,43,.24);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.address-book-editor {width:min(640px,100%);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e1e6ed;border-radius:24px;background:#fff;color:#202631;box-shadow:0 28px 90px #0003}
.address-book-editor header {display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid #edf0f5}
.address-book-editor h3 {font-size: var(--portal-type-subheading);letter-spacing:-.5px;margin:0}
.address-book-editor header p {font-size: var(--portal-type-body);color:#768195;margin:6px 0 0}
.address-book-close {border:0;background:#f1f3f6;color:#667386;border-radius:50%;width:32px;height:32px;font-size: var(--portal-type-section);cursor:pointer}
.address-book-form {padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.address-book-wide {grid-column:1/-1}
.address-book-editor input,.address-book-toolbar input,.address-book-picker input {height:44px;width:100%;min-width:0;border:1px solid #d8e0ec;border-radius:10px;padding:0 12px;font:inherit;font-size: var(--portal-type-body);color:#202631;background:#fff;box-sizing:border-box}
.address-book-editor input:focus,.address-book-toolbar input:focus,.address-book-picker input:focus {outline:2px solid #4485e544;outline-offset:1px;border-color:#4485e5}
.address-book-editor footer {position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;background:#fff;border-top:1px solid #edf0f5}
.address-book-editor footer .button {min-height:42px}
html[data-theme="dark"] :is(.address-book-editor,.address-book-row,.address-book-editor footer) {background:#17191d;color:#f3f5f8;border-color:#30353d}
html[data-theme="dark"] :is(.address-book-picker,.address-book-close) {background:#20242a;color:#b8c3d3;border-color:#353b46}
html[data-theme="dark"] :is(.address-book-editor input,.address-book-toolbar input,.address-book-picker input) {background:#111317;color:#f3f5f8;border-color:#3a414d}
html[data-theme="dark"] .address-book-item {color:#f3f5f8}
html[data-theme="dark"] .address-section__book-button {color:#b8c3d3}
html[data-theme="dark"] .address-section__book-button:hover {background:#273341;color:#acd5ff}
@media(max-width:560px){.address-book-form{grid-template-columns:1fr}.address-book-toolbar{flex-wrap:wrap}.address-book-toolbar input{flex-basis:100%}.address-book-row{align-items:flex-start;flex-direction:column}.address-book-row-actions{align-self:flex-end}}
.address-section__manual-panel-inner.is-address-book-open > :is(.address-section__top-grid,.address-section__detail-grid) {display:none}
.address-section__manual-panel-inner.is-address-book-open .address-book-picker {margin-bottom:0}

/* Address lookup uses the same provider as quotation pickup/delivery. */
.address-book-suggestions.address-section__search-results--floating { z-index:12010!important; }
.address-book-lookup { padding-bottom:20px; border-bottom:1px solid var(--border-color,#e5e9f0); }
.address-book-lookup small { color:#78869c; font-size: var(--portal-type-caption); }

/* Navigation labels inherit the same typography as the other Settings links. */
.settings-sidebar__link > [data-book-text] { display:block; color:inherit; font:inherit; text-align:left; }

/* Quiet, clearly selectable cargo preferences. */
.request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card { gap:12px; border-radius:10px; cursor:pointer; }
.request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card__content { display:inline-flex; align-items:center; gap:9px; }
.request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card strong { font-size: var(--portal-type-body); font-weight: 600; letter-spacing:0; text-transform:none; line-height:1.4; }
.request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card strong::after { width:14px; height:14px; margin-left:8px; font-size:10px; font-weight: 500; opacity:.65; }
.request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card input { flex:0 0 22px; width:22px; height:22px; border-radius:6px; }
.request-card .cargo-option-icon { display:inline-flex; flex:0 0 20px; width:20px; height:20px; }
.request-card .cargo-option-icon svg { width:100%;height:100%; }
.request-card .cargo-option-icon--danger { color:#d34b51; }
.request-card .cargo-option-icon--temperature { color:#2989d4; }
html[data-theme="dark"] .request-card .cargo-option-icon--danger { color:#f17a80; }
html[data-theme="dark"] .request-card .cargo-option-icon--temperature { color:#66b9f4; }
html .request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card input:checked { border-color:#22bd5e; background:#22bd5e; }

.request-card :is(#dangerous-goods-toggle-group,#temperature-control-toggle-group) .toggle-card strong::after { content:none; display:none; }

/* Quotation notes and documents sit beside the final actions. */
.quotation-footer-extras[hidden],.quotation-documents-popover[hidden]{display:none!important}
.request-card.is-dev-mode .form-footer { gap:20px; align-items:flex-start; flex-wrap:wrap; }
.quotation-footer-extras { display:flex; gap:12px; align-items:flex-start; flex:1 1 350px; min-width:0; }
#quotation-footer-remarks { flex:1; min-width:160px; }
#quotation-footer-remarks .field { margin:0; gap:0; }
#quotation-footer-remarks .field>span { display:none; }
#quotation-footer-remarks textarea { box-sizing:border-box; width:100%; min-height:58px; height:58px; max-height:160px; resize:vertical; padding:17px 16px; border:1px solid #dbe3ef; border-radius:12px; background:#fff; color:#182235; font:inherit; font-size: var(--portal-type-body); line-height:22px; }
.quotation-documents-button { min-height:58px; display:inline-flex; gap:9px; align-items:center; padding:0 17px; border:1px solid #dbe3ef; border-radius:12px; background:#fff; color:#344055; font:inherit; font-size: var(--portal-type-body); cursor:pointer; }
.quotation-documents-button:hover,.quotation-documents-button[aria-expanded="true"] { background:#f6f8fb; border-color:#bdc9da; }
.quotation-documents-button svg { width:19px;height:19px; }
#quotation-documents-count { padding:2px 6px; border-radius:6px; background:#eaf2ff; color:#246bc3; font-size: var(--portal-type-body); }
.quotation-documents-popover { position:absolute; z-index:10020; box-sizing:border-box; width:min(480px,calc(100vw - 24px))!important; max-width:calc(100vw - 24px)!important; overflow:auto; padding:16px; border:1px solid #e0e6ef; border-radius:20px; background:rgba(255,255,255,.98); color:#1a2333; box-shadow:0 20px 55px #16243c26,0 4px 12px #16243c0a; }
.quotation-documents-popover>header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; font-size: var(--portal-type-body); }
.quotation-documents-popover>header button { width:30px;height:30px;border:0;border-radius:50%;background:#f1f3f6;color:#64748b;font-size: var(--portal-type-subheading);cursor:pointer; }
.quotation-documents-popover .request-panel--upload { padding:0;border:0;background:none;box-shadow:none; }
.quotation-documents-popover .file-dropzone { box-sizing:border-box; padding:12px; min-height:82px; gap:5px; border:1px dashed #c7d2e1; border-radius:12px; background:#f7f9fc; }
.quotation-documents-popover .file-dropzone strong {font-size: var(--portal-type-body);font-weight: 600}
.quotation-documents-popover .file-dropzone p,.quotation-documents-popover .file-dropzone span {font-size: var(--portal-type-body);line-height: 1.5;margin:0}
.quotation-documents-popover .file-list { margin-top:10px; gap:8px; }
.quotation-documents-popover .file-chip { padding:10px; gap:8px; border-radius:12px; }
.quotation-documents-popover .file-chip__meta strong { font-size: var(--portal-type-caption); overflow-wrap:anywhere; }
.quotation-documents-popover .file-chip__controls { min-width:0; gap:8px; }
.quotation-documents-popover .file-chip__type-field { min-width:170px; }
@media(max-width:520px){.quotation-documents-popover .file-chip{grid-template-columns:minmax(0,1fr)}.quotation-documents-popover .file-chip__controls{justify-content:space-between}.quotation-documents-popover .file-chip__type-field{flex:1;min-width:0}}
html[data-theme="dark"] #quotation-footer-remarks textarea,html[data-theme="dark"] .quotation-documents-button {background:var(--input,#161a21);border-color:var(--line-strong,#303641);color:var(--text-primary,#e5eaf0)}
html[data-theme="dark"] .quotation-documents-popover {background:#151a22;border-color:#303946;color:#e5eaf0;box-shadow:0 20px 55px #0008}
html[data-theme="dark"] .quotation-documents-popover>header button,html[data-theme="dark"] .quotation-documents-popover .file-dropzone {background:#1d2430;border-color:#3b4658;color:#dbe2ee}
@media(max-width:760px){.quotation-footer-extras{flex-basis:100%}.request-card.is-dev-mode .form-footer__actions{margin-left:auto;gap:12px}}

/* Body-mounted document type menus must sit above the upload popover. */
.frontend-select__dropdown--documents { z-index:10021; }

/* Shared subtitle contrast in the dark theme. */
html[data-theme="dark"] .portal-shell .app-page-header > .app-page-header__copy > p,
html[data-theme="dark"] #dashboard-view .dashboard-hero__copy > p { color:#9ba3af; }

/* Theme selection accents keep the active mode recognizable. */
.portal-shell .portal-topbar .portal-theme-toggle[aria-pressed="false"] .portal-theme-toggle__icon--sun { color: #e5a500; }
.portal-shell .portal-topbar .portal-theme-toggle[aria-pressed="true"] .portal-theme-toggle__icon--moon { color: #3694ff; }

/* Let the page surface continue around the quotation controls and cards. */
html:not([data-theme="dark"]) .quotations-create-view.is-dev-mode,
html:not([data-theme="dark"]) .quotations-create-view.is-dev-mode > .request-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Compact cargo totals. */
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-summary {
  padding-block: 10px;
}
.request-card.is-dev-mode .dev-shipment-details__content .dimensions-metric {
  min-height: 44px;
  row-gap: 4px;
}

/* Quiet cargo heading and unit switch share one compact header row. */
.request-card.is-dev-mode .dev-card--shipment-details .dev-card__header--spread h3 {
  font-size: var(--portal-type-subheading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}
html:not([data-theme="dark"]) .request-card.is-dev-mode .dev-card--shipment-details .dev-card__header h3 {
  color: #263752;
}
.request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle {
  min-height: 30px;
  padding: 2px;
  gap: 2px;
}
.request-card.is-dev-mode .dev-preferences-panel__slot .dimensions-toggle__option {
  min-height: 24px;
  padding-inline: 10px;
  font-size: var(--portal-type-body);
}

/* A filled commodity also fills its diamond indicator. */
.request-card.is-dev-mode .dev-goods-type__field .dev-field__control:has(#commodity:not(:placeholder-shown))::after {
  background: #000000;
  border-color: #000000;
}
html[data-theme="dark"] .request-card.is-dev-mode .dev-goods-type__field .dev-field__control:has(#commodity:not(:placeholder-shown))::after {
  background: #ffffff;
  border-color: #ffffff;
}

/* Cargo autofill floats above the form without changing its layout. */
.dimensions-ai-import.dimensions-ai-import--popover {
  position: absolute;
  z-index: 1400;
  padding: 20px;
  border: 1px solid #e3e6ec;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .18), 0 3px 12px rgba(15, 23, 42, .06);
  overflow: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}
.dimensions-ai-import--popover .dimensions-ai-import__sources {
  width: min(560px, calc(100vw - 68px));
}
.dimensions-ai-import--popover.is-collapsed {
  pointer-events: none;
}
html[data-theme="dark"] .dimensions-ai-import.dimensions-ai-import--popover {
  background: #19191c;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
@media (max-width: 640px) {
  .dimensions-ai-import--popover .dimensions-ai-import__sources {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dimensions-ai-import.dimensions-ai-import--popover { transition: none; }
}

/* Fit more cargo text in the floating autofill editor. */
.dimensions-ai-import--popover #dimensions-ai-text {
  font-size: var(--portal-type-body);
  line-height: 1.4;
}

/* Dark portal bell stays on the page surface, including hover/open states. */
html[data-theme="dark"] .portal-shell .portal-notification-button,
html[data-theme="dark"] .portal-shell .portal-notification-button:hover,
html[data-theme="dark"] .portal-shell .portal-notification-button.is-notification-open {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
}

/* Explicit bell contrast independent of the utility control palette. */
html:not([data-theme="dark"]) .portal-shell .portal-notification-button {
  color: #000000 !important;
}
html[data-theme="dark"] .portal-shell .portal-notification-button {
  color: #ffffff !important;
}
.portal-shell .portal-notification-button svg {
  stroke: currentColor;
  fill: none;
  transform-origin: 50% 20%;
}

/* A small physical press on the bell without adding a background disc. */
.portal-shell .portal-notification-button {
  transition: transform 140ms ease-out, opacity 140ms ease-out;
}
.portal-shell .portal-notification-button:active {
  transform: translateY(1px) scale(0.9);
  opacity: 0.72;
  transition-duration: 70ms;
}
@media (prefers-reduced-motion: reduce) {
  .portal-shell .portal-notification-button { transition: none; }
}

/* Supplied working-quotation illustrations with live, translatable copy. */
.quotation-drawer__offers-panel--waiting:has(.quotation-working-card) {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce3ed;
  border-radius: 24px;
  background: #fafcfe;
}
.quotation-working-card { display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 20px; padding: 24px 28px 24px 12px; }
.quotation-working-card__art { position: relative; aspect-ratio: 740 / 395; overflow: hidden; }
.quotation-working-card__art img { position: absolute; width: 293.5135%; max-width: none; height: auto; left: -8.7838%; top: -39.2405%; }
.quotation-working-card__dark { display: none; }
.quotation-working-card__copy h3 { margin: 0 0 12px; font-size: var(--portal-type-subheading); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: #0b1e35; }
.quotation-working-card__copy h3 em { font-style: normal; color: #dba15b; }
.quotation-working-card__copy p { margin: 0; font-size: var(--portal-type-body); line-height: 1.55; color: #8292aa; }
.quotation-working-card__status { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: var(--portal-type-caption); color: #8292aa; }
.quotation-working-card__spinner { width: 28px; height: 28px; flex: 0 0 28px; border: 4px solid #dedede; border-top-color: #dba15b; border-left-color: #dba15b; border-radius: 50%; box-sizing: border-box; animation: quotation-working-spin 1.2s linear infinite; }
@keyframes quotation-working-spin { to { transform: rotate(360deg); } }
html[data-theme="dark"] .quotation-drawer__offers-panel--waiting:has(.quotation-working-card) { border-color: #2c3037; background: #111214; }
html[data-theme="dark"] .quotation-working-card__light { display: none; }
html[data-theme="dark"] .quotation-working-card__dark { display: block; }
html[data-theme="dark"] .quotation-working-card__copy h3 { color: #f5f5f5; }
html[data-theme="dark"] .quotation-working-card__copy h3 em { color: #edbd7d; }
html[data-theme="dark"] .quotation-working-card__copy p,
html[data-theme="dark"] .quotation-working-card__status { color: #b2bac5; }
html[data-theme="dark"] .quotation-working-card__spinner { border-color: #3a3732; border-top-color: #edbd7d; border-left-color: #edbd7d; }
@media (max-width: 640px) {
  .quotation-working-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .quotation-working-card__art { width: min(100%, 310px); justify-self: center; }
  .quotation-working-card__copy h3 { font-size: var(--portal-type-subheading); }
}
@media (prefers-reduced-motion: reduce) { .quotation-working-card__spinner { animation: none; } }

/* Stable dashboard geometry while the first authenticated read is pending. */
.dashboard-loading-status { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--portal-type-body); line-height: 1.5; }
.dashboard-loading-card, .dashboard-loading-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 24px; }
.dashboard-loading-card { display: flex; gap: 20px; min-height: 210px; }
.dashboard-loading-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--surface-soft); }
.dashboard-loading-lines { flex: 1; padding-top: 4px; }
.dashboard-loading-lines i, .dashboard-loading-panel > i { display: block; height: 12px; max-width: 170px; margin-bottom: 18px; border-radius: 6px; background: var(--surface-soft); }
.dashboard-loading-lines i:nth-child(2) { height: 30px; width: 48px; }
.dashboard-loading-lines i:nth-child(3) { width: 80%; }
.dashboard-loading-panel { min-height: 320px; }
.dashboard-loading-panel > i:nth-child(2) { width: 70%; max-width: 270px; }
.dashboard-loading-chart { height: 160px; margin-top: 28px; border-radius: 12px; background: var(--surface-soft); }

.portal-session-recovery { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-muted); font-size: var(--portal-type-body); }
.portal-session-recovery__ring { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--ink-muted); border-radius: 50%; animation: portal-session-recovery-spin 1s linear infinite; }
@keyframes portal-session-recovery-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .portal-session-recovery__ring { animation: none; } }

/* Quiet chart cards: one heading, meaningful data and a light drill-down. */
.quotations-context-menu__panel { min-width: 216px; padding: 6px; border-radius: 14px; }
.quotations-context-menu__item { min-height: 36px; border-radius: 9px; font-size: var(--portal-type-body); font-weight: 500; }
.quotations-context-menu__item:focus-visible { outline: 2px solid var(--portal-accent); outline-offset: -2px; }
.dashboard-target-card.dashboard-target-card--quiet {
  --dashboard-status-neutral: #292b30;
  grid-template-rows: 44px minmax(0, 1fr) 36px;
  height: 256px;
  min-height: 256px;
  padding: 20px 22px 0;
  border-radius: 18px;
}
.dashboard-target-card--quiet .dashboard-target-card__top {
  display: flex;
  align-items: center;
  min-height: 0;
  gap: 12px;
}
.dashboard-target-card--quiet h3 {
  margin: 0;
  font-size: var(--portal-type-subheading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.dashboard-target-card--quiet .dashboard-target-actions { position: static; gap: 6px; }
.dashboard-target-card--quiet .dashboard-target-actions .dashboard-target-snapshot {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--portal-type-body);
}
.dashboard-target-card--quiet .dashboard-target-actions button {
  width: auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: var(--portal-type-body);
  font-weight: 500;
}
.dashboard-target-card--quiet .dashboard-target-footer-link {
  position: static;
  justify-content: space-between;
  min-height: 36px;
  height: 36px;
  margin: 0;
  color: var(--ink-muted);
  border-color: var(--line);
  font-size: var(--portal-type-body);
  font-weight: 500;
  transform: none;
}
.dashboard-target-card--quiet .dashboard-target-routes { position: relative; inset: auto; padding: 8px 0 18px; gap: 22px; align-content: center; }
.dashboard-target-card--quiet .dashboard-target-route {
  grid-template-columns: minmax(130px, 1fr) minmax(70px, 1fr) auto;
  gap: 18px;
}
.dashboard-target-card--quiet .dashboard-target-route__copy strong { font-size: var(--portal-type-body); font-weight: 600; }
.dashboard-target-card--quiet .dashboard-target-route__copy small { font-size: var(--portal-type-caption); margin-top: 6px; }
.dashboard-target-card--quiet .dashboard-target-route__value { font-size: var(--portal-type-body); font-weight: 600; }
.dashboard-target-card--quiet .dashboard-target-route__bar { grid-column: auto; height: 6px; }
.dashboard-target-card--quiet .dashboard-target-status-body {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 26px;
  padding: 6px 6px 14px;
}
.dashboard-target-card--quiet .dashboard-target-donut { position: relative; inset: auto; width: 120px; height: 120px; min-width: 120px; max-width: 120px; min-height: 120px; max-height: 120px; }
.dashboard-target-card--quiet .dashboard-target-donut::after { inset: 12px; }
.dashboard-target-card--quiet .dashboard-target-donut strong { font-size: var(--portal-type-page); font-weight: 600; }
.dashboard-target-card--quiet .dashboard-target-donut span { font-size: var(--portal-type-body); }
.dashboard-target-card--quiet .dashboard-target-legend { position: static; gap: 14px; }
.dashboard-target-card--quiet .dashboard-target-legend strong,
.dashboard-target-card--quiet .dashboard-target-legend b { font-size: var(--portal-type-body); font-weight: 500; }
.dashboard-target-card--quiet .dashboard-target-dot { width: 8px; height: 8px; }
.dashboard-target-card--quiet .dashboard-target-chart__legend {
  top: 0;
  right: 0;
  display: flex;
  gap: 14px;
}
.dashboard-target-card--quiet .dashboard-target-chart__legend span { font-size: var(--portal-type-caption); color: var(--ink-muted); gap: 5px; }
.dashboard-target-card--quiet .dashboard-target-chart__legend i { width: 6px; height: 6px; border-radius: 50%; }
.dashboard-target-card--quiet .dashboard-target-chart--bars { height: 156px; padding-top: 18px; }
.dashboard-target-card--quiet .dashboard-target-bars__axis { top: 29px; bottom: 14px; color: var(--ink-muted); font-size: var(--portal-type-caption); }
.dashboard-target-card--quiet .dashboard-target-bars { margin-top: 13px; border-left: 0; }
.dashboard-target-card--quiet .dashboard-target-bars__item small { font-size: var(--portal-type-caption); color: var(--ink-muted); }
.dashboard-target-card--quiet .dashboard-target-chart--line { height: 156px; min-height: 0; padding-top: 20px; }
.dashboard-target-card--quiet .dashboard-target-line-axis { top: 21px; bottom: 31px; font-size: var(--portal-type-body); color: var(--ink-muted); }
.dashboard-target-card--quiet .dashboard-target-line-labels span { font-size: var(--portal-type-body); color: var(--ink-muted); }
.dashboard-target-card--quiet .dashboard-target-line-grid { stroke: var(--line); stroke-opacity: .6; }
.dashboard-target-card--quiet .dashboard-target-line { stroke-width: 2; }
.dashboard-target-card--quiet .dashboard-target-line-points circle { r: 3; }
html[data-theme="dark"] .dashboard-target-card--quiet .dashboard-target-footer-link { color: var(--ink-muted); border-color: var(--line); }
html[data-theme="dark"] .dashboard-target-card--quiet { --dashboard-status-neutral: #aeb7c4; }
@media (max-width: 480px) {
  .dashboard-target-card.dashboard-target-card--quiet { padding: 16px 16px 0; }
  .dashboard-target-card--quiet h3 { font-size: var(--portal-type-subheading); }
  .dashboard-target-card--quiet .dashboard-target-status-body { grid-template-columns: 114px minmax(0, 1fr); gap: 16px; padding-left: 0; padding-right: 0; }
  .dashboard-target-card--quiet .dashboard-target-donut { width: 108px; height: 108px; min-width: 108px; max-width: 108px; min-height: 108px; max-height: 108px; }
  .dashboard-target-card--quiet .dashboard-target-route { grid-template-columns: minmax(110px, 1fr) minmax(40px, .8fr) auto; gap: 10px; }
}

/* Keep the quotation action row free of a horizontal divider. */
html .portal-shell .quotations-create-view .request-card .form-footer {border-top:0;}

/* Quotation chat uses the same compact message renderer as the Chats workspace. */
.quotation-drawer__chat-thread { display: flex; flex-direction: column; gap: 0; padding: 8px 6px; }
.quotation-drawer__chat-thread > .chat-message { flex-shrink: 0; }
.quotation-drawer__chat-thread > .chat-date-divider { flex-shrink: 0; width: 100%; margin: 12px 0 16px; }
.quotation-drawer__chat-thread .quotation-drawer__message-reference,
.quotation-drawer__chat-thread .quotation-drawer__message-flag { grid-column: 1 / -1; }

#form-alert { white-space: pre-line; }

/* One request view; door addresses retain accessible airport selectors. */
.request-card.is-dev-mode .dev-itinerary__airports { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.request-card.is-dev-mode .dev-itinerary__airports[hidden], .request-card.is-dev-mode .dev-itinerary__airports > [hidden] { display: none !important; }
@media (max-width: 540px) { .request-card.is-dev-mode .dev-itinerary__airports { grid-template-columns: 1fr; } }

/* Integrations: a quiet, informational future state in both portal themes. */
.settings-view #settings-integrations .integrations-coming-soon {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:380px;padding:52px 28px;box-sizing:border-box;text-align:center;
  border:1px solid #e4e7ee;border-radius:24px;
  background:radial-gradient(ellipse at 50% 18%,#f0efff80,transparent 62%),#fff;
  box-shadow:0 8px 32px #25304504;
}
.settings-view .integrations-coming-soon__art {display:flex;align-items:center;justify-content:center;margin-bottom:30px;max-width:100%;}
.settings-view .integrations-coming-soon__art svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.settings-view .integrations-coming-soon__satellite {display:grid;place-items:center;width:48px;height:48px;border:1px solid #e4e6ed;border-radius:14px;background:#ffffffc9;color:#9ba3b0;}
.settings-view .integrations-coming-soon__core {display:grid;place-items:center;width:76px;height:76px;border:1px solid #dfdef6;border-radius:23px;background:linear-gradient(150deg,#fdfdff,#eeeefe);color:#7470ca;box-shadow:0 10px 24px #7770b91a,inset 0 1px 0 #fff;}
.settings-view .integrations-coming-soon__core svg {width:35px;height:35px;}
.settings-view .integrations-coming-soon__connector {width:32px;height:1px;background:linear-gradient(90deg,#e3e5ee,#ccc9ee);margin:0 9px;}
.settings-view .integrations-coming-soon__badge {padding:5px 11px;border-radius:20px;border:1px solid #e6e4f5;background:#f5f4fc;color:#817bab;font-size: var(--portal-type-caption);font-weight: 600;letter-spacing:.035em;}
.settings-view #integrations-future-title {margin:17px 0 11px;font-size: var(--portal-type-page);line-height:1.2;font-weight: 600;letter-spacing:-.045em;color:#252631;}
.settings-view .integrations-coming-soon p {max-width:440px;margin:0;color:#89909d;font-size: var(--portal-type-body);line-height:1.8;}
html[data-theme="dark"] .settings-view #settings-integrations .integrations-coming-soon {border-color:#2b2c33;background:radial-gradient(ellipse at 50% 18%,#7770c615,transparent 62%),#141518;box-shadow:none;}
html[data-theme="dark"] .settings-view .integrations-coming-soon__satellite {border-color:#34343e;background:#202126;color:#727785;}
html[data-theme="dark"] .settings-view .integrations-coming-soon__core {border-color:#434054;background:linear-gradient(150deg,#33313f,#24232e);color:#b1a9ef;box-shadow:0 12px 28px #0002,inset 0 1px 0 #ffffff0b;}
html[data-theme="dark"] .settings-view .integrations-coming-soon__connector {background:linear-gradient(90deg,#34353f,#514b72);}
html[data-theme="dark"] .settings-view .integrations-coming-soon__badge {background:#262331;border-color:#3b354e;color:#b1a4d4;}
html[data-theme="dark"] .settings-view #integrations-future-title {color:#ededf2;}
html[data-theme="dark"] .settings-view .integrations-coming-soon p {color:#9a9da9;}
@media(max-width:520px) {.settings-view #settings-integrations .integrations-coming-soon{min-height:330px;padding:38px 20px}.settings-view .integrations-coming-soon__connector{width:16px;margin:0 6px}.settings-view .integrations-coming-soon p{font-size: var(--portal-type-body)}}

/* The existing profile photo picker also accepts a dropped image. */
.settings-view #settings-profile .settings-profile-card.is-avatar-dragover {
  border-color:#7a9fe9;background:#f0f5ff;box-shadow:0 0 0 4px #4b87ee16;
}
.settings-view #settings-profile .settings-profile-card.is-avatar-dragover .settings-profile-card__details small {color:#3864ab;}
html[data-theme="dark"] .settings-view #settings-profile .settings-profile-card.is-avatar-dragover {
  border-color:#759bdc;background:#1d2a40;box-shadow:0 0 0 4px #77a6f418;
}
html[data-theme="dark"] .settings-view #settings-profile .settings-profile-card.is-avatar-dragover .settings-profile-card__details small {color:#a8c8ff;}

/* Quote volume: SVG points, month labels and hit zones share the same plot. */
.dashboard-target-card--volume .dashboard-target-quote-plot {
  position: relative;
  width: calc(100% - 46px);
  height: 104px;
  margin-left: 27px;
}
.dashboard-target-card--volume .dashboard-target-quote-plot svg {
  width: 100%;
  height: 100%;
  margin: 0;
}
.dashboard-target-card--volume .dashboard-target-chart-interaction--quote {
  inset: 0;
  width: 100%;
  height: 100%;
}
.dashboard-target-chart-interaction--quote .dashboard-target-chart-hotspot,
.dashboard-target-chart-interaction--quote .dashboard-target-chart-hotspot:hover,
.dashboard-target-chart-interaction--quote .dashboard-target-chart-hotspot:active {
  min-width: 0;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}
.dashboard-target-chart-interaction--quote .dashboard-target-chart-hotspot::before,
.dashboard-target-chart-interaction--quote .dashboard-target-chart-hotspot::after {
  display: none;
}
.dashboard-target-chart-interaction--quote.is-tooltip-below .dashboard-target-chart-tooltip {
  transform: translate(-50%, 13px);
}
.dashboard-target-chart-interaction--quote .dashboard-target-chart-tooltip {
  border-radius: 10px;
}

/* Quotation overview: quieter status labels and a sortable creation column. */
.quotation-page-row__status .quotation-page-status {
  min-height: 20px;
  padding: 1px 7px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}
/* Opaque status tints stay distinct on both alternating row backgrounds.
   Inset edges preserve the existing compact badge geometry. */
html:not([data-theme="dark"]) :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status { background: #e7ebf1; color: #4c5769; box-shadow: inset 0 0 0 1px #b7c0ce; }
html:not([data-theme="dark"]) :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--green { background: #d6f3e1; color: #126536; box-shadow: inset 0 0 0 1px #83d4a3; }
html:not([data-theme="dark"]) :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--orange { background: #ffe8bd; color: #8a4a00; box-shadow: inset 0 0 0 1px #edc177; }
html:not([data-theme="dark"]) :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--purple { background: #ece0ff; color: #63359a; box-shadow: inset 0 0 0 1px #c8a8ef; }
html:not([data-theme="dark"]) :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--blue { background: #dceaff; color: #18569e; box-shadow: inset 0 0 0 1px #9dbfee; }
html:not([data-theme="dark"]) :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--red { background: #ffdfdd; color: #9f2727; box-shadow: inset 0 0 0 1px #eda3a0; }
html[data-theme="dark"] :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status { background: #303946; color: #d2dae6; box-shadow: inset 0 0 0 1px #59687c; }
html[data-theme="dark"] :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--green { background: #153e2b; color: #91edb6; box-shadow: inset 0 0 0 1px #296e49; }
html[data-theme="dark"] :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--orange { background: #493116; color: #ffd18a; box-shadow: inset 0 0 0 1px #826035; }
html[data-theme="dark"] :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--purple { background: #38254f; color: #d6b4ff; box-shadow: inset 0 0 0 1px #67468b; }
html[data-theme="dark"] :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--blue { background: #1b3558; color: #acd0ff; box-shadow: inset 0 0 0 1px #3e628e; }
html[data-theme="dark"] :is(.quotation-page-row__status, .quotation-status-guide) .quotation-page-status--red { background: #4b2429; color: #ffb5b1; box-shadow: inset 0 0 0 1px #845055; }
.quotation-page-row__created {
  color: var(--ink-muted) !important;
  font-size: 12px !important;
  white-space: nowrap;
}
.quotation-page-row__created > span { display: block; }
@media (min-width: 761px) {
  .quotations-page-table-wrap:has(.quotation-page-table--created-column) { overflow-x: auto; }
  .quotation-page-table.quotation-page-table--created-column { min-width: 1100px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(1) { width: 30px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(2) { width: 11%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(3) { width: 8%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(4) { width: 14%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(5) { width: 5%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(6) { width: 12%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(7) { width: 13%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(8) { width: 11%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(9) { width: 15%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(10) { width: 11%; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(11) { width: 26px; }
}
@media (max-width: 760px) {
  .quotation-page-table--created-column .quotation-page-row {
    grid-template-areas: "select quotation more" "select route route" "select status status" "select load load" "select created created" "select updated updated" "select action action";
  }
  .quotation-page-row__created { grid-area: created; }
}

/* Primary quotation filters show either their title or their active value. */
.quotation-filter-select.quotation-filter-select--single {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
}
.quotation-filter-select.quotation-filter-select--single select {
  width: 100%;
  height: 100%;
  padding: 0 35px 0 11px;
  font: inherit;
  font-size: var(--portal-type-body, 14px);
  line-height: normal;
  text-overflow: ellipsis;
  color: var(--ink-muted);
}
.quotation-filter-select.quotation-filter-select--single.is-active select { color: var(--ink); }
.quotation-filter-select.quotation-filter-select--single > svg {
  top: 50%;
  right: 11px;
  bottom: auto;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}
.quotation-filter-select--single.is-active > svg { display: none; }
.quotation-filter-select--single .quotation-filter-reset {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-muted);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  cursor: pointer;
}
.quotation-filter-select--single .quotation-filter-reset[hidden] { display: none; }
.quotation-filter-select--single .quotation-filter-reset svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.quotation-filter-select--single .quotation-filter-reset:hover,
.quotation-filter-select--single .quotation-filter-reset:active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  filter: none;
}
.quotation-filter-select--single .quotation-filter-reset::before,
.quotation-filter-select--single .quotation-filter-reset::after { display: none; }
.quotation-filter-select--single .quotation-filter-reset:focus-visible { outline: 2px solid #1267ff; outline-offset: 1px; }

/* Search and four primary choices fill the row without an extra Filters menu. */
.quotation-filter-grid.quotation-filter-grid--primary-only {
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(0, 1fr));
}
.quotation-filter-grid--primary-only .quotation-filter-search { grid-column: auto; }
@media (max-width: 760px) {
  .quotation-filter-grid.quotation-filter-grid--primary-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotation-filter-grid--primary-only .quotation-filter-search { grid-column: 1 / -1; }
  .quotation-filter-grid--primary-only .quotation-filter-select { grid-column: auto; }
}

/* Personal pinned quotation stars: keep hit target/layout fixed during feedback. */
.quotation-favourite { border-radius: 6px; transition: color 180ms ease; }
.quotation-favourite svg { fill: transparent; transition: fill 180ms ease, filter 180ms ease; }
.quotation-favourite.is-active { color: #bc8207; }
.quotation-favourite.is-active svg { fill: #f7bd31; filter: drop-shadow(0 1px 2px rgb(188 130 7 / 22%)); }
.quotation-favourite:focus-visible { outline: 2px solid #bc8207; outline-offset: 2px; }
[data-theme="dark"] .quotation-favourite.is-active { color: #f7c75b; }
@media (prefers-reduced-motion: reduce) { .quotation-favourite, .quotation-favourite svg { transition: none; } }

/* Click-only customer status guide, matching the existing transport info icon. */
.quotation-status-help { display: inline-flex; margin-left: 3px; vertical-align: middle; }
.quotation-status-help__button { cursor: pointer; }
.quotations-table__sortable-header:has(.quotation-status-help) .quotations-table__sort-indicator[data-sort-direction="none"] { display: none; }
.quotation-status-guide {
  position: fixed; inset: auto; margin: 0; padding: 18px;
  width: 460px; max-width: calc(100vw - 24px); box-sizing: border-box;
  height: max-content; max-height: calc(100dvh - 24px); overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card);
  font: 400 var(--portal-type-body, 14px)/1.5 var(--font-sans, sans-serif); text-align: left; white-space: normal;
}
.quotation-status-guide header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.quotation-status-guide h2 { margin: 0; font: 600 16px/1.4 var(--font-sans, sans-serif); letter-spacing: -.02em; }
.quotation-status-guide header button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-muted, transparent); color: var(--ink-muted); font: 400 23px/1 sans-serif; cursor: pointer; }
.quotation-status-guide header button:focus-visible { outline: 2px solid #2768ff; outline-offset: 2px; }
.quotation-status-guide dl { margin: 0; display: grid; gap: 0; }
.quotation-status-guide dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.quotation-status-guide dt, .quotation-status-guide dd { margin: 0; }
.quotation-status-guide dd { color: var(--ink-muted); font-size: var(--portal-type-caption, 13px); }
@supports (anchor-name: --quotation-status-info) and (top: anchor(bottom)) {
  .quotation-status-help__button { anchor-name: --quotation-status-info; }
  .quotation-status-guide { position-anchor: --quotation-status-info; top: calc(anchor(bottom) + 8px); left: anchor(left); position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
}
@media (max-width: 460px) { .quotation-status-guide dl > div { grid-template-columns: 1fr; gap: 6px; } }

/* Explicit logout confirmation, centred above every customer portal view. */
.portal-logout-dialog {
  position: fixed; inset: 0; margin: auto; width: min(420px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px); overflow: auto; box-sizing: border-box;
  padding: 30px; border: 1px solid var(--line-strong); border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
  text-align: center; font-family: var(--font-sans, sans-serif);
}
.portal-logout-dialog::backdrop { background: rgb(9 15 24 / 34%); backdrop-filter: blur(4px); }
.portal-logout-dialog form { margin: 0; }
.portal-logout-dialog__icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 20px; border-radius: 16px; background: var(--surface-muted, #f3f4f6); }
.portal-logout-dialog__icon svg { width: 26px; height: 26px; }
.portal-logout-dialog h2 { margin: 0; font: 600 23px/1.3 var(--font-sans, sans-serif); letter-spacing: -.035em; }
.portal-logout-dialog p { margin: 14px 0 0; color: var(--ink-muted); font-size: var(--portal-type-body, 14px); line-height: 1.5; }
.portal-logout-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.portal-logout-dialog__actions button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 var(--portal-type-body, 14px)/1.3 var(--font-sans, sans-serif); cursor: pointer; }
.portal-logout-dialog__actions .portal-logout-dialog__confirm { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.portal-logout-dialog__actions button:hover { filter: brightness(.94); }
.portal-logout-dialog__actions button:focus-visible { outline: 2px solid #2768ff; outline-offset: 3px; }
@media (max-width: 380px) { .portal-logout-dialog { padding: 24px; } .portal-logout-dialog h2 { font-size: 21px; } }

/* Keep route subtitles within their own cell and align primary row content. */
.quotation-page-table--created-column .quotation-page-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  column-gap: 7px;
  width: 100%;
  max-width: 100%;
}
.quotation-page-table--created-column .quotation-page-route > span {
  width: 100%; max-width: 100%; min-width: 0; justify-items: start;
}
.quotation-page-table--created-column .quotation-page-route strong,
.quotation-page-table--created-column .quotation-page-route small {
  width: 100%; max-width: 100%; min-width: 0; text-align: left;
}
.quotation-page-table--created-column .quotation-page-route strong,
.quotation-page-table--created-column .quotation-page-route small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quotation-page-table--created-column .quotation-page-row__route,
.quotation-page-table--created-column .quotation-page-row__mode {
  min-width: 0;
  overflow: hidden;
}
.quotation-page-table--created-column .quotation-page-row__mode > span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.quotation-page-table--created-column .quotation-page-row__mode [data-quotation-mode-label] {
  flex: 0 0 auto;
}
@media (min-width: 761px) {
  .quotation-page-table.quotation-page-table--created-column { min-width: 1220px; }
  .quotation-page-table.quotation-page-table--created-column > thead > tr > th,
  .quotation-page-table.quotation-page-table--created-column > tbody > tr > td {
    padding-inline: 8px; text-align: left; box-sizing: border-box;
  }
  .quotation-page-table.quotation-page-table--created-column > tbody > tr > td {
    vertical-align: top; padding-block: 14px;
  }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(1) { width: 28px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(2) { width: 112px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(3) { width: 104px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(4) { width: 210px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(5) { width: 66px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(6) { width: 128px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(7) { width: 122px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(8) { width: 112px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(9) { width: 164px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(10) { width: 144px; }
  .quotation-page-table.quotation-page-table--created-column thead th:nth-child(11) { width: 28px; }
  .quotation-page-table--created-column .quotation-page-row__customer-reference {
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Reports design revision, 2026-11-04. All surfaces remain scoped to Reports. */
#reports-root { container-type: inline-size; --report-surface: #fff; --report-soft: #f5f6f8; --report-line: rgba(20,28,42,.08); --report-ink: #1d1d1f; --report-muted: #7b8190; --report-blue: #007aff; --report-green: #24a889; }
html[data-theme="dark"] #reports-root { --report-surface: #151618; --report-soft: #202226; --report-line: rgba(255,255,255,.09); --report-ink: #f5f5f7; --report-muted: #9b9faa; --report-blue: #409cff; --report-green: #50c9a6; }
#reports-root .reports-page { gap: 20px; max-width: 1440px; color: var(--report-ink); padding-bottom: 24px; }
#reports-root button, #reports-root select, #reports-root input { font-family: inherit; -webkit-tap-highlight-color: transparent; }
#reports-root button { cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s, color .18s; }
#reports-root button:disabled { cursor: default; opacity: .35; }
#reports-root :focus-visible { outline: 2px solid var(--report-blue); outline-offset: 3px; }
#reports-root [hidden] { display: none !important; }
#reports-root .reports-header { margin-bottom: 0; }
#reports-root .reports-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 24px; margin: -12px 0 -4px; color: var(--report-muted); font-size: var(--portal-type-caption,13px); }
#reports-root .reports-context > span { margin-right: auto; }
#reports-root .reports-context button { display: inline-flex; gap: 12px; align-items: center; min-height: 28px; padding: 3px 10px; border: 0; border-radius: 20px; background: var(--report-soft); color: var(--report-ink); }
#reports-root .reports-controls > button, #reports-root .reports-controls .date { border: 1px solid var(--report-line); border-radius: 12px; background: var(--report-surface); color: var(--report-ink); font-weight: 500; box-shadow: 0 2px 5px rgba(0,0,0,.02); }
#reports-root .reports-controls > button[data-export] { background: var(--report-ink); color: var(--report-surface); border-color: transparent; }
#reports-root .reports-controls > button:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
#reports-root .reports-controls > button:active { box-shadow: inset 0 2px 5px rgba(0,0,0,.14); }
#reports-root .reports-kpis { gap: 12px; }
#reports-root .reports-kpi, #reports-root .reports-card, #reports-root .reports-filter { background: var(--report-surface); color: var(--report-ink); border: 1px solid var(--report-line); border-radius: 20px; box-shadow: 0 3px 16px rgba(20,25,40,.025); }
#reports-root .reports-kpi { display: block; min-height: 156px; padding: 20px; text-align: left; }
#reports-root .reports-kpi:hover { border-color: color-mix(in srgb,var(--report-blue) 28%,var(--report-line)); box-shadow: 0 8px 25px rgba(0,0,0,.07); }
#reports-root .reports-kpi:active { background: var(--report-soft); }
#reports-root .reports-kpi > span:first-child { color: var(--report-muted); font-weight: 500; padding-right: 28px; line-height: 1.4; }
#reports-root .reports-kpi > strong { max-width: 100%; margin: 14px 0 10px; color: var(--report-ink); font-size: 30px; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
#reports-root .reports-kpi > i { top: 18px; right: 17px; width: 24px; height: 24px; background: transparent; color: var(--report-muted); }
#reports-root .reports-kpi > i svg { width: 19px; height: 19px; }
#reports-root .reports-trend { min-height: 18px; margin: 0 0 20px; font-size: 12px; font-weight: 500; }
#reports-root .reports-trend small, #reports-root .reports-trend.is-neutral { color: var(--report-muted); font-size: 12px; font-weight: 400; }
#reports-root .reports-spark { height: 22px; bottom: 7px; left: 20px; width: calc(100% - 40px); opacity: .6; }
#reports-root .reports-spark polyline { stroke: var(--report-blue); stroke-width: 1.5; }
#reports-root .reports-spark--green polyline { stroke: var(--report-green); }
#reports-root .reports-grid { gap: 20px; align-items: stretch; }
#reports-root .reports-grid.primary { grid-template-columns: minmax(0,1.75fr) minmax(0,1fr); }
#reports-root .reports-grid.secondary { grid-template-columns: repeat(4,minmax(0,1fr)); }
#reports-root .reports-card { padding: 24px; min-height: 300px; display: flex; flex-direction: column; }
#reports-root .reports-card > header { gap: 12px; align-items: center; min-height: 44px; }
#reports-root .reports-eyebrow { margin: 0 0 6px; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--report-muted); line-height: 1.3; }
#reports-root .reports-card h2 { margin: 0; color: var(--report-ink); font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
#reports-root .reports-spend h2 { font-size: 28px; font-variant-numeric: tabular-nums; }
#reports-root .reports-card header select, #reports-root .reports-activity header select { min-height: 34px; max-width: 130px; padding: 5px 8px; border: 1px solid var(--report-line); border-radius: 9px; background: var(--report-soft); color: var(--report-ink); font-size: 12px; font-weight: 500; }
#reports-root .reports-period-caption { padding: 0; border: 0; background: transparent; color: var(--report-muted); text-transform: capitalize; font-size: 12px; }
#reports-root .reports-line-wrap { height: auto; margin: 22px 0 0; }
#reports-root .reports-chart-surface { position: relative; min-width: 0; }
#reports-root .reports-legend { justify-content: flex-start; gap: 8px; height: auto; padding: 0; margin-bottom: 16px; }
#reports-root .reports-legend button { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--report-muted); font-size: 12px; opacity: .4; }
#reports-root .reports-legend button.is-on { opacity: 1; background: var(--report-soft); color: var(--report-ink); }
#reports-root .reports-legend button b { width: 6px; height: 6px; border-radius: 50%; margin: 0; background: var(--report-blue); }
#reports-root .reports-legend button:nth-child(2) b { background: var(--report-green); }
#reports-root .reports-line-wrap svg { display: block; width: 100%; height: auto; min-height: 195px; max-height: 300px; overflow: visible; }
#reports-root .reports-line-wrap svg .grid { stroke: var(--report-line); }
#reports-root .reports-line-wrap svg .line { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#reports-root .reports-line-wrap svg .blue { stroke: var(--report-blue); }
#reports-root .reports-line-wrap svg .green { stroke: var(--report-green); }
#reports-root .reports-line-wrap svg circle { fill: var(--report-surface); stroke-width: 2.5; }
#reports-root .reports-line-wrap svg text.axis { fill: var(--report-muted); font-size: 12px; font-weight: 400; }
#reports-root .reports-point { cursor: pointer; outline: none; }
#reports-root .reports-hit { fill: transparent; }
#reports-root .reports-crosshair { stroke: var(--report-muted); stroke-dasharray: 3 5; opacity: 0; pointer-events: none; }
#reports-root .reports-point:is(:hover,:focus) .reports-crosshair { opacity: .4; }
#reports-root .reports-point:is(:hover,:focus) circle { stroke-width: 4; }
#reports-root .reports-point:focus-visible .reports-hit { fill: color-mix(in srgb,var(--report-blue) 7%,transparent); }
#reports-root .reports-tooltip { position: absolute; z-index: 5; top: 32px; width: max-content; max-width: min(260px,calc(100% - 16px)); padding: 12px 16px; border: 1px solid var(--report-line); border-radius: 14px; background: var(--report-surface); color: var(--report-ink); box-shadow: 0 10px 35px rgba(0,0,0,.15); pointer-events: none; font-size: 12px; animation: reports-tip-in .14s ease-out; }
#reports-root .reports-tooltip strong, #reports-root .reports-tooltip span, #reports-root .reports-tooltip small { display: block; line-height: 1.5; white-space: normal; }
#reports-root .reports-tooltip strong { font-weight: 600; margin-bottom: 3px; }
#reports-root .reports-tooltip small { color: var(--report-muted); font-size: 11px; margin-top: 6px; }
#reports-root .reports-chart-hint { margin: auto 0 0; padding-top: 18px; color: var(--report-muted); font-size: 11px; }
#reports-root .reports-spend-chart { margin-top: 68px; }
#reports-root .reports-spend-chart svg { display: block; width: 100%; height: auto; min-height: 195px; max-height: 300px; overflow: visible; }
#reports-root .reports-spend-chart .grid { stroke: var(--report-line); fill: none; }
#reports-root .reports-spend-chart text { fill: var(--report-muted); text-anchor: middle; font-size: 12px; }
#reports-root .reports-spend-chart .reports-point:is(:hover,:focus) .reports-spend-bar { filter: brightness(1.12); }
#reports-root .reports-columns { height: 259px; padding: 22px 0 0; gap: 10px; border-color: var(--report-line); }
#reports-root .reports-columns button { display: grid; grid-template-rows: 24px minmax(0,1fr) 26px; max-width: 120px; min-width: 35px; margin: 0 auto; color: var(--report-ink); }
#reports-root .reports-column-track { height: 100%; width: 100%; display: flex; align-items: end; justify-content: center; }
#reports-root .reports-columns button i { width: min(42px,75%); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg,#58aaff,#007aff); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); transition: filter .2s; }
#reports-root .reports-columns button:is(:hover,:focus-visible) i { filter: brightness(1.15); }
#reports-root .reports-columns button small { color: var(--report-muted); font-size: 11px; }
#reports-root .reports-columns button strong { font-size: 12px; font-weight: 600; }
#reports-root .reports-ranking { gap: 10px; margin: 24px -6px 18px; }
#reports-root .reports-ranking button { grid-template-columns: 20px minmax(0,1fr) auto; padding: 8px 6px; border-radius: 10px; gap: 8px; color: var(--report-ink); }
#reports-root .reports-ranking button:hover { background: var(--report-soft); }
#reports-root .reports-rank-number { color: var(--report-muted); font-size: 10px; }
#reports-root .reports-rank-body { display: grid; gap: 10px; min-width: 0; }
#reports-root .reports-rank-body > span { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
#reports-root .reports-ranking button i { height: 4px; background: var(--report-soft); }
#reports-root .reports-ranking button i b { background: var(--report-blue); }
#reports-root .reports-ranking button strong { color: var(--report-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
#reports-root .reports-card-note, #reports-root .reports-card > .reports-footer { position: static; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 28px; margin: auto 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--report-line); border-radius: 0; background: transparent; color: var(--report-muted); font-size: 11px; text-align: left; }
#reports-root .reports-card-note span { margin-left: 8px; font-size: 15px; }
#reports-root .reports-card > .reports-footer { color: var(--report-blue); }
#reports-root .reports-donut-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 230px; padding: 18px 0; }
#reports-root .reports-donut { width: 108px; height: 108px; cursor: default; padding: 0; }
#reports-root .reports-donut:before { width: 84px; height: 84px; background: var(--report-surface); }
#reports-root .reports-donut span strong { color: var(--report-ink); font-size: 26px; font-weight: 600; }
#reports-root .reports-donut span small { color: var(--report-muted); font-size: 10px; }
#reports-root .reports-donut-row > div:not(.reports-donut) { width: 100%; gap: 6px; }
#reports-root .reports-donut-row > div button { padding: 6px; border-radius: 9px; color: var(--report-ink); font-size: 12px; }
#reports-root .reports-donut-row > div button:hover { background: var(--report-soft); }
#reports-root .reports-donut-row strong, #reports-root .reports-status-bars strong { color: var(--report-ink); font-size: 13px; font-weight: 600; text-align: right; }
#reports-root .reports-donut-row strong small, #reports-root .reports-status-bars strong small { display: block; color: var(--report-muted); font-size: 10px; font-weight: 400; }
#reports-root .reports-status-bars { gap: 16px; margin: 28px 0 24px; }
#reports-root .reports-status-bars button { grid-template-columns: 1fr auto; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--report-ink); font-size: 12px; }
#reports-root .reports-status-bars button:hover { background: var(--report-soft); }
#reports-root .reports-status-bars button i { grid-column: 1/-1; height: 5px; background: var(--report-soft); }
#reports-root .reports-info { display: grid; place-items: center; width: 19px; min-width: 19px; height: 19px; padding: 0; border: 1px solid var(--report-line); border-radius: 50%; background: transparent; color: var(--report-muted); font-size: 11px; cursor: help; }
#reports-root .reports-empty { flex: 1; min-height: 180px; color: var(--report-muted); font-size: 13px; gap: 16px; line-height: 1.6; }
#reports-root .reports-empty button { padding: 8px 16px; border: 1px solid var(--report-line); border-radius: 10px; background: var(--report-soft); color: var(--report-ink); }
#reports-root .reports-activity { min-height: 0; scroll-margin-top: 24px; }
#reports-root .reports-activity > header { border: 0; align-items: center; }
#reports-root .reports-activity header label { color: var(--report-muted); font-size: 12px; }
#reports-root .reports-activity-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
#reports-root .reports-activity-tools nav { display: inline-flex; padding: 4px; gap: 2px; background: var(--report-soft); border-radius: 11px; flex-wrap: wrap; }
#reports-root .reports-activity-tools nav button { min-height: 32px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--report-muted); font-size: 12px; font-weight: 500; }
#reports-root .reports-activity-tools nav button.is-active { background: var(--report-surface); color: var(--report-ink); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
#reports-root .reports-drill-chip { padding: 7px 12px; display: inline-flex; align-items: center; gap: 16px; border: 1px solid color-mix(in srgb,var(--report-blue) 18%,transparent); border-radius: 20px; background: color-mix(in srgb,var(--report-blue) 7%,var(--report-surface)); color: var(--report-blue); font-size: 12px; }
#reports-root .reports-table { margin: 0 -8px; }
#reports-root .reports-table th, #reports-root .reports-table td { padding: 14px 10px; text-align: left; vertical-align: middle; font-size: 12px; }
#reports-root .reports-table th { height: auto; border-bottom: 1px solid var(--report-line); color: var(--report-muted); font-weight: 500; }
#reports-root .reports-table td { height: auto; border-color: var(--report-line); color: var(--report-ink); }
#reports-root .reports-table tbody tr:hover { background: var(--report-soft); }
#reports-root .reports-table td .status { padding: 4px 8px; background: var(--report-soft); color: var(--report-muted); font-size: 11px; }
#reports-root .reports-table td .type svg { background: transparent; color: var(--report-muted); width: 18px; height: 18px; padding: 0; }
#reports-root .reports-table td strong { font-weight: 600; }
#reports-root .reports-table td button { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--report-blue); font-size: 12px; }
#reports-root .reports-table td button:hover { background: color-mix(in srgb,var(--report-blue) 8%,transparent); }
#reports-root .reports-pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--report-line); color: var(--report-muted); font-size: 12px; }
#reports-root .reports-pagination > div { display: flex; align-items: center; gap: 12px; }
#reports-root .reports-pagination button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--report-line); border-radius: 50%; background: var(--report-surface); color: var(--report-ink); }
#reports-root .reports-page { position: relative; }
#reports-root .reports-filter { position: static; width: auto; padding: 24px; z-index: 2; animation: reports-tip-in .2s ease-out; }
#reports-root .reports-filter header strong { font-size: 16px; font-weight: 600; }
#reports-root .reports-filter header p { color: var(--report-muted); margin: 6px 0 0; font-size: 12px; }
#reports-root .reports-filter header button { width: 30px; height: 30px; border-radius: 50%; color: var(--report-muted); background: var(--report-soft); }
#reports-root .reports-filter > div { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
#reports-root .reports-filter label { color: var(--report-muted); font-size: 12px; gap: 8px; }
#reports-root .reports-filter select, #reports-root .reports-filter input { min-width: 0; width: 100%; min-height: 40px; border: 1px solid var(--report-line); border-radius: 10px; background: var(--report-soft); color: var(--report-ink); font-size: 13px; }
#reports-root .reports-filter footer button { border: 1px solid var(--report-line); border-radius: 10px; background: var(--report-soft); color: var(--report-ink); font-size: 12px; }
#reports-root .reports-filter footer .primary { background: var(--report-ink); color: var(--report-surface); }
@keyframes reports-tip-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@container (max-width: 1100px) { #reports-root .reports-grid.secondary { grid-template-columns: repeat(2,minmax(0,1fr)); } #reports-root .reports-donut-row { flex-direction: row; min-height: 180px; } #reports-root .reports-kpi { padding: 16px; } #reports-root .reports-kpi > strong { font-size: 26px; } }
@container (max-width: 800px) { #reports-root .reports-grid.primary { grid-template-columns: 1fr; } #reports-root .reports-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); } #reports-root .reports-filter > div { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@container (max-width: 500px) { #reports-root .reports-grid.secondary { grid-template-columns: 1fr; } #reports-root .reports-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } #reports-root .reports-card { padding: 20px; } #reports-root .reports-kpi:last-child { grid-column: 1/-1; min-height: 120px; } #reports-root .reports-activity-tools nav { width: 100%; } #reports-root .reports-activity-tools nav button { flex: 1; padding: 6px 8px; } #reports-root .reports-columns { height: 210px; } #reports-root .reports-filter > div { grid-template-columns: 1fr; } #reports-root .reports-context { margin-top: 0; } #reports-root .reports-table { margin: 0; } #reports-root .reports-table td { padding: 9px 10px; text-align: right; } #reports-root .reports-table td .type { justify-content: flex-end; } #reports-root .reports-table td button { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { #reports-root *, #reports-root *::before, #reports-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Compact logout confirmation with a portal/flight illustration. */
.portal-logout-dialog {
  width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 24px; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 24px 70px rgb(9 15 25 / 18%), 0 2px 8px rgb(9 15 25 / 4%);
}
.portal-logout-dialog::backdrop { background: rgb(9 15 24 / 23%); backdrop-filter: blur(3px); }
.portal-logout-dialog__visual { display: block; width: 174px; height: 108px; margin: -5px auto 12px; color: var(--ink); }
.portal-logout-dialog__visual img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 7px rgb(20 40 70 / 8%)); }
.portal-logout-dialog h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.portal-logout-dialog .portal-logout-dialog__subtitle { margin-top: 9px; color: var(--ink-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.portal-logout-dialog #portal-logout-warning { padding: 10px 12px; margin-top: 16px; border-radius: 10px; background: rgb(228 158 33 / 9%); color: var(--ink); font-size: 12px; line-height: 1.5; }
.portal-logout-dialog__actions { margin-top: 22px; gap: 10px; }
.portal-logout-dialog__actions button { min-height: 42px; padding: 9px 12px; border-color: var(--line); border-radius: 11px; font-size: 13px; transition: box-shadow .18s, background .18s; }
.portal-logout-dialog__actions button:hover { filter: none; box-shadow: 0 3px 10px rgb(0 0 0 / 8%); }
.portal-logout-dialog__actions button:active { box-shadow: inset 0 2px 4px rgb(0 0 0 / 12%); }
.portal-logout-dialog__actions button:focus-visible { outline: 2px solid rgb(45 121 255 / 55%); outline-offset: 2px; }
.portal-logout-dialog .logout-flight { transform-box: fill-box; transform-origin: center; animation: logout-flight-float 3.6s ease-in-out infinite; }
@keyframes logout-flight-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-3px); } }
html[data-theme="dark"] .portal-logout-dialog { border-color: rgb(255 255 255 / 10%); box-shadow: 0 24px 80px rgb(0 0 0 / 45%); }
html[data-theme="dark"] .portal-logout-dialog::backdrop { background: rgb(0 0 0 / 40%); }
html[data-theme="dark"] .portal-logout-dialog__visual { color: #a9c4e4; }
@media (max-width: 380px) { .portal-logout-dialog { padding: 22px; } .portal-logout-dialog h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .portal-logout-dialog *, .portal-logout-dialog *::before { animation: none !important; transition: none !important; } }

/* Dashboard activity: customer-visible updates with direct detail access. */
#dashboard-grid .dashboard-target-card--status, #dashboard-grid .dashboard-target-card--activity { height: 416px; min-height: 416px; }
#dashboard-grid .dashboard-target-card--activity { min-width: 0; padding-bottom: 16px; }
#dashboard-grid .dashboard-target-card--activity .dashboard-target-card__top { align-items: center; gap: 12px; }
#dashboard-grid [data-dashboard-activity-limit] { min-height: 30px; max-width: 120px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-muted); font: 500 var(--portal-type-caption,12px)/1.4 var(--font-sans,sans-serif); cursor: pointer; }
#dashboard-grid .dashboard-recent-activity { display: grid; align-content: start; max-height: 284px; overflow-y: auto; overscroll-behavior: contain; margin: 10px -6px 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
#dashboard-grid .dashboard-recent-activity > [role="listitem"] + [role="listitem"] { border-top: 1px solid var(--line); }
#dashboard-grid .dashboard-activity-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto 12px; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; transform: none; transition: background .16s, box-shadow .16s; }
#dashboard-grid .dashboard-activity-row:hover { background: var(--surface-muted); transform: none; }
#dashboard-grid .dashboard-activity-row:active { box-shadow: inset 0 1px 4px rgb(0 0 0 / 5%); }
#dashboard-grid .dashboard-activity-row:focus-visible, #dashboard-grid [data-dashboard-activity-limit]:focus-visible { outline: 2px solid #3389f5; outline-offset: -2px; }
#dashboard-grid .dashboard-activity-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgb(0 122 255 / 7%); color: #0876e8; }
#dashboard-grid .dashboard-activity-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
#dashboard-grid .dashboard-activity-row--shipment .dashboard-activity-icon { color: #138b79; background: rgb(19 139 121 / 8%); }
#dashboard-grid .dashboard-activity-copy { display: grid; gap: 4px; min-width: 0; }
#dashboard-grid .dashboard-activity-copy > strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; color: var(--ink); font-size: var(--portal-type-caption,12px); font-weight: 600; line-height: 1.35; }
#dashboard-grid .dashboard-activity-copy > strong > span { color: var(--ink); font-weight: 400; overflow-wrap: anywhere; }
#dashboard-grid .dashboard-activity-copy > small { color: var(--ink-muted); font-size: 11px; line-height: 1.3; }
#dashboard-grid .dashboard-activity-row time { align-self: start; padding-top: 3px; color: var(--ink-muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
#dashboard-grid .dashboard-activity-arrow { color: var(--ink-muted); font-size: 15px; opacity: .55; transition: color .16s, opacity .16s; }
#dashboard-grid .dashboard-activity-row:hover .dashboard-activity-arrow { color: #0876e8; opacity: 1; }
#dashboard-grid .dashboard-activity-hint { margin: auto 0 0; padding-top: 12px; color: var(--ink-muted); font-size: 11px; line-height: 1.4; }
html[data-theme="dark"] #dashboard-grid .dashboard-activity-icon { color: #64aaff; background: rgb(100 170 255 / 12%); }
html[data-theme="dark"] #dashboard-grid .dashboard-activity-row--shipment .dashboard-activity-icon { color: #66d7bd; background: rgb(102 215 189 / 10%); }
@media (max-width: 500px) { #dashboard-grid .dashboard-activity-row { grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; } #dashboard-grid .dashboard-activity-arrow { display: none; } #dashboard-grid .dashboard-activity-icon { width: 27px; height: 27px; } #dashboard-grid .dashboard-activity-copy > strong { display: grid; gap: 3px; } #dashboard-grid .dashboard-recent-activity { max-height: 330px; } }
@media (prefers-reduced-motion: reduce) { #dashboard-grid .dashboard-activity-row, #dashboard-grid .dashboard-activity-arrow { transition: none; } }

/* Status explorer: restrained surfaces, exact SVG proportions, hover/focus and touch selection. */
#dashboard-grid .dashboard-status-explorer { grid-template-rows: 44px minmax(0,1fr) 68px; padding: 20px 22px 12px; overflow: hidden; }
.dashboard-status-header, .dashboard-status-tools { display: flex; align-items: center; gap: 8px; }
.dashboard-status-header { justify-content: space-between; min-width: 0; }
.dashboard-status-tools select { max-width: 140px; min-height: 30px; border: 0; border-radius: 8px; padding: 4px 5px; background: transparent; color: var(--ink-muted); font: 500 11px/1.4 var(--font-sans,sans-serif); cursor: pointer; }
.dashboard-status-tools button { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-muted); cursor: pointer; transform: none; }
.dashboard-status-tools svg, .dashboard-status-open svg, .dashboard-status-choice svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-status-main { display: grid; grid-template-columns: minmax(120px,.95fr) minmax(135px,1.1fr); align-items: center; gap: 20px; min-height: 0; }
.dashboard-status-ring { position: relative; width: 100%; max-width: 200px; aspect-ratio: 1; justify-self: center; }
.dashboard-status-ring > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dashboard-status-track, .dashboard-status-arc { fill: none; stroke-width: 12px; }
.dashboard-status-track { stroke: var(--surface-muted); }
.dashboard-status-arc { stroke-linecap: round; cursor: pointer; pointer-events: stroke; transition: stroke-width .2s ease, opacity .2s ease, filter .2s ease; outline: none; }
.dashboard-status-arc.is-active, .dashboard-status-arc:focus-visible { stroke-width: 17px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 12%)); }
.dashboard-status-arc.is-muted { opacity: .22; }
.dashboard-status-arc:focus-visible { stroke-dasharray: 1 1; }
.dashboard-status-center { position: absolute; inset: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transform: none !important; box-shadow: none !important; }
.dashboard-status-center strong { font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.dashboard-status-center > span { min-height: 30px; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--ink-muted); }
.dashboard-status-center small { color: var(--ink-muted); font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.dashboard-status-choices { display: grid; align-content: center; gap: 7px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; padding: 4px; margin: 0 -4px; }
.dashboard-status-choice { position: relative; display: grid; grid-template-columns: 7px minmax(0,1fr) auto 12px; gap: 9px; align-items: center; width: 100%; min-height: 54px; padding: 10px 8px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; transform: none !important; box-shadow: none !important; transition: background .18s ease, border-color .18s ease; }
.dashboard-status-choice:hover, .dashboard-status-choice.is-active, .dashboard-status-choice.is-selected { background: var(--surface-muted); }
.dashboard-status-choice.is-selected { border-color: var(--line); }
.dashboard-status-choice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-color); }
.dashboard-status-choice-copy { display: grid; gap: 3px; min-width: 0; }
.dashboard-status-choice-copy strong { font-size: 12px; font-weight: 500; line-height: 1.3; }
.dashboard-status-choice-copy small { font-size: 10px; font-weight: 400; color: var(--ink-muted); line-height: 1; }
.dashboard-status-choice > b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-status-choice > svg { width: 12px; color: var(--ink-muted); opacity: .35; }
.dashboard-status-choice.is-selected > svg, .dashboard-status-choice:hover > svg { opacity: 1; }
.dashboard-status-choice-track { position: absolute; bottom: 4px; left: 24px; right: 27px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dashboard-status-choice-track i { display: block; height: 100%; border-radius: inherit; background: var(--status-color); opacity: .65; }
.dashboard-status-bottom { display: grid; align-content: end; gap: 9px; }
.dashboard-status-bottom p { margin: 0; font-size: 10px; line-height: 1.3; color: var(--ink-muted); }
.dashboard-status-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 7px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: 500 12px/1.4 var(--font-sans,sans-serif); cursor: pointer; transform: none !important; box-shadow: none !important; }
.dashboard-status-open:hover { color: #3287ef; }
.dashboard-status-empty { color: var(--ink-muted); font-size: 12px; line-height: 1.5; }
.dashboard-status-explorer button:disabled { opacity: .4; cursor: default; }
.dashboard-status-explorer button:focus-visible, .dashboard-status-explorer select:focus-visible { outline: 2px solid #3287ef; outline-offset: 3px; }
html[data-theme="dark"] .dashboard-status-track { stroke: #202227; }
@media (max-width: 500px) { .dashboard-status-main { grid-template-columns: minmax(100px,.9fr) minmax(125px,1fr); gap: 10px; } .dashboard-status-tools { gap: 3px; } .dashboard-status-tools select { max-width: 105px; } .dashboard-status-center strong { font-size: 30px; } .dashboard-status-center { inset: 22%; } .dashboard-status-choice { gap: 6px; padding-left: 5px; padding-right: 5px; } }
@media (prefers-reduced-motion: reduce) { .dashboard-status-explorer *, .dashboard-status-explorer *::before { transition: none !important; animation: none !important; } }

/* Keep all seven statuses visible, including true zero counts. */
.dashboard-status-choices { gap: 2px; }
.dashboard-status-choice { min-height: 31px; padding: 5px 8px 7px; border-radius: 8px; }
.dashboard-status-choice-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.dashboard-status-choice-copy strong { font-size: 11px; }
.dashboard-status-choice-copy small { font-size: 10px; }
.dashboard-status-choice > b { font-size: 12px; }
.dashboard-status-choice-track { height: 1px; bottom: 2px; }

/* Reports use a decorative, indeterminate chart while authorized data loads. */
#reports-root .reports-loading-page { width: 100%; max-width: 1440px; color: var(--report-ink); }
#reports-root .reports-loading { display: grid; place-items: center; min-height: clamp(340px, 52vh, 560px); }
#reports-root .reports-loading__visual { position: relative; display: grid; justify-items: center; gap: 28px; isolation: isolate; }
#reports-root .reports-loading__halo { position: absolute; z-index: -1; inset: -58px -70px -32px; border-radius: 50%; background: radial-gradient(ellipse, rgb(0 122 255 / 9%), transparent 68%); }
#reports-root .reports-loading__chart { position: relative; width: 232px; height: 188px; padding: 24px; box-sizing: border-box; overflow: hidden; border: 1px solid var(--report-line); border-radius: 30px; background: var(--report-surface); box-shadow: 0 18px 48px rgb(22 46 78 / 7%), 0 3px 10px rgb(22 46 78 / 3%); }
#reports-root .reports-loading__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 12px; margin-bottom: 22px; }
#reports-root .reports-loading__caption i { display: block; width: 62px; height: 6px; border-radius: 4px; background: var(--report-line); }
#reports-root .reports-loading__caption i + i { width: 22px; background: var(--report-soft); }
#reports-root .reports-loading__plot { display: flex; align-items: end; justify-content: space-between; gap: 12px; height: 104px; padding: 0 5px; border-bottom: 1px solid var(--report-line); background: repeating-linear-gradient(to top, transparent 0 25px, var(--report-line) 25px 26px); }
#reports-root .reports-loading__plot span { flex: 1; height: var(--bar-height); border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--report-blue), #77b8ff); transform-origin: center bottom; animation: reports-loading-bars 2.6s cubic-bezier(.45,0,.35,1) var(--bar-delay) infinite; }
#reports-root .reports-loading__plot span:nth-child(4), #reports-root .reports-loading__plot span:nth-child(5) { background: linear-gradient(to top, var(--report-green), #79d9c1); }
#reports-root .reports-loading__dots { display: flex; align-items: center; gap: 7px; height: 8px; }
#reports-root .reports-loading__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--report-blue); animation: reports-loading-dot 1.5s ease-in-out infinite; }
#reports-root .reports-loading__dots i:nth-child(2) { animation-delay: .18s; }
#reports-root .reports-loading__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes reports-loading-bars { 0%, 100% { transform: scaleY(.58); opacity: .65; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes reports-loading-dot { 0%, 70%, 100% { opacity: .25; } 35% { opacity: .9; } }
@media (max-width: 500px) { #reports-root .reports-loading { min-height: 360px; } #reports-root .reports-loading__chart { width: 208px; height: 174px; padding: 22px; } #reports-root .reports-loading__plot { height: 94px; } }
@media (prefers-reduced-motion: reduce) { #reports-root .reports-loading__plot span, #reports-root .reports-loading__dots i { animation: none; transform: none; opacity: 1; } }

/* Cold page reads share a quiet visual language; loaded views keep their data. */
.portal-shell .portal-page-loading { --load-ink: #b6c0cd; --load-blue: #3287ef; --load-teal: #32b895; --load-paper: #fff; --load-soft: #eaf3ff; --load-line: rgb(20 28 42 / 8%); display: grid; place-items: center; grid-column: 1 / -1; width: 100%; min-width: 0; min-height: clamp(340px, 52vh, 560px); }
html[data-theme="dark"] .portal-shell .portal-page-loading { --load-ink: #748498; --load-blue: #60a9ff; --load-teal: #60d7b9; --load-paper: #1d2025; --load-soft: #25364c; --load-line: rgb(255 255 255 / 9%); }
.portal-page-loading__visual { position: relative; display: grid; justify-items: center; gap: 28px; isolation: isolate; animation: portal-load-reveal .28s ease .22s both; }
.portal-page-loading__halo { position: absolute; z-index: -1; inset: -58px -70px -32px; border-radius: 50%; background: radial-gradient(ellipse, rgb(50 135 239 / 9%), transparent 68%); }
.portal-page-loading__tile { display: grid; place-items: center; width: 232px; height: 188px; box-sizing: border-box; padding: 18px; overflow: hidden; border: 1px solid var(--load-line); border-radius: 30px; color: var(--load-ink); background: var(--load-paper); box-shadow: 0 18px 48px rgb(22 46 78 / 7%), 0 3px 10px rgb(22 46 78 / 3%); }
.portal-shell .portal-page-loading__tile svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 1.5; }
.portal-page-loading .page-load-paper { fill: var(--load-paper); }
.portal-page-loading .page-load-soft { fill: var(--load-soft); stroke: var(--load-line); }
.portal-page-loading .page-load-detail { stroke: var(--load-ink); opacity: .65; }
.portal-page-loading .page-load-accent { stroke: var(--load-blue); stroke-width: 2; }
.portal-page-loading .page-load-seal { fill: var(--load-teal); stroke: none; }
.portal-page-loading .page-load-check { stroke: var(--load-paper); stroke-width: 2.5; }
.portal-page-loading .page-load-route { stroke: var(--load-blue); stroke-dasharray: 3 6; opacity: .65; }
.portal-page-loading .page-load-pulse { animation: portal-load-detail 2.6s ease-in-out infinite; }
.portal-page-loading .page-load-trend, .portal-page-loading .page-load-document-line, .portal-page-loading .page-load-writing, .portal-page-loading .page-load-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: portal-load-write 3.2s cubic-bezier(.35,0,.25,1) infinite; }
.portal-page-loading .page-load-document-line { animation-delay: .35s; }
.portal-page-loading .page-load-check { animation-delay: .5s; }
.portal-page-loading .page-load-route { animation: portal-load-route 2.5s linear infinite; }
.portal-page-loading .page-load-typing circle { fill: var(--load-blue); stroke: none; animation: reports-loading-dot 1.5s ease-in-out infinite; }
.portal-page-loading .page-load-typing circle:nth-child(2) { animation-delay: .18s; }
.portal-page-loading .page-load-typing circle:nth-child(3) { animation-delay: .36s; }
.portal-page-loading__dots { display: flex; gap: 7px; align-items: center; height: 8px; }
.portal-page-loading__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--load-blue); animation: reports-loading-dot 1.5s ease-in-out infinite; }
.portal-page-loading__dots i:nth-child(2) { animation-delay: .18s; }
.portal-page-loading__dots i:nth-child(3) { animation-delay: .36s; }
.portal-shell .chats-app--state:has(> .portal-page-loading) { display: block; background: transparent; border: 0; box-shadow: none; }
.portal-shell #dashboard-kpi-grid:has(> .portal-page-loading) { display: block; }
#reports-root .reports-loading__visual { animation: portal-load-reveal .28s ease .22s both; }
@keyframes portal-load-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes portal-load-write { 0%, 12% { stroke-dashoffset: 1; } 65%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes portal-load-route { to { stroke-dashoffset: -27; } }
@keyframes portal-load-detail { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (max-width: 500px) { .portal-shell .portal-page-loading { min-height: 360px; } .portal-page-loading__tile { width: 208px; height: 174px; padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .portal-page-loading__visual, .portal-page-loading__visual *, #reports-root .reports-loading__visual { animation: none !important; opacity: 1; stroke-dashoffset: 0; } }
.portal-shell .quotations-table-card:has(.portal-page-loading) { background: transparent; border-color: transparent; box-shadow: none; }
.portal-shell #quotations-table-wrap:has(.portal-page-loading), .portal-shell .quotations-table-content:has(> .portal-page-loading) { overflow: visible; }

/* Supplier identity stays still and prominent while the existing restore gate runs. */
#portal-workspace-loading { grid-template-columns: minmax(0, 1fr); gap: 38px; overflow: hidden; font-family: var(--portal-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); }
#portal-workspace-loading .workspace-arrival { position: relative; isolation: isolate; width: min(320px, 100%); aspect-ratio: 4 / 3; }
#portal-workspace-loading .workspace-arrival__halo { position: absolute; z-index: -1; inset: -90px -100px; border-radius: 50%; background: radial-gradient(ellipse, rgb(65 128 199 / 11%), transparent 66%); animation: workspace-arrival-glow 5s ease-in-out infinite; }
#portal-workspace-loading .workspace-arrival__brand { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgb(32 49 69 / 7%); border-radius: 30px; background: #fff; box-shadow: 0 24px 70px rgb(20 35 56 / 9%), 0 5px 16px rgb(20 35 56 / 4%); }
#portal-workspace-loading .workspace-arrival__brand::before { content: ""; position: absolute; inset: -80% -100%; background: linear-gradient(112deg, transparent 40%, rgb(109 149 185 / 7%) 50%, transparent 60%); animation: workspace-arrival-sheen 7s ease-in-out infinite; pointer-events: none; }
#portal-workspace-loading .workspace-arrival__brand img { position: relative; z-index: 1; display: block; width: 80%; max-height: 84%; height: auto; margin: 0; object-fit: contain; filter: brightness(0); }
#portal-workspace-loading .workspace-arrival__orbit { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; max-height: none; overflow: visible; stroke: rgb(46 80 119 / 10%); stroke-width: 1; pointer-events: none; }
#portal-workspace-loading .workspace-arrival__trail { stroke: #779dbf; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: .12 .88; animation: workspace-arrival-orbit 5.6s linear infinite; }
#portal-workspace-loading .workspace-arrival__status { display: grid; justify-items: center; gap: 17px; }
#portal-workspace-loading .workspace-arrival__status strong { color: #737b88; font-size: var(--portal-type-body, 14px); font-weight: 400; letter-spacing: -.01em; }
#portal-workspace-loading .workspace-arrival__track { width: 124px; height: 3px; overflow: hidden; border-radius: 3px; background: rgb(69 94 124 / 10%); }
#portal-workspace-loading .workspace-arrival__track i { display: block; width: 44%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #6f94b8, transparent); animation: workspace-arrival-progress 2.4s ease-in-out infinite; }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__halo { background: radial-gradient(ellipse, rgb(78 128 184 / 13%), transparent 68%); }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__brand { background: linear-gradient(145deg, #242a31, #0c0f13 60%, #1b2229); border-color: rgb(255 255 255 / 10%); box-shadow: 0 28px 80px rgb(0 0 0 / 28%); }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__brand img { filter: none; }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__brand::before { background: linear-gradient(112deg, transparent 40%, rgb(255 255 255 / 7%) 50%, transparent 60%); }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__orbit { stroke: rgb(185 207 232 / 9%); }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__trail { stroke: #7597b6; }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__status strong { color: #969fab; }
html[data-theme="dark"] #portal-workspace-loading .workspace-arrival__track { background: rgb(198 218 240 / 10%); }
@keyframes workspace-arrival-orbit { to { stroke-dashoffset: -1; } }
@keyframes workspace-arrival-sheen { 0%, 20% { transform: translateX(-35%); opacity: 0; } 35% { opacity: 1; } 65%, 100% { transform: translateX(35%); opacity: 0; } }
@keyframes workspace-arrival-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes workspace-arrival-progress { from { transform: translateX(-110%); } to { transform: translateX(340%); } }
@media (max-height: 500px) { #portal-workspace-loading { gap: 26px; } #portal-workspace-loading .workspace-arrival { width: min(230px, 100%); } }
@media (prefers-reduced-motion: reduce) { #portal-workspace-loading .workspace-arrival__halo, #portal-workspace-loading .workspace-arrival__brand::before, #portal-workspace-loading .workspace-arrival__trail, #portal-workspace-loading .workspace-arrival__track i { animation: none; } #portal-workspace-loading .workspace-arrival__track i { width: 100%; opacity: .7; } #portal-workspace-loading .workspace-arrival__brand::before { opacity: 0; } }
