/* DutyCanvas · Freight Manifest: cargo navy, paper sand, teal cost trace; no generic dashboard treatment. */
:root {
  --navy: #0d2433;
  --navy2: #133547;
  --paper: #f4f1ea;
  --teal: #147d79;
  --teal2: #0f625f;
  --amber: #e4973a;
  --ink: #23343f;
  --mist: #dce5e1;
  --muted: #66757c;
  --line: #c8d2cd;
  --white: #fffdf8;
  --red: #b64b3b;
  --shadow: 0 14px 36px rgba(13, 36, 51, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.site-shell {
  min-height: 100vh;
}
.topbar {
  height: 72px;
  background: var(--navy);
  color: #eef4ef;
  display: flex;
  align-items: center;
  padding: 0 3.1vw;
  gap: 28px;
  border-bottom: 3px solid var(--teal);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f6f6ef;
  text-decoration: none;
  font:
    600 21px/1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand span span {
  color: #71c8c1;
}
.brand-mark {
  width: 35px;
  height: 29px;
  color: #71c8c1;
}
.manifest-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #b9c8c9;
  font:
    400 10px/1.3 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.meta-dot {
  width: 7px;
  height: 7px;
  background: #71c8c1;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(113, 200, 193, 0.13);
}
.slash {
  color: #66848c;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-btn,
.secondary-btn,
.quiet-btn,
.text-btn,
.icon-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.primary-btn {
  padding: 10px 15px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border-radius: 2px;
}
.primary-btn:hover {
  background: #0e6b67;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.quiet-btn {
  color: #d8e0dc;
  background: transparent;
  padding: 8px 7px;
  font-size: 12px;
}
.quiet-btn:hover {
  color: white;
  text-decoration: underline;
}
.brief-strip {
  padding: 38px 3.1vw 31px;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f4f1ea 0%, #eef1e9 100%);
}
.brief-strip > div:first-child {
  max-width: 730px;
}
.eyebrow {
  font:
    500 10px/1.2 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 7px;
}
.eyebrow span {
  color: var(--amber);
  padding: 0 3px;
}
.brief-strip h1 {
  font:
    600 clamp(29px, 3.1vw, 43px)/1.06 'Space Grotesk',
    sans-serif;
  letter-spacing: -1.7px;
  margin: 0;
  color: var(--navy);
}
.lede {
  max-width: 640px;
  margin: 10px 0 0;
  color: #4b5d64;
  font-size: 15px;
}
.status-block {
  border-left: 3px solid var(--amber);
  padding: 3px 0 3px 14px;
  margin-left: auto;
  max-width: 320px;
}
.status-block p {
  margin: 7px 0 0;
  color: #5e6c70;
  font-size: 12px;
  line-height: 1.4;
}
.tag {
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.07em;
  color: #456068;
  background: #e4eae5;
  padding: 5px 6px;
  display: inline-block;
  white-space: nowrap;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(500px, 1.24fr) minmax(385px, 0.76fr);
  min-height: 720px;
}
.input-rail {
  padding: 30px 3.1vw 44px;
  border-right: 1px solid var(--line);
  position: relative;
}
.input-rail:before {
  content: '';
  position: absolute;
  width: 1px;
  background: var(--teal);
  height: calc(100% - 73px);
  left: calc(3.1vw + 9px);
  top: 69px;
  opacity: 0.45;
}
.rail-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 19px;
}
.index {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--teal);
  background: var(--paper);
  color: var(--teal);
  font:
    500 10px/1 'IBM Plex Mono',
    monospace;
  z-index: 1;
}
.rail-heading .eyebrow {
  margin: 0 0 2px;
}
.rail-heading h2,
.decision-head h2,
.panel-heading h2,
.details-header h2 {
  margin: 0;
  color: var(--navy);
  font:
    600 19px/1.1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.5px;
}
.icon-btn {
  margin-left: auto;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 18px;
}
.icon-btn:hover {
  border-color: var(--teal);
  background: #e9f2ee;
}
.manifest-section {
  padding-left: 31px;
  overflow: hidden;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-grid {
  margin-bottom: 7px;
}
.field {
  display: block;
  min-width: 0;
}
.field-wide {
  grid-column: span 2;
}
.field > span {
  display: block;
  color: #5a696e;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font:
    500 10px/1.2 'IBM Plex Mono',
    monospace;
  margin: 0 0 5px;
}
.field em {
  font-style: normal;
  color: #9a7b55;
  font-size: 8px;
}
.field input,
.field select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  height: 38px;
  padding: 0 10px;
  font:
    500 13px/1 'IBM Plex Sans',
    sans-serif;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field select {
  appearance: auto;
}
.field input:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 125, 121, 0.11);
}
.input-prefix,
.input-suffix {
  position: relative;
}
.input-prefix b,
.input-suffix b {
  position: absolute;
  top: 9px;
  color: #718084;
  font:
    500 13px/1 'IBM Plex Mono',
    monospace;
  z-index: 1;
}
.input-prefix b {
  left: 10px;
}
.input-prefix input {
  padding-left: 23px;
}
.input-suffix b {
  right: 10px;
}
.input-suffix input {
  padding-right: 23px;
}
.mono-input {
  font-family: 'IBM Plex Mono', monospace !important;
}
.section-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 13px;
  font:
    500 10px/1 'IBM Plex Mono',
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #567076;
}
.section-rule:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.rule-note {
  color: #9a7b55;
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.sell-heading {
  padding-top: 35px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.channel-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 0 0 17px 31px;
  background: var(--mist);
  padding: 2px;
}
.channel-tab {
  border: 0;
  background: transparent;
  min-height: 48px;
  color: #5e7075;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font:
    600 11px/1 'IBM Plex Sans',
    sans-serif;
  transition:
    background 0.15s,
    color 0.15s;
}
.channel-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tab-icon {
  font:
    500 10px/1 'IBM Plex Mono',
    monospace;
  color: var(--teal);
  border: 1px solid currentColor;
  padding: 3px;
}
.channel-inputs {
  margin-left: 31px;
}
.is-hidden {
  display: none;
}
.decision-rail {
  background: var(--navy);
  color: #edf3ed;
  padding: 30px 3.1vw 34px;
  position: sticky;
  top: 0;
  height: fit-content;
  min-height: 720px;
}
.decision-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(230, 244, 237, 0.22);
  padding-bottom: 16px;
}
.decision-head > div {
  display: grid;
  grid-template-columns: 20px auto;
  column-gap: 10px;
}
.decision-head .index {
  grid-row: span 2;
  background: var(--navy);
  color: #71c8c1;
  border-color: #71c8c1;
}
.decision-head .eyebrow {
  margin: 1px 0 2px;
  color: #71c8c1;
}
.decision-head h2 {
  color: #fff;
}
.live {
  font:
    500 10px/1 'IBM Plex Mono',
    monospace;
  color: #98b3ad;
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #71c8c1;
  margin-right: 5px;
  box-shadow: 0 0 0 3px rgba(113, 200, 193, 0.11);
}
.product-line {
  padding: 16px 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #dce7e1;
  font-weight: 500;
  font-size: 12px;
}
.product-line .tag {
  background: #244754;
  color: #9ad6ce;
}
.key-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(232, 244, 238, 0.2);
}
.number-block {
  background: var(--navy2);
  padding: 17px 14px 14px;
}
.number-block.emphasis {
  background: var(--teal2);
}
.number-block span,
.price-snapshot span {
  display: block;
  font:
    500 9px/1.2 'IBM Plex Mono',
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a8c2bf;
}
.number-block strong {
  display: block;
  font:
    600 clamp(25px, 2.5vw, 34px)/1 'Space Grotesk',
    sans-serif;
  color: #fff;
  letter-spacing: -1.2px;
  margin: 8px 0 5px;
}
.number-block small {
  font-size: 10px;
  color: #c3d2cf;
}
.price-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  padding: 20px 1px;
  border-bottom: 1px solid rgba(230, 244, 237, 0.22);
}
.price-snapshot strong {
  display: block;
  color: #f5efe5;
  font:
    600 20px/1 'Space Grotesk',
    sans-serif;
  margin: 6px 0;
}
.price-snapshot small {
  color: #9db2ad;
  font:
    400 10px/1.2 'IBM Plex Mono',
    monospace;
}
.price-snapshot input {
  width: 27px;
  padding: 0 1px;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #93b9b0;
  color: #fff;
  text-align: center;
  font: inherit;
  outline: none;
}
.cost-breakdown {
  padding: 20px 0 13px;
}
.subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b8ccc7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  margin-bottom: 13px;
}
.text-btn {
  background: transparent;
  color: #8dd5cb;
  padding: 0;
  font:
    500 10px/1 'IBM Plex Sans',
    sans-serif;
}
.text-btn:hover {
  color: #fff;
  text-decoration: underline;
}
.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 58px;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  font-size: 11px;
  color: #c8d7d2;
}
.bar {
  height: 6px;
  background: #31525e;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #9db8b1;
  transition: width 0.2s ease;
}
.bar-row:nth-child(3) .bar i {
  background: #749cab;
}
.bar-row:nth-child(4) .bar i {
  background: #d49a5d;
}
.bar-row:nth-child(5) .bar i {
  background: #bb7962;
}
.bar-row b {
  text-align: right;
  font:
    500 11px/1 'IBM Plex Mono',
    monospace;
  color: #edf3ed;
}
.profit-row {
  border-top: 1px solid rgba(230, 244, 237, 0.18);
  padding-top: 10px;
  margin-top: 13px;
  color: #eaf8f0;
}
.profit-row .bar i {
  background: #65c5b7 !important;
}
.profit-row b {
  color: #80dacd;
}
.verdict {
  display: flex;
  gap: 10px;
  border-left: 3px solid #71c8c1;
  background: #153c47;
  padding: 10px 12px;
  margin: 5px 0 17px;
}
.verdict.is-warning {
  border-color: var(--amber);
  background: #3c3427;
}
.verdict.is-danger {
  border-color: #dc735f;
  background: #402d2b;
}
.verdict-mark {
  font:
    600 18px/1 'Space Grotesk',
    sans-serif;
  color: #80dacd;
}
.verdict.is-warning .verdict-mark {
  color: var(--amber);
}
.verdict.is-danger .verdict-mark {
  color: #ed8d78;
}
.verdict p {
  margin: 0;
  color: #d6e3de;
  font-size: 11px;
  line-height: 1.4;
}
.decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.secondary-btn {
  border: 1px solid #5e8588;
  background: transparent;
  color: #d8e7e2;
  padding: 10px 9px;
  font-weight: 600;
  font-size: 12px;
  border-radius: 2px;
}
.secondary-btn:hover {
  border-color: #9dd0c8;
  background: #183f4a;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.panel {
  padding: 30px 3.1vw 34px;
}
.comparison-panel {
  border-left: 1px solid var(--line);
  background: #eef0e9;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.panel-heading .eyebrow,
.details-header .eyebrow {
  margin-bottom: 4px;
}
.panel-help {
  color: #647176;
  font-size: 12px;
  margin: 9px 0 18px;
  max-width: 610px;
}
.legend {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #68777a;
  font-size: 10px;
  white-space: nowrap;
}
.legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 3px;
}
.legend .good {
  background: #9cdbd0;
}
.legend .warn {
  background: #f2c17d;
}
.matrix-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--white);
}
.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 530px;
  font-size: 11px;
}
.matrix th {
  background: #e5ebe5;
  color: #537076;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font:
    500 9px/1.2 'IBM Plex Mono',
    monospace;
  padding: 10px;
  border: 1px solid #d2dbd5;
  text-align: center;
}
.matrix th:first-child {
  text-align: left;
}
.matrix td {
  border: 1px solid #dde2dd;
  padding: 9px;
  text-align: center;
  font:
    600 11px/1 'IBM Plex Mono',
    monospace;
  color: #47615f;
}
.matrix td.row-label {
  background: #f6f7f2;
  text-align: left;
  color: #577078;
}
.matrix td.base-cell {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  position: relative;
}
.matrix td.good-cell {
  background: #e2f1eb;
}
.matrix td.warning-cell {
  background: #faedcf;
  color: #9b6a28;
}
.matrix td.danger-cell {
  background: #f5deda;
  color: #a44939;
}
.matrix-note {
  padding-top: 11px;
  color: #68777a;
  font:
    400 10px/1.3 'IBM Plex Mono',
    monospace;
  display: flex;
  gap: 8px;
  align-items: center;
}
.comparison-list {
  margin-top: 19px;
  border-top: 1px solid var(--line);
}
.compare-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 14px;
  align-items: center;
}
.compare-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 12px;
}
.compare-name i {
  width: 7px;
  height: 7px;
  background: var(--teal);
  display: inline-block;
}
.compare-name i.shopify {
  background: #597dba;
}
.compare-name i.fbm {
  background: #d29142;
}
.compare-price {
  color: #5a6e70;
  font:
    500 10px/1 'IBM Plex Mono',
    monospace;
  text-align: right;
}
.compare-price strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font:
    600 18px/1 'Space Grotesk',
    sans-serif;
}
.compare-metric {
  grid-column: 1/-1;
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.compare-metric .bar {
  flex: 1;
  height: 4px;
  background: #d5dfd9;
}
.compare-metric .bar i {
  background: var(--teal);
}
.compare-metric small {
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  color: #607579;
  width: 38px;
  text-align: right;
}
.comparison-foot {
  font-size: 11px;
  color: #758083;
  margin: 16px 0 0;
  line-height: 1.45;
}
.details-panel {
  padding: 30px 3.1vw 36px;
  background: var(--paper);
}
.details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}
.audit-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.audit-meta .tag b {
  color: var(--teal);
  font-weight: 500;
}
.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.audit-row {
  min-height: 98px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.audit-row:nth-child(3n) {
  border-right: 0;
}
.audit-row span {
  color: #5e6e73;
  text-transform: uppercase;
  font:
    500 10px/1.2 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.06em;
}
.audit-row b {
  margin: 11px 0 4px;
  color: var(--navy);
  font:
    600 21px/1 'Space Grotesk',
    sans-serif;
}
.audit-row small {
  font-size: 10px;
  color: #79868a;
  margin-top: auto;
}
.audit-row.total {
  background: var(--navy);
  border-color: #35505b;
}
.audit-row.total span,
.audit-row.total small {
  color: #afc4bf;
}
.audit-row.total b {
  color: #80dacd;
}
.notice {
  background: #f7e8c9;
  border-top: 1px solid #e5c98e;
  display: flex;
  gap: 10px;
  padding: 14px 3.1vw;
  align-items: flex-start;
  color: #6e542e;
  font-size: 11px;
}
.notice-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  height: 17px;
  border-radius: 50%;
  background: #d99b43;
  color: #fff;
  font:
    700 12px/1 'IBM Plex Sans',
    sans-serif;
}
.notice p {
  margin: 0;
  max-width: 1110px;
}
.notice button {
  border: 0;
  background: transparent;
  color: #8d6a3e;
  font-size: 20px;
  line-height: 0.8;
  margin-left: auto;
  cursor: pointer;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--navy);
  color: #fff;
  padding: 11px 15px;
  font-size: 12px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 5;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 980px) {
  .topbar {
    padding: 0 20px;
  }
  .manifest-meta {
    display: none;
  }
  .brief-strip {
    padding: 30px 20px;
  }
  .status-block {
    display: none;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .input-rail {
    padding: 27px 20px 35px;
    border-right: 0;
  }
  .input-rail:before {
    left: 29px;
  }
  .decision-rail {
    position: static;
    min-height: 0;
    padding: 28px 20px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 27px 20px;
  }
  .comparison-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .details-panel {
    padding: 27px 20px;
  }
  .notice {
    padding: 14px 20px;
  }
  .audit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audit-row:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .audit-row:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 62px;
    padding: 11px 16px;
  }
  .top-actions {
    gap: 2px;
  }
  .top-actions .quiet-btn {
    display: none;
  }
  .primary-btn {
    padding: 9px 10px;
  }
  .brief-strip {
    padding: 25px 16px;
  }
  .brief-strip h1 {
    font-size: 30px;
  }
  .lede {
    font-size: 13px;
  }
  .input-rail {
    padding: 24px 16px 30px;
  }
  .input-rail:before {
    left: 25px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-wide {
    grid-column: auto;
  }
  .manifest-section,
  .channel-picker,
  .channel-inputs {
    margin-left: 27px;
    padding-left: 0;
  }
  .channel-tab {
    font-size: 10px;
  }
  .tab-icon {
    display: none;
  }
  .decision-rail {
    padding: 25px 16px;
  }
  .key-numbers,
  .price-snapshot {
    grid-template-columns: 1fr;
  }
  .number-block strong {
    font-size: 31px;
  }
  .price-snapshot {
    gap: 12px;
  }
  .analysis-grid .panel,
  .details-panel {
    padding: 25px 16px;
  }
  .panel-heading {
    align-items: flex-end;
  }
  .legend {
    display: none;
  }
  .audit-grid {
    grid-template-columns: 1fr;
  }
  .audit-row,
  .audit-row:nth-child(3n) {
    border-right: 0;
  }
  .details-header {
    display: block;
  }
  .audit-meta {
    margin-top: 12px;
  }
  .notice {
    padding: 12px 16px;
  }
  .product-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .bar-row {
    grid-template-columns: 105px 1fr 53px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Feature-complete workspace additions: scenario drivers, project records, notes, and print briefing. */
.decision-actions {
  grid-template-columns: repeat(3, 1fr);
}
.driver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.driver-card {
  border: 1px solid var(--line);
  background: #f9faf5;
  padding: 11px 10px;
  min-height: 76px;
}
.driver-card span {
  display: block;
  color: #607378;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font:
    500 9px/1.15 'IBM Plex Mono',
    monospace;
}
.driver-card b {
  display: block;
  color: var(--navy);
  font:
    600 20px/1 'Space Grotesk',
    sans-serif;
  margin: 7px 0 3px;
}
.driver-card small {
  color: #64777b;
  font:
    400 9px/1.2 'IBM Plex Mono',
    monospace;
}
.assumption-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #edf0e9;
  padding: 15px;
}
.assumption-block p {
  margin: 8px 0 0;
  color: #5f6e71;
  font-size: 11px;
  line-height: 1.45;
  max-width: 570px;
}
.assumption-block textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 9px 10px;
  color: var(--ink);
  font:
    500 12px/1.4 'IBM Plex Sans',
    sans-serif;
  outline: none;
}
.assumption-block textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 125, 121, 0.11);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 29, 41, 0.64);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.project-modal {
  width: min(630px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  border-top: 4px solid var(--teal);
  padding: 24px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.modal-head h2 {
  margin: 0;
  color: var(--navy);
  font:
    600 24px/1.1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.6px;
}
.modal-close {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-help {
  margin: 14px 0;
  color: #657478;
  font-size: 12px;
}
.projects-list {
  border-top: 1px solid var(--line);
}
.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.project-item b {
  display: block;
  color: var(--navy);
  font:
    600 14px/1.2 'IBM Plex Sans',
    sans-serif;
}
.project-item span {
  display: block;
  margin-top: 3px;
  color: #66767a;
  font:
    400 10px/1.3 'IBM Plex Mono',
    monospace;
}
.project-item > div:last-child {
  display: flex;
  gap: 12px;
}
.project-item .danger-text {
  color: #a34d3d;
}
.empty-projects {
  padding: 28px 0;
  color: #68777a;
  font-size: 12px;
}
@media (max-width: 620px) {
  .decision-actions {
    grid-template-columns: 1fr 1fr;
  }
  .decision-actions .primary-btn {
    grid-column: 1/-1;
  }
  .driver-grid {
    grid-template-columns: 1fr;
  }
  .assumption-block {
    grid-template-columns: 1fr;
  }
  .project-modal {
    padding: 20px;
  }
  .top-actions #openProjects {
    display: none;
  }
}
@media print {
  .topbar,
  .brief-strip,
  .input-rail,
  .analysis-grid,
  .notice,
  .decision-actions,
  .text-btn,
  .modal-backdrop {
    display: none !important;
  }
  .workbench {
    display: block;
  }
  .decision-rail {
    position: static;
    min-height: auto;
    background: #fff !important;
    color: #132c37 !important;
    padding: 0 !important;
  }
  .decision-head h2,
  .decision-head .eyebrow,
  .product-line,
  .number-block strong,
  .price-snapshot strong {
    color: #132c37 !important;
  }
  .decision-head {
    border-color: #bfcac6;
  }
  .decision-head .index {
    background: #fff;
  }
  .number-block,
  .number-block.emphasis {
    background: #eef3ef !important;
  }
  .number-block span,
  .number-block small,
  .price-snapshot span,
  .price-snapshot small {
    color: #50676a !important;
  }
  .bar {
    background: #dce5e1 !important;
  }
  .details-panel {
    padding: 25px 0 !important;
  }
  .assumption-block {
    border: 1px solid #c8d2cd !important;
  }
  .site-shell {
    background: #fff;
  }
}

/* Reset confirmation: explicitly separates current workspace from saved local records. */
.reset-modal {
  max-width: 570px;
}
.reset-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 23px 0 20px;
}
.reset-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #f6e6d9;
  border: 1px solid #e3ba9e;
  color: var(--red);
  font:
    600 29px/1 'Space Grotesk',
    sans-serif;
}
.reset-body p {
  margin: 0;
  color: #4f6368;
  font-size: 13px;
  line-height: 1.5;
}
.reset-checklist {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.reset-checklist li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #637378;
  font-size: 11px;
}
.reset-checklist span {
  display: inline-block;
  width: 77px;
  color: var(--navy);
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.reset-checklist li:last-child span {
  color: var(--teal);
}
.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.danger-btn {
  border: 1px solid #ab5444;
  background: var(--red);
  color: #fff;
  padding: 10px 13px;
  border-radius: 2px;
  font:
    600 12px/1 'IBM Plex Sans',
    sans-serif;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.danger-btn:hover {
  background: #943827;
  transform: translateY(-1px);
}
@media (max-width: 620px) {
  .reset-body {
    grid-template-columns: 1fr;
  }
  .reset-mark {
    width: 42px;
    height: 42px;
  }
  .reset-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .reset-actions button {
    width: 100%;
  }
}

/* Medium-desktop containment: keep the Decide rail comfortably inside the viewport. */
.workbench,
.input-rail,
.decision-rail,
.analysis-grid,
.panel {
  min-width: 0;
}
.decision-rail {
  overflow-x: hidden;
}
.decision-actions {
  min-width: 0;
}
.decision-actions > * {
  min-width: 0;
  white-space: nowrap;
}
@media (min-width: 981px) and (max-width: 1220px) {
  .workbench {
    grid-template-columns: minmax(0, 1.16fr) minmax(430px, 0.84fr);
  }
  .input-rail {
    padding-left: 28px;
    padding-right: 28px;
  }
  .decision-rail {
    padding-left: 28px;
    padding-right: 28px;
  }
  .decision-actions {
    grid-template-columns: 1fr 1fr;
  }
  .decision-actions .primary-btn {
    grid-column: 1/-1;
  }
  .number-block {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bar-row {
    grid-template-columns: 102px minmax(0, 1fr) 55px;
    gap: 6px;
  }
}
@media (min-width: 981px) and (max-width: 1060px) {
  .workbench {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
  }
  .input-rail {
    padding-left: 20px;
    padding-right: 20px;
  }
  .decision-rail {
    padding-left: 22px;
    padding-right: 22px;
  }
  .manifest-section,
  .channel-picker,
  .channel-inputs {
    margin-left: 26px;
  }
  .decision-actions {
    font-size: 11px;
  }
  .secondary-btn,
  .primary-btn {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* Result-rail breathing room: the decision readout intentionally stops short of the viewport edge on desktop. */
@media (min-width: 981px) {
  .decision-rail {
    margin-right: clamp(20px, 2vw, 32px);
  }
}
@media (max-width: 980px) {
  .decision-rail {
    margin-right: 0;
  }
}

/* Operations layer: utilitarian ledger modules extend the pricing workbench without adding page navigation. */
.operations-deck {
  padding: 38px 3.1vw 44px;
  background: #e7ebe5;
  border-bottom: 1px solid var(--line);
}
.operations-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.operations-heading h2 {
  margin: 0;
  color: var(--navy);
  font:
    600 25px/1.1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.7px;
}
.operations-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  max-width: 650px;
  color: #587075;
  font-size: 12px;
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.ops-card {
  grid-column: span 4;
  background: #f9faf6;
  border: 1px solid #cbd6cf;
  padding: 17px;
  min-width: 0;
}
.sku-card {
  grid-column: span 8;
}
.runway-card {
  grid-column: span 7;
}
.report-card {
  grid-column: span 5;
  background: var(--navy);
  border-color: var(--navy);
  color: #e5efea;
}
.report-card h3,
.report-card .ops-help {
  color: #e5efea;
}
.report-card .eyebrow {
  color: #80dacd;
}
.ops-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.ops-card-head > div:last-child {
  display: flex;
  gap: 10px;
}
.ops-card h3 {
  margin: 1px 0 0;
  color: var(--navy);
  font:
    600 16px/1.15 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.3px;
}
.ops-card .eyebrow {
  margin-bottom: 4px;
}
.ops-help {
  font-size: 11px;
  color: #607378;
  line-height: 1.45;
  margin: 10px 0 14px;
}
.table-scroll {
  overflow: auto;
  border: 1px solid #d4ddd6;
}
.ops-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: 11px;
}
.ops-table th {
  padding: 8px;
  background: #e9efea;
  color: #507074;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
  border-bottom: 1px solid #d4ddd6;
}
.ops-table td {
  padding: 5px;
  border-bottom: 1px solid #e1e7e1;
  color: #445d63;
  vertical-align: middle;
}
.ops-table input {
  width: 100%;
  min-width: 68px;
  border: 1px solid #d1dad3;
  background: #fff;
  height: 29px;
  padding: 0 6px;
  color: var(--navy);
  font:
    500 11px/1 'IBM Plex Sans',
    sans-serif;
}
.ops-table .sku-name {
  min-width: 140px;
}
.ops-table .allocation-cell,
.ops-table .landed-cell {
  font:
    500 11px/1 'IBM Plex Mono',
    monospace;
  white-space: nowrap;
}
.remove-sku {
  border: 0;
  background: transparent;
  color: #a76555;
  cursor: pointer;
  font-size: 17px;
}
.ops-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.ops-actions > span {
  font:
    400 10px/1.3 'IBM Plex Mono',
    monospace;
  color: #60767a;
}
.file-action {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6d8f8b;
  color: #275e60;
  background: transparent;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.file-action input {
  display: none;
}
.compact-field {
  display: block;
}
.compact-field > span {
  display: block;
  margin-bottom: 5px;
  color: #5a6c70;
  text-transform: uppercase;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.07em;
}
.compact-field input,
.compact-field select {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd6cf;
  background: #fff;
  padding: 0 8px;
  color: var(--navy);
  font:
    500 12px/1 'IBM Plex Sans',
    sans-serif;
}
.rule-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d3ded7;
  margin-top: 13px;
}
.rule-facts div {
  background: #eff3ee;
  padding: 9px;
}
.rule-facts span {
  display: block;
  color: #64807e;
  text-transform: uppercase;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.06em;
}
.rule-facts b {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font:
    600 13px/1 'Space Grotesk',
    sans-serif;
}
.data-note {
  display: block;
  margin-top: 11px;
  color: #748389;
  font:
    400 9px/1.35 'IBM Plex Mono',
    monospace;
}
.scenario-list,
.hts-list {
  border-top: 1px solid #d6dfd8;
}
.scenario-row,
.hts-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #d6dfd8;
}
.scenario-row b,
.hts-row b {
  display: block;
  color: var(--navy);
  font-size: 11px;
}
.scenario-row span,
.hts-row span {
  display: block;
  margin-top: 3px;
  color: #718187;
  font:
    400 9px/1.3 'IBM Plex Mono',
    monospace;
}
.row-actions {
  display: flex;
  gap: 9px;
}
.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.runway-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #cfd9d3;
  margin-top: 14px;
}
.runway-output div {
  background: #f0f4ef;
  padding: 10px;
}
.runway-output span {
  display: block;
  color: #58757a;
  text-transform: uppercase;
  font:
    500 8px/1.2 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.06em;
}
.runway-output b {
  display: block;
  color: var(--navy);
  font:
    600 18px/1 'Space Grotesk',
    sans-serif;
  margin-top: 6px;
}
.runway-output small {
  display: block;
  color: #6a7f80;
  font-size: 9px;
  margin-top: 4px;
}
.report-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #31525e;
  margin-top: 13px;
}
.report-metrics div {
  padding: 11px;
  background: #173b46;
}
.report-metrics span {
  display: block;
  color: #9bbcb8;
  text-transform: uppercase;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.06em;
}
.report-metrics b {
  display: block;
  color: #fff;
  font:
    600 19px/1 'Space Grotesk',
    sans-serif;
  margin-top: 5px;
}
.report-card .secondary-btn {
  border-color: #6d9695;
}
.report-card .primary-btn {
  background: #188d88;
}
.ops-empty {
  padding: 12px 0;
  color: #75858a;
  font-size: 10px;
}
.ops-card .text-btn {
  font-size: 10px;
}
@media (max-width: 980px) {
  .operations-deck {
    padding: 30px 20px;
  }
  .ops-card,
  .sku-card,
  .runway-card,
  .report-card {
    grid-column: span 12;
  }
}
@media (max-width: 620px) {
  .operations-deck {
    padding: 27px 16px;
  }
  .operations-heading {
    display: block;
  }
  .operations-heading .tag {
    margin-top: 10px;
  }
  .ops-card {
    padding: 14px;
  }
  .compact-grid,
  .runway-output,
  .rule-facts {
    grid-template-columns: 1fr 1fr;
  }
  .ops-card-head {
    display: block;
  }
  .ops-card-head > div:last-child {
    margin-top: 8px;
  }
  .report-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

/* Light operation cards reuse the secondary control with a dark ledger-ink foreground. */
.ops-card:not(.report-card) .secondary-btn {
  color: #214d52;
  border-color: #6d8f8b;
}
.ops-card:not(.report-card) .secondary-btn:hover {
  color: #102f3b;
  background: #e5eeea;
}

/* Chinese interface uses a CJK-capable type stack while preserving the ledger-like layout rhythm. */
.lang-zh {
  font-family: 'Noto Sans CJK SC', 'Microsoft YaHei', Arial, sans-serif;
}
.lang-zh .eyebrow,
.lang-zh .tag,
.lang-zh .field > span,
.lang-zh .section-rule,
.lang-zh .subhead,
.lang-zh .compact-field > span,
.lang-zh .ops-table th,
.lang-zh .runway-output span,
.lang-zh .report-metrics span {
  font-family: 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.lang-zh .brief-strip h1,
.lang-zh .rail-heading h2,
.lang-zh .decision-head h2,
.lang-zh .panel-heading h2,
.lang-zh .operations-heading h2,
.lang-zh .ops-card h3 {
  font-family: 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: -0.35px;
}
.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.language-select-wrap:after {
  content: '⌄';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-57%);
  color: #8eb8b4;
  font:
    600 14px/1 'IBM Plex Mono',
    monospace;
  pointer-events: none;
}
.language-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 96px;
  border: 1px solid rgba(151, 200, 194, 0.45);
  border-radius: 2px;
  background: rgba(16, 48, 63, 0.55);
  color: #eaf4ef;
  padding: 7px 25px 7px 9px;
  font:
    500 12px/1 'IBM Plex Sans',
    sans-serif;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.language-select:hover {
  border-color: #8ed4ca;
  background: #173d4a;
}
.language-select:focus-visible {
  border-color: #8ed4ca;
  box-shadow: 0 0 0 3px rgba(113, 200, 193, 0.22);
}
.language-select option {
  background: #133547;
  color: #f4f7f3;
}
.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;
}

/* Operations expansion · local evidence, review queue and integration readiness panels. */
.data-card {
  background: #eef4f1;
}
.compliance-card {
  background: #fff8eb;
}
.collaboration-card {
  background: #f4f1ea;
}
.connectors-card {
  background: #eaf0f1;
}
.data-card .ops-actions,
.collaboration-card .ops-actions,
.connectors-card .ops-actions {
  flex-wrap: wrap;
}
.alert-list,
.review-list,
.connector-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.alert-row,
.review-row,
.connector-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.alert-row:last-child,
.review-row:last-child,
.connector-row:last-child {
  border-bottom: 0;
}
.alert-row b,
.review-row b,
.connector-row b {
  display: block;
  color: var(--navy);
  font-size: 12px;
}
.alert-row span,
.review-row span,
.connector-row span {
  display: block;
  color: #68777a;
  font-size: 10px;
  line-height: 1.45;
  margin-top: 3px;
}
.alert-severity {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  background: #d99b43;
}
.alert-severity.danger {
  background: #b64b3b;
}
.alert-severity.good {
  background: var(--teal);
}
.review-status {
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 6px;
  background: #e4eae5;
  color: #456068;
  white-space: nowrap;
}
.review-status.approved {
  background: #dcefe9;
  color: #0f625f;
}
.review-status.changes {
  background: #fae1d9;
  color: #984535;
}
.connector-row {
  align-items: center;
}
.connector-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a1afb0;
  box-shadow: 0 0 0 3px rgba(102, 117, 124, 0.12);
}
.connector-dot.ready {
  background: #147d79;
  box-shadow: 0 0 0 3px rgba(20, 125, 121, 0.13);
}
.connector-control {
  appearance: none;
  -webkit-appearance: none;
  width: 31px;
  height: 17px;
  border-radius: 10px;
  background: #93a5a3;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.connector-control:after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.connector-control:checked {
  background: #147d79;
}
.connector-control:checked:after {
  transform: translateX(14px);
}
.connector-control:focus-visible {
  outline: 3px solid rgba(20, 125, 121, 0.25);
  outline-offset: 2px;
}
.data-note a {
  color: var(--teal);
}
.connectors-card {
  grid-column: span 12;
}
.connectors-card .connector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}
.connectors-card .connector-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}
@media (max-width: 620px) {
  .connectors-card .connector-list {
    grid-template-columns: 1fr;
  }
  .connectors-card .connector-row:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Freight Control Tower application shell · fixed operational navigation with focused task canvases. */
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--paper);
}
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #d9e6e2;
  padding: 24px 15px 19px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #244856;
  z-index: 8;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fbf7;
  text-decoration: none;
  font:
    600 19px/1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.7px;
  padding: 0 8px;
}
.sidebar-brand .brand-mark {
  width: 31px;
  height: 26px;
  color: #71c8c1;
}
.sidebar-brand span span {
  color: #71c8c1;
}
.nav-caption {
  margin: 37px 9px 9px;
  color: #75948f;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.12em;
}
.workspace-nav {
  display: grid;
  gap: 3px;
}
.workspace-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 9px;
  color: #b7cbc6;
  text-decoration: none;
  font:
    500 12px/1 'IBM Plex Sans',
    sans-serif;
  border-left: 2px solid transparent;
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s;
}
.workspace-nav a i {
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  color: #6e928d;
  font-style: normal;
}
.workspace-nav a:hover {
  background: #143544;
  color: #fff;
}
.workspace-nav a.active {
  background: #173c49;
  color: #fff;
  border-left-color: #71c8c1;
}
.workspace-nav a.active i {
  color: #83d5ca;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #274957;
  padding: 15px 8px 0;
  color: #8ca8a3;
  font:
    500 9px/1.35 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 7px;
}
.sidebar-foot small {
  grid-column: 1/-1;
  font:
    400 9px/1.45 'IBM Plex Mono',
    monospace;
  color: #65847f;
  letter-spacing: 0;
}
.app-shell .topbar {
  grid-column: 2;
  height: 62px;
  padding: 0 2.6vw;
  gap: 18px;
}
.app-main {
  grid-column: 2;
  min-width: 0;
}
.app-main > .topbar {
  display: none;
}
.page-view {
  display: none;
}
.page-view.is-active {
  display: block;
  animation: moduleIn 0.16s ease both;
}
.page-view[data-page='workbench'].is-active {
  display: flex;
}
.page-view[data-page='operations'].is-active {
  display: block;
}
.home-view {
  padding: 0 3.7vw 46px;
  background: var(--paper);
  min-height: calc(100vh - 62px);
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 42px;
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--line);
}
.home-hero h1 {
  font:
    600 clamp(35px, 4.2vw, 62px)/0.99 'Space Grotesk',
    sans-serif;
  letter-spacing: -2.6px;
  color: var(--navy);
  margin: 0;
  max-width: 670px;
}
.home-hero .lede {
  font-size: 15px;
  max-width: 590px;
  margin-top: 15px;
}
.home-actions {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}
.home-secondary {
  color: #214d52;
  border-color: #6d8f8b;
  background: transparent;
}
.home-manifest {
  align-self: end;
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 17px;
}
.home-manifest > b {
  display: block;
  color: var(--navy);
  font:
    600 21px/1.1 'Space Grotesk',
    sans-serif;
  margin-top: 11px;
}
.home-manifest p {
  margin: 6px 0 20px;
  color: #637379;
  font-size: 12px;
}
.manifest-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: #61767a;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.06em;
}
.manifest-line strong {
  color: var(--teal);
  font-weight: 500;
  text-align: right;
}
.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 28px;
}
.home-metrics article {
  padding: 17px;
  background: #f9faf6;
}
.home-metrics article span {
  display: block;
  color: #5f797c;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.07em;
}
.home-metrics article b {
  display: block;
  color: var(--navy);
  font:
    600 clamp(22px, 2.2vw, 31px)/1 'Space Grotesk',
    sans-serif;
  letter-spacing: -1px;
  margin: 8px 0 5px;
}
.home-metrics article small {
  color: #728185;
  font-size: 10px;
}
.home-metrics .home-metric-profit {
  background: #e0efea;
}
.home-metrics .home-metric-profit b {
  color: #0f625f;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 15px;
  margin-top: 27px;
}
.home-panel {
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 20px;
}
.home-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.home-panel h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font:
    600 20px/1.1 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.6px;
}
.home-next {
  background: var(--navy);
  border-color: var(--navy);
}
.home-next h2,
.home-next p {
  color: #f3f7f2;
}
.home-next .eyebrow {
  color: #80dacd;
}
.home-next .tag {
  background: #234e58;
  color: #a4d8d1;
}
.home-next > p {
  font-size: 13px;
  line-height: 1.5;
  margin: 17px 0;
}
.home-next .text-btn {
  color: #8ed9ce;
}
.home-checks {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.home-checks div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #52666c;
  font-size: 11px;
}
.home-checks i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d99b43;
}
.home-checks i.good {
  background: #147d79;
}
.home-modules {
  grid-column: 1/-1;
}
.module-jump {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 16px;
}
.module-jump button {
  border: 0;
  background: #f8faf6;
  text-align: left;
  padding: 14px;
  display: flex;
  gap: 10px;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.16s;
}
.module-jump button:hover {
  background: #e1eee9;
}
.module-jump b {
  font:
    500 10px/1 'IBM Plex Mono',
    monospace;
  color: var(--teal);
  padding-top: 2px;
}
.module-jump span {
  font:
    600 13px/1.1 'IBM Plex Sans',
    sans-serif;
}
.module-jump small {
  display: block;
  margin-top: 4px;
  color: #6a7a7e;
  font:
    400 10px/1.3 'IBM Plex Sans',
    sans-serif;
}
.app-main > .brief-strip {
  padding-left: 3.7vw;
  padding-right: 3.7vw;
}
.app-main > .workbench .input-rail,
.app-main > .decision-rail {
  padding-left: 3.7vw;
  padding-right: 3.7vw;
}
.app-main > .analysis-grid .panel,
.app-main > .details-panel,
.app-main > .operations-deck {
  padding-left: 3.7vw;
  padding-right: 3.7vw;
}
.module-title {
  padding: 31px 3.7vw 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.module-title h1 {
  margin: 0;
  color: var(--navy);
  font:
    600 32px/1.05 'Space Grotesk',
    sans-serif;
  letter-spacing: -1.1px;
}
.module-title p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #66777c;
  font-size: 13px;
  max-width: 650px;
}
@keyframes moduleIn {
  from {
    opacity: 0.18;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 980px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    position: relative;
    height: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 17px;
    border-right: 0;
    border-bottom: 2px solid var(--teal);
  }
  .sidebar-brand {
    padding: 0;
  }
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .workspace-nav {
    display: flex;
    overflow: auto;
    gap: 2px;
    flex: 1;
  }
  .workspace-nav a {
    white-space: nowrap;
    padding: 8px 7px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .workspace-nav a.active {
    border-left: 0;
    border-bottom-color: #71c8c1;
  }
  .app-shell .topbar {
    height: auto;
    min-height: 62px;
    padding: 10px 20px;
  }
  .app-main,
  .app-shell .topbar {
    grid-column: auto;
  }
  .home-view {
    padding: 0 20px 34px;
  }
  .app-main > .brief-strip {
    padding-left: 20px;
    padding-right: 20px;
  }
  .app-main > .workbench .input-rail,
  .app-main > .decision-rail {
    padding-left: 20px;
    padding-right: 20px;
  }
  .app-main > .analysis-grid .panel,
  .app-main > .details-panel,
  .app-main > .operations-deck {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-hero {
    padding-top: 35px;
  }
  .home-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .app-sidebar {
    padding: 10px 16px;
    gap: 11px;
  }
  .sidebar-brand {
    font-size: 17px;
  }
  .workspace-nav a i {
    display: none;
  }
  .workspace-nav a {
    font-size: 11px;
    padding: 8px 6px;
  }
  .app-shell .topbar {
    padding: 10px 16px;
  }
  .app-shell .topbar .brand,
  .app-shell .topbar .manifest-meta {
    display: none;
  }
  .app-shell .top-actions {
    margin-left: auto;
  }
  .app-shell .top-actions .quiet-btn {
    display: none;
  }
  .home-view {
    padding: 0 16px 28px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 29px 0;
  }
  .home-hero h1 {
    font-size: 38px;
    letter-spacing: -1.7px;
  }
  .home-manifest {
    align-self: auto;
  }
  .home-actions {
    flex-wrap: wrap;
  }
  .home-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .home-metrics article {
    padding: 13px;
  }
  .home-metrics article b {
    font-size: 24px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-modules {
    grid-column: auto;
  }
  .module-jump {
    grid-template-columns: 1fr 1fr;
  }
  .app-main > .brief-strip {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-main > .workbench .input-rail,
  .app-main > .decision-rail {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-main > .analysis-grid .panel,
  .app-main > .details-panel,
  .app-main > .operations-deck {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.operations-deck[data-active-module='cargo'] .sku-card {
  grid-column: span 12;
}
.operations-deck[data-active-module='rules'] .rules-card,
.operations-deck[data-active-module='rules'] .hts-card {
  grid-column: span 6;
}
.operations-deck[data-active-module='planning'] .scenario-card,
.operations-deck[data-active-module='planning'] .runway-card {
  grid-column: span 6;
}
.operations-deck[data-active-module='review'] .report-card,
.operations-deck[data-active-module='review'] .compliance-card,
.operations-deck[data-active-module='review'] .collaboration-card {
  grid-column: span 4;
}
.operations-deck[data-active-module='connections'] .data-card {
  grid-column: span 12;
}
.operations-deck[data-active-module='connections'] .connectors-card {
  grid-column: span 12;
}
.operations-deck[data-active-module] .ops-grid {
  min-height: 420px;
}
.operations-deck[data-active-module='cargo'] .ops-grid {
  min-height: 460px;
}
.operations-deck[data-active-module='connections'] .ops-grid {
  min-height: 520px;
}
@media (max-width: 980px) {
  .operations-deck[data-active-module] .ops-card {
    grid-column: span 12;
  }
  .operations-deck[data-active-module] .ops-grid {
    min-height: 0;
  }
}
.app-sidebar {
  grid-row: 1 / span 2;
}
.app-shell .topbar {
  grid-row: 1;
}
.app-main {
  grid-row: 2;
}
@media (max-width: 980px) {
  .app-sidebar,
  .app-shell .topbar,
  .app-main {
    grid-row: auto;
  }
}
.module-title h1:focus {
  outline: 0;
}
.module-title {
  padding-top: 31px !important;
  padding-bottom: 22px !important;
}

/* Module layout repair: let task pages follow content height instead of inherited dashboard panels. */
.operations-deck[data-active-module] {
  padding-top: 26px;
  padding-bottom: 34px;
}
.operations-deck[data-active-module] .ops-grid {
  min-height: 0;
  align-items: start;
}
.operations-deck[data-active-module] .ops-card {
  min-height: 0;
}
.operations-deck[data-active-module='cargo'] .sku-card {
  padding-bottom: 22px;
}
.operations-deck[data-active-module='rules'] .ops-card,
.operations-deck[data-active-module='planning'] .ops-card {
  padding-bottom: 20px;
}
.operations-deck[data-active-module='review'] .report-card {
  grid-column: span 5;
}
.operations-deck[data-active-module='review'] .compliance-card {
  grid-column: span 4;
}
.operations-deck[data-active-module='review'] .collaboration-card {
  grid-column: span 3;
}
.operations-deck[data-active-module='connections'] .data-card,
.operations-deck[data-active-module='connections'] .connectors-card {
  padding-bottom: 20px;
}
.operations-deck[data-active-module='connections'] .ops-grid {
  gap: 14px;
}
.operations-deck[data-active-module='connections'] .connector-list {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .operations-deck[data-active-module='review'] .report-card,
  .operations-deck[data-active-module='review'] .compliance-card,
  .operations-deck[data-active-module='review'] .collaboration-card {
    grid-column: span 12;
  }
}
@media (max-width: 620px) {
  .module-title {
    padding: 26px 16px 20px !important;
  }
  .module-title h1 {
    font-size: 29px;
  }
  .module-title p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.45;
  }
  .operations-deck[data-active-module] {
    padding-top: 28px;
    padding-bottom: 30px;
  }
  .operations-deck[data-active-module] .ops-grid {
    gap: 12px;
  }
  .operations-deck[data-active-module] .ops-card {
    padding: 14px;
  }
  .operations-deck[data-active-module='cargo'] .table-scroll {
    overflow: visible;
    border: 0;
  }
  .operations-deck[data-active-module='cargo'] .ops-table {
    display: block;
    min-width: 0;
    border: 0;
  }
  .operations-deck[data-active-module='cargo'] .ops-table thead {
    display: none;
  }
  .operations-deck[data-active-module='cargo'] .ops-table tbody,
  .operations-deck[data-active-module='cargo'] .ops-table tr,
  .operations-deck[data-active-module='cargo'] .ops-table td {
    display: block;
    width: 100%;
  }
  .operations-deck[data-active-module='cargo'] .ops-table tr {
    position: relative;
    padding: 8px 8px 8px;
    border: 1px solid #d4ddd6;
    background: #fff;
    margin-bottom: 9px;
  }
  .operations-deck[data-active-module='cargo'] .ops-table td {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid #edf1ed;
    text-align: right;
  }
  .operations-deck[data-active-module='cargo'] .ops-table td:last-child {
    border-bottom: 0;
  }
  .operations-deck[data-active-module='cargo'] .ops-table td:before {
    content: attr(data-label);
    color: #597176;
    text-align: left;
    text-transform: uppercase;
    font:
      500 8px/1.2 'IBM Plex Mono',
      monospace;
    letter-spacing: 0.05em;
  }
  .operations-deck[data-active-module='cargo'] .ops-table td.sku-remove {
    position: absolute;
    right: 7px;
    top: 5px;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .operations-deck[data-active-module='cargo'] .ops-table td.sku-remove:before {
    display: none;
  }
  .operations-deck[data-active-module='cargo'] .ops-table input {
    height: 31px;
    min-width: 0;
    text-align: left;
  }
  .operations-deck[data-active-module='cargo'] .ops-table .allocation-cell,
  .operations-deck[data-active-module='cargo'] .ops-table .landed-cell {
    font-size: 11px;
  }
  .operations-deck[data-active-module='cargo'] .ops-actions {
    margin-top: 9px;
  }
  .operations-deck[data-active-module='planning'] .runway-output {
    grid-template-columns: 1fr;
  }
  .operations-deck[data-active-module='planning'] .runway-output div {
    padding: 11px;
  }
  .operations-deck[data-active-module='rules'] .rule-facts {
    grid-template-columns: 1fr;
  }
  .operations-deck[data-active-module='rules'] .rule-facts div {
    padding: 10px;
  }
  .operations-deck[data-active-module='connections'] .connector-list {
    grid-template-columns: 1fr;
  }
  .operations-deck[data-active-module='connections'] .connector-row:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .operations-deck[data-active-module='review'] .report-card {
    padding: 16px;
  }
  .operations-deck[data-active-module='review'] .report-metrics {
    margin-top: 14px;
  }
}

/* Keep the application canvas anchored directly below the control bar; the spanning navigation must not size the first grid row. */
@media (min-width: 981px) {
  .app-shell {
    grid-template-rows: 62px auto;
    align-content: start;
  }
  .app-main {
    align-self: start;
    min-height: 0;
  }
  .app-sidebar {
    align-self: stretch;
  }
}

/* Interactive field kit · custom selects retain native source controls; calendar writes ISO values into the existing form model. */
.select-enhanced {
  position: relative;
}
.select-enhanced > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.select-trigger {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c8d4cf;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 34px 0 11px;
  text-align: left;
  font:
    500 12px/1.2 'IBM Plex Sans',
    sans-serif;
  position: relative;
  cursor: pointer;
}
.select-trigger:after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #346166;
  border-bottom: 1.5px solid #346166;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.16s;
}
.select-enhanced.is-open .select-trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 125, 121, 0.12);
}
.select-enhanced.is-open .select-trigger:after {
  transform: translateY(-25%) rotate(225deg);
}
.select-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  background: #fffdf8;
  border: 1px solid #9ab5af;
  box-shadow: 0 12px 24px rgba(13, 36, 51, 0.16);
  padding: 4px;
  display: none;
  max-height: 248px;
  overflow: auto;
}
.select-enhanced.is-open .select-menu {
  display: block;
  animation: fieldPop 0.14s ease both;
}
.select-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 9px;
  color: #29414a;
  font:
    500 12px/1.25 'IBM Plex Sans',
    sans-serif;
  cursor: pointer;
}
.select-option:hover,
.select-option.is-selected {
  background: #e2f0eb;
  color: #0e6562;
}
.select-option.is-selected:after {
  content: 'SELECTED';
  float: right;
  color: #147d79;
  font:
    500 8px/1.6 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
}
@keyframes fieldPop {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.date-field {
  position: relative;
}
.date-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.date-trigger {
  width: 100%;
  height: 40px;
  border: 1px solid #c8d4cf;
  background: #fffdf8;
  color: #29414a;
  text-align: left;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font:
    500 12px/1 'IBM Plex Sans',
    sans-serif;
}
.date-trigger:focus,
.select-trigger:focus {
  outline: 3px solid rgba(20, 125, 121, 0.18);
  outline-offset: 1px;
}
.date-glyph {
  width: 15px;
  height: 15px;
  border: 1.5px solid #45686a;
  color: transparent;
  position: relative;
}
.date-glyph:before {
  content: '';
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: 3px;
  border-top: 1.5px solid #45686a;
}
.date-glyph:after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: #45686a;
  left: 3px;
  top: 7px;
  box-shadow:
    5px 0 #45686a,
    0 4px #45686a,
    5px 4px #45686a;
}
.date-popover {
  display: none;
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: #fffdf8;
  border: 1px solid #8dadab;
  box-shadow: 0 14px 28px rgba(13, 36, 51, 0.18);
  padding: 12px;
}
.date-field.is-open .date-popover {
  display: block;
  animation: fieldPop 0.14s ease both;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe7e2;
  padding-bottom: 8px;
  margin-bottom: 7px;
}
.calendar-head b {
  color: #183d46;
  font:
    600 13px/1 'Space Grotesk',
    sans-serif;
}
.calendar-nav {
  width: 25px;
  height: 25px;
  border: 1px solid #b9cac5;
  background: #fff;
  color: #2f6262;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar-weekday {
  text-align: center;
  color: #758a86;
  font:
    500 8px/2 'IBM Plex Mono',
    monospace;
}
.calendar-day {
  height: 29px;
  border: 0;
  background: transparent;
  color: #243f47;
  cursor: pointer;
  font:
    500 11px/1 'IBM Plex Sans',
    sans-serif;
}
.calendar-day:hover {
  background: #e1efea;
  color: #0d6b67;
}
.calendar-day.is-today {
  box-shadow: inset 0 0 0 1px #98b8b1;
}
.calendar-day.is-selected {
  background: #147d79;
  color: #fff;
}
.calendar-day.is-muted {
  color: #b7c4c1;
}
.calendar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dfe7e2;
  margin-top: 8px;
  padding-top: 9px;
}
.calendar-actions button {
  border: 0;
  background: transparent;
  color: #147d79;
  padding: 0;
  font:
    500 10px/1 'IBM Plex Sans',
    sans-serif;
  cursor: pointer;
}
.field-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #51706e;
  font:
    400 9px/1.25 'IBM Plex Mono',
    monospace;
}
.field-status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #147d79;
}
.field-status.is-pending:before {
  background: #e4973a;
}
@media (max-width: 620px) {
  .select-menu {
    max-height: 205px;
  }
  .date-popover {
    min-width: 0;
    right: 0;
  }
  .date-trigger,
  .select-trigger {
    min-height: 38px;
  }
  .compact-field.date-field {
    z-index: 5;
  }
}

