/* src/styles/tokens.css */
@font-face {
  font-family: "Fraunces";
  src: url(/fonts/Fraunces.ttf) format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url(/fonts/Fraunces-Italic.ttf) format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url(/fonts/HankenGrotesk.ttf) format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
html {
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-optical-sizing: auto;
}
:root {
  --s1:2px;
  --s2:4px;
  --s3:6px;
  --s4:8px;
  --s5:10px;
  --s6:12px;
  --s7:16px;
  --s8:20px;
  --s9:24px;
  --s10:32px;
  --s11:48px;
  --s12:64px;
  --r-chip:4px;
  --r-ctrl:6px;
  --r-row:8px;
  --r-frame:10px;
  --r-panel:12px;
  --f-display:"Fraunces",
    Georgia,
    "Times New Roman",
    serif;
  --f-ui:"Hanken Grotesk",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  --f-mono:"SF Mono",
    ui-monospace,
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
  --exp-0:#4E7D4C;
  --exp-1:#7A8A3C;
  --exp-2:#A86B20;
  --exp-3:#B0432B;
}
[data-ground=paper] {
  --bg:#F3EDE3;
  --well:#EAE1D2;
  --surface:#FBF7EF;
  --raised:#FEFCF8;
  --ink:#2A2620;
  --muted:#6B6256;
  --faint:#8A8176;
  --line:#D8CDBA;
  --line-soft:#E5DBCB;
  --clay:#C0663E;
  --clay-deep:#A0512E;
  --clay-tint:#EAD2C1;
  --water:#4E7D7B;
  --water-tint:#D6E2DF;
  --ok:#4E7D4C;
  --attention:#A86B20;
  --blocked:#B0432B;
  --unknown:#8A8176;
  --clay-fill:#A0512E;
  --clay-fill-hover:#83411F;
  --on-clay:#F3EDE3;
  color-scheme: light;
}
[data-ground=dark] {
  --bg:#17140E;
  --well:#100E09;
  --surface:#1E1A13;
  --raised:#2A241B;
  --ink:#F3EDE3;
  --muted:#B7AC9B;
  --faint:#857B6E;
  --line:#332C21;
  --line-soft:#262019;
  --clay:#D6835A;
  --clay-deep:#E49A75;
  --clay-tint:#43301F;
  --water:#6FA8A4;
  --water-tint:#223533;
  --ok:#7BA97A;
  --attention:#D6A24E;
  --blocked:#DC5140;
  --unknown:#857B6E;
  --clay-fill:#D6835A;
  --clay-fill-hover:#E49A75;
  --on-clay:#17140E;
  color-scheme: dark;
}
[data-ground] {
  --ok-ink: color-mix(in oklab, var(--ok) 80%, var(--ink));
  --attention-ink: color-mix(in oklab, var(--attention) 80%, var(--ink));
  --blocked-ink: color-mix(in oklab, var(--blocked) 80%, var(--ink));
  --unknown-ink: color-mix(in oklab, var(--unknown) 62%, var(--ink));
  --water-ink: color-mix(in oklab, var(--water) 82%, var(--ink));
  --clay-ink: color-mix(in oklab, var(--clay) 78%, var(--ink));
  --ok-fill: color-mix(in oklab, var(--ok) 14%, var(--surface));
  --attention-fill: color-mix(in oklab, var(--attention) 14%, var(--surface));
  --blocked-fill: color-mix(in oklab, var(--blocked) 14%, var(--surface));
  --unknown-fill: color-mix(in oklab, var(--unknown) 10%, var(--surface));
}
[data-density=bench] {
  --t-value:20px;
  --lh-value:1.2;
  --t-display:26px;
  --t-h2:17px;
  --t-body:14px;
  --t-sm:13px;
  --t-xs:12px;
  --t-micro:11px;
  --row-dense:32px;
  --row:36px;
  --row-comfy:44px;
  --gutter:var(--s11);
}
[data-density=station] {
  --t-value:32px;
  --lh-value:1.15;
  --t-display:26px;
  --t-h2:21px;
  --t-body:19px;
  --t-sm:17px;
  --t-xs:15px;
  --t-micro:13px;
  --row-dense:64px;
  --row:64px;
  --row-comfy:64px;
  --gutter:var(--s10);
}
[data-density=board] {
  --t-hero:64px;
  --t-value:44px;
  --lh-value:1.1;
  --t-display:28px;
  --t-h2:24px;
  --t-body:22px;
  --t-sm:20px;
  --t-xs:18px;
  --t-micro:15px;
  --row-dense:88px;
  --row:88px;
  --row-comfy:88px;
  --gutter:var(--s12);
}

/* src/styles/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--t-body);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection {
  background: var(--clay-tint);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.mono {
  font-family: var(--f-mono);
}
.micro {
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.xs {
  font-size: var(--t-xs);
}
.sm {
  font-size: var(--t-sm);
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.muted {
  color: var(--muted);
}
.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.01em;
}

/* src/styles/components.css */
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.frame + .frame {
  margin-top: var(--s9);
}
.frame > :first-child,
.gate > :first-child {
  border-top-left-radius: var(--r-panel);
  border-top-right-radius: var(--r-panel);
}
.frame > :last-child,
.gate > :last-child {
  border-bottom-left-radius: var(--r-panel);
  border-bottom-right-radius: var(--r-panel);
}
.frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s7);
  padding: var(--s5) var(--s7);
  border-bottom: 1px solid var(--line);
  min-height: 36px;
}
[data-density=station] .frame-head {
  min-height: 48px;
  padding: var(--s5) var(--s8);
}
[data-density=board] .frame-head {
  min-height: 60px;
  padding: var(--s6) var(--s9);
}
.frame-title {
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.frame-body {
  padding: var(--s7);
}
[data-density=station] .frame-body {
  padding: var(--s8);
}
.frame-body--flush {
  padding: 0;
}
.frame-well {
  background: var(--well);
}
.prov {
  padding: var(--s5) var(--s7);
  border-top: 1px solid var(--line-soft);
  text-align: right;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: .02em;
  color: var(--muted);
}
.prov b {
  font-weight: 400;
  color: var(--ink);
}
.prov .proposed {
  color: var(--attention-ink);
}
.prov .real {
  color: var(--ok-ink);
}
.prov {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 var(--s5);
}
.prov > span + span::before {
  content: "\b7  ";
  color: var(--line);
}
.qty {
  font-family: var(--f-mono);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.qty-u {
  color: var(--muted);
  font-size: .85em;
  margin-left: var(--s2);
  letter-spacing: .01em;
}
.qty--measured {
  color: var(--water-ink);
}
.qty--pending {
  color: var(--clay-ink);
}
.qty--proposed {
  color: var(--muted);
}
.qty--big {
  font-size: var(--t-value);
  line-height: var(--lh-value);
}
.qty-approx {
  color: var(--muted);
  margin-right: .15em;
  font-size: .85em;
}
.lot {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2px var(--s5) 2px calc(var(--s5) + 3px);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--raised);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.5;
  white-space: nowrap;
}
.lot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.lot--exact::before {
  background: var(--ink);
}
.lot--derived::before {
  background:
    repeating-linear-gradient(
      to bottom,
      var(--muted) 0 3px,
      transparent 3px 6px);
}
.lot--derived {
  color: var(--muted);
}
[data-density=board] .lot {
  font-size: var(--t-sm);
  padding: var(--s2) var(--s6) var(--s2) calc(var(--s6) + 4px);
}
[data-density=board] .lot::before {
  width: 4px;
}
[data-density=station] .lot {
  font-size: var(--t-sm);
  padding: var(--s3) var(--s5) var(--s3) calc(var(--s5) + 3px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  height: 20px;
  padding: 0 var(--s4);
  border: 1px solid currentColor;
  border-radius: var(--r-chip);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
[data-density=station] .chip {
  height: 32px;
  padding: 0 var(--s5);
  gap: var(--s4);
}
[data-density=board] .chip {
  height: 36px;
  padding: 0 var(--s6);
  gap: var(--s4);
}
.chip svg {
  width: 9px;
  height: 9px;
  flex: none;
}
[data-density=station] .chip svg,
[data-density=board] .chip svg {
  width: 11px;
  height: 11px;
}
.chip--ok {
  color: var(--ok-ink);
  background: var(--ok-fill);
}
.chip--attention {
  color: var(--attention-ink);
  background: var(--attention-fill);
}
.chip--blocked {
  color: var(--blocked-ink);
  background: var(--blocked-fill);
}
.chip--unknown {
  color: var(--unknown-ink);
  background: var(--unknown-fill);
}
.chip--water {
  color: var(--water-ink);
  background: var(--water-tint);
}
.chip--plain {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.reason {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--well);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
[data-density=station] .reason {
  height: 28px;
  padding: 0 var(--s5);
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.ledger caption {
  text-align: left;
  padding: 0 0 var(--s5);
  color: var(--muted);
  font-size: var(--t-xs);
}
.ledger th {
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.ledger td {
  padding: var(--s2) var(--s6);
  height: var(--row);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.ledger tr:last-child td {
  border-bottom: 0;
}
.ledger .num,
.ledger th.num {
  text-align: right;
  font-family: var(--f-mono);
  white-space: nowrap;
}
.ledger tbody tr {
  transition: background 140ms;
}
.ledger tbody tr:hover {
  background: var(--raised);
}
.ledger tbody tr[aria-selected=true] {
  background: var(--clay-tint);
  box-shadow: inset 3px 0 0 var(--clay);
}
.ledger tbody tr[aria-selected=true]:hover {
  background: var(--clay-tint);
}
.ledger tfoot td {
  background: var(--well);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  height: var(--row-comfy);
  font-weight: 600;
}
.ledger--comfy td {
  height: var(--row-comfy);
}
.ledger--dense td {
  height: var(--row-dense);
}
.defs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s5) var(--s9);
}
.defs dt {
  font-size: var(--t-xs);
  color: var(--muted);
  font-weight: 400;
  padding-top: 1px;
}
.defs dd {
  font-size: var(--t-sm);
}
.defs--wide {
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
}
.locpair {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3) var(--s4);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
}
.locpair > * {
  white-space: nowrap;
}
.locpair .chev {
  flex: none;
  color: var(--muted);
  width: 10px;
  height: 10px;
}
.bound {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 1px var(--s4);
  border: 1px dashed var(--line);
  border-radius: var(--r-chip);
  color: var(--muted);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--f-ui);
}
.bound svg {
  width: 9px;
  height: 11px;
  flex: none;
}
.loc-vehicle {
  color: var(--water-ink);
}
.unk {
  border: 1px dashed var(--unknown);
  border-radius: var(--r-frame);
  background: var(--well);
  padding: var(--s7);
}
.unk-h {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s4);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--unknown-ink);
}
.unk-h svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.unk p {
  font-size: var(--t-sm);
  color: var(--ink);
  max-width: 74ch;
}
.unk p + p {
  margin-top: var(--s4);
}
.unk code {
  font-family: var(--f-mono);
  font-size: .94em;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  height: 32px;
  padding: 0 var(--s7);
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: transparent;
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 140ms,
    border-color 140ms,
    color 140ms;
}
.btn:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.btn--primary {
  background: var(--clay-fill);
  border-color: var(--clay-fill);
  color: var(--on-clay);
}
.btn--primary:hover {
  background: var(--clay-fill-hover);
  border-color: var(--clay-fill-hover);
  color: var(--on-clay);
}
.btn--danger {
  color: var(--blocked-ink);
  border-color: var(--blocked);
}
.btn--danger:hover {
  background: var(--blocked-fill);
  border-color: var(--blocked);
}
.btn[disabled] {
  opacity: .48;
  cursor: not-allowed;
}
.btn[disabled]:hover {
  background: transparent;
  border-color: var(--line);
}
.btn--primary[disabled]:hover {
  background: var(--clay-fill);
  border-color: var(--clay-fill);
}
[data-density=station] .btn {
  height: 64px;
  padding: 0 var(--s9);
  font-size: var(--t-h2);
  border-radius: var(--r-row);
}
[data-density=station] .btn--sm {
  height: 56px;
  font-size: var(--t-body);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  overflow: hidden;
}
.seg button {
  height: 30px;
  padding: 0 var(--s6);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
  transition: background 140ms, color 140ms;
}
.seg button + button {
  border-left: 1px solid var(--line);
}
.seg button:hover {
  background: var(--raised);
  color: var(--ink);
}
.seg button[aria-pressed=true] {
  background: var(--clay-tint);
  color: var(--ink);
}
[data-density=station] .seg button {
  height: 62px;
  padding: 0 var(--s9);
  font-size: var(--t-body);
}
.inp {
  height: 32px;
  padding: 0 var(--s5);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inp::placeholder {
  color: var(--faint);
}
.inp:hover {
  border-color: var(--muted);
}
.inp:focus {
  border-color: var(--clay);
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}
[data-density=station] .inp {
  height: 64px;
  padding: 0 var(--s7);
  font-size: var(--t-value);
}
.inp--edited {
  border-color: var(--clay);
  color: var(--clay-ink);
}
select.inp {
  text-align: left;
  font-family: var(--f-ui);
  padding-right: var(--s4);
}
.week {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.week-id {
  font-family: var(--f-mono);
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: .04em;
}
.week-range {
  font-size: var(--t-xs);
  color: var(--muted);
}
.week-range em {
  font-style: normal;
  color: var(--muted);
  font-size: .94em;
  letter-spacing: .04em;
}
[data-density=board] .week-id {
  font-size: var(--t-display);
  letter-spacing: .06em;
}
.sync {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--t-xs);
  white-space: nowrap;
}
.sync .sync-w {
  color: var(--muted);
}
.sync .sync-n {
  font-family: var(--f-mono);
  color: var(--ink);
}
.unk-inline {
  color: var(--unknown-ink);
  font-style: normal;
}
.unk-inline::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.7px;
  vertical-align: middle;
  margin-right: var(--s3);
  background: currentColor;
}

/* src/styles/bench.css */
.bench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.rail-brand {
  padding: var(--s8) var(--s7) var(--s7);
  border-bottom: 1px solid var(--line);
}
.rail-mark {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.rail-mark svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}
.rail-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.rail-ctx {
  margin-top: var(--s2);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rail-week {
  padding: var(--s7);
  border-bottom: 1px solid var(--line);
}
.rail-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--s5) 0;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 36px;
  padding: 0 var(--s7);
  font-size: var(--t-sm);
  color: var(--muted);
  border-left: 3px solid transparent;
  transition: background 140ms, color 140ms;
}
.rail-link:hover {
  background: var(--raised);
  color: var(--ink);
}
.rail-link[aria-current=page] {
  background: var(--clay-tint);
  color: var(--ink);
  border-left-color: var(--clay);
  font-weight: 600;
}
.rail-group {
  padding: var(--s7) var(--s7) var(--s3);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rail-foot {
  padding: var(--s7);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.screenhead {
  flex: none;
  padding: var(--s8) var(--gutter) var(--s7);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s10);
}
.screentitle {
  font-family: var(--f-display);
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.screensub {
  margin-top: var(--s4);
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 82ch;
}
.screenmeta {
  text-align: right;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: flex-end;
}
.filterbar {
  flex: none;
  height: 40px;
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.region {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--s9) var(--gutter) var(--s11);
}
.region--flush {
  padding: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s9);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s9);
}
.grid-a {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s9);
  align-items: start;
}
.grid-b {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s9);
  align-items: start;
}
@media (max-width: 1439px) {
  .grid-a,
  .grid-b,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-density=bench] {
    --gutter:var(--s10);
  }
}
.prop {
  border-bottom: 1px solid var(--line-soft);
}
.prop:last-child {
  border-bottom: 0;
}
.prop-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s8);
  padding: var(--s7) var(--s7) var(--s4);
}
.prop-name {
  font-size: var(--t-h2);
  font-weight: 600;
}
.prop-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}
.prop-cell {
  padding: var(--s6) var(--s7);
  border-right: 1px solid var(--line-soft);
}
.prop-cell:last-child {
  border-right: 0;
}
.prop-cell--well {
  background: var(--well);
}
.prop-k {
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.prop-v {
  font-size: var(--t-value);
  line-height: var(--lh-value);
  font-family: var(--f-mono);
}
.prop-note {
  margin-top: var(--s3);
  font-size: var(--t-xs);
  color: var(--muted);
}
.prop-foot {
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: var(--s5) var(--s7);
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.prop-refus {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gate {
  border: 1px solid var(--blocked);
  border-radius: var(--r-panel);
  background: var(--blocked-fill);
}
.gate-head {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s7);
  border-bottom: 1px solid color-mix(in oklab, var(--blocked) 34%, transparent);
}
.gate-head svg {
  width: 13px;
  height: 13px;
  color: var(--blocked-ink);
  flex: none;
}
.gate-t {
  font-size: var(--t-h2);
  font-weight: 600;
  color: var(--blocked-ink);
}
.gate-body {
  padding: var(--s7);
}
.gate-body p {
  font-size: var(--t-sm);
  max-width: 76ch;
}
.gate-body p + p {
  margin-top: var(--s5);
}
.label-sheet {
  background: var(--raised);
  border: 1px solid var(--ink);
  border-radius: var(--r-chip);
  padding: var(--s8);
  width: 100%;
}
.label-rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: var(--s6) 0;
}
.label-rule--soft {
  border-top: 1px solid var(--line);
}
.bench > router-outlet {
  display: none;
}
.bench > *:not(.rail):not(router-outlet) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* src/styles/board.css */
.board-stage {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  padding: var(--s11) var(--gutter) var(--s10);
  transform-origin: top center;
}
.board-fit {
  min-height: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s12);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--line);
}
.board-title {
  font-family: var(--f-display);
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -.01em;
}
.board-hero {
  font-family: var(--f-mono);
  font-size: var(--t-hero);
  line-height: 1;
  letter-spacing: .04em;
  font-weight: 600;
}
.board-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.board-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px 200px 170px;
  align-items: center;
  gap: var(--s9);
  height: var(--row);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 var(--s3);
}
.board-row--head {
  height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.board-name {
  font-size: var(--t-body);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  white-space: nowrap;
}
.board-when-t {
  color: var(--muted);
}
.board-fmt {
  color: var(--muted);
  font-weight: 400;
}
.board-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s9);
  padding-top: var(--s8);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  color: var(--muted);
}
.pulse {
  width: 11px;
  height: 11px;
  flex: none;
}
.pulse--live {
  animation: mw-pulse 2.4s ease-in-out infinite;
}
@keyframes mw-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .34;
  }
}
.stack {
  display: flex;
  flex-direction: column;
}
.stack-4 > * + * {
  margin-top: var(--s4);
}
.stack-6 > * + * {
  margin-top: var(--s6);
}
.stack-7 > * + * {
  margin-top: var(--s7);
}
.stack-9 > * + * {
  margin-top: var(--s9);
}
.row {
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.row-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s7);
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
}
.rule-soft {
  border: 0;
  border-top: 1px solid var(--line-soft);
}
.nowrap {
  white-space: nowrap;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.hidden {
  display: none !important;
}
.note {
  font-size: var(--t-xs);
  color: var(--muted);
  max-width: 80ch;
}
.note strong {
  font-weight: 600;
  color: var(--ink);
}
.linkish {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--muted);
}
.linkish:hover {
  text-decoration-color: var(--ink);
  background: var(--raised);
}

