/* =====================================================================
   OrbitPM · R&D Product Development System
   Design system — "precision instrument": petrol/graphite command rail,
   cool paper content, IBM Plex Sans for UI, IBM Plex Mono for every number.
   ===================================================================== */

:root {
  /* surfaces */
  --paper:      #eef1f4;
  --surface:    #ffffff;
  --surface-2:  #f6f8fa;
  --surface-3:  #eef2f6;

  /* ink */
  --ink:        #16212c;
  --ink-2:      #47586a;
  --ink-3:      #7a8a99;

  /* lines */
  --line:       #e2e8ee;
  --line-2:     #d3dbe3;

  /* brand — petrol / reactor steel */
  --petrol:     #0e4f5c;
  --petrol-600: #0c4653;
  --petrol-700: #0a3a44;
  --rail:       #0c1a20;   /* sidebar */
  --rail-2:     #10242c;
  --rail-line:  #1d3843;
  --rail-ink:   #9fb6bf;
  --rail-ink-2: #6d8a95;

  /* signal LEDs */
  --amber:      #c9800a;   --amber-soft: #fbeecd;   --amber-ink: #7a4d00;
  --green:      #1c7a50;   --green-soft: #d6efe1;   --green-ink: #0e5335;
  --red:        #b23a2e;   --red-soft:   #f6ddd9;   --red-ink:   #7c231a;
  --info:       #2b6f83;   --info-soft:  #d6ebf1;   --info-ink:  #144654;
  --muted-soft: #e7edf2;   --muted-ink:  #55677a;

  /* geometry */
  --r:   12px;
  --r-sm: 8px;
  --r-xs: 6px;
  --sh-1: 0 1px 2px rgba(16,33,44,.06), 0 1px 1px rgba(16,33,44,.04);
  --sh-2: 0 4px 16px rgba(16,33,44,.08), 0 1px 3px rgba(16,33,44,.06);
  --sh-rail: 2px 0 12px rgba(8,20,26,.18);

  /* type */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "IBM Plex Sans Condensed", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --nav-w: 258px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
::selection { background: var(--petrol); color: #fff; }

/* icons: sane default size so a bare inline SVG never expands to fill its box.
   Contextual rules below (.btn svg, .nav__link svg, …) override this. */
svg { width: 1em; height: 1em; vertical-align: middle; flex: none; }

/* numerals everywhere line up */
.num, .mono, td.num, .kpi__value, .metric { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }

/* ---------------------------------------------------------------- rail */
.rail {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--rail-2), var(--rail));
  border-right: 1px solid #081419;
  box-shadow: var(--sh-rail);
  display: flex; flex-direction: column;
}
.rail__brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--rail-line);
}
.brandmark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #16657420, transparent), var(--petrol);
  border: 1px solid #16788c;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 #2a9db3, 0 2px 8px rgba(0,0,0,.35);
}
.brandmark svg { width: 19px; height: 19px; }
.rail__brand .name { color: #eaf3f5; font-weight: 600; font-size: 15px; letter-spacing: .2px; line-height: 1; }
.rail__brand .sub  { color: var(--rail-ink-2); font-size: 10.5px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .13em; margin-top: 3px; }

.nav { padding: 12px 12px 20px; flex: 1; }
.nav__group { margin-top: 16px; }
.nav__group:first-child { margin-top: 4px; }
.nav__eyebrow {
  font-family: var(--cond); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--rail-ink-2);
  padding: 6px 12px 7px;
}
.nav__link {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; margin: 1px 0; border-radius: var(--r-sm);
  color: var(--rail-ink); font-size: 13.5px; font-weight: 450;
  position: relative; transition: background .12s, color .12s;
}
.nav__link svg { width: 17px; height: 17px; opacity: .8; flex: none; }
.nav__link:hover { background: #ffffff0d; color: #dcebee; }
.nav__link.is-active { background: #ffffff14; color: #fff; }
.nav__link.is-active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--petrol);
  box-shadow: 0 0 10px #12768a99;
}
.nav__link.is-active svg { opacity: 1; color: #4fc3d6; }
.nav__badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  background: #ffffff14; color: #bcd6dc; padding: 1px 7px; border-radius: 20px;
}
.nav__link .lock { margin-left: auto; opacity: .45; }