/* Layout-stability pass · compact form controls share one fixed vertical rhythm; overlays never claim document space. */
.compact-field.date-field {
  min-height: 49px;
  isolation: isolate;
}
.compact-field .date-trigger,
.compact-field .select-trigger {
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
}
.compact-field.date-field .date-trigger {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.compact-field.date-field .date-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-field.date-field .date-glyph {
  flex: 0 0 15px;
}
.compact-field .field-status {
  display: none !important;
}
.compact-field.is-updated input,
.compact-field.is-updated textarea,
.compact-field.is-updated .date-trigger {
  border-color: #147d79;
  box-shadow: 0 0 0 2px rgba(20, 125, 121, 0.11);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.date-popover {
  box-sizing: border-box;
  contain: layout paint;
}
.ops-grid {
  align-items: start;
}
@media (max-width: 620px) {
  .compact-field.date-field {
    min-height: 47px;
  }
  .compact-field .date-trigger,
  .compact-field .select-trigger {
    height: 34px;
    min-height: 34px;
  }
}

/* Workbench width lock · active view must preserve the two-column grid rather than fall back to content-sized flex columns. */
.page-view[data-page='workbench'].is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(385px, 0.76fr);
  align-items: start;
}
.page-view[data-page='workbench'].is-active > .input-rail,
.page-view[data-page='workbench'].is-active > .decision-rail {
  min-width: 0;
  width: auto;
}
@media (min-width: 981px) and (max-width: 1220px) {
  .page-view[data-page='workbench'].is-active {
    grid-template-columns: minmax(0, 1.16fr) minmax(430px, 0.84fr);
  }
}
@media (min-width: 981px) and (max-width: 1060px) {
  .page-view[data-page='workbench'].is-active {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
  }
}
@media (max-width: 980px) {
  .page-view[data-page='workbench'].is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Calendar navigation reliability · generous hit targets and an isolated overlay prevent pointer-through or premature close. */
.date-popover {
  z-index: 60;
  pointer-events: auto;
}
.calendar-head {
  min-height: 36px;
  position: relative;
}
.calendar-nav {
  width: 34px;
  height: 30px;
  min-width: 34px;
  min-height: 30px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}
.calendar-nav:focus-visible {
  outline: 2px solid #147d79;
  outline-offset: 2px;
}
.calendar-nav:active {
  background: #e1efea;
  transform: translateY(1px);
}

/* Small-screen calendar positioning · open upward from the review field so navigation controls stay inside the viewport. */
@media (max-width: 620px) {
  .date-field.is-open .date-popover {
    top: auto;
    bottom: calc(100% + 6px);
  }
  .date-popover {
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
  .calendar-nav {
    position: sticky;
    top: 0;
    background: #fffdf8;
  }
}

/* Single-shell navigation · sidebar owns product identity and module routing; top bar carries only workspace state and global actions. */
.workspace-context {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b9c8c9;
  font:
    500 10px/1.3 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.app-shell .topbar {
  gap: 16px;
}
.app-shell .topbar .workspace-context {
  margin-right: auto;
}
.app-shell .topbar .top-actions {
  margin-left: 0;
}
.home-view .home-grid {
  grid-template-columns: 1fr 1fr;
}
.home-view .home-panel.home-modules {
  display: none;
}
@media (max-width: 980px) {
  .workspace-context {
    display: none;
  }
  .app-shell .topbar .top-actions {
    margin-left: auto;
  }
}

/* Single navigation shell v2 · sidebar is the sole product/navigation/action surface. */
.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: minmax(100vh, auto);
}
.app-shell > .topbar {
  display: none !important;
}
.app-shell > .app-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.sidebar-actions {
  margin-top: 18px;
  padding: 15px 18px 14px;
  border-top: 1px solid rgba(191, 215, 208, 0.16);
  border-bottom: 1px solid rgba(191, 215, 208, 0.16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.sidebar-action-label {
  grid-column: 1/-1;
  margin: 0;
  color: #7ea4a2;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.08em;
}
.sidebar-status {
  grid-column: 1/-1;
  margin: 0 0 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: center;
  color: #c5d6d0;
  font:
    500 9px/1.25 'IBM Plex Mono',
    monospace;
}
.sidebar-status small {
  grid-column: 2;
  color: #789897;
  font:
    400 8px/1.2 'IBM Plex Mono',
    monospace;
  margin-top: 2px;
}
.sidebar-action-btn {
  border: 1px solid rgba(191, 215, 208, 0.23);
  background: transparent;
  color: #dbe8e3;
  min-height: 29px;
  padding: 0 7px;
  text-align: left;
  font:
    500 10px/1 'IBM Plex Sans',
    sans-serif;
  cursor: pointer;
}
.sidebar-action-btn:hover {
  border-color: #71c8c1;
  background: #173d48;
}
.sidebar-language {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a9c3bd;
  font:
    500 9px/1 'IBM Plex Mono',
    monospace;
}
.sidebar-language .language-select {
  width: 94px;
  height: 28px;
  border: 1px solid rgba(191, 215, 208, 0.3);
  background: #12333f;
  color: #eef6f2;
  padding: 0 6px;
  font-size: 10px;
}
.sidebar-save {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 2px;
}
.app-sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .app-shell > .app-main {
    grid-column: 1;
    grid-row: 2;
  }
  .app-sidebar {
    height: auto;
    position: static;
  }
  .sidebar-actions {
    display: none !important;
  }
}

/* Manifest card refinement · one status card, one primary save action, a restrained tool row. */
.sidebar-actions {
  display: block !important;
  margin-top: 18px;
  padding: 14px 18px 15px;
  border: 1px solid rgba(143, 198, 190, 0.22);
  background: linear-gradient(145deg, rgba(25, 69, 80, 0.72), rgba(11, 39, 51, 0.42));
  box-shadow: inset 3px 0 0 rgba(101, 205, 194, 0.7);
}
.manifest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sidebar-action-label {
  margin: 0;
  color: #9bc8c1;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.11em;
}
.manifest-mode {
  border: 1px solid rgba(161, 220, 210, 0.22);
  padding: 3px 5px;
  color: #87b9b0;
  font:
    500 7px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.08em;
}
.sidebar-status {
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #e5f0eb;
}
.sidebar-status .meta-dot {
  margin-top: 4px;
}
.sidebar-status div {
  display: grid;
  gap: 3px;
}
.sidebar-status strong {
  font:
    600 12px/1 'IBM Plex Sans',
    sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.sidebar-status small {
  color: #89a8a5;
  font:
    400 9px/1.35 'IBM Plex Sans',
    sans-serif;
}
.sidebar-status small span {
  color: #b2cec7;
}
.sidebar-save {
  width: 100%;
  min-height: 36px;
  margin: 0 0 11px;
  font-size: 11px;
}
.manifest-tools {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.8fr;
  gap: 5px;
  margin-bottom: 11px;
}
.sidebar-action-btn {
  min-height: 29px;
  padding: 0 6px;
  border: 1px solid rgba(191, 215, 208, 0.2);
  background: rgba(6, 28, 38, 0.2);
  color: #cce0da;
  text-align: center;
  font:
    500 9px/1 'IBM Plex Sans',
    sans-serif;
  white-space: nowrap;
}
.sidebar-action-btn:hover {
  border-color: #77c8be;
  background: rgba(51, 118, 121, 0.28);
}
.sidebar-action-btn.is-risk {
  color: #d9b1a5;
}
.sidebar-action-btn.is-risk:hover {
  border-color: #ca907f;
  background: rgba(154, 74, 55, 0.18);
}
.sidebar-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(191, 215, 208, 0.15);
  padding-top: 10px;
  color: #87a9a5;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.07em;
}
.sidebar-language .language-select {
  width: 91px;
  height: 26px;
  border: 0;
  border-bottom: 1px solid rgba(174, 215, 207, 0.42);
  background: transparent;
  color: #e7f2ee;
  padding: 0 2px;
  font-size: 10px;
}
@media (max-width: 980px) {
  .sidebar-actions {
    display: none !important;
  }
}

/* Manifest state line: identity at left, save state at right, no competing wrap points. */
.sidebar-status {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}
.sidebar-status .meta-dot {
  margin-top: 0;
}
.sidebar-status .manifest-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.manifest-save-state {
  max-width: 66px;
  color: #9bcac1;
  font:
    500 8px/1.25 'IBM Plex Mono',
    monospace;
  text-align: right;
}

/* Bottom-anchored manifest card: navigation stays above, manifest controls live with workspace status. */
@media (min-width: 981px) {
  .app-sidebar > .sidebar-actions {
    margin-top: auto;
    margin-bottom: 0;
  }
  .app-sidebar > .sidebar-foot {
    margin-top: 12px;
  }
}
.sidebar-language {
  padding-top: 8px;
}
.sidebar-language .language-select {
  height: 21px;
  min-height: 21px;
  line-height: 19px;
  padding: 0 1px;
  font-size: 9px;
}

/* Manifest footer redesign · sober bill-of-lading footer, not a decorative card. */
@media (min-width: 981px) {
  .app-sidebar > .sidebar-actions {
    margin-top: auto;
    margin-bottom: 0;
  }
  .app-sidebar > .sidebar-foot {
    display: none !important;
  }
}
.sidebar-actions {
  display: block !important;
  margin-top: auto !important;
  padding: 15px 18px 14px !important;
  border: 0 !important;
  border-top: 1px solid rgba(183, 215, 208, 0.25) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.manifest-identity-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sidebar-action-label {
  margin: 0;
  color: #86aaa5;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.12em;
}
.manifest-mode {
  color: #628983;
  font:
    500 7px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.08em;
  border: 0 !important;
  padding: 0 !important;
}
.manifest-record {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(183, 215, 208, 0.12);
}
.manifest-record .meta-dot {
  flex: 0 0 auto;
}
.manifest-record div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.manifest-record strong {
  color: #e6f0ec;
  font:
    600 12px/1 'IBM Plex Sans',
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.manifest-record small {
  color: #789a95;
  font:
    400 9px/1.25 'IBM Plex Sans',
    sans-serif;
}
.manifest-record small span {
  color: #a3c7bf;
}
.sidebar-save {
  width: 100%;
  min-height: 33px;
  margin: 11px 0 9px !important;
  font:
    600 10px/1 'IBM Plex Sans',
    sans-serif;
  letter-spacing: 0.01em;
}
.manifest-tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.manifest-tool-row .sidebar-action-btn {
  min-height: 25px;
}
.sidebar-action-btn {
  border: 0 !important;
  background: transparent !important;
  color: #9dbbb5 !important;
  padding: 0 3px !important;
  text-align: left !important;
  font:
    500 9px/1 'IBM Plex Sans',
    sans-serif;
}
.sidebar-action-btn:hover {
  color: #eff8f4 !important;
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sidebar-action-btn.is-risk {
  color: #9e8078 !important;
  text-align: right !important;
}
.sidebar-utility-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(183, 215, 208, 0.12);
}
.sidebar-language {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  border: 0 !important;
  color: #6f928d;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.06em;
}
.sidebar-language .language-select {
  width: 72px;
  height: 18px !important;
  min-height: 18px !important;
  line-height: 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(183, 215, 208, 0.32) !important;
  background: transparent !important;
  color: #dcebe6;
  padding: 0 !important;
  font-size: 9px !important;
}
.sidebar-foot {
  display: none !important;
}
@media (max-width: 980px) {
  .sidebar-actions {
    display: none !important;
  }
}

/* Status rail + action dock · explicit two-part architecture, replacing prior card/footer patterns. */
@media (min-width: 981px) {
  .app-sidebar > .sidebar-actions {
    margin-top: auto !important;
    margin-bottom: 0;
  }
  .app-sidebar > .sidebar-foot {
    display: none !important;
  }
}
.sidebar-actions {
  display: block !important;
  margin-top: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.manifest-status-rail {
  padding: 13px 18px 12px;
  background: #123441;
  border-top: 1px solid #315865;
  border-bottom: 1px solid #315865;
}
.manifest-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sidebar-action-label {
  margin: 0;
  color: #81b2aa;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.1em;
}
.manifest-mode {
  color: #78a19a;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.08em;
}
.manifest-status-body {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
}
.manifest-status-body .meta-dot {
  margin: 0;
}
.manifest-status-body > div {
  display: grid;
  gap: 3px;
}
.manifest-status-body strong {
  color: #f0f7f4;
  text-transform: uppercase;
  font:
    600 12px/1 'IBM Plex Sans',
    sans-serif;
}
.manifest-status-body small {
  color: #87a8a2;
  font:
    400 9px/1 'IBM Plex Sans',
    sans-serif;
}
.manifest-save-state {
  color: #9ed0c6;
  font:
    500 8px/1.2 'IBM Plex Mono',
    monospace;
  text-align: right;
}
.workspace-dock {
  padding: 10px 18px 14px;
  background: #0b2b38;
  border-bottom: 1px solid #264c57;
}
.sidebar-save {
  width: 100%;
  height: 34px;
  min-height: 34px;
  margin: 0 0 8px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px !important;
  font:
    600 10px/1 'IBM Plex Sans',
    sans-serif;
}
.sidebar-save b {
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  color: rgba(231, 251, 245, 0.65);
}
.dock-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dock-action {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid #315561;
  background: #102f3c;
  color: #d5e5df;
  font:
    500 9px/1 'IBM Plex Sans',
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.dock-action:hover {
  background: #174554;
  border-color: #6dbbb2;
}
.dock-code {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #54817d;
  color: #9dd5cc;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
}
.dock-utility-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #244854;
}
.sidebar-language {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  color: #779992;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
}
.sidebar-language .language-select {
  width: 70px;
  height: 19px !important;
  min-height: 19px !important;
  border: 0 !important;
  background: #153946 !important;
  color: #edf5f2;
  padding: 0 3px !important;
  font-size: 9px !important;
}
.dock-reset {
  padding: 0;
  border: 0;
  background: none;
  color: #9d766e;
  font:
    500 8px/1 'IBM Plex Mono',
    monospace;
  cursor: pointer;
}
.dock-reset:hover {
  color: #e0a596;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.manifest-identity-line,
.manifest-record,
.manifest-tool-row,
.sidebar-utility-row {
  display: none !important;
}
.sidebar-foot {
  display: none !important;
}
@media (max-width: 980px) {
  .sidebar-actions {
    display: none !important;
  }
}

/* Dock utility refinement: prevent reset wrapping and preserve readable language control. */
.dock-utility-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.sidebar-language {
  min-width: 0;
}
.sidebar-language .language-select {
  width: 76px;
  flex: 0 0 76px;
}
.dock-reset {
  white-space: nowrap;
  font-size: 7.5px;
  text-align: right;
}

/* Sidebar language selector: compact custom trigger; menu opens upward inside the viewport instead of extending the sidebar. */
.sidebar-language .select-enhanced {
  position: relative;
  display: block;
  width: 76px;
  flex: 0 0 76px;
}
.sidebar-language .select-enhanced > .select-trigger {
  height: 21px;
  min-height: 21px !important;
  width: 100%;
  padding: 0 18px 0 3px;
  border: 0 !important;
  border-bottom: 1px solid rgba(183, 215, 208, 0.42) !important;
  background: transparent !important;
  color: #edf5f2;
  font:
    500 9px/19px 'IBM Plex Sans',
    sans-serif;
}
.sidebar-language .select-enhanced > .select-trigger:after {
  right: 5px;
  width: 5px;
  height: 5px;
  border-width: 1px;
}
.sidebar-language .select-enhanced > .select-menu {
  top: auto;
  bottom: calc(100% + 5px);
  left: auto;
  right: 0;
  width: 110px;
  max-height: 88px;
  padding: 3px;
  background: #163c49;
  border-color: #5e9690;
  box-shadow: 0 -8px 18px rgba(2, 18, 25, 0.28);
  overflow-y: auto;
}
.sidebar-language .select-enhanced > .select-option {
  padding: 7px 7px;
  font-size: 9px;
  line-height: 1.15;
}
.sidebar-language .select-enhanced > .select-option.is-selected:after {
  font-size: 6px;
}
.sidebar-language .language-select {
  display: none !important;
}

/* Short desktop viewport guard: condense the fixed navigation rail before any internal sidebar scrolling is needed. */
@media (min-width: 981px) and (max-height: 760px) {
  .app-sidebar {
    padding-top: 16px;
    padding-bottom: 12px;
    overflow: visible !important;
  }
  .nav-caption {
    margin-top: 20px;
    margin-bottom: 6px;
  }
  .workspace-nav {
    gap: 1px;
  }
  .workspace-nav a {
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .manifest-status-rail {
    padding-top: 9px;
    padding-bottom: 8px;
  }
  .manifest-status-head {
    margin-bottom: 7px;
  }
  .workspace-dock {
    padding-top: 7px;
    padding-bottom: 8px;
  }
  .sidebar-save {
    height: 30px;
    min-height: 30px;
    margin-bottom: 6px !important;
  }
  .dock-action {
    height: 27px;
  }
  .dock-utility-line {
    margin-top: 7px;
    padding-top: 6px;
  }
}

/* Sidebar utility contrast repair: language options are legible on the dark dock; reset is an explicit, bounded destructive action. */
.sidebar-language .select-enhanced > .select-option {
  color: #eef8f4 !important;
  font-weight: 600;
  background: transparent;
}
.sidebar-language .select-enhanced > .select-option:hover {
  background: #245967 !important;
  color: #ffffff !important;
}
.sidebar-language .select-enhanced > .select-option.is-selected {
  background: #1d6f70 !important;
  color: #ffffff !important;
}
.sidebar-language .select-enhanced > .select-option.is-selected:after {
  color: #baf6e8 !important;
}
.sidebar-language .select-enhanced > .select-option:focus-visible {
  outline: 2px solid #83dfcf;
  outline-offset: -2px;
}
.dock-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 7px !important;
  border: 1px solid rgba(225, 139, 121, 0.68) !important;
  background: #3e2b30 !important;
  color: #ffd8cf !important;
  font:
    600 8px/1 'IBM Plex Mono',
    monospace !important;
  letter-spacing: 0.035em;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 209, 196, 0.06);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.dock-reset:before {
  content: '↺';
  font:
    600 12px/1 'IBM Plex Sans',
    sans-serif;
  color: #ffb8a7;
}
.dock-reset:hover {
  background: #6c382f !important;
  border-color: #ffad99 !important;
  color: #fff6f2 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
.dock-reset:focus-visible {
  outline: 2px solid #ffb5a2;
  outline-offset: 2px;
}
@media (min-width: 981px) and (max-height: 760px) {
  .dock-reset {
    min-height: 22px;
    padding: 0 6px !important;
    font-size: 7.5px !important;
  }
  .dock-reset:before {
    font-size: 11px;
  }
}

/* The custom option buttons are nested inside .select-menu, not direct children of the enhanced wrapper. */
.sidebar-language .select-enhanced .select-menu .select-option {
  color: #eef8f4 !important;
  font-weight: 600 !important;
  background: transparent !important;
}
.sidebar-language .select-enhanced .select-menu .select-option:hover {
  background: #245967 !important;
  color: #ffffff !important;
}
.sidebar-language .select-enhanced .select-menu .select-option.is-selected {
  background: #1d6f70 !important;
  color: #ffffff !important;
}
.sidebar-language .select-enhanced .select-menu .select-option.is-selected:after {
  color: #baf6e8 !important;
}

/* Bottom language placement: reset is separated; language owns the final dock row and its menu rises toward the workspace. */
.workspace-dock .dock-utility-line {
  grid-template-columns: 1fr;
  margin-top: 10px;
  padding-top: 8px;
}
.workspace-dock .dock-utility-line .dock-reset {
  width: 100%;
  justify-content: center;
}
.dock-language-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #244854;
}
.dock-language-line .sidebar-language {
  width: 100%;
  justify-content: space-between;
}
.dock-language-line .sidebar-language .select-enhanced {
  margin-left: auto;
}
@media (min-width: 981px) and (max-height: 760px) {
  .dock-language-line {
    margin-top: 7px;
    padding-top: 6px;
  }
}
