

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/onest-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/onest-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/onest-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/onest-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/onest-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/onest-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/onest-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/onest-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/jetbrainsmono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {

  --green: #2FB84D;
  --green-br: #3DD168;
  --green-dk: #1E8A38;
  --ink: #2B3A34;
  --muted: #5C6B64;
  --line: #E3EAE6;
  --line-s: #EFF4F1;
  --bg: #F2F6F3;
  --panel: #FFFFFF;
  --rail: #10201A;
  --rail-2: #162C22;
  --rail-line: #22412F;
  --rail-txt: #BFD6C7;
  --amber: #D9962B;
  --amber-s: #F5E4C4;
  --red: #CF4B45;
  --red-s: #F7DEDC;
  --slate: #7C8E86;
  --slate-s: #DCE5E0;

  --tint-selected: #F5FBF6;
  --tint-hover: #FAFCFB;
  --tint-formula: #F7FAF8;
  --tint-strategy: #F4F7F5;
  --tint-chip: #EAF6EC;
  --tint-chip-border: #CBE9D2;
  --tint-pill-active: #E8F6EC;
  --tint-pill-active-border: #BFE6C9;
  --hover-border: #C9D8CF;

  --tag-warn-bg: #FBF1DE;
  --tag-warn-text: #9A6A12;
  --tag-bad-text: #A5342F;
  --tag-neutral-bg: #EEF2F0;

  --note-warn-bg: #FDF8EE;
  --note-danger-bg: #FDF3F2;
  --note-info-bg: #F3F7FE;
  --note-info-border: #5B7FBF;

  --blue: #5B7FBF;
  --blue-ink: #3A5A8C;

  --chart-blue: #2B6FB8;
  --chart-rust: #B8632F;
  --chart-purple: #7A4FB8;
  --chart-magenta: #B82F6B;

  --rail-tagline: #6F8B7B;
  --rail-seclabel: #59775F;
  --rail-ix: #4E7A5C;
  --rail-scroll: #294A36;
  --rail-av-bg: #24422F;
  --rail-av-txt: #CFE7D7;
  --rail-pnm: #E8F3EB;
  --rail-psub: #7FA08C;
  --rail-all-av-bg: #1D3B2A;
  --rail-all-av-txt: #8FD6A6;
  --rail-foot-b: #D8EADD;
  --ops-badge-txt: #3A2A08;

  --lad-tvm-tx: #3E5349;
  --lad-cut-tx: #8E322D;
  --lad-c-tx: #8A6316;
  --lad-c2-bg: #F9EDD6;
  --lad-ch-bg: #E4EDF6;
  --lad-ch-tx: #3B5A75;
  --lad-esc-bg: #CFE0EE;
  --lad-esc-tx: #274A66;
  --lad-cx-bg: #F3DCDB;

  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 8px;
  --r: 9px;
  --r-xl: 12px;
  --r-full: 999px;

  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 6px;
  --sp-4: 9px;
  --sp-5: 12px;
  --sp-6: 14px;
  --sp-7: 18px;
  --sp-8: 22px;
  --module: 14px;
  --content-pad: 18px;
  --content-max: 1420px;
  --rail-width: 268px;
  --topbar-h: 54px;

  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font-family: inherit;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.shell {
  display: flex;
  min-height: 100vh;
}

.rail {
  width: var(--rail-width);
  flex: 0 0 var(--rail-width);
  background: var(--rail);
  color: var(--rail-txt);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail .brand {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--rail-line);
  display: flex;
  align-items: center;
  gap: 9px;
}

.rail .wordmark {
  color: #fff;
}

.wordmark {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.4px;
  position: relative;
  display: inline-block;
}

.wordmark .slash {
  position: absolute;
  left: 1px;
  top: -3px;
  width: 2.5px;
  height: 24px;
  background: var(--green-br);
  transform: rotate(20deg);
  border-radius: 2px;
}

.rail .brand small {
  display: block;
  font-size: 10.5px;
  color: var(--rail-tagline);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 1px;
}

.railsec {
  padding: 14px 12px 4px;
  font-size: 10px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--rail-seclabel);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 8px;
}

.nav button {
  all: unset;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--rail-txt);
  font-size: 13.2px;
  cursor: pointer;
  line-height: 1.25;
}

.nav button:hover {
  background: var(--rail-2);
}

.nav button.on {
  background: var(--rail-2);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--green-br);
}

.nav button:focus-visible {
  outline: 2px solid var(--green-br);
  outline-offset: -2px;
}

.nav .ix {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--rail-ix);
  width: 15px;
}

.nav button.on .ix {
  color: var(--green-br);
}

.plist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.plist::-webkit-scrollbar {
  width: 6px;
}

.plist::-webkit-scrollbar-thumb {
  background: var(--rail-scroll);
  border-radius: 3px;
}

.pitem {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--rail-txt);
}

.pitem:hover {
  background: var(--rail-2);
}

.pitem.on {
  background: var(--rail-2);
  box-shadow: inset 2px 0 0 var(--green-br);
}

.pitem:focus-visible {
  outline: 2px solid var(--green-br);
  outline-offset: -2px;
}