/* src/app/prototype/planb/planb.css */
.planb-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  --control-line: var(--muted);
}
.planb-shell--rail-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}
.planb-shell .btn:not(.btn--primary):not(.btn--danger),
.planb-shell .inp:not(:focus):not(.inp--edited),
.planb-shell .planb-icon-button,
.planb-shell .seg {
  border-color: var(--control-line);
}
.planb-shell .seg button + button {
  border-left-color: var(--control-line);
}
.planb-shell .inp::placeholder {
  color: var(--muted);
}
.planb-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.planb-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.planb-brand__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.planb-brand__name {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.planb-nav {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s4) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.planb-nav--compact {
  display: none;
}
.planb-nav__section {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.planb-nav__section--general {
  margin-top: auto;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.planb-nav__section-label {
  padding: var(--s2) var(--s7);
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.planb-nav__link,
.planb-nav__group {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--s5);
  min-height: 44px;
  padding: var(--s3) var(--s7);
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: left;
  transition: background 140ms, color 140ms;
}
.planb-nav__link:hover,
.planb-nav__group:hover {
  background: var(--raised);
  color: var(--ink);
}
.planb-nav__link--active,
.planb-nav__link--active:hover {
  background: var(--clay-tint);
  border-left-color: var(--clay);
  color: var(--ink);
}
.planb-nav__group--active {
  color: var(--ink);
  font-weight: 700;
}
.planb-nav__item {
  min-width: 0;
}
.planb-nav__children {
  display: grid;
}
.planb-nav__children[hidden] {
  display: none;
}
.planb-nav__link--child {
  padding-left: calc(var(--s11) + var(--s3));
}
.planb-nav__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
}
.planb-nav__icon svg {
  width: 20px;
  height: 20px;
}
.planb-rail-toggle {
  border-color: transparent;
}
.planb-nav__compact-control {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.planb-nav__compact-control:hover {
  background: var(--raised);
  color: var(--ink);
}
.planb-nav__compact-control--active,
.planb-nav__compact-control--active:hover {
  border-left-color: var(--clay);
  background: var(--clay-tint);
  color: var(--ink);
}
.planb-shell--rail-collapsed .planb-brand {
  justify-content: center;
  padding-inline: var(--s5);
}
.planb-shell--rail-collapsed .planb-brand__identity,
.planb-shell--rail-collapsed .planb-nav--expanded,
.planb-shell--rail-collapsed .planb-rail__foot {
  display: none;
}
.planb-shell--rail-collapsed .planb-nav--compact {
  display: flex;
}
.planb-rail__foot {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--s6) var(--s7);
  border-top: 1px solid var(--line);
  flex: none;
}
.planb-mock-badge {
  font-family: var(--f-mono);
}
.planb-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  container: planb-stage / inline-size;
}
.planb-stage router-outlet {
  display: none;
}
.planb-stage > router-outlet + * {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.planb-topbar {
  display: flex;
  align-items: center;
  gap: var(--s7);
  min-height: 68px;
  padding: var(--s5) var(--s8);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.planb-topbar__title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.planb-topbar__title strong {
  overflow: hidden;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planb-preview-controls {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex: none;
  color: var(--muted);
}
.planb-preview-controls > .micro {
  color: var(--muted);
}
.planb-preview-controls .seg {
  border-color: var(--control-line);
}
.planb-preview-controls .seg button {
  min-width: 64px;
  min-height: 44px;
  color: var(--muted);
}
.planb-preview-controls .seg button[aria-pressed=true] {
  background: var(--well);
  color: var(--muted);
}
.planb-topbar__site {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-left: auto;
  padding-left: var(--s8);
  border-left: 1px solid var(--line);
  text-align: right;
}
.planb-topbar__site strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planb-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: transparent;
  cursor: pointer;
}
.planb-icon-button:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.planb-icon-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.planb-icon-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.planb-mobile-trigger,
.planb-drawer-close,
.planb-nav-scrim {
  display: none;
}
.planb-screen-host {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.planb-screen {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: var(--s7);
  padding: var(--s8) var(--s9) var(--s10);
}
.planb-screen > * {
  min-width: 0;
  max-width: 100%;
}
.planb-screen__body {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  gap: var(--s7);
}
.planb-screen__body > * {
  min-width: 0;
  max-width: 100%;
}
.planb-screen__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s7);
  flex-wrap: wrap;
}
.planb-screen__head h1 {
  font-family: var(--f-display);
  font-size: var(--t-display);
  font-weight: 650;
  letter-spacing: -0.015em;
}
.planb-screen__head p {
  max-width: 72ch;
  color: var(--muted);
}
.planb-screen__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.planb-screen__toolbar > * {
  min-width: 0;
}
.planb-toolbar__search {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.planb-toolbar__search .inp {
  width: 240px;
  max-width: 100%;
  text-align: left;
  font-family: var(--f-ui);
}
.planb-tabs-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.planb-screen__tabs {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}
.planb-tabs-hint {
  display: none;
  align-items: center;
  gap: var(--s2);
  padding-top: var(--s2);
  color: var(--muted);
  font-size: var(--t-xs);
}
.planb-tabs-hint svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.planb-screen__tabs button,
.planb-screen__tabs a {
  min-height: 44px;
  padding: 0 var(--s6);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
}
.planb-screen__tabs button:hover,
.planb-screen__tabs a:hover {
  color: var(--ink);
  background: var(--raised);
}
.planb-screen__tabs button[aria-selected=true],
.planb-screen__tabs button[aria-pressed=true],
.planb-screen__tabs a[aria-current=page] {
  border-bottom-color: var(--clay);
  color: var(--ink);
}
.planb-screen .btn,
.planb-screen .inp,
.planb-screen .seg button,
.planb-dialog .btn,
.planb-dialog .inp {
  min-height: 44px;
}
.planb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--line);
}
.planb-grid > * {
  min-width: 0;
  max-width: 100%;
}
.planb-screen :where(.planb-grid, .planb-route-layout, .planb-split) > .frame {
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
}
.planb-grid > .frame {
  border: 0;
  border-radius: 0;
  background: var(--surface);
}
.planb-grid > .frame > :first-child,
.planb-grid > .frame > :last-child {
  border-radius: 0;
}
.planb-screen .frame-head {
  min-width: 0;
  flex-wrap: wrap;
}
.planb-screen .frame-body,
.planb-screen .prov {
  min-width: 0;
}
.planb-window {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: var(--s7);
  padding: var(--s5) var(--s7);
  margin: 0;
}
.planb-window__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.planb-window__identity strong {
  font-family: var(--f-mono);
  font-size: var(--t-h2);
  overflow-wrap: anywhere;
}
.planb-metric {
  display: block;
  margin-bottom: var(--s4);
  font-family: var(--f-mono);
  font-size: 32px;
  line-height: 1;
}
.planb-metrics > .frame {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.planb-metrics > .frame .frame-body {
  flex: 1;
}
.planb-metrics .frame-body p {
  color: var(--muted);
}
.planb-dashboard-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.planb-dashboard-metrics > .frame {
  grid-column: span 2;
}
.planb-dashboard-metrics > .frame:nth-last-child(-n+2) {
  grid-column: span 3;
}
.planb-notice {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5) var(--s7);
  border: 1px solid var(--attention);
  border-radius: var(--r-frame);
  background: var(--attention-fill);
  color: var(--attention-ink);
}
.planb-notice span {
  flex: 1;
  color: var(--ink);
}
.planb-pagination {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--t-xs);
}
.planb-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.planb-list:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.planb-list table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.planb-list th {
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.planb-list td {
  height: var(--row);
  padding: var(--s4) var(--s6);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.planb-list tbody tr:last-child td {
  border-bottom: 0;
}
.planb-list tbody tr:hover {
  background: var(--raised);
}
.planb-list tbody tr[aria-selected=true] {
  background: var(--clay-tint);
}
.planb-list .planb-empty {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.planb-state-chip::before {
  content: "";
  display: block;
  flex: none;
}
.planb-state-chip[data-state-shape=dot]::before {
  width: var(--s3);
  height: var(--s3);
  border-radius: 50%;
  background: currentColor;
}
.planb-state-chip[data-state-shape=ring]::before {
  width: var(--s4);
  height: var(--s4);
  border: 1px solid currentColor;
  border-radius: 50%;
}
.planb-state-chip[data-state-shape=dash]::before {
  width: var(--s4);
  height: 1px;
  background: currentColor;
}
.planb-map {
  min-height: 360px;
  padding: var(--s7);
  overflow: auto;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.planb-route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: var(--s7);
}
.planb-route-layout > * {
  min-width: 0;
  max-width: 100%;
}
.planb-map {
  position: relative;
  overflow: hidden;
}
.planb-map__line {
  position: absolute;
  border-top: 1px solid var(--water);
  transform-origin: left center;
}
.planb-map__line--a {
  left: 12%;
  top: 38%;
  width: 70%;
  transform: rotate(12deg);
}
.planb-map__line--b {
  left: 20%;
  top: 65%;
  width: 62%;
  transform: rotate(-19deg);
}
.planb-map__stop {
  position: absolute;
  left: calc(9% + (var(--stop-index) * 17%));
  top: calc(22% + (var(--stop-index) * 11%));
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
}
.planb-map__legend {
  position: absolute;
  right: var(--s7);
  bottom: var(--s7);
  display: flex;
  flex-direction: column;
  max-width: 260px;
  padding: var(--s5) var(--s6);
  border: 0;
  border-radius: var(--r-frame);
  background: var(--surface);
}
.planb-map__legend span {
  font-size: var(--t-xs);
  color: var(--muted);
}
.planb-circuit-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.planb-circuit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2) var(--s5);
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: var(--s5);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.planb-circuit-row:last-child {
  border-bottom: 0;
}
.planb-circuit-row:hover {
  background: var(--raised);
}
.planb-circuit-row strong,
.planb-circuit-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.planb-circuit-row span {
  font-size: var(--t-xs);
  color: var(--muted);
}
.planb-panel-actions {
  padding: var(--s6) var(--s7);
  border-top: 1px solid var(--line);
}
.planb-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--line);
}
.planb-settings-grid > * {
  min-width: 0;
  max-width: 100%;
}
.planb-feature-button {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s6) var(--s7);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.planb-feature-button:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.planb-feature-button span {
  font-size: var(--t-xs);
  color: var(--muted);
}
.planb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: var(--s7);
}
.planb-split > * {
  min-width: 0;
  max-width: 100%;
}
.planb-label-preview .frame-body {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  border: var(--s5) solid var(--well);
  font-family: var(--f-mono);
  text-align: center;
}
.planb-detail {
  margin-top: 0;
}
.planb-textarea {
  min-height: 104px;
  padding: var(--s5);
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: var(--raised);
  font-family: var(--f-ui);
}
.planb-dialog .inp {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  font-family: var(--f-ui);
}
.planb-dialog input[type=number] {
  font-family: var(--f-mono);
}
.planb-import-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.planb-import-steps span {
  padding: var(--s5) var(--s7);
  background: var(--well);
  color: var(--muted);
  font-size: var(--t-xs);
}
.planb-import-steps .planb-import-step--active {
  background: var(--clay-tint);
  color: var(--ink);
  font-weight: 600;
}
.planb-import-summary {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s7);
  border: 0;
  border-radius: var(--r-frame);
  background: var(--well);
}
.planb-error {
  color: var(--blocked-ink);
  font-size: var(--t-xs);
}
.planb-dialog-scrim {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s7);
  overflow: hidden;
  background: color-mix(in oklab, var(--ink) 30%, transparent);
}
.planb-dialog {
  display: flex;
  width: min(620px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - var(--s10));
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.planb-dialog--catalog {
  width: min(980px, 100%);
}
.planb-dialog > header,
.planb-dialog > footer {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s6) var(--s7);
  flex: none;
  background: var(--surface);
}
.planb-dialog > header {
  position: sticky;
  z-index: 1;
  top: 0;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.planb-dialog > header > * {
  min-width: 0;
}
.planb-dialog > header h2 {
  overflow-wrap: anywhere;
}
.planb-dialog > footer {
  position: sticky;
  z-index: 1;
  bottom: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.planb-dialog > form,
.planb-dialog > .planb-form-grid,
.planb-dialog__body {
  padding: var(--s7);
}
.planb-dialog > .planb-form-grid,
.planb-dialog__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.planb-dialog__body {
  display: flex;
  flex-direction: column;
  gap: var(--s7);
}
.planb-form-section {
  min-width: 0;
  max-width: 100%;
  padding: 0 0 var(--s7);
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.planb-form-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}
.planb-form-section legend {
  width: 100%;
  padding: 0 0 var(--s5);
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 650;
}
.planb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6) var(--s7);
}
.planb-form-grid > * {
  min-width: 0;
  max-width: 100%;
}
.planb-form-grid > label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--s3);
}
.planb-form-grid > label > span,
.planb-import-summary {
  overflow-wrap: anywhere;
}
.planb-form-grid > label small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.planb-multi-select {
  min-height: 104px;
  padding-block: var(--s2);
}
.planb-toggle {
  align-self: end;
  justify-content: flex-end;
}
.planb-toggle__control {
  width: 24px;
  height: 24px;
  accent-color: var(--clay);
}
.planb-form-grid > label:has(textarea),
.planb-form-grid > .planb-form-grid__wide {
  grid-column: 1/-1;
}
.planb-repeatable {
  min-width: 0;
  max-width: 100%;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.planb-repeatable > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
.planb-repeatable > header > * {
  min-width: 0;
}
.planb-repeatable h3 {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 650;
}
.planb-repeatable header p,
.planb-repeatable > .muted {
  margin-top: var(--s2);
  color: var(--muted);
}
.planb-repeatable__row {
  display: grid;
  min-width: 0;
  max-width: 100%;
  align-items: end;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line-soft);
}
.planb-repeatable__row > * {
  min-width: 0;
  max-width: 100%;
}
.planb-repeatable__row label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--s2);
}
.planb-repeatable__row label > span {
  color: var(--muted);
  font-size: var(--t-xs);
  overflow-wrap: anywhere;
}
.planb-repeatable__row--conversion {
  grid-template-columns: minmax(0, 1fr) minmax(88px, 0.7fr) 24px minmax(0, 1fr) minmax(88px, 0.7fr) auto;
}
.planb-repeatable__row--component {
  grid-template-columns: minmax(0, 2fr) minmax(88px, 0.7fr) minmax(88px, 0.7fr) auto;
}
.planb-repeatable__row--product {
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 2fr) minmax(80px, 0.65fr) minmax(88px, 0.7fr) minmax(80px, 0.65fr) minmax(104px, 0.9fr) auto;
}
.planb-repeatable__arrow {
  align-self: center;
  color: var(--muted);
  font-size: var(--t-h2);
  text-align: center;
}
.planb-repeatable__total {
  display: flex;
  justify-content: flex-end;
  gap: var(--s5);
  margin-top: var(--s5);
  font-family: var(--f-mono);
}
.planb-action-row {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s5);
  flex-wrap: wrap;
}
.planb-action-row .seg {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.planb-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: var(--s9);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-panel);
}
.planb-empty > * {
  max-width: 56ch;
}
.planb-empty .btn {
  margin-top: var(--s5);
}
.planb-shell--preview-tablet {
  --planb-preview-width: 768px;
  --planb-preview-half: 384px;
}
.planb-shell--preview-phone {
  --planb-preview-width: 390px;
  --planb-preview-half: 195px;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) {
  display: block;
  background: var(--well);
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-stage {
  width: min(var(--planb-preview-width), 100%);
  height: 100dvh;
  min-height: 100dvh;
  margin-inline: auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-rail {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - var(--planb-preview-half)));
  width: min(280px, calc(100vw - var(--s11)));
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 160ms, visibility 0ms 160ms;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-rail--open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0ms;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone).planb-shell--rail-collapsed .planb-brand__identity,
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone).planb-shell--rail-collapsed .planb-nav--expanded,
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone).planb-shell--rail-collapsed .planb-rail__foot {
  display: flex;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone).planb-shell--rail-collapsed .planb-nav--compact,
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-rail-toggle {
  display: none;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-drawer-close,
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-mobile-trigger {
  display: grid;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-nav-scrim {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 50%;
  display: block;
  width: min(var(--planb-preview-width), 100%);
  height: 100%;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  background: color-mix(in oklab, var(--ink) 28%, transparent);
  cursor: pointer;
}
:is(.planb-shell--preview-tablet, .planb-shell--preview-phone) .planb-dialog-scrim {
  inset: 0 auto 0 50%;
  width: min(var(--planb-preview-width), 100%);
  transform: translateX(-50%);
}
@container planb-stage (max-width:900px) {
  .planb-screen {
    padding: var(--s7);
  }
  .planb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planb-dashboard-metrics > .frame,
  .planb-dashboard-metrics > .frame:nth-last-child(-n+2) {
    grid-column: auto;
  }
  .planb-dashboard-metrics > .frame:last-child {
    grid-column: 1/-1;
  }
  .planb-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planb-route-layout,
  .planb-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .planb-topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 64px;
    padding: var(--s4) var(--s6);
    gap: var(--s5);
  }
  .planb-preview-controls {
    grid-column: 2/-1;
    grid-row: 2;
    justify-self: end;
  }
  .planb-topbar__site {
    grid-column: 3;
    grid-row: 1;
    max-width: 240px;
    padding-left: var(--s5);
  }
  .planb-repeatable__row--conversion,
  .planb-repeatable__row--component,
  .planb-repeatable__row--product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .planb-repeatable__arrow {
    display: none;
  }
  .planb-repeatable__row > .btn {
    width: 100%;
  }
  .planb-map {
    min-height: 300px;
  }
}
@media (max-width: 1024px) {
  .planb-shell {
    display: block;
  }
  .planb-rail {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(280px, calc(100vw - var(--s11)));
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 160ms, visibility 0ms 160ms;
  }
  .planb-rail--open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0ms;
  }
  .planb-shell--rail-collapsed .planb-brand__identity,
  .planb-shell--rail-collapsed .planb-nav--expanded,
  .planb-shell--rail-collapsed .planb-rail__foot {
    display: flex;
  }
  .planb-shell--rail-collapsed .planb-nav--compact,
  .planb-rail-toggle {
    display: none;
  }
  .planb-drawer-close,
  .planb-mobile-trigger {
    display: grid;
  }
  .planb-stage {
    height: 100dvh;
    min-height: 100dvh;
  }
  .planb-nav-scrim {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: color-mix(in oklab, var(--ink) 28%, transparent);
    cursor: pointer;
  }
}
@container planb-stage (max-width:720px) {
  .planb-list {
    overflow: visible;
    scrollbar-gutter: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .planb-list table {
    display: block;
    min-width: 0;
  }
  .planb-list thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .planb-list tbody {
    display: grid;
    gap: var(--s5);
  }
  .planb-list tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-row);
    background: var(--surface);
  }
  .planb-list td {
    display: block;
    height: auto;
    padding: var(--s4) var(--s5);
    border: 0;
  }
  .planb-list td:nth-child(1) {
    grid-column: 1/-1;
    padding-top: var(--s5);
  }
  .planb-list td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .planb-list td:nth-child(3) {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .planb-list td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .planb-list td:nth-child(5) {
    grid-column: 1/-1;
    grid-row: 4;
    padding-bottom: var(--s5);
  }
  .planb-list td:nth-child(5) .btn {
    width: 100%;
  }
  .planb-list--demand td:nth-child(4) {
    grid-column: 1/-1;
    grid-row: 4;
    padding-bottom: var(--s5);
    text-align: left;
  }
  .planb-list--demand td:nth-child(4) .btn {
    width: 100%;
  }
  .planb-list .planb-empty {
    min-height: 140px;
    padding: var(--s7);
  }
}
@container planb-stage (max-width:560px) {
  .planb-grid,
  .planb-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .planb-dashboard-metrics > .frame:last-child {
    grid-column: auto;
  }
  .planb-topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: var(--s5);
    row-gap: var(--s1);
  }
  .planb-mobile-trigger {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .planb-topbar__title {
    grid-column: 2;
    grid-row: 1;
  }
  .planb-preview-controls {
    grid-column: 1/-1;
    grid-row: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: var(--s3);
  }
  .planb-preview-controls .seg {
    display: flex;
    min-width: 0;
    flex: 1;
  }
  .planb-preview-controls .seg button {
    min-width: 0;
    flex: 1;
  }
  .planb-topbar__site {
    grid-column: 2;
    grid-row: 2;
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    flex-direction: row;
    align-items: baseline;
    gap: var(--s3);
    text-align: left;
  }
  .planb-screen__head {
    align-items: stretch;
    flex-direction: column;
  }
  .planb-screen__toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .planb-screen__toolbar > * {
    width: 100%;
  }
  .planb-toolbar__search {
    align-items: stretch;
    flex-direction: column;
  }
  .planb-toolbar__search .inp {
    width: 100%;
  }
  .planb-notice {
    align-items: stretch;
    flex-direction: column;
  }
  .planb-notice .btn {
    width: 100%;
  }
  .planb-screen__tabs {
    padding-bottom: var(--s2);
    scrollbar-width: none;
  }
  .planb-screen__tabs::-webkit-scrollbar {
    display: none;
  }
  .planb-tabs-hint {
    display: flex;
  }
  .planb-circuit-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .planb-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .planb-form-grid > label:has(textarea),
  .planb-form-grid > .planb-form-grid__wide {
    grid-column: auto;
  }
  .planb-toggle {
    align-self: start;
  }
  .planb-repeatable > header {
    align-items: stretch;
    flex-direction: column;
  }
  .planb-repeatable > header .btn {
    width: 100%;
  }
  .planb-repeatable__row--conversion,
  .planb-repeatable__row--component,
  .planb-repeatable__row--product {
    grid-template-columns: minmax(0, 1fr);
  }
  .planb-dialog-scrim {
    align-items: end;
    padding: 0;
  }
  .planb-dialog {
    width: 100%;
    max-height: 92dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
  .planb-dialog__body {
    padding: var(--s6);
  }
  .planb-dialog > footer .btn {
    min-width: 0;
    flex: 1 1 140px;
  }
  .planb-action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .planb-action-row > * {
    width: 100%;
  }
}

/* src/app/prototype/erp/prototype.css */
.erp-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  --control-line: var(--muted);
}
.erp-shell .btn:not(.btn--primary):not(.btn--danger),
.erp-shell .inp:not(:focus):not(.inp--edited),
.erp-shell :is(.erp-textarea, .erp-icon-button),
.erp-shell .seg {
  border-color: var(--control-line);
}
.erp-shell .seg button + button {
  border-left-color: var(--control-line);
}
.erp-shell .inp::placeholder {
  color: var(--muted);
}
.erp-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 30;
}
.erp-brand {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s8) var(--s7);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.erp-brand__mark {
  width: 24px;
  height: 24px;
  color: var(--muted);
  flex: none;
}
.erp-brand__mark svg {
  width: 100%;
  height: 100%;
}
.erp-brand__copy {
  min-width: 0;
}
.erp-brand__name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
}
.erp-drawer-close {
  display: none;
  margin-left: auto;
  flex: none;
}
.erp-nav-search {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--line-soft);
}
.erp-nav-search__control {
  position: relative;
}
.erp-nav-search__input {
  width: 100%;
  min-height: 44px;
  padding-right: 44px;
  text-align: left;
  font-family: var(--f-ui);
}
.erp-nav-search__input::-webkit-search-cancel-button {
  appearance: none;
}
.erp-nav-search__clear {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.erp-nav-search__clear:hover {
  background: var(--raised);
  color: var(--ink);
}
.erp-nav-search__clear svg {
  width: 18px;
  height: 18px;
}
.erp-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--s4) 0 calc(var(--s10) + var(--s8));
  scroll-padding-block-end: calc(var(--s10) + var(--s8));
  scrollbar-gutter: stable;
}
.erp-nav__empty {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s8) var(--s7);
}
.erp-nav__group + .erp-nav__group {
  border-top: 1px solid var(--line-soft);
}
.erp-nav__heading {
  padding: var(--s7) var(--s7) var(--s3);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.erp-nav__link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s4);
  min-height: 44px;
  padding: var(--s3) var(--s6) var(--s3) var(--s7);
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.2;
  transition: background 140ms, color 140ms;
}
.erp-nav__link:hover {
  background: var(--raised);
  color: var(--ink);
}
.erp-nav__link--active {
  background: var(--clay-tint);
  border-left-color: var(--clay);
  color: var(--ink);
  font-weight: 600;
}
.erp-nav__dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--faint);
  border-radius: 50%;
}
.erp-nav__link--active .erp-nav__dot {
  background: var(--clay);
  border-color: var(--clay);
}
.erp-nav__package,
.erp-nav__binding {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  color: var(--muted);
  background: var(--well);
}
.erp-nav__binding {
  border-color: var(--blocked);
  color: var(--blocked-ink);
  background: var(--blocked-fill);
}
.erp-rail__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s7);
  border-top: 1px solid var(--line);
  flex: none;
}
.erp-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.erp-topbar {
  display: flex;
  align-items: center;
  gap: var(--s8);
  min-height: 58px;
  padding: var(--s5) var(--s8);
  flex-wrap: wrap;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.erp-tenant {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-width: 0;
}
.erp-tenant strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-topbar-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s4);
  min-width: 0;
  margin-left: auto;
  flex-wrap: wrap;
}
.erp-boundary {
  flex: none;
  padding: var(--s2) var(--s8);
  border-bottom: 1px solid var(--line-soft);
  background: var(--attention-fill);
  color: var(--attention-ink);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.015em;
  text-align: left;
}
.erp-stage > router-outlet {
  display: none;
}
.erp-stage > *:not(.erp-topbar):not(.erp-boundary):not(router-outlet) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex: 1;
}
.erp-mobile-trigger {
  display: none;
}
.erp-nav-scrim {
  display: none;
}
.erp-screenhead {
  padding-top: var(--s7);
  padding-bottom: var(--s6);
}
.erp-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.erp-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.erp-inline-icon {
  width: 16px;
  height: 16px;
  margin-left: var(--s3);
  flex: none;
}
.erp-ellipsis {
  display: block;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.erp-filterbar {
  height: auto;
  min-height: 44px;
  flex-wrap: wrap;
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}
.erp-search {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.erp-search__input {
  width: 250px;
  text-align: left;
  font-family: var(--f-ui);
}
.erp-tabs {
  margin-left: var(--s4);
}
.erp-source-inspector {
  position: relative;
  flex: none;
}
.erp-source-inspector > summary {
  list-style: none;
}
.erp-source-inspector > summary::-webkit-details-marker {
  display: none;
}
.erp-source-inspector[open] > summary {
  background: var(--raised);
}
.erp-source-inspector__panel {
  position: absolute;
  top: calc(100% + var(--s3));
  right: 0;
  z-index: 60;
  width: min(680px, calc(100vw - 220px - var(--s8) - var(--s8)));
  max-height: calc(100vh - 170px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: var(--r-panel);
  box-shadow: 0 var(--s4) var(--s9) color-mix(in oklab, var(--ink) 16%, transparent);
}
.erp-source-inspector__close {
  display: none;
  margin-left: auto;
  flex: none;
}
.erp-source-inspector__close svg {
  width: 18px;
  height: 18px;
}
.erp-source-inspector__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s8);
}
.erp-source-inspector__docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s7);
}
.erp-source-inspector__docs p {
  margin-top: var(--s3);
}
.erp-filterbar__spacer {
  flex: 1;
}
.erp-region {
  background: var(--bg);
}
.erp-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s9);
  min-width: 0;
}
.erp-region :is(.frame, .frame-body, .grid-a, .grid-b, .grid-2, .grid-3) {
  min-width: 0;
}
.erp-region :is(.grid-a, .grid-b, .grid-2, .grid-3) > .frame + .frame {
  margin-top: 0;
}
.erp-region .frame-head {
  flex-wrap: wrap;
}
.erp-sticky-frame {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
}
.erp-subhead {
  border-top: 1px solid var(--line);
}
.erp-binding-warning {
  margin-bottom: var(--s9);
}
.erp-binding-warning .gate-head {
  justify-content: space-between;
}
.erp-cell-action {
  text-align: right;
  white-space: nowrap;
}
.erp-ledger-note td {
  height: auto !important;
  padding-top: var(--s3);
  padding-bottom: var(--s5);
  background: var(--well);
}
.erp-error {
  color: var(--blocked-ink);
  font-size: var(--t-xs);
}
.erp-inspector-defs,
.erp-document-defs {
  margin-top: var(--s7);
}
.erp-document-defs {
  margin-bottom: var(--s8);
}
.erp-object-definition {
  margin-bottom: var(--s9);
}
.erp-explorer-grid {
  align-items: start;
}
.erp-explorer-defs {
  margin-top: var(--s7);
}
.erp-relation-ledger {
  min-width: 1040px;
  table-layout: fixed;
}
.erp-relation-ledger th:first-child {
  width: 25%;
}
.erp-relation-ledger th:nth-child(2) {
  width: 24%;
}
.erp-relation-ledger th:nth-child(3) {
  width: 19%;
}
.erp-relation-ledger th:nth-child(4) {
  width: 14%;
}
.erp-relation-ledger th:last-child {
  width: 18%;
}
.erp-lifecycle-clauses {
  display: grid;
  gap: var(--s5);
  margin-top: var(--s7);
}
.erp-lifecycle-clauses article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--s6);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line-soft);
}
.erp-lifecycle-clauses article > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.erp-empty-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 56px;
  padding: var(--s3) var(--s4);
}
.chip--ok::before,
.chip--attention::before,
.chip--blocked::before,
.chip--unknown::before {
  content: "";
  display: block;
  flex: none;
}
.chip--ok > svg,
.chip--attention > svg,
.chip--blocked > svg,
.chip--unknown > svg {
  display: none;
}
.chip--ok::before {
  width: var(--s3);
  height: var(--s3);
  border-radius: 50%;
  background: currentColor;
}
.chip--attention::before {
  width: var(--s4);
  height: var(--s4);
  border: 1px solid currentColor;
  border-radius: 50%;
}
.chip--blocked::before {
  width: var(--s3);
  height: var(--s3);
  background: currentColor;
}
.chip--unknown::before {
  width: var(--s4);
  height: 1px;
  background: currentColor;
}
.erp-table-scroll {
  max-height: calc(100vh - 250px);
  overflow: auto;
}
.erp-ledger-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--muted) var(--well);
  scrollbar-gutter: stable;
}
.erp-ledger-scroll::-webkit-scrollbar {
  height: 10px;
}
.erp-ledger-scroll::-webkit-scrollbar-track {
  background: var(--well);
}
.erp-ledger-scroll::-webkit-scrollbar-thumb {
  background: var(--muted);
  border: 2px solid var(--well);
  border-radius: var(--r-chip);
}
.erp-overview-ledger {
  min-width: 680px;
}
.erp-generic-registry-ledger {
  width: 100%;
  min-width: 960px;
  table-layout: fixed;
}
.erp-generic-registry-ledger th:first-child {
  width: 13%;
}
.erp-generic-registry-ledger th:nth-child(2) {
  width: 24%;
}
.erp-generic-registry-ledger th:nth-child(3) {
  width: 8%;
}
.erp-generic-registry-ledger th:nth-child(4) {
  width: 12%;
}
.erp-generic-registry-ledger th:nth-child(5) {
  width: 28%;
}
.erp-generic-registry-ledger th:last-child {
  width: 15%;
}
.erp-ledger-scroll [data-action-binding-disposition=local-presentation-action] {
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
}
.erp-terminology-grid {
  grid-template-columns: minmax(0, 1fr);
}
.erp-terminology-grid .erp-sticky-frame {
  position: static;
}
.erp-term-ledger {
  min-width: 760px;
  table-layout: fixed;
}
.erp-term-ledger th:first-child {
  width: 190px;
}
.erp-term-ledger th:nth-child(2),
.erp-term-ledger td:nth-child(2) {
  width: 110px;
}
.erp-term-ledger th:nth-child(4),
.erp-term-ledger td:nth-child(4) {
  width: 110px;
}
.erp-term-ledger th:last-child,
.erp-term-ledger td:last-child {
  width: 120px;
}
.erp-term-ledger td {
  vertical-align: top;
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}
.erp-term-ledger .erp-cell-action .btn {
  width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
}
.erp-textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: var(--raised);
  color: var(--ink);
  font: var(--t-sm)/1.45 var(--f-ui);
}
.erp-textarea:focus {
  border-color: var(--clay);
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}
.erp-import-head {
  align-items: center;
}
.erp-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.erp-stepper button {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 48px;
  padding: 0 var(--s7);
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: var(--well);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.erp-stepper button:last-child {
  border-right: 0;
}
.erp-stepper button:hover {
  background: var(--raised);
  color: var(--ink);
}
.erp-stepper button:disabled {
  background: var(--well);
  color: var(--faint);
  cursor: not-allowed;
}
.erp-stepper button:disabled:hover {
  background: var(--well);
  color: var(--faint);
}
.erp-stepper button[aria-current=step] {
  color: var(--ink);
  background: var(--clay-tint);
  border-bottom: 1px solid var(--clay);
  font-weight: 600;
}
.erp-stepper__mark {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  flex: none;
}
.erp-stepper__mark svg {
  width: 16px;
  height: 16px;
}
.erp-import-table {
  max-height: 52vh;
}
.erp-disposition-ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  background: var(--surface);
}
.erp-disposition-ledger > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s7);
  border-right: 1px solid var(--line);
}
.erp-disposition-ledger > div:last-child {
  border-right: 0;
}
.erp-disposition-ledger span {
  font-size: var(--t-xs);
  color: var(--muted);
}
.erp-disposition-ledger strong {
  font-size: var(--t-value);
  font-weight: 500;
}
.erp-import-gate {
  margin-top: var(--s9);
}
.erp-frame-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s5);
  padding: var(--s6) var(--s7);
  border-top: 1px solid var(--line);
}
.erp-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
}
.erp-flow li {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: var(--s8);
  padding: var(--s6) var(--s7);
  border-bottom: 1px solid var(--line-soft);
}
.erp-flow li:last-child {
  border-bottom: 0;
}
.erp-flow b {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
}
.erp-flow span {
  font-size: var(--t-sm);
  color: var(--muted);
}
.erp-flow-note {
  margin-top: var(--s8);
}
.erp-genealogy {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  position: relative;
  padding-left: var(--s8);
}
.erp-genealogy::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 24px;
  border-left: 1px solid var(--line);
}
.erp-genealogy__node {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(150px, 1fr) minmax(180px, 2fr) auto;
  align-items: center;
  gap: var(--s7);
  min-height: 58px;
  padding: var(--s6) var(--s7);
  border: 1px solid var(--line);
  border-radius: var(--r-row);
  background: var(--raised);
}
.erp-genealogy__node::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s8) - 1px);
  top: 50%;
  width: var(--s8);
  border-top: 1px solid var(--line);
}
.erp-genealogy__node--focus {
  border-color: var(--clay);
  background: var(--clay-tint);
}
.erp-recall-gate {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}
.erp-map-frame {
  min-height: 520px;
}
.erp-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background-color: var(--well);
}
.erp-map::after {
  content: "CARTE ABSTRAITE \b7  AUCUNE ADRESSE";
  position: absolute;
  right: var(--s7);
  bottom: var(--s6);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.erp-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--water);
}
.erp-map__stop {
  position: absolute;
  transform: translate(-12px, -12px);
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s5);
  border: 1px solid var(--ink);
  border-radius: var(--r-ctrl);
  background: var(--raised);
  white-space: nowrap;
  font-size: var(--t-xs);
}
.erp-map__stop b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-chip);
}
.erp-documents-grid {
  grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr);
}
.prototype-board-fit {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}
.prototype-board-fit .board-stage {
  flex: none;
}
.prototype-board-fit .board-sub {
  margin-top: var(--s4);
  color: var(--muted);
}
.prototype-board-fit .board-live {
  display: flex;
  align-items: flex-start;
  gap: var(--s7);
}
.prototype-board-fit .board-live-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s3);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  color: var(--muted);
}
.prototype-board-tools {
  position: fixed;
  z-index: 10;
  top: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: max-content;
  max-width: calc(100vw - var(--s10));
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}
.prototype-board-return {
  min-height: 44px;
  background: var(--surface);
}
.prototype-board-return svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.prototype-board-narrow-note {
  display: none;
  max-width: min(340px, calc(100vw - var(--s10)));
  padding: var(--s5) var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.45;
}
.erp-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: transparent;
  cursor: pointer;
}
.erp-icon-button:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.erp-icon-button > svg {
  width: 18px;
  height: 18px;
}
.erp-icon-button.erp-mobile-trigger,
.erp-icon-button.erp-drawer-close {
  display: none;
}
.erp-icon-button.erp-source-inspector__close {
  display: none;
}
.erp-mobile-trigger svg {
  width: 20px;
  height: 20px;
}
.erp-dialog-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  background: color-mix(in oklab, var(--ink) 30%, transparent);
  z-index: 90;
  cursor: default;
}
.erp-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  width: min(480px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.erp-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s7);
  padding: var(--s8);
  border-bottom: 1px solid var(--line);
}
.erp-drawer__head h2 {
  margin-top: var(--s3);
}
.erp-drawer__body {
  flex: 1;
  overflow: auto;
  padding: var(--s8);
}
.erp-field {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s7);
  font-size: var(--t-xs);
  color: var(--muted);
}
.erp-field .inp {
  width: 100%;
  text-align: left;
  color: var(--ink);
  font-family: var(--f-ui);
}
.erp-field__help {
  font-size: var(--t-micro);
  color: var(--muted);
}
.erp-drawer__foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--s5);
  padding: var(--s7) var(--s8);
  border-top: 1px solid var(--line);
}
.erp-field--wide,
.erp-form-note {
  grid-column: 1 / -1;
}
.erp-form-note {
  padding-left: var(--s5);
  border-left: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--muted);
}
.erp-terminology-scope {
  display: flex;
  flex-direction: column;
  gap: var(--s7);
}
.erp-evidence-only {
  background: var(--unknown-fill);
  border-color: var(--unknown);
}
.erp-evidence-only .frame-head {
  border-color: var(--unknown);
}
.erp-inventory-table {
  width: 100%;
}
.erp-state-specimens {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.erp-state-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 3fr);
  align-items: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.erp-state-card + .erp-state-card {
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
}
.erp-state-card .frame-head {
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
}
.erp-state-card .frame-body {
  border-radius: 0;
}
.erp-state-card .prov {
  align-content: center;
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-radius: 0;
}
.erp-document-preview {
  position: fixed;
  top: var(--s9);
  left: 50%;
  z-index: 100;
  width: min(1200px, calc(100vw - var(--s9) - var(--s9)));
  max-height: calc(100vh - var(--s9) - var(--s9));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.erp-document-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s7);
  padding: var(--s5) var(--s8);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.erp-paper-preview {
  position: relative;
  width: auto;
  height: clamp(420px, 60vh, 620px);
  min-height: 0;
  margin: var(--s9);
  padding: var(--s10);
  overflow: auto;
  background: var(--raised);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.erp-paper-preview__brand {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.erp-paper-preview h3 {
  margin-top: var(--s9);
}
.erp-paper-preview p {
  margin-top: var(--s4);
  color: var(--muted);
}
.erp-paper-preview__rule {
  margin: var(--s8) 0;
  border-top: 1px solid var(--ink);
}
.erp-paper-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.erp-paper-preview th,
.erp-paper-preview td {
  padding: var(--s5);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.erp-paper-preview th {
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.erp-watermark {
  position: absolute;
  right: var(--s10);
  bottom: var(--s10);
  font-family: var(--f-mono);
  color: var(--blocked-ink) !important;
  border: 1px solid var(--blocked);
  padding: var(--s4) var(--s6);
  transform: rotate(-3deg);
  letter-spacing: 0.08em;
}
[data-action-binding-disposition=local-presentation-action] {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.erp-document-preview__toolbar .row {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media print {
  .erp-rail,
  .erp-topbar,
  .erp-boundary,
  .erp-dialog-scrim,
  mw-erp-screen > :not(.erp-document-preview),
  .erp-document-preview > .erp-drawer__head,
  .erp-document-preview > .erp-document-preview__toolbar {
    display: none !important;
  }
  .erp-shell,
  .erp-stage,
  .erp-stage > mw-erp-screen {
    display: block !important;
    width: auto;
    height: auto;
    overflow: visible;
    background: transparent;
  }
  .erp-document-preview {
    position: static;
    display: block;
    inset: auto;
    width: auto;
    max-height: none;
    transform: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  .erp-paper-preview {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
  }
}
@media (max-width: 1439px) {
  .erp-topbar {
    gap: var(--s5);
    padding-left: var(--s6);
    padding-right: var(--s6);
  }
  .erp-documents-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .erp-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .erp-disposition-ledger {
    grid-template-columns: 1fr;
  }
  .erp-disposition-ledger > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .erp-disposition-ledger > div:last-child {
    border-bottom: 0;
  }
  .erp-genealogy__node {
    grid-template-columns: 1fr 1fr;
  }
  .erp-sticky-frame {
    position: static;
  }
}
@media (max-width: 820px) {
  .prototype-board-narrow-note {
    display: block;
  }
  .erp-shell {
    display: block;
    position: relative;
  }
  .erp-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    transform: translateX(-100%);
    z-index: 80;
  }
  .erp-rail--open {
    transform: translateX(0);
  }
  .erp-nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: color-mix(in oklab, var(--ink) 28%, transparent);
  }
  .erp-stage {
    height: 100vh;
  }
  .erp-mobile-trigger {
    display: inline-flex;
    flex: none;
    min-width: 44px;
    min-height: 44px;
  }
  .erp-drawer-close {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
  }
  .erp-drawer-close svg {
    width: 20px;
    height: 20px;
  }
  .erp-tenant .micro,
  .erp-tenant .chip {
    display: none;
  }
  .erp-topbar-links {
    gap: var(--s3);
  }
  .erp-stage :is(.btn, .erp-icon-button) {
    min-height: 44px;
  }
  .erp-screenhead {
    padding-left: var(--s7);
    padding-right: var(--s7);
  }
  .erp-screenhead .screenmeta {
    display: none;
  }
  .erp-filterbar {
    padding-left: var(--s7);
    padding-right: var(--s7);
  }
  .erp-search {
    order: 2;
    width: 100%;
  }
  .erp-search__input {
    flex: 1;
    width: auto;
  }
  .erp-tabs {
    margin-left: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .erp-tabs button {
    min-height: 44px;
    white-space: nowrap;
  }
  .erp-source-inspector__panel {
    position: fixed;
    top: auto;
    right: var(--s4);
    bottom: var(--s4);
    left: var(--s4);
    width: auto;
    max-height: calc(100vh - var(--s8));
  }
  .erp-source-inspector__close {
    display: inline-flex;
  }
  .erp-icon-button.erp-mobile-trigger,
  .erp-icon-button.erp-drawer-close {
    display: inline-flex;
  }
  .erp-icon-button.erp-source-inspector__close {
    display: inline-flex;
  }
  .erp-source-inspector__docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .erp-region {
    padding: var(--s7);
  }
  .erp-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .erp-stepper button {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: var(--s4);
  }
  .erp-flow li {
    grid-template-columns: 1fr;
  }
  .erp-state-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .erp-state-card .frame-head {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .erp-state-card .prov {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .erp-document-preview {
    top: var(--s4);
    width: calc(100vw - var(--s4) - var(--s4));
    max-height: calc(100vh - var(--s4) - var(--s4));
  }
  .erp-paper-preview {
    width: auto;
    margin: var(--s6);
    padding: var(--s7);
  }
  .erp-frame-actions,
  .erp-drawer__foot,
  .erp-document-preview__toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .erp-topbar {
    align-items: flex-start;
  }
  .erp-tenant {
    width: 100%;
  }
  .erp-topbar-links {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }
  .erp-topbar-links .btn {
    flex: 1;
    justify-content: center;
  }
  .erp-boundary {
    overflow-wrap: anywhere;
  }
  .erp-stepper {
    grid-template-columns: minmax(0, 1fr);
  }
  .erp-stepper button {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .erp-stepper button:last-child {
    border-bottom: 0;
  }
  .erp-genealogy {
    padding-left: 0;
  }
  .erp-genealogy::before,
  .erp-genealogy__node::before {
    display: none;
  }
  .erp-genealogy__node {
    grid-template-columns: minmax(0, 1fr);
  }
  .erp-lifecycle-clauses article {
    grid-template-columns: minmax(0, 1fr);
  }
  .erp-map-frame {
    min-height: 380px;
  }
  .erp-map {
    min-height: 300px;
  }
  .erp-drawer {
    width: 100vw;
  }
  .erp-drawer__head,
  .erp-drawer__body {
    padding: var(--s7);
  }
  .erp-drawer__foot {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: var(--s6) var(--s7);
  }
  .erp-drawer__foot .btn {
    width: 100%;
  }
  .erp-empty-recovery {
    align-items: flex-start;
    flex-direction: column;
  }
  .erp-document-preview__toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .erp-document-preview__toolbar .row {
    width: 100%;
    justify-content: stretch;
  }
  .erp-document-preview__toolbar .btn {
    flex: 1;
  }
  .erp-paper-preview {
    margin: var(--s4);
    padding: var(--s6);
  }
}

/* src/prototype-styles.css */

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
