/* ==========================================================================
   Hexscroll — design system
   Tokens and components transcribed from the design bundle. Values here are the
   spec: colour, type, spacing, radius and shadow are deliberate, not defaults.
   ========================================================================== */

:root {
  /* text and structure */
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --text-4: #b4b4ba;
  --hairline: rgba(0, 0, 0, .09);
  --card-border: rgba(0, 0, 0, .11);
  --control-border: rgba(0, 0, 0, .16);
  --input-border: rgba(0, 0, 0, .14);

  --surface: #fff;
  --surface-raised: #fbfbfd;
  --table-header: #fafafa;
  --pane: #f7f7f9;
  --chrome: #fafafc;
  --app-bg: #f5f5f7;
  --desk: #e6e7ee;
  --fill-subtle: rgba(0, 0, 0, .05);
  --fill-subtle-2: rgba(0, 0, 0, .06);
  --track: #ececef;
  --row-hover: #f4f8ff;

  /* semantic */
  --accent: #007aff;
  --accent-ink: #0060df;
  --accent-tint: rgba(0, 122, 255, .13);
  --good: #34c759;
  --good-ink: #1b8a3f;
  --good-tint: rgba(52, 199, 89, .15);
  --warn: #ff9500;
  --warn-ink: #b25c00;
  --warn-tint: rgba(255, 149, 0, .16);
  --bad: #ff3b30;
  --bad-ink: #c9251c;
  --bad-tint: rgba(255, 59, 48, .13);
  --rev: #5856d6;
  --rev-ink: #4b3fbd;
  --rev-tint: rgba(88, 86, 214, .14);
  --expiring: #ffcc00;
  --expiring-ink: #8a6d00;
  --expiring-tint: rgba(255, 204, 0, .2);
  --incoming: #30b0c7;
  --deliveries: #af52de;
  --neutral: #c7c7cc;
  --neutral-2: #e3e3e6;

  /* radius */
  --r-window: 12px;
  --r-card: 10px;
  --r-card-lg: 11px;
  --r-catalog: 8px;
  --r-control: 7px;
  --r-control-sm: 6px;
  --r-thumb: 5.5px;
  --r-pill: 5px;
  --r-chip: 12px;

  /* shadow */
  --sh-card: 0 1px 2px rgba(0, 0, 0, .05);
  --sh-btn: 0 1px 1.5px rgba(0, 0, 0, .06);
  --sh-thumb: 0 1px 2px rgba(0, 0, 0, .12);
  --sh-accent: 0 4px 14px rgba(0, 122, 255, .28);

  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--app-bg);
}

body {
  font: 400 13px/1.45 var(--font-ui);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

input, select, textarea, button { font: inherit; color: inherit; outline: none; }
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.faint { color: var(--text-4); }
.right { text-align: right; }
.center { text-align: center; }
.push { margin-left: auto; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.c-good { color: var(--good-ink); }
.c-warn { color: var(--warn-ink); }
.c-bad  { color: var(--bad-ink); }
.c-accent { color: var(--accent-ink); }
.c-rev  { color: var(--rev-ink); }

/* ------------------------------------------------------------------ shell */

.app {
  height: 100vh;
  /* The layout does not reflow below this — it scrolls, as the design intends.
     1440 rather than the design canvas's 1380 because the line-item description keeps
     its spec detail rather than being truncated to the SKU name. */
  min-width: 1440px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
}

/* Nav row — the Apple-app blur is restored here (the design canvas stripped it). */
.nav {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: .5px solid var(--hairline);
  background: rgba(250, 250, 252, .85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  position: relative;
  z-index: 20;
}
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: var(--chrome); }
}

.brand { display: flex; align-items: center; gap: 7px; flex: none; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 5.5px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 700;
}
.brand-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.brand-chip {
  font-size: 10px; font-weight: 600; color: var(--text-2); background: var(--fill-subtle-2);
  padding: 2px 6px; border-radius: var(--r-pill); white-space: nowrap;
}
.nav-divider { width: 1px; height: 18px; background: rgba(0, 0, 0, .11); flex: none; }

.nav-items { display: flex; align-items: center; gap: 2px; flex: none; }
.nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-control);
  font-size: 13px; font-weight: 500; color: var(--text-1);
  white-space: nowrap; cursor: pointer;
}
.nav-item:hover { background: var(--fill-subtle); color: var(--text-1); }
.nav-item.is-active { background: var(--accent); color: #fff; }
.nav-item.is-active:hover { background: var(--accent-ink); color: #fff; }
.nav-count { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.nav-item.is-active .nav-count { color: rgba(255, 255, 255, .82); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 9px; flex: none; }

.alert-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--bad-ink);
  background: rgba(255, 59, 48, .11); border: .5px solid rgba(255, 59, 48, .24);
  border-radius: 14px; padding: 3px 9px; white-space: nowrap;
}

.search-field {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .055); border-radius: var(--r-control);
  padding: 4.5px 9px; width: 172px;
}
.search-field input { border: none; background: none; flex: 1; font-size: 12.5px; min-width: 0; }
.search-field input::placeholder { color: var(--text-4); }
.search-field .kbd { font-size: 11px; color: var(--text-4); }
.search-field.is-wide { width: 230px; }