.rail__foot { padding: 14px 16px; border-top: 1px solid var(--rail-line); }
.rail__user { display: flex; align-items: center; gap: 10px; }
.rail__user .avatar { width: 32px; height: 32px; font-size: 12px; }
.rail__user .who { line-height: 1.2; min-width: 0; }
.rail__user .who b { color: #e7f1f3; font-weight: 500; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__user .who span { color: var(--rail-ink-2); font-size: 11px; }
.rail__user a.out { margin-left: auto; color: var(--rail-ink-2); }
.rail__user a.out:hover { color: #d9e7ea; }

/* ---------------------------------------------------------------- main */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px; height: 60px;
  background: #ffffffd9; backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; }
.crumbs .sep { color: var(--line-2); }
.topbar .search {
  margin-left: auto; position: relative; width: min(340px, 38vw);
}
.topbar .search input {
  width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface-2); padding: 0 12px 0 36px; font: inherit; font-size: 13px; color: var(--ink);
}
.topbar .search input:focus { outline: none; border-color: var(--petrol); background: #fff; box-shadow: 0 0 0 3px #0e4f5c1f; }
.topbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.topbar__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--ink-2); border: 1px solid transparent; }
.topbar__icon:hover { background: var(--surface-2); border-color: var(--line); }
.topbar__icon svg { width: 18px; height: 18px; }