.pav {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: var(--r-md);
  background: var(--rail-av-bg);
  color: var(--rail-av-txt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.pitem.on .pav {
  background: var(--green);
  color: #fff;
}

.pav.ico {
  font-family: var(--mono);
  font-size: 15px;
}

.pmid {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pnm {
  font-size: 13.2px;
  line-height: 1.25;
  color: var(--rail-pnm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitem.on .pnm {
  color: #fff;
  font-weight: 600;
}

.psub {
  font-size: 10.8px;
  color: var(--rail-psub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.pbadge {
  flex: 0 0 auto;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ops-badge-txt);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.allwrap {
  padding: 8px;
  border-top: 1px solid var(--rail-line);
  margin-top: 4px;
}

.allitem .pav {
  background: var(--rail-all-av-bg);
  color: var(--rail-all-av-txt);
}

.allitem.on .pav {
  background: var(--green);
  color: #fff;
}

.railfoot {
  padding: 12px;
  border-top: 1px solid var(--rail-line);
  font-size: 11px;
  color: var(--rail-tagline);
}

.railfoot b {
  display: block;
  color: var(--rail-foot-b);
  font-size: 12px;
  font-weight: 600;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top {
  height: var(--topbar-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
}

.crumbs b {
  color: var(--ink);
  font-weight: 600;
}

.spacer {
  flex: 1;
}

.projsel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 9px;
  font-size: 12.8px;
  color: var(--ink);
}

.chip {
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--tint-chip);
  color: var(--green-dk);
  border: 1px solid var(--tint-chip-border);
}

.langsw {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.langsw button {
  all: unset;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.langsw button.on {
  background: var(--ink);
  color: #fff;
}

.langsw button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.mksw {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.mksw button {
  all: unset;
  padding: 5px 11px;
  font-size: 12.3px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
}

.mksw button.on {
  background: var(--green);
  color: #fff;
}

.mksw button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.role-badge {
  all: unset;
  cursor: pointer;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--tint-chip);
  color: var(--green-dk);
  border: 1px solid var(--tint-chip-border);
}

.role-badge:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.rolemenu {
  position: absolute;
  top: calc(var(--topbar-h) - 6px);
  right: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px;
  z-index: 30;
}

.rolewrap {
  position: relative;
}

.modesw {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.modesw button {
  all: unset;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
}

.modesw button.on {
  background: var(--ink);
  color: #fff;
}

.modesw button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.ebadge {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: #EEF4FF;
  color: var(--blue-ink);
  border: 1px solid #CFDDF3;
  vertical-align: middle;
  margin-left: 6px;
}

.ebadge:hover {
  background: #DFE9FB;
}

.ebadge:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 1px;
}

.gapnote {
  font-size: 11.8px;
  color: var(--muted);
  line-height: 1.5;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  background: #FBFDFC;
}

.gapnote b {
  color: var(--ink);
}

.elist td:first-child {
  white-space: nowrap;
}

.burger {

  all: unset;
  display: none;
  cursor: pointer;
  font-size: 17px;
  padding: 4px 8px;
  border-radius: 6px;
}

.burger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 0 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs::-webkit-scrollbar {
  height: 0;
}

.tab {
  all: unset;
  padding: 10px 13px 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: var(--ink);
}

.tab.on {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--green);
}

.tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.stratbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 18px;
  background: var(--tint-strategy);
  border-bottom: 1px solid var(--line);
}

.stratbar .mini-lb {
  margin: 0 4px 0 0;
}

.pill {
  all: unset;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.pill:hover {
  border-color: var(--hover-border);
  color: var(--ink);
}

.pill.on {
  background: var(--tint-pill-active);
  border-color: var(--tint-pill-active-border);
  color: var(--green-dk);
}

.pill:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.pill:disabled,
.pill[aria-disabled='true'] {
  opacity: 0.45;
  cursor: default;
}

.stratnote {
  font-size: 12.2px;
  color: var(--muted);
  margin-left: 6px;
  flex: 1;
  min-width: 200px;
}

.algobar .stratnote {
  flex: 0 1 auto;
}

.algobar .btn-ghost {
  padding: 6px 14px;
  font-size: 13px;
}

.pill-uncomputed {
  border-style: dashed;
}

.modebar {
  padding: 9px 18px;
  font-size: 12.3px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.modebar.ui {
  background: var(--tint-formula);
  color: var(--muted);
}

.modebar.ui b {
  color: var(--ink);
}

.modebar.plus {
  background: var(--note-info-bg);
  color: var(--blue-ink);
}

.modebar.plus b {
  color: #26405F;
}

.view {
  display: none;
}

.view.on {
  display: block;
  animation: fade 0.18s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.h {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 12px;
}

.h h1 {
  font-size: 19px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.h p {
  margin: 0;
  font-size: 12.6px;
  color: var(--muted);
  padding-bottom: 2px;
}

.content {
  padding: var(--content-pad);
  max-width: var(--content-max);
  width: 100%;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 15px;
  margin-bottom: 14px;
  min-width: 0;
}

.panel > h2 {
  font-size: 13px;
  margin: 0 0 3px;
  font-weight: 600;
}

.panel > .sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 11px;
}

.grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.grid > * {
  min-width: 0;
}

.g2 {
  grid-template-columns: 1fr 1fr;
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.g5 {
  grid-template-columns: repeat(5, 1fr);
}

.g23 {
  grid-template-columns: 1.32fr 1fr;
}

.g32 {
  grid-template-columns: 1fr 1.5fr;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 13px;
}

.kpi .lb {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  min-height: 28px;
}

.kpi .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-top: 3px;
}

.kpi .u {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 400;
  margin-left: 3px;
}

.kpi .d {
  font-size: 11.5px;
  margin-top: 3px;
  color: var(--muted);
}

.pos {
  color: var(--green-dk);
}

.neg {
  color: var(--red);
}

.wrn {
  color: var(--amber);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.6px;
}

th {
  text-align: left;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  white-space: nowrap;
  background: var(--tint-hover);
}

td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-s);
  vertical-align: middle;
}

tbody tr:hover {
  background: var(--tint-hover);
}

td.num,
th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

th.num {
  font-family: var(--font);
}

.tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  font-weight: 600;
  white-space: nowrap;
}

.t-ok {
  background: var(--tint-chip);
  color: var(--green-dk);
}

.t-wr {
  background: var(--tag-warn-bg);
  color: var(--tag-warn-text);
}

.t-bd {
  background: var(--red-s);
  color: var(--tag-bad-text);
}

.t-nt {
  background: var(--tag-neutral-bg);
  color: var(--muted);
}

.btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 12.8px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn:hover {
  border-color: var(--hover-border);
  background: var(--tint-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.btn.pri {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn.pri:hover {
  background: var(--green-dk);
  border-color: var(--green-dk);
}

.btn.sm {
  padding: 4px 9px;
  font-size: 11.8px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.sl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
  margin-bottom: 9px;
}

.sl label {
  font-size: 12.3px;
  color: var(--muted);
  grid-column: 1;
}

.sl b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.8px;
  grid-column: 2;
  text-align: right;
  min-width: 64px;
}

.sl input[type='range'] {
  grid-column: 1 / 3;
  width: 100%;
  accent-color: var(--green);
  height: 18px;
  margin: 0;
}

.tg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tgi {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
}

.tgi:hover {
  border-color: var(--hover-border);
}

.tgi.on {
  border-color: var(--green);
  background: var(--tint-selected);
}

.tgi input {
  margin: 2px 0 0;
  accent-color: var(--green);
}

.tgi .nm {
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.3;
}

.tgi .ds {
  font-size: 11.3px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 1px;
}

.tgi .cost {
  margin-left: auto;
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
  padding-left: 8px;
}

.tgi .cost span {
  display: block;
  font-size: 10.3px;
  color: var(--muted);
  font-family: var(--font);
}

.note {
  border-left: 3px solid var(--green);
  background: var(--tint-selected);
  padding: 9px 12px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.note.w {
  border-color: var(--amber);
  background: var(--note-warn-bg);
}

.note.r,
.note.danger {
  border-color: var(--red);
  background: var(--note-danger-bg);
}

.note.e,
.note.info {
  border-color: var(--note-info-border);
  background: var(--note-info-bg);
}

.preview-banner {
  border-left: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 18px;
}

.note b {
  font-weight: 600;
}

.note .mono {
  color: var(--ink);
}

.mini-lb {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.ladwrap {
  margin: 6px 0 4px;
}

.ladscale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}

.ladder {
  display: flex;
  height: 52px;
  margin-top: 16px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: #fff;
}

.lad {
  position: relative;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lad span {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.lad-nep {
  background: var(--green);
  color: #fff;
}

.lad-tvm {
  background: var(--slate-s);
  color: var(--lad-tvm-tx);
}

.lad-cut {
  background: var(--red-s);
  color: var(--lad-cut-tx);
}

.lad-c {
  background: var(--amber-s);
  color: var(--lad-c-tx);
}

.lad-c2 {
  background: var(--lad-c2-bg);
  color: var(--lad-c-tx);
}

.lad-ch {
  background: var(--lad-ch-bg);
  color: var(--lad-ch-tx);
}

.lad-esc {
  background: var(--lad-esc-bg);
  color: var(--lad-esc-tx);
}

.lad-cx {
  background: var(--lad-cx-bg);
  color: var(--lad-cut-tx);
}

.bench {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
  z-index: 3;
}

.bench:after {
  content: attr(data-l);
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: var(--mono);
  background: var(--ink);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 9px;
  font-size: 11.5px;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.legend i.legend-line.dashed {
  height: 0;
  border-radius: 0;
  border-top: 2px dashed currentColor;
}

.legend b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

.bigres {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 12px;
}

.bigres .b {
  min-width: 120px;
}

.bigres .b .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.bigres .b .n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.bigres .b .s {
  font-size: 11.5px;
  color: var(--muted);
}

.arrow {
  font-size: 22px;
  color: var(--slate);
  padding-bottom: 6px;
}

.bar {
  height: 7px;
  background: var(--line-s);
  border-radius: var(--r-xs);
  overflow: hidden;
  min-width: 52px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: var(--r-xs);
}

.bar i.w {
  background: var(--amber);
}

.bar i.r {
  background: var(--red);
}

.bar i.s {
  background: var(--slate);
}

.miniflex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pct {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 44px;
  text-align: right;
}

.unitrow.sel {
  background: var(--tint-selected) !important;
  box-shadow: inset 2px 0 0 var(--green);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 32, 26, 0.5);
}

.modal-mask .modal {
  position: relative;
  padding: 24px;
}

.modal-title {
  margin: 0 32px 12px 0;
  font-size: 18px;
}

.modal-body {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 26, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.mask.on {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--r-xl);
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.modal .mh {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal .mh h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.modal .mb {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.55;
}

.modal .mf {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.x {
  all: unset;
  margin-left: auto;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 5px;
}

.x:hover {
  background: var(--line-s);
}

.x:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.log {
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 10px;
  margin-top: 4px;
}

.log div {
  padding: 3px 0;
}

.log b {
  color: var(--ink);
  font-weight: 600;
}

.fx {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  background: var(--tint-formula);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
}

.fx.wrap {
  white-space: normal;
  line-height: 1.5;
}

.src {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.src a {
  color: var(--muted);
}

ul.tight {
  margin: 6px 0 0;
  padding-left: 17px;
  font-size: 12.6px;
  line-height: 1.6;
}

ul.tight li {
  margin-bottom: 3px;
}

.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
  gap: var(--module);
}

.login-top {
  position: absolute;
  top: 18px;
  right: 18px;
}

.brand {
  text-align: center;
}

.wordmark {
  color: var(--ink);
}

.brand small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 3px;
}

.card {
  width: min(380px, 100% - 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-8) var(--sp-7);
}

.field {
  display: block;
  margin-bottom: var(--sp-6);
}

.field > .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 12.8px;
  color: var(--ink);
}

.input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -1px;
}

.login .input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.btn-primary {
  width: 100%;
  display: inline-block;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-size: 12.8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.btn-primary:hover {
  background: var(--green-dk);
  border-color: var(--green-dk);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
}

.note-error {
  margin-bottom: var(--sp-6);
}

.note-hint {
  margin-top: var(--sp-2);
}

.landing-head {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.surface-title {
  margin: 0 0 var(--sp-6);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.card .note + .btn-primary,
.surface-title + .btn-primary {
  margin-top: var(--sp-6);
}

.status-updating {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.view-failure .btn-retry,
.view-failure .btn-primary {
  margin-top: var(--sp-5);
  width: auto;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.footer .disclaimer {
  display: block;
  margin-top: 2px;
}

.data-workspace {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.data-workspace .card {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.data-header {
  min-height: var(--topbar-h);
  padding: var(--sp-5) var(--content-pad);
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.data-header .brand {
  margin-right: auto;
}

.data-header .landing-head {
  margin: 0;
}

.data-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--content-pad);
  min-width: 0;
}

.data-main > *,
.data-grid > *,
.data-workspace .section-head > * {
  min-width: 0;
}

.data-title,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-7);
}

.data-title {
  margin-bottom: var(--module);
}

.data-title h1,
.data-title p,
.data-workspace h2 {
  margin-top: 0;
}

.data-workspace :is(h1, h2, h3, p, dt, dd, li, button, summary) {
  overflow-wrap: anywhere;
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: var(--module);
  align-items: start;
}

.import-stages {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.import-stages li {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
}

.import-stages li.completed {
  color: var(--green-dk);
  border-color: var(--tint-pill-active-border);
  background: var(--tint-pill-active);
}

.import-stages li.current {
  color: var(--ink);
  border-color: var(--blue);
  outline: 2px solid var(--tint-hover);
  outline-offset: 0;
}

.import-upload {
  display: grid;
  gap: var(--sp-5);
}

.import-upload input[type='file'] {
  max-width: 100%;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--tint-hover);
}

.workbook-drop-target {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--tint-hover);
  cursor: pointer;
}

.workbook-drop-target:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

.selected-file {
  overflow-wrap: anywhere;
}

.import-upload input[type='file']:focus-visible,
.import-row:focus-visible,
.filter:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

.import-history {
  list-style: none;
  padding: 0;
  margin: 0;
}

.import-history > li {
  min-width: 0;
}

.import-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) auto minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  border: 0;
  border-bottom: 1px solid var(--line-s);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.import-row > * {
  min-width: 0;
}

.import-filename,
.import-received-at {
  overflow-wrap: anywhere;
}

.import-row:hover,
.import-row.selected {
  background: var(--tint-selected);
}

.import-counts,
.empty-copy,
.issue-location,
.issue-remediation {
  color: var(--muted);
  font-size: 12px;
}

.import-review,
.import-issues {
  margin-top: var(--module);
}

.status-tag {
  display: inline-flex;
  width: fit-content;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-xs);
  background: var(--tag-neutral-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.status-tag.valid,
.status-tag.warning {
  background: var(--tint-chip);
  color: var(--green-dk);
}

.status-tag.invalid,
.status-tag.failed,
.status-tag.error {
  background: var(--red-s);
  color: var(--tag-bad-text);
}

.status-tag.recommendation-ready,
.status-tag.recommendation-accepted {
  background: var(--tint-chip);
  color: var(--green-dk);
}

.status-tag.recommendation-declined {
  background: var(--red-s);
  color: var(--tag-bad-text);
}

.status-tag.recommendation-stale {
  background: var(--tag-neutral-bg);
  color: var(--muted);
}

.inventory-decision-controls {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  min-width: 11rem;
}

.inventory-decision-controls .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.inventory-decision-controls .sub,
.inventory-decision-controls .danger {
  margin: 0;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

.import-summary div {
  padding: var(--sp-5);
  background: var(--tint-formula);
  border-radius: var(--r-sm);
  min-width: 0;
}

.import-summary dt {
  color: var(--muted);
  font-size: 11px;
}

.import-summary dd {
  margin: var(--sp-2) 0 0;
  font-weight: 600;
}

.import-summary .hash {
  overflow-wrap: anywhere;
}

.import-reconciliation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.import-reconciliation-disclosure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.import-reconciliation-disclosure summary {
  min-height: 36px;
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.import-reconciliation-disclosure[open] summary {
  border-bottom: 1px solid var(--line-s);
}

.data-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.data-table-scroll:focus-visible,
.import-reconciliation-disclosure summary:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

.data-table-scroll > .data-table {
  min-width: 640px;
}

.data-table-scroll > .operational-groups {
  min-width: 980px;
}

.data-table-scroll > .operational-trend {
  min-width: 1480px;
}

.import-reconciliation-disclosure .data-table-scroll {
  padding: 0 var(--sp-5) var(--sp-5);
  box-sizing: border-box;
}

.import-reconciliation-disclosure .data-table {
  min-width: 520px;
}

.data-table-scroll > .issue-table,
.data-table-scroll > .version-history-table {
  min-width: 900px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table caption {
  padding-bottom: var(--sp-3);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--line-s);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table thead th {
  color: var(--muted);
  font-size: 11px;
}

.inventory-history {
  display: grid;
  gap: var(--sp-5);
}

.history-facets dl {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(12rem, 1.3fr);
  gap: var(--sp-2) var(--sp-4);
  margin: 0;
}

.history-facets dt {
  color: var(--muted);
  font-weight: 700;
}

.history-facets dd {
  margin: 0;
}

.history-current-facts,
.history-current-fact {
  display: grid;
  gap: var(--sp-1);
}

.history-current-fact > span {
  color: var(--muted);
  font-size: 12px;
}

.inventory-history .num,
.history-pagination .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.history-number-cell {
  text-align: right;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.inventory-history :is(h2, h3):focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 3px;
}

.issue-filters {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.issue-filter-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: var(--sp-3);
  align-items: end;
  margin-bottom: var(--sp-5);
}

.issue-filter-fields label {
  display: grid;
  gap: var(--sp-2);
}

.issue-filter-fields input {
  min-width: 0;
}

.data-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.filter {
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: var(--sp-3) var(--sp-5);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.filter.on {
  background: var(--tint-pill-active);
  border-color: var(--tint-pill-active-border);
  color: var(--green-dk);
}

.issue {
  background: transparent;
}

.issue-remediation {
  min-width: 180px;
}

.active-inventory,
.version-history {
  margin-top: var(--module);
}

.active-inventory-list {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.active-inventory-list li {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.status-tag.active {
  color: var(--green-dk);
  background: var(--tint-pill-active);
}

.active-version-row {
  box-shadow: inset 4px 0 0 var(--green);
}

.activation-confirmation-scope {
  display: grid;
  gap: var(--sp-5);
  max-width: min(760px, 82vw);
  max-height: 65vh;
  overflow: auto;
}

.activation-confirmation-scope .data-table {
  min-width: 600px;
}

[data-confirm-activation]:focus-visible,
.version-history button:focus-visible,
.active-inventory:focus-visible,
.version-history h2:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

.operational-desk {
  display: grid;
  gap: var(--sp-5);
}

.operational-management-surface {
  display: grid;
  gap: var(--sp-5);
}

.operational-rail .psub {
  font-size: 10px;
}

.operational-rail-close,
.operational-rail-backdrop {
  display: none;
}

.operational-chart-partitions {
  display: grid;
  gap: var(--sp-5);
}

.operational-chart-unit-panel {
  min-width: 0;
}

.operational-chart-unit-panel h3 {
  margin: 0 0 var(--sp-2);
  color: var(--muted);
  font: 600 12px/1.3 var(--mono);
}

.operational-typology-chart {
  min-width: 0;
}

.operational-typology-chart > .sub {
  margin-bottom: var(--sp-4);
}

.operational-typology-chart > .data-table-scroll {
  margin-top: var(--sp-4);
}

.operational-payment-forms {
  min-width: 820px;
  margin: 0;
}

.operational-payment-forms th:first-child,
.operational-payment-forms td:first-child {
  min-width: 200px;
}

.operational-payment-forms .schedule {
  font-size: 11.3px;
  color: var(--muted);
  line-height: 1.35;
}

.operational-target-function .bigres {
  margin-top: var(--sp-3);
}

.operational-management-surface > .grid,
.operational-repricing-summary .bigres {
  margin-bottom: 0;
}

.tasks {
  display: grid;
  gap: var(--sp-2);
}

.task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-s);
}

.task:last-child {
  border-bottom: 0;
}

.tdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--slate);
}

.tdot.hi {
  background: var(--amber);
}

.ttxt {
  min-width: 0;
}

.operational-price-flow .bigres,
.operational-deal-results,
.operational-repricing-summary .bigres {
  justify-content: space-between;
}

.operational-details summary {
  cursor: pointer;
  font-weight: 600;
}

.operational-details[open] summary {
  margin-bottom: var(--sp-4);
}

.operational-decision-legend {
  margin-top: var(--sp-4);
}

.operational-provenance p:last-child,
.operational-repricing-summary .bigres {
  margin-bottom: 0;
}

.inventory-context,
.inventory-detail-head,
.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.inventory-context .field {
  min-width: min(420px, 100%);
}

.inventory-readiness-strip {
  display: grid;
  grid-template-columns: minmax(150px, auto) repeat(2, minmax(200px, 1fr));
  align-items: stretch;
  gap: var(--sp-3);
}

.inventory-readiness-strip > h2 {
  align-self: center;
  margin: 0;
}

.inventory-readiness-item {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.inventory-readiness-item h3,
.inventory-readiness-item p {
  margin: 0;
}

.inventory-stale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.inventory-filters {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.inventory-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: var(--sp-3);
}

.inventory-filters-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.inventory-filters-more[open] summary {
  margin-bottom: var(--sp-3);
}

.inventory-filters > .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.repricing-status {
  margin: 0;
}

.repricing-status.note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.repricing-groups-table {
  min-width: 760px;
}

.repricing-groups-table th[scope='row'] {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.repricing-groups-table td .sub {
  font-size: 11px;
}

.repricing-groups-table tr.selected {
  box-shadow: inset 4px 0 0 var(--green);
}

.repricing-groups-table td.num,
.repricing-groups-table th.num,
.inventory-table td.num,
.inventory-table th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.delta {
  font-weight: 600;
}

.delta-up {
  color: var(--green-dk);
}

.delta-down {
  color: var(--red);
}

.delta-flat,
.delta-none {
  color: var(--muted);
}

.repricing-group-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.inventory-decision-cell {
  min-width: 14rem;
}

.inventory-decision-cell .inventory-decision-controls {
  margin-top: var(--sp-2);
  min-width: 0;
}

.inventory-decision-cell .inventory-decision-controls .actions {
  flex-wrap: nowrap;
}

.inventory-decision-cell .inventory-decision-controls button {
  width: auto;
  padding: 4px 10px;
  font-size: 12px;
}

.inventory-decision-cell .status-tag {
  margin-bottom: var(--sp-2);
}

.inventory-decision-cell .inventory-rationale {
  margin: 0 0 var(--sp-2);
  font-size: 11px;
}

.inventory-manual-tag {
  margin-left: var(--sp-2);
}

.status-tag.recommendation-ready {
  background: var(--tag-neutral-bg);
  color: var(--green-dk);
}

.status-tag.recommendation-accepted {
  background: var(--tag-neutral-bg);
  color: var(--green-dk);
}

.status-tag.recommendation-declined {
  background: var(--tag-warn-bg);
  color: var(--tag-warn-text);
}

.status-tag.recommendation-stale {
  background: var(--red-s);
  color: var(--tag-bad-text);
}

.inventory-service {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.inventory-service > summary {
  cursor: pointer;
  font-weight: 700;
}

.inventory-service[open] > summary {
  margin-bottom: var(--sp-4);
}

.inventory-service .inventory-readiness-strip {
  margin-bottom: var(--sp-4);
}

.inventory-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.inventory-table {
  min-width: 980px;
  margin: 0;
}

.inventory-table tr.selected {
  box-shadow: inset 4px 0 0 var(--green);
}

.inventory-unit-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green-dk);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.inventory-unit-link:focus-visible,
.inventory-detail button:focus-visible,
.inventory-pagination button:focus-visible,
.inventory-table-scroll:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

.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;
}

.inventory-detail {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.inventory-detail-facts {
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr);
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
}

.inventory-detail-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.inventory-detail-facts dd {
  margin: 0;
}

.inventory-unavailable {
  border-left: 3px solid var(--amber);
}

.inventory-mode-switch,
.inventory-chessboard-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.inventory-mode-switch button.active {
  border-color: var(--green);
  background: var(--tint-pill-active);
  color: var(--green-dk);
  font-weight: 700;
}

.inventory-chessboard {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
}

.inventory-chessboard-controls h2,
.inventory-chessboard-controls p {
  margin: 0;
}

.inventory-chessboard-controls .field {
  min-width: min(320px, 100%);
}

.inventory-chessboard-jump {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
  color: var(--muted);
  font-size: 0.875rem;
}

.inventory-chessboard-jump .input {
  min-width: 150px;
}

.inventory-chessboard-legend,
.chessboard-modifier-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.inventory-chessboard-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.inventory-chessboard-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.inventory-chessboard-table th,
.inventory-chessboard-table td {
  min-width: 58px;
  border-right: 1px solid var(--line);
  border-bottom: 2px solid var(--line-s);
  padding: 5px;
  text-align: center;
  vertical-align: middle;
}

.inventory-chessboard-table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--panel);
}

.inventory-chessboard-table thead tr:nth-child(2) th {
  position: sticky;
  top: 34px;
  z-index: 3;
  background: var(--tint-hover);
}

.inventory-chessboard-table .chessboard-entrance {
  min-width: 232px;
  height: 34px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.inventory-chessboard-table .entrance-start,
.inventory-chessboard-table .chessboard-entrance {
  border-left: 3px solid var(--hover-border);
}

.inventory-chessboard-table .chessboard-floor {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 68px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.inventory-chessboard-table thead th:first-child {
  left: 0;
  z-index: 6;
}

.chessboard-gap {
  color: var(--muted);
  text-align: center !important;
  background: var(--bg);
}

.chessboard-filtered {
  color: var(--muted);
  background: repeating-linear-gradient(
    135deg,
    var(--panel),
    var(--panel) 8px,
    var(--bg) 8px,
    var(--bg) 16px
  );
  font-size: 12px;
  font-weight: 600;
  text-align: center !important;
}

.chessboard-unit {
  position: relative;
  overflow: visible;
}

.chessboard-unit .chessboard-square {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--hover-border);
  border-radius: var(--r-xs);
  padding: 4px;
  background: var(--tag-neutral-bg);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.chessboard-unit .chessboard-square:hover {
  border-color: var(--ink);
}

.chessboard-unit.selected .chessboard-square {
  border-color: var(--green-dk);
  box-shadow: inset 0 0 0 2px var(--panel);
}

.chessboard-unit .chessboard-square.recommendation-ready,
.chessboard-unit .chessboard-square.recommendation-accepted {
  box-shadow: inset 0 0 0 2px var(--green);
}

.chessboard-unit .chessboard-square.recommendation-declined {
  box-shadow: inset 0 0 0 2px var(--red);
}

.chessboard-unit .chessboard-square.recommendation-stale {
  border-style: dashed;
  box-shadow: inset 0 0 0 2px var(--slate);
}

.chessboard-square.status-available,
.status-tag.status-available {
  border-color: var(--green);
  background: var(--tint-chip);
  color: var(--green-dk);
}

.chessboard-square.status-reserved,
.status-tag.status-reserved {
  border-color: var(--amber);
  background: var(--tag-warn-bg);
  color: var(--tag-warn-text);
}

.chessboard-square.status-booked,
.status-tag.status-booked {
  border-color: var(--amber);
  background: var(--amber-s);
  color: var(--ink);
}

.chessboard-square.status-sold,
.status-tag.status-sold {
  border-color: var(--slate);
  background: var(--slate-s);
  color: var(--ink);
}

.chessboard-square.status-blocked,
.status-tag.status-blocked,
.chessboard-square.status-cancelled,
.status-tag.status-cancelled {
  border-color: var(--red);
  background: var(--red-s);
  color: var(--tag-bad-text);
}

.chessboard-square.status-planned,
.chessboard-square.status-not_released,
.chessboard-square.status-withdrawn,
.chessboard-square.status-unknown {
  border-color: var(--slate);
  background: var(--tag-neutral-bg);
  color: var(--muted);
}

.chessboard-unit .chessboard-square:focus-visible,
.inventory-chessboard-scroll:focus-visible,
.inventory-mode-switch button:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

.chessboard-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  width: 270px;
  gap: 5px;
  visibility: hidden;
  border: 1px solid var(--hover-border);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
}

.chessboard-unit:hover .chessboard-tooltip,
.chessboard-square:focus-visible .chessboard-tooltip {
  visibility: visible;
  opacity: 1;
}

.chessboard-modifier-tag {
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--tint-chip);
  color: var(--green-dk);
  font-size: 11px;
  font-weight: 700;
}

.inventory-detail-dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 32, 26, 0.5);
}

.inventory-detail-dialog {
  width: min(960px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: var(--r-xl);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.inventory-detail-dialog .inventory-detail {
  border: 0;
  border-radius: inherit;
}

.feedback-launcher {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 60;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 var(--sp-5);
  background: var(--ink);
  color: var(--panel);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--ink) 46%, transparent);
}

.feedback-overlay .feedback-launcher {
  display: none;
}

.feedback-dialog {
  position: absolute;
  right: var(--sp-5);
  bottom: var(--sp-5);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-5);
  background: var(--panel);
}

.feedback-dialog-head,
.feedback-actions,
.product-loop-header,
.product-loop-detail-head,
.product-loop-plan-head,
.loop-plan-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.feedback-dialog-head {
  justify-content: space-between;
}

.feedback-dialog-head h2,
.feedback-dialog h3 {
  margin: 0;
}

.feedback-form,
.loop-form,
.loop-result-form {
  display: grid;
  gap: var(--sp-3);
}

.loop-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}

.loop-stage-evidence {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
}

.loop-stage-evidence div {
  display: grid;
  gap: 2px;
}

.loop-stage-evidence dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.loop-stage-evidence dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.loop-plan-results article,
.loop-plan-sources {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.feedback-history {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
}

.feedback-history li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-2);
}

.product-loop-page {
  min-height: 100vh;
  padding: var(--sp-5);
  background: var(--bg);
}

.product-loop-header {
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--sp-4);
}

.product-loop-title h1,
.product-loop-title p,
.product-loop-master h2,
.product-loop-detail h2,
.product-loop-detail h3 {
  margin: 0;
}

.product-loop-title p {
  margin-top: var(--sp-1);
  color: var(--muted);
}

.product-loop-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  min-height: calc(100vh - 150px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}

.product-loop-master {
  border-right: 1px solid var(--line);
  padding: var(--sp-4);
  background: var(--bg);
}

.product-loop-registry-list {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.loop-registry-item {
  display: grid;
  width: 100%;
  gap: var(--sp-1);
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  background: var(--panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.loop-registry-item.selected {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}

.loop-registry-org {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-loop-detail {
  min-width: 0;
  padding: var(--sp-5);
}

.product-loop-empty-detail {
  display: grid;
  min-height: 320px;
  place-content: center;
  text-align: center;
}

.product-loop-detail-body {
  display: grid;
  gap: var(--sp-5);
}

.product-loop-detail-head,
.product-loop-plan-head {
  justify-content: space-between;
  align-items: flex-start;
}

.product-loop-feedback-body {
  white-space: pre-wrap;
}

.product-loop-section,
.product-loop-plan-card {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}

.product-loop-preparation,
.product-loop-execution,
.product-loop-suggestion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 94%, var(--accent) 6%);
  padding: 14px;
}

.product-loop-preparation,
.product-loop-execution {
  display: grid;
  gap: 10px;
}

.product-loop-suggestion p {
  margin: 8px 0;
  white-space: pre-wrap;
}

.loop-class-select {
  width: auto;
  min-width: 180px;
}

.product-loop-execution-events {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.product-loop-execution-events li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
}

.product-loop-execution-events small {
  grid-column: 1 / -1;
}

.product-loop-execution-events .loop-event-excerpt {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface-2, rgba(0, 0, 0, 0.04));
  font-family: var(--mono, monospace);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 16em;
  overflow-y: auto;
}

.loop-run-failed,
.loop-run-cancelled {
  border-style: dashed;
}

.loop-run-waiting,
.loop-run-verified {
  border-width: 2px;
}

.product-loop-progress-stale::before {
  content: '⚠ ';
}

.loop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.loop-plan-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-3);
}

.loop-plan-facts dt {
  color: var(--muted);
}

.loop-plan-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.product-loop-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: var(--sp-5) 0;
  padding: 0;
  list-style: none;
}

.loop-stage {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--sp-2);
  border-top: 3px solid var(--line);
  padding-top: var(--sp-2);
}

.loop-stage > div {
  display: grid;
  gap: var(--sp-1);
}

.loop-stage-marker {
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--panel);
}

.loop-stage-completed,
.loop-stage-current {
  border-color: var(--green);
}

.loop-stage-completed .loop-stage-marker {
  border-color: var(--green);
  background: var(--green);
}

.loop-stage-current .loop-stage-marker {
  border: 4px double var(--green);
}

.loop-stage-unavailable {
  border-style: dashed;
}

.loop-stage-rolled_back {
  border-color: var(--red);
}

.loop-stage-rolled_back .loop-stage-marker {
  border-color: var(--red);
  border-radius: 0;
  transform: rotate(45deg);
}

.loop-stage-state,
.loop-stage small {
  color: var(--muted);
  font-size: 12px;
}

.feedback-launcher:focus-visible,
.loop-registry-item:focus-visible,
.feedback-dialog button:focus-visible,
.product-loop-page button:focus-visible,
.product-loop-page input:focus-visible,
.product-loop-page select:focus-visible,
.product-loop-page textarea:focus-visible {
  outline: 3px solid var(--tint-pill-active-border);
  outline-offset: 2px;
}

@media (max-width: 1400px) {
  .g5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1180px) {
  .g4,
  .g5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3,
  .g2,
  .g23,
  .g32 {
    grid-template-columns: 1fr;
  }
  .product-loop-layout {
    grid-template-columns: 1fr;
  }
  .product-loop-master {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .product-loop-registry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-loop-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .chip {
    display: none;
  }
  .projsel {
    max-width: 150px;
  }
}

@media (max-width: 820px) {
  .rail {
    position: fixed;
    left: -268px;
    transition: left 0.2s;
    z-index: 50;
  }
  .rail.open {
    left: 0;
  }
  .operational-rail-close {
    all: unset;
    display: grid;
    place-items: center;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }
  .operational-rail-close:focus-visible {
    outline: 2px solid var(--green-br);
    outline-offset: -2px;
  }
  .operational-rail-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 32, 26, 0.5);
  }
  .content {
    padding: 12px;
  }
  .burger {
    display: inline-flex !important;
  }
  .mksw button {
    padding: 5px 8px;
    font-size: 11.5px;
  }
  .projsel {
    max-width: 112px;
  }
  .crumbs {
    display: none;
  }
  .stratnote {
    display: none;
  }
  .pill {
    padding: 7px 13px;
    font-size: 12.5px;
  }
  .data-header,
  .data-title {
    align-items: stretch;
    flex-direction: column;
  }
  .data-header .brand {
    margin-right: 0;
  }
  .data-grid,
  .active-inventory-list li,
  .import-summary,
  .import-reconciliation,
  .issue-filter-fields,
  .history-facets dl {
    grid-template-columns: 1fr;
  }
  .import-row {
    grid-template-columns: 1fr;
  }
  .data-table {
    display: block;
    overflow-x: auto;
  }
  .data-workspace .data-table-scroll > .data-table {
    display: table;
    overflow: visible;
  }
  .inventory-context,
  .inventory-detail-head,
  .inventory-chessboard-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .inventory-filters,
  .inventory-readiness-strip,
  .inventory-detail-facts {
    grid-template-columns: 1fr;
  }
  .inventory-table {
    display: table;
  }
  .inventory-chessboard-scroll {
    width: 100%;
    overscroll-behavior-x: contain;
  }
  .product-loop-page,
  .product-loop-detail {
    padding: var(--sp-3);
  }
  .product-loop-header,
  .product-loop-detail-head,
  .product-loop-plan-head,
  .loop-plan-actions,
  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .task {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .task .btn {
    grid-column: 2;
    justify-self: start;
  }
  .inventory-chessboard-jump {
    margin-left: 0;
  }
  .product-loop-registry-list,
  .loop-form-grid {
    grid-template-columns: 1fr;
  }
  .feedback-dialog {
    right: var(--sp-2);
    bottom: var(--sp-2);
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.auth_authPage__jVv48 {
  font-size: 16px;
  line-height: 1;
}

.auth_authPage__jVv48 .auth_loginTitle__l1xPf {
  line-height: 1.25;
}

.auth_authPage__jVv48 .auth_loginSubtitle__Vb1_X {
  line-height: 1.5;
}

.auth_authPage__jVv48 .auth_benefitTitle__cQlZN {
  line-height: 1.285;
  letter-spacing: normal;
}

.auth_authPage__jVv48 .auth_benefitDesc__5UHXC {
  letter-spacing: normal;
}

.auth_authPage__jVv48 .auth_ctaCardTitle__SVdFX {
  line-height: 1.286;
}

.auth_authPage__jVv48 .auth_footerText__Wlrn6 {
  line-height: 1.5;
  letter-spacing: normal;
}

.auth_authPage__jVv48 .error-slot:empty {
  display: none;
}

.auth_authPage__jVv48 .note-error {
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 92, 92, .1);
  border: 1px solid rgba(255, 92, 92, .3);
  border-radius: 10px;
  color: #ff7b7b;
  font-size: 13px;
  text-align: center;
}

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

.auth_authPage__jVv48 :is(a, button, input):focus-visible {
  outline: 2px solid #61e79b;
  outline-offset: 3px;
}

.auth_authPage__jVv48 .public-demo-fields {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.auth_authPage__jVv48 .public-demo-fields input:disabled {
  opacity: 1;
  cursor: default;
}

.auth_authPage__jVv48 .public-demo-link {
  text-decoration: none;
  gap: 8px;
}

.auth_authPage__jVv48 .public-demo-guide {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
}

.console-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}
.rail .console-logo {
  padding: 5px 7px;
  box-sizing: content-box;
  background: #fff;
  border-radius: 5px;
}
.demo-workbooks {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.demo-workbook-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.import-upload, .workbook-drop-target { min-width: 0; }
.import-upload input[type=file] { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.import-upload .btn-primary { white-space: normal; }

.project-data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.project-data-actions button { white-space: normal; overflow-wrap: anywhere; }
.operational-rail .project-data-actions { padding: 0 12px; }
.operational-rail .project-data-actions button { width: 100%; }
.mobile-project-data-actions { display: none; }
.new-project-guide p { max-width: 85ch; }
@media (max-width: 820px) {
  .mobile-project-data-actions { display: block; flex-basis: 100%; order: 10; }
  .operational-top { flex-wrap: wrap; height: auto; }
  .mobile-project-data-actions .project-data-actions { margin: 4px 0; }
  .data-main > .project-data-actions { width: 100%; }
}
.project-data-actions .btn-ghost,
[data-back-to-projects], [data-open-project] {
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--green-dk);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.project-data-actions .btn-primary { padding: 9px 14px; border-radius: var(--r-sm); }
.operational-rail .project-data-actions .btn-ghost {
  background: transparent;
  border-color: #8bb9a5;
  color: #eff9f4;
}
.project-data-actions button:hover { filter: brightness(.94); }
.active-inventory-list li > * { min-width: 0; overflow-wrap: anywhere; }
.inventory-snapshot-workflow, .inventory-snapshot-inspection { min-width: 0; }
.inventory-snapshot-workflow :is(dd, li, button) { overflow-wrap: anywhere; }
.inventory-snapshot-workflow pre { max-width: 100%; overflow: auto; }

.operational-desk, .operational-management-surface {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.operational-desk > *, .operational-management-surface > * { min-width: 0; }

.inventory-detail, .inventory-history { grid-template-columns: minmax(0, 1fr); }
.inventory-detail > *, .inventory-history > * { min-width: 0; }
.operational-desk .h { flex-wrap: wrap; }
.inventory-context { overflow-wrap: anywhere; }

.new-project-workspace .new-project-upload { max-width: 720px; padding: 28px; }
.new-project-workspace .workbook-drop-target { border: 0; padding: 0; }
.new-project-workspace .workbook-drop-target > label,
.new-project-workspace #inventory-workbook {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.new-project-workspace .import-upload { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.new-project-workspace .selected-file { flex-basis: 100%; overflow-wrap: anywhere; }
.created-project-list { list-style: none; padding: 0; }
.created-project-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 0; }
.created-project-list strong { flex: 1 1 200px; overflow-wrap: anywhere; }
.new-project-workspace details { margin-top: 16px; }
.new-project-workspace button:focus-visible,
.new-project-workspace summary:focus-visible { outline: 2px solid var(--accent, #167f73); outline-offset: 3px; }
@media (max-width: 600px) {
  .new-project-workspace .new-project-upload { padding: 18px; }
  .created-project-list strong { flex-basis: 100%; }
}

.new-project-workspace .data-header { justify-content: space-between; flex-wrap: wrap; }
.new-project-workspace .data-header .brand { flex: 0 0 auto; }
.new-project-workspace .data-header .landing-head { margin-left: auto; }
.new-project-workspace .data-header button { width: auto; flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; }
.new-project-workspace .langsw { flex-shrink: 0; }
.new-project-workspace .langsw button { min-width: 40px; }
.new-project-workspace .data-main { padding-bottom: 100px; }
.new-project-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.new-project-navigation .project-data-actions { margin: 0; width: auto; }
.new-project-navigation button { width: auto; }
.new-project-navigation [data-new-project] { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.new-project-workspace .new-project-upload { margin: 24px 0; }
.new-project-workspace .new-project-upload p { line-height: 1.6; }
@media (max-width: 600px) {
  .new-project-workspace .data-header { gap: 12px; }
  .new-project-workspace .data-header .landing-head { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

.region-picker {
  display: block;
  padding: 0 12px 4px;
}

.region-picker .railsec {
  display: block;
  padding: 10px 0 6px;
}

.region-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--rail-line);
  background: var(--rail-2);
  color: var(--rail-txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.region-select:focus-visible {
  outline: 2px solid var(--green-br);
  outline-offset: 1px;
}

.region-empty {
  margin: 6px 12px;
  font-size: 12px;
  color: var(--rail-tagline);
}

.demo-seed-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--rail);
  color: var(--rail-txt);
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.landing-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0b0c10;
}

.demo-toggle {
  margin: 4px 12px 8px;
  padding: 7px 10px;
  border-radius: var(--r-md);
  border: 1px dashed var(--rail-line);
  background: transparent;
  color: var(--rail-tagline);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.demo-toggle:hover {
  color: var(--rail-txt);
}

.offline-loading {
  padding: 32px;
}

.offline-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--rail);
}

.offline-login-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.offline-login-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.offline-login-card label {
  font-size: 13px;
  color: #5b6770;
}

.offline-login-card .input {
  padding: 11px 12px;
  border: 1px solid #cfd8d3;
  border-radius: 10px;
  font: inherit;
}

.offline-login-card .btn-primary {
  margin-top: 6px;
}

.offline-login-back {
  font-size: 13px;
  color: #5b6770;
  text-align: center;
}