.avatar {
  border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-weight: 600; flex: none;
}
.avatar-24 { width: 24px; height: 24px; font-size: 10px; }
.avatar-22 { width: 22px; height: 22px; font-size: 9.5px; }
.avatar-18 { width: 18px; height: 18px; font-size: 8.5px; }
.avatar-16 { width: 16px; height: 16px; font-size: 8px; }

/* Document row */
.docrow {
  height: 44px; flex: none; display: flex; align-items: center; gap: 11px;
  padding: 0 14px; border-bottom: .5px solid var(--hairline); background: var(--surface);
}
.docrow .crumb { color: var(--neutral); font-size: 12px; }
.docrow .docno { font: 600 13px var(--font-mono); letter-spacing: -.01em; }
.docrow .title { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.docrow .page-title { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.docrow .actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* Context strip */
.context {
  display: flex; align-items: center; gap: 20px; flex-wrap: nowrap;
  padding: 8px 14px; border-bottom: .5px solid var(--hairline);
  background: var(--surface-raised); font-size: 12.5px; flex: none;
}
.context .pair { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.context .pair > .k { color: var(--text-3); }
.context .pair > .v { font-weight: 600; }

/* Bottom bar */
.bottombar {
  flex: none; display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border-top: .5px solid var(--hairline);
  background: var(--surface-raised); font-size: 11.5px; color: var(--text-3);
}

.statusbar {
  height: 30px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-top: .5px solid var(--hairline);
  background: var(--chrome); font-size: 11.5px; color: var(--text-3);
}

/* Body layout */
.body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.split { flex: 1; min-height: 0; display: flex; align-items: stretch; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow: auto; }
.pad { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }

.inspector {
  flex: none; background: var(--pane); border-left: .5px solid var(--hairline);
  padding: 14px 13px; display: flex; flex-direction: column; gap: 12px; overflow: auto;
}
.inspector-306 { width: 306px; padding: 13px; gap: 11px; }
.inspector-330 { width: 330px; }
.inspector-334 { width: 334px; }

.rail {
  width: 262px; flex: none; background: var(--pane);
  border-right: .5px solid var(--hairline); display: flex; flex-direction: column;
}
.rail-250 { width: 250px; }

/* ---------------------------------------------------------------- controls */

.btn {
  font-size: 12px; font-weight: 500; color: var(--text-1); background: #fff;
  border: .5px solid var(--control-border); border-radius: var(--r-control-sm);
  padding: 4px 10px; cursor: pointer; box-shadow: var(--sh-btn);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn:hover { background: #f7f7f8; color: var(--text-1); }
.btn:active { background: #f0f0f2; }

.btn-primary {
  font-size: 12.5px; font-weight: 500; color: #fff; background: var(--accent);
  border: none; border-radius: var(--r-control); padding: 5px 12px; cursor: pointer;
  box-shadow: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; }

.btn-good { background: var(--good); color: #fff; border: none; border-radius: var(--r-control);
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; cursor: pointer; box-shadow: none; }
.btn-good:hover { background: #28a84a; color: #fff; }

.btn-danger { color: var(--bad-ink); background: #fff; border: .5px solid rgba(255, 59, 48, .4);
  border-radius: var(--r-control-sm); font-size: 12px; font-weight: 500; padding: 4px 10px;
  cursor: pointer; box-shadow: var(--sh-btn); }
.btn-danger:hover { background: rgba(255, 59, 48, .05); color: var(--bad-ink); }

.btn-sm { font-size: 11.5px; padding: 3px 8px; }

/* Disabled actions render greyed and carry a title explaining *why*. */
.btn[disabled], .btn-primary[disabled], .btn-good[disabled], .btn-danger[disabled],
.is-disabled {
  color: var(--text-4) !important; background: #f0f0f2 !important;
  border: .5px solid rgba(0, 0, 0, .06) !important; box-shadow: none !important;
  cursor: not-allowed !important;
}

/* Segmented control */
.segmented { display: flex; background: var(--track); border-radius: var(--r-control); padding: 2px; gap: 2px; flex: none; }
.segmented > * {
  font-size: 12px; font-weight: 500; color: var(--text-2); padding: 3px 11px;
  border-radius: var(--r-thumb); cursor: pointer; white-space: nowrap;
  background: none; border: none; text-decoration: none;
}
.segmented > .is-on { background: #fff; box-shadow: var(--sh-thumb); color: var(--text-1); }

/* Chips (stage filters, categories) */
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11px; font-weight: 600; border-radius: var(--r-chip); padding: 2.5px 9px;
  cursor: pointer; background: var(--fill-subtle); color: var(--text-2);
  white-space: nowrap; text-decoration: none; border: none;
}
.chip:hover { background: var(--fill-subtle-2); color: var(--text-2); }
.chip.is-on { background: var(--accent); color: #fff; }
.chip.is-on:hover { background: var(--accent-ink); color: #fff; }
.chip .n { opacity: .72; }

.chiprow {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  border-bottom: .5px solid var(--hairline); background: var(--surface-raised); flex: none;
}

/* Pills */
.pill {
  font-size: 11px; font-weight: 600; border-radius: var(--r-pill); padding: 2px 7px;
  white-space: nowrap; display: inline-block;
}
.pill-neutral  { color: var(--text-2); background: var(--fill-subtle-2); }
.pill-accent   { color: var(--accent-ink); background: var(--accent-tint); }
.pill-good     { color: var(--good-ink); background: var(--good-tint); }
.pill-warn     { color: var(--warn-ink); background: var(--warn-tint); }
.pill-bad      { color: var(--bad-ink); background: var(--bad-tint); }
.pill-rev      { color: var(--rev-ink); background: var(--rev-tint); }
.pill-expiring { color: var(--expiring-ink); background: var(--expiring-tint); }

/* Inputs */
.field {
  border: .5px solid var(--input-border); border-radius: var(--r-control-sm);
  padding: 4px 8px; font-size: 12.5px; background: #fff; width: 100%;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 122, 255, .13); }
.field-num { text-align: right; font-variant-numeric: tabular-nums; padding: 3px 6px; }
.field-sm { padding: 3px 8px; font-size: 12px; }

.searchbox {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border: .5px solid var(--input-border); border-radius: var(--r-control);
  padding: 5px 9px; box-shadow: 0 1px 1.5px rgba(0, 0, 0, .05);
}
.searchbox input { border: none; background: none; flex: 1; font-size: 12.5px; min-width: 0; }

.checkbox {
  width: 13px; height: 13px; border-radius: 3.5px; display: grid; place-items: center;
  cursor: pointer; font-size: 9px; font-weight: 700; line-height: 1;
  border: 1px solid var(--neutral); color: transparent; background: #fff;
}
.checkbox.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ cards */

.card {
  background: #fff; border: .5px solid var(--card-border); border-radius: var(--r-card);
  box-shadow: var(--sh-card); padding: 12px 13px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px;
}
.card-head .t { font-size: 12.5px; font-weight: 600; }
.card-head .m { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

.card-good { border-color: rgba(52, 199, 89, .35); }
.card-warn { border-color: rgba(255, 149, 0, .35); background: rgba(255, 149, 0, .05); }
.card-bad  { border-color: rgba(255, 59, 48, .35); background: rgba(255, 59, 48, .04); }

.notice { border-radius: var(--r-card); padding: 11px 13px; border: .5px solid; }
.notice .t { font-size: 11.5px; font-weight: 700; margin-bottom: 3px; }
.notice .b { font-size: 12.5px; line-height: 1.45; }
.notice-bad  { border-color: rgba(255, 59, 48, .28); background: rgba(255, 59, 48, .07); }
.notice-bad .t  { color: var(--bad-ink); }
.notice-good { border-color: rgba(52, 199, 89, .3); background: rgba(52, 199, 89, .06); }
.notice-good .t { color: var(--good-ink); }
.notice-warn { border-color: rgba(255, 149, 0, .3); background: rgba(255, 149, 0, .06); }
.notice-warn .t { color: var(--warn-ink); }

.section-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
.section-head .t { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.section-head .m { font-size: 12px; color: var(--text-3); }

.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.021em; line-height: 1.2; }
.page-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* KPI */
.kpis { display: grid; gap: 12px; }
.kpi {
  background: #fff; border: .5px solid var(--card-border); border-radius: var(--r-card-lg);
  padding: 13px 14px; box-shadow: var(--sh-card);
}
.kpi-accent { background: var(--accent); border: none; color: #fff; box-shadow: var(--sh-accent); }
.kpi .lab { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.kpi-accent .lab { color: #fff; }
.kpi .fig { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi-sm .fig { font-size: 30px; }
.kpi .note { font-size: 11.5px; color: var(--text-3); }
.kpi-accent .note { color: rgba(255, 255, 255, .85); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot-7 { width: 7px; height: 7px; }
.dot-6 { width: 6px; height: 6px; }
.dot-9 { width: 9px; height: 9px; }

.figure-26 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure-24 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure-20 { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-line { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

/* ----------------------------------------------------------------- tables */

.thead, .trow {
  display: grid; align-items: center; gap: 10px; padding: 7px 14px;
}
.thead {
  background: var(--table-header); border-bottom: .5px solid var(--hairline);
  font-size: 11px; font-weight: 600; color: var(--text-3); position: sticky; top: 0; z-index: 5;
}
.trow {
  padding: 8px 14px; border-bottom: .5px solid rgba(0, 0, 0, .07); font-size: 12.5px;
}
.trow:hover { background: var(--row-hover); }
.trow.is-selected { background: rgba(0, 122, 255, .07); }
.trow.is-current { background: rgba(0, 122, 255, .06); }
.trow-link { cursor: pointer; color: inherit; }
.trow-tight { padding: 7px 14px; }
.tfoot {
  display: grid; align-items: center; gap: 10px; padding: 9px 14px;
  background: var(--table-header); font-size: 12.5px; font-weight: 600;
}
.tband {
  padding: 5px 14px; background: var(--pane); border-bottom: .5px solid rgba(0, 0, 0, .07);
  font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: .02em;
}
.tsku { font: 600 11.5px var(--font-mono); }
.tdoc { font: 600 11.5px var(--font-mono); }
.empty { font-size: 11.5px; color: var(--text-3); padding: 12px 14px; line-height: 1.4; }

/* --------------------------------------------------------- bars and meters */

.bar { display: block; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar > span, .bar > div { display: block; height: 100%; border-radius: 2px; }
.bar-4 { height: 4px; }
.bar-6 { height: 6px; }
.bar-7 { height: 7px; border-radius: 4px; }
.bar-8 { height: 8px; }
.bar-10 { height: 10px; border-radius: 5px; }

.gauge { position: relative; height: 7px; border-radius: 4px; background: var(--track); overflow: visible; }
.gauge > .fill { height: 100%; border-radius: 4px; }
.gauge > .floor { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text-1); opacity: .55; }

.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 1.5px; }
.legend { display: flex; gap: 16px; margin-top: 9px; font-size: 11.5px; color: var(--text-2); flex-wrap: wrap; }
.legend > span { display: flex; align-items: center; gap: 5px; }

/* Column chart (quoted vs won) */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 112px; padding-top: 4px; }
.chart .grp { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.chart .col { width: 13px; border-radius: 2px 2px 0 0; }
.chart-labels { display: flex; gap: 14px; margin-top: 6px; font-size: 10.5px; font-weight: 600; color: var(--text-3); }

/* --------------------------------------------------------------- timeline */

.trail-step { display: flex; gap: 9px; }
.trail-step .rail-col { display: flex; flex-direction: column; align-items: center; flex: none; }
.trail-step .rail-line { width: 1.5px; flex: 1; background: var(--neutral-2); margin: 2px 0; }
.trail-step .body { padding-bottom: 11px; line-height: 1.4; }
.trail-step .body .t { font-size: 12.5px; font-weight: 600; }
.trail-step .body .m { font-size: 11.5px; color: var(--text-3); }
.trail-step:last-child .rail-line { display: none; }

.kv { display: flex; align-items: baseline; font-size: 12.5px; padding: 3px 0; gap: 8px; }
.kv .k { color: var(--text-3); }
.kv .v { margin-left: auto; font-variant-numeric: tabular-nums; }
.kv-rule { border-top: .5px solid rgba(0, 0, 0, .07); margin-top: 4px; padding-top: 7px; }

.list-row {
  display: flex; align-items: baseline; gap: 7px; font-size: 12px; padding: 3px 0;
}
.thread { display: flex; gap: 9px; }
.thread .body { line-height: 1.45; }
.thread .body .t { font-size: 12.5px; }
.thread .body .m { font-size: 11px; color: var(--text-3); }

/* catalog cards */
.catalog-card {
  background: #fff; border: .5px solid rgba(0, 0, 0, .1); border-radius: var(--r-catalog);
  padding: 8px 9px; margin-bottom: 6px; cursor: pointer;
}
.catalog-card:hover { border-color: rgba(0, 122, 255, .35); box-shadow: 0 1px 3px rgba(0, 122, 255, .12); }
.catalog-card .code { font: 600 11px var(--font-mono); }
.catalog-card .name { font-size: 11.5px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.badge {
  font-size: 10.5px; font-weight: 600; border-radius: 4px; padding: 1.5px 6px; white-space: nowrap;
}
.plus {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; line-height: 1; flex: none;
}

/* board */
.board { flex: 1; min-height: 0; overflow: auto; display: flex; gap: 12px; padding: 14px; background: var(--pane); align-items: flex-start; }
.board-col { width: 250px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.board-card {
  background: #fff; border: .5px solid var(--card-border); border-radius: 9px;
  box-shadow: var(--sh-card); padding: 10px 11px; cursor: pointer; display: block; color: inherit;
}
.board-card:hover { border-color: rgba(0, 122, 255, .3); color: inherit; }

/* forms */
.form-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px 14px; align-items: center; }
.form-grid label { font-size: 12.5px; color: var(--text-2); }
.form-note { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.error { font-size: 11.5px; color: var(--bad-ink); margin-top: 4px; }

.flash {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 44px; z-index: 200;
  background: rgba(29, 29, 31, .94); color: #fff; font-size: 12.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 9px; box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(20px);
}
.flash-bad { background: rgba(201, 37, 28, .95); }

/* login */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; background: var(--desk); min-width: 0;
}
.login-card {
  width: 380px; background: #fff; border-radius: var(--r-window); padding: 30px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .19), 0 2px 8px rgba(0, 0, 0, .08);
}

@media print {
  .nav, .docrow, .context, .bottombar, .statusbar, .no-print { display: none !important; }
  .app { height: auto; min-width: 0; overflow: visible; }
  body { background: #fff; overflow: visible; }
}