/* page */
.page { padding: 26px; max-width: 1320px; width: 100%; margin: 0 auto; }
.page__head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page__head .titles { min-width: 0; }
.eyebrow { font-family: var(--cond); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--petrol); }
.page__title { font-size: 26px; letter-spacing: -.02em; margin-top: 3px; }
.page__sub { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.page__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-1); overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.card__head h3 { font-size: 14.5px; }
.card__head .eyebrow { margin-bottom: 0; }
.card__head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__body { padding: 18px; }
.card__body.flush { padding: 0; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.side   { grid-template-columns: 1fr 340px; align-items: start; }

/* ---------------------------------------------------------------- KPI */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1); position: relative; }
.kpi__label { font-family: var(--cond); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 600; }
.kpi__value { font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.05; margin-top: 8px; letter-spacing: -.01em; }
.kpi__value small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.kpi__foot { margin-top: 8px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.kpi__foot svg { width: 14px; height: 14px; color: var(--ink-3); }
.kpi__spark { position: absolute; right: 16px; top: 16px; }

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; line-height: 1;
  padding: 4px 9px 4px 8px; border-radius: 20px; white-space: nowrap;
  border: 1px solid transparent;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 2px #ffffff40; }
.chip--muted { background: var(--muted-soft); color: var(--muted-ink); }
.chip--info  { background: var(--info-soft);  color: var(--info-ink); }
.chip--amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip--green { background: var(--green-soft); color: var(--green-ink); }
.chip--red   { background: var(--red-soft);   color: var(--red-ink); }
.chip--ink   { background: #dbe3ea; color: #26333f; }
.chip.lg { font-size: 12.5px; padding: 5px 12px 5px 10px; }

/* role badge */
.badge-role { font-family: var(--cond); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line); }

/* avatar */
.avatar { border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--petrol), #1a7f93); font-size: 13px; flex: none; }

/* ---------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data thead th {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: .09em;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2);
  position: sticky; top: 0; white-space: nowrap;
}
table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num { text-align: right; }
table.data td.mono { font-family: var(--mono); color: var(--ink-2); }
table.data .rowlink { color: var(--petrol); font-weight: 500; }
table.data .rowlink:hover { text-decoration: underline; }
.cell-strong { font-weight: 500; color: var(--ink); }
.cell-code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* mini definition rows */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.dl > dt { font-size: 12.5px; color: var(--ink-3); padding: 9px 0; border-bottom: 1px solid var(--line); }
.dl > dd { margin: 0; font-size: 13px; color: var(--ink); padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1;
  padding: 9px 15px; border-radius: 9px; border: 1px solid transparent;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(.5px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--petrol); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--petrol-600); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn--subtle { background: var(--surface-3); color: var(--ink-2); }
.btn--subtle:hover { background: var(--line); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { filter: brightness(.94); }
.btn--sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed; opacity: 1;
  background: var(--surface-3); color: var(--ink-3); border-color: var(--line);
  box-shadow: none;
}
.btn[disabled] svg { opacity: .5; }

/* ---------------------------------------------------------------- gate rail (signature) */
.gaterail { display: flex; align-items: flex-start; gap: 0; padding: 6px 2px 2px; overflow-x: auto; }
.gaterail__node { display: flex; flex-direction: column; align-items: center; min-width: 78px; position: relative; flex: 1; }
.gaterail__node::after {
  content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px;
  background: var(--line-2); z-index: 0;
}
.gaterail__node:last-child::after { display: none; }
.gaterail__dot {
  width: 28px; height: 28px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; background: var(--surface);
  border: 2px solid var(--line-2); color: var(--ink-3);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.gaterail__dot svg { width: 14px; height: 14px; }
.gaterail__label {
  font-family: var(--cond); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); margin-top: 8px; text-align: center; line-height: 1.25; max-width: 84px;
}
/* states */
.gaterail__node.is-done   .gaterail__dot { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.gaterail__node.is-done::after { background: var(--petrol); }
.gaterail__node.is-done   .gaterail__label { color: var(--ink-2); }
.gaterail__node.is-current .gaterail__dot { background: #fff; border-color: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 4px var(--amber-soft); }
.gaterail__node.is-current .gaterail__label { color: var(--amber-ink); font-weight: 600; }
.gaterail__node.is-blocked .gaterail__dot { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.gaterail__node.is-blocked .gaterail__label { color: var(--red-ink); }

/* compact inline rail for list rows */
.railmini { display: inline-flex; gap: 3px; align-items: center; }
.railmini i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.railmini i.d { background: var(--petrol); }
.railmini i.c { background: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }
.railmini i.b { background: var(--red); }

/* ---------------------------------------------------------------- timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 16px 6px; }
.timeline__item::before { content: ""; position: absolute; left: -19px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--petrol); }
.timeline__item.approve::before { background: var(--green); border-color: var(--green); }
.timeline__item.reject::before  { background: var(--red);  border-color: var(--red); }
.timeline__meta { font-size: 12px; color: var(--ink-3); }
.timeline__meta .who { color: var(--ink-2); font-weight: 500; }
.timeline__body { font-size: 13px; color: var(--ink); margin-top: 1px; }

/* ---------------------------------------------------------------- empty / placeholder */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 10px; }
.empty h4 { color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.placeholder {
  border: 1px dashed var(--line-2); border-radius: var(--r); background:
    repeating-linear-gradient(135deg, #fff, #fff 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  padding: 46px 26px; text-align: center;
}
.placeholder .tag { display: inline-flex; align-items:center; gap:7px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; color: var(--petrol); background: var(--info-soft); padding: 4px 11px; border-radius: 20px; }
.placeholder h3 { font-size: 18px; margin: 14px 0 6px; }
.placeholder p { color: var(--ink-2); max-width: 460px; margin: 0 auto; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 10px 12px; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px #0e4f5c1f; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* flash */
.flash-wrap { position: fixed; top: 16px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; box-shadow: var(--sh-2); font-size: 13px; background: #fff; border: 1px solid var(--line); animation: flashin .25s ease; }
.flash.success { border-left: 3px solid var(--green); }
.flash.error   { border-left: 3px solid var(--red); }
.flash.info    { border-left: 3px solid var(--info); }
@keyframes flashin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* misc */
.hr { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.right { text-align: right; }
.stack-sm > * + * { margin-top: 8px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex.between { justify-content: space-between; }
.spread { margin-left: auto; }

/* ---------------------------------------------------------------- stage workbench */
.ctx { display: flex; align-items: flex-start; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1); margin-bottom: 18px; }
.ctx__left { min-width: 0; }
.ctx__left .cell-code { color: var(--petrol); font-weight: 500; }
.ctx__name { font-weight: 600; font-size: 16px; margin: 2px 0; }
.ctx__right { margin-left: auto; text-align: right; white-space: nowrap; }

.gatebanner { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px; border: 1px solid; }
.gatebanner svg { width: 18px; height: 18px; flex: none; }
.gatebanner b { font-weight: 600; }
.gatebanner--amber { background: var(--amber-soft); border-color: #e6cf95; color: var(--amber-ink); }
.gatebanner--green { background: var(--green-soft); border-color: #a9d8c0; color: var(--green-ink); }
.gatebanner--red   { background: var(--red-soft);   border-color: #e0b0a9; color: var(--red-ink); }
.gatebanner--info  { background: var(--info-soft);  border-color: #a8d3e0; color: var(--info-ink); }
.gatebanner .spread { margin-left: auto; }

.decision textarea { min-height: 56px; }
.linetools { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
table.editable td { padding: 6px 8px; }
table.editable input, table.editable select { padding: 7px 9px; font-size: 13px; }
table.editable .rmrow { color: var(--ink-3); cursor: pointer; background: none; border: none; padding: 4px; }
table.editable .rmrow:hover { color: var(--red); }
.col-num { width: 110px; } .col-unit { width: 110px; } .col-rm { width: 44px; }

/* ---------------------------------------------------------------- login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth__brandpane {
  background: linear-gradient(160deg, var(--rail-2), var(--rail));
  color: #dcedf0; position: relative; overflow: hidden;
  padding: 48px; display: flex; flex-direction: column;
}
.auth__brandpane::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent);
}
.auth__brandpane .top { display: flex; align-items: center; gap: 12px; position: relative; }
.auth__brandpane .top .name { color: #eaf3f5; font-weight: 600; font-size: 17px; }
.auth__brandpane .top .sub { color: var(--rail-ink-2); font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.auth__hero { margin-top: auto; position: relative; }
.auth__hero h1 { color: #f2f8f9; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; max-width: 15ch; }
.auth__hero p { color: var(--rail-ink); font-size: 14px; margin-top: 12px; max-width: 42ch; }
.auth__rail { display: flex; gap: 6px; margin-top: 26px; position: relative; }
.auth__rail i { flex: 1; height: 4px; border-radius: 3px; background: #ffffff1a; }
.auth__rail i.on { background: linear-gradient(90deg, #12768a, #2aa7bd); }
.auth__formpane { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.auth__card { width: 100%; max-width: 380px; }
.auth__card h2 { font-size: 22px; letter-spacing: -.01em; }
.auth__card .lead { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 22px; }
.auth__demo { margin-top: 18px; font-size: 12px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.auth__demo b { color: var(--ink-2); }
.auth__demo code { font-family: var(--mono); font-size: 11.5px; color: var(--petrol); }

/* ---------------------------------------------------------------- responsive */
.rail__toggle { display: none; }
@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .grid.side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; z-index: 50; width: var(--nav-w); transform: translateX(-100%); transition: transform .2s; }
  .rail.open { transform: none; }
  .rail__toggle { display: grid; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__brandpane { display: none; }
  .scrim { position: fixed; inset: 0; background: #0c1a2066; z-index: 45; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
