/* LeadGen redesign: "print and marker". One stylesheet. Tokens are variables, layout follows the container width.
   Content widths: form 760, reading 1040, table 1360. Spacing: 4 8 12 16 24 40 64. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
html, body { height: 100%; }
body { margin: 0; background: #FFFFFF; }
:root[data-theme="dark"] body { background: #17181B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) body { background: #17181B; } }
.app { container-type: inline-size; height: 100dvh; background: var(--paper); }
.app.doc { height: auto; }
/* accent: blue by default; the header menu and Settings > Appearance set data-accent on <html> */
:root, :root[data-accent="blue"] { --a: #0A66E4; --a-hover: #0855C0; --a-wash-l: #DCEAFF; --a-wash-d: #10305C; --on-a: #FFFFFF; --a-edge: #0A66E4; }
:root[data-accent="green"]  { --a: #1A7F37; --a-hover: #14692C; --a-wash-l: #DDF3E2; --a-wash-d: #123D1E; --on-a: #FFFFFF; --a-edge: #1A7F37; }
:root[data-accent="purple"] { --a: #7A4DD8; --a-hover: #643BBD; --a-wash-l: #EAE2FB; --a-wash-d: #2F2259; --on-a: #FFFFFF; --a-edge: #7A4DD8; }
:root[data-accent="orange"] { --a: #FF9F0A; --a-hover: #F08C00; --a-wash-l: #FFE7C2; --a-wash-d: #4A3210; --on-a: #0F1012; --a-edge: #0F1012; }
:root[data-accent="yellow"] { --a: #FFD21F; --a-hover: #F5C400; --a-wash-l: #FFF1A6; --a-wash-d: #4A4010; --on-a: #0F1012; --a-edge: #0F1012; }
/* theme or accent change: colors cross-fade for a moment (html gets .theming for 400ms) */
.theming .app, .theming .app *, .theming .app *::before, .theming .app *::after { transition: background-color var(--t-base) var(--e-std), color var(--t-base) var(--e-std), border-color var(--t-base) var(--e-std), box-shadow var(--t-base) var(--e-std) !important; }
.app, .tokens {
  --paper: #FFFFFF; --desk: #F3F4F4; --ink: #0F1012; --graphite: #50545B; --rule: #D9DBDD; --edge: #7D8188;
  --marker: var(--a); --marker-dark: var(--a-hover); --wash: var(--a-wash-l); --pen: #B42318; --on-marker: var(--on-a); --marker-edge: var(--a-edge); --scrim: rgba(15, 16, 18, .32);
  --shadow: 0 1px 2px rgba(15, 16, 18, .08), 0 12px 32px rgba(15, 16, 18, .10);
  --e-out: cubic-bezier(.32, .72, 0, 1); --e-std: cubic-bezier(.25, .1, .25, 1); --e-in: cubic-bezier(.4, 0, 1, 1); --e-pop: cubic-bezier(.34, 1.4, .64, 1);
  --t-press: 100ms; --t-hover: 150ms; --t-fast: 200ms; --t-base: 300ms; --t-sheet: 450ms; --t-exit: 180ms; --t-wait: 400ms; --t-sheet-exit: 280ms;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px; --s7: 64px; --r: 4px;
  --w-form: 760px; --w-read: 1040px; --w-table: 1360px;
  font-family: 'Archivo', system-ui, sans-serif; font-stretch: 90%; font-size: 14px; line-height: 20px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
:root[data-theme="dark"] .app, :root[data-theme="dark"] .tokens {
  --paper: #17181B; --desk: #0F1012; --ink: #F2F3F3; --graphite: #A4A8AE; --rule: #2C2E33; --edge: #7D8188;
  --wash: var(--a-wash-d); --pen: #FF6A5E; --scrim: rgba(0, 0, 0, .56);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .app, :root:not([data-theme="light"]):not([data-theme="dark"]) .tokens {
    --paper: #17181B; --desk: #0F1012; --ink: #F2F3F3; --graphite: #A4A8AE; --rule: #2C2E33; --edge: #7D8188;
    --wash: var(--a-wash-d); --pen: #FF6A5E; --scrim: rgba(0, 0, 0, .56);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
  }
}
.app *, .app *::before, .app *::after, .tokens *, .tokens *::before, .tokens *::after { box-sizing: border-box; }
.app :focus-visible, .tokens :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.app a, .tokens a { color: var(--ink); }
.app p, .app h1, .app h2, .app h3 { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before, .app *::after { animation: none !important; transition: none !important; }
  .app .btn.busy::before, .app .act.busy::before, .app .wait::before { animation: spin .7s linear infinite !important; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -48px; z-index: 60; padding: var(--s2) var(--s3); background: var(--ink); color: var(--paper) !important; font-weight: 600; }
.skip:focus { top: var(--s2); }

/* shell: the header stays, the page scrolls under it, bars dock at the bottom edge */
.shell { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--paper); }
.scroll { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
.scroll.desk { background: var(--desk); }
.top { display: flex; flex: none; align-items: center; gap: 32px; height: 56px; padding: 0 max(40px, calc(50% - 640px)); border-bottom: 1px solid var(--rule); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; font-stretch: 100%; letter-spacing: -.01em; text-decoration: none; }
.brand i { width: 12px; height: 12px; background: var(--marker); border: 1px solid var(--marker-edge); }
.nav { display: flex; gap: 4px; align-self: stretch; }
.nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--graphite); font-weight: 500; text-decoration: none; transition: color var(--t-hover) var(--e-std); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: transparent; transform-origin: left center; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav a[aria-current="page"]::after { background: var(--ink); }
.count { min-width: 18px; padding: 0 5px; background: var(--marker); color: var(--on-marker); font-size: 12px; line-height: 18px; font-weight: 700; text-align: center; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.kbd { padding: 0 5px; border: 1px solid var(--rule); border-radius: 3px; font-size: 12px; line-height: 18px; color: var(--graphite); white-space: nowrap; }
.main { flex: 1 0 auto; width: 100%; max-width: var(--w-table); margin: 0 auto; padding: 40px 40px 64px; }
.main.bleed { display: flex; flex-direction: column; max-width: none; padding: 0; }
.wrap { width: 100%; max-width: var(--w-table); margin: 0 auto; padding: 0 40px; }
.w-form { max-width: var(--w-form); }
.w-read { max-width: var(--w-read); }
.stack { display: flex; flex-direction: column; }
.stack.start { align-items: flex-start; }
.cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.cols > * { flex: 1 1 400px; min-width: 0; }
.cols > .wide { flex: 3 1 560px; }
.cols > .narrow { flex: 1 1 320px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bar.base { align-items: baseline; }
.bar.end { align-items: flex-end; }
.grow { flex: 1 1 0; min-width: 0; }
.grow.b360 { flex-basis: 360px; }
.right { margin-left: auto; }
.g2 { gap: 2px; } .g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g40 { gap: 40px; } .g64 { gap: 64px; }
.pt8 { padding-top: 8px; } .pt24 { padding-top: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; }
.sws { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }

/* type: 12, 13, 14, 16, 20, 30, 48 */
.sentence { max-width: 28ch; font-size: 48px; line-height: 52px; font-weight: 800; font-stretch: 100%; letter-spacing: -.02em; text-wrap: balance; }
.mk { padding: 0 .12em; margin: 0 -.04em; background: var(--wash); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.title { font-size: 30px; line-height: 36px; font-weight: 800; font-stretch: 100%; letter-spacing: -.015em; }
.h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.lead { max-width: 60ch; font-size: 16px; line-height: 24px; }
.lab { font-size: 13px; line-height: 20px; font-weight: 700; }
.note { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--graphite); }
.fig { font-size: 30px; line-height: 32px; font-weight: 700; font-stretch: 72%; }
.g { color: var(--graphite); }
.b { font-weight: 600; }
.pen { color: var(--pen); font-weight: 600; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c1 { flex: none; width: 24px; } .c2 { flex: none; width: 56px; } .c3 { flex: none; width: 96px; } .c4 { flex: none; width: 148px; }
.prose { max-width: 80ch; }
.tag { padding: 2px 8px; border: 1px solid var(--rule); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t-hover) var(--e-std), border-color var(--t-hover) var(--e-std), color var(--t-hover) var(--e-std), opacity var(--t-hover) var(--e-std), scale var(--t-press) var(--e-std); }
.btn:hover { background: var(--desk); }
.btn:active:not(:disabled) { scale: .97; }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ink:hover { opacity: .86; }
.btn.go { background: var(--marker); border-color: var(--marker-edge); color: var(--on-marker); font-weight: 700; }
.btn.go:hover { background: var(--marker-dark); }
.btn:disabled, .btn.go:disabled, .btn.ink:disabled { background: var(--desk); border-color: var(--rule); color: var(--graphite); cursor: not-allowed; transform: none; opacity: 1; }
.btn.sm { height: 32px; padding: 0 12px; }
.btn.busy::before, .act.busy::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.act.busy { display: inline-flex; align-items: center; gap: 8px; color: var(--graphite); text-decoration: none; cursor: progress; }
.caret::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.act { display: inline-block; padding: 6px 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.act { transition: color var(--t-hover) var(--e-std), opacity var(--t-press) var(--e-std); }
.act:hover { text-decoration-thickness: 2px; }
.act:active:not(:disabled) { opacity: .6; }
.act:disabled { color: var(--graphite); text-decoration: none; cursor: not-allowed; }
.act.plain { text-decoration: none; }
.act.wrapok { white-space: normal; text-align: left; }
.x { width: 24px; padding: 6px 0; text-align: center; text-decoration: none; color: var(--graphite); }
.field { height: 40px; min-width: 0; padding: 0 12px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; }
.field { transition: border-color var(--t-hover) var(--e-std), box-shadow var(--t-hover) var(--e-std), background-color var(--t-hover) var(--e-std); }
.field::placeholder { color: var(--graphite); opacity: .8; }
.field:disabled { background: var(--desk); border-color: var(--rule); color: var(--graphite); cursor: not-allowed; }
.field.err { border-color: var(--pen); box-shadow: inset 0 0 0 1px var(--pen); }
.field.sm { height: 32px; }
textarea.field { height: auto; padding: 10px 12px; line-height: 20px; resize: vertical; }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.fl .field { font-weight: 400; }
.fl .pen, .errmsg { font-size: 13px; }
.selw { position: relative; display: inline-flex; }
.selw select { width: 100%; padding-right: 36px; -webkit-appearance: none; appearance: none; }
.selw::after { content: ""; position: absolute; right: 14px; top: calc(50% - 5px); width: 6px; height: 6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.cb { -webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; flex: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--edge); border-radius: 3px; background: var(--paper); vertical-align: middle; cursor: pointer; }
.cb:checked, .cb.part { background: var(--ink); border-color: var(--ink); }
.cb:checked::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg); }
.cb.part::after { content: ""; width: 8px; height: 2px; margin: 0; border: 0; background: var(--paper); transform: none; }
.ck { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; }
.hit { display: grid; place-items: center start; width: 32px; height: 44px; cursor: pointer; }
.sw { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.sw button { height: 32px; min-width: 76px; padding: 0 12px; border: 0; border-left: 1px solid var(--edge); background: var(--paper); color: var(--graphite); font: inherit; font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) var(--e-std), color var(--t-hover) var(--e-std); }
.sw button:first-child { border-left: 0; }
.sw button[aria-checked="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.sw button:disabled { background: var(--desk); color: var(--graphite); cursor: not-allowed; }
.sw button:focus-visible { outline-offset: -4px; outline-color: var(--marker); }
.sw.wrapsw { flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; padding: 4px 10px 8px; }
.swatch { width: 28px; height: 28px; padding: 0; border: 1px solid var(--edge); border-radius: 50%; cursor: pointer; transition: scale var(--t-press) var(--e-std), box-shadow var(--t-hover) var(--e-std); }
.swatch:active { scale: .92; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatch[data-accent-chip="blue"] { background: #0A66E4; }
.swatch[data-accent-chip="green"] { background: #1A7F37; }
.swatch[data-accent-chip="purple"] { background: #7A4DD8; }
.swatch[data-accent-chip="orange"] { background: #FF9F0A; }
.swatch[data-accent-chip="yellow"] { background: #FFD21F; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { position: relative; transition: color var(--t-hover) var(--e-std); display: flex; flex: none; align-items: center; gap: 6px; padding: 10px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--graphite); font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tabs a::after, .tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: transparent; transform-origin: left center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after { background: var(--ink); }
.tabs :focus-visible { outline-offset: -2px; }
.tabsw { position: relative; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; min-width: 232px; padding: 6px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); font-weight: 400; }
.pop.up { top: auto; bottom: calc(100% + 6px); }
.pop.left { right: auto; left: 0; }
.pop.w300 { min-width: 300px; }
.pop.form { gap: 12px; padding: 16px; }
.pop a, .pop button.it { transition: background-color var(--t-hover) var(--e-std); display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border: 0; border-radius: 3px; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.pop a:hover, .pop button.it:hover { background: var(--desk); }
.pop button.it:disabled { color: var(--graphite); opacity: .6; background: none; cursor: not-allowed; }
.pop button.it.pen { color: var(--pen); }
.pop .kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; }
.pop hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--rule); }
.pop .note { padding: 6px 10px 2px; }
.pop.form .note { padding: 0; }
details.menu[open] > .pop { animation: pop-in var(--t-fast) var(--e-out); transform-origin: top right; }
details.menu[open] > .pop.left { transform-origin: top left; }
details.menu[open] > .pop.up { transform-origin: bottom right; }
details.menu[open] > .pop.up.left { transform-origin: bottom left; }
details.menu.closing > .pop { animation: pop-out var(--t-exit) var(--e-in) forwards; }
.scrim { position: absolute; inset: 0; z-index: 14; border: 0; background: var(--scrim); cursor: default; animation: fade-in var(--t-base) var(--e-std); }
.scrim.below { top: 56px; }
.scrim.out { animation: fade-out var(--t-fast) var(--e-std) forwards; }
.dialog { position: absolute; left: 50%; top: 22%; z-index: 41; display: flex; flex-direction: column; gap: 12px; width: min(440px, calc(100% - 32px)); padding: 24px; animation: pop-in var(--t-base) var(--e-out); border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); transform: translateX(-50%); }
.dialog.out { animation: pop-out var(--t-exit) var(--e-in) forwards; }
.dialog + .scrim, .scrim.over { z-index: 40; }
.palette { position: absolute; left: 50%; top: 72px; z-index: 41; display: flex; flex-direction: column; width: min(560px, calc(100% - 32px)); padding: 6px; animation: drop-in var(--t-base) var(--e-out); border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); transform: translateX(-50%); }
.palette .field { margin: 4px; }
.palette.out { animation: pop-out var(--t-exit) var(--e-in) forwards; }
.palette a { transition: background-color var(--t-hover) var(--e-std); }
.palette a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 3px; text-decoration: none; }
.palette a:hover, .palette a.hot { background: var(--desk); }
.palette .note { padding: 6px 10px 2px; }
.palette hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--rule); }

/* rows and tables */
.rows { border-top: 1px solid var(--rule); }
.rows.strong { border-top-color: var(--ink); }
.row { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.row.base { align-items: baseline; }
a.row { transition: background-color var(--t-hover) var(--e-std), opacity var(--t-press) var(--e-std); }
a.row:hover { background: var(--desk); }
a.row:active { opacity: .7; }
.row.wait { box-shadow: inset 3px 0 0 var(--marker); padding-left: 12px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--graphite); text-align: left; white-space: nowrap; }
.tbl td { height: 44px; padding: 0 12px 0 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { transition: background-color var(--t-hover) var(--e-std); }
.tbl tbody tr:hover td { background: var(--desk); }
.tbl tr.sel td { background: var(--desk); }
.tbl tr.kb td { box-shadow: inset 0 2px 0 var(--ink), inset 0 -2px 0 var(--ink); }
.tbl .num { text-align: right; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; text-align: right; }
.tbl a.name { font-weight: 600; text-decoration: none; }
.tbl a.name:hover { text-decoration: underline; }
.tbl .c-cb { width: 32px; }
.tbl .c-fit { width: 44px; }
.tbl .c-firm { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.th { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.th:hover { color: var(--ink); }
.th.sorted { color: var(--ink); }
.th.sorted::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: var(--ink); border-bottom-width: 0; vertical-align: middle; }
.th.sorted.asc::after { border-top-width: 0; border-bottom: 4px solid var(--ink); }
.sk { display: block; height: 12px; border-radius: 2px; background: var(--desk); animation: pulse 1.2s ease-in-out infinite; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 40px 0; border-bottom: 1px solid var(--rule); }
.empty.strong { border-top: 1px solid var(--ink); }
.drop { align-items: center; padding: 40px 24px; border: 1px dashed var(--edge); }
.only-stack { display: none; }
.wy { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--marker); border: 1px solid var(--marker-edge); vertical-align: baseline; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 4px; color: var(--graphite); }
.band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 24px; background: var(--desk); }
.band.red { background: none; border: 2px solid var(--pen); }
.band.yel { background: var(--wash); }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px; background: var(--desk); }

/* the line: one pipeline, eight stations, the approval gate on the segment between Drafted and Approved */
.line { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.st { position: relative; min-width: 0; padding-right: 12px; }
.st .fig { display: flex; align-items: flex-end; height: 40px; padding-bottom: 8px; color: inherit; text-decoration: none; }
.st a.fig:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.trk { position: relative; height: 12px; }
.trk::before { content: ""; position: absolute; left: 0; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.trk::after { content: ""; position: absolute; left: 14px; right: -8px; top: 5px; border-top: 2px solid var(--ink); }
.trk i { display: none; }
.st.m-ask .trk::after { border-top-style: dashed; }
.st.m-hand .trk::after { border-top-style: dotted; }
.st.m-off .trk::after { border-top-color: var(--rule); }
.st.m-end .trk::after { display: none; }
.st.todo .trk::before { background: var(--paper); border: 1.5px solid var(--edge); }
.st.todo .fig { color: var(--graphite); }
.st.gate .trk i { display: block; position: absolute; left: calc(50% - 5px); top: -1px; z-index: 1; width: 14px; height: 14px; background: var(--paper); border: 1.5px solid var(--ink); }
.st.gate.wait .trk i { background: var(--marker); border: 1px solid var(--marker-edge); }
.st .nm { margin-top: 8px; font-weight: 600; }
.st .note { margin-top: 2px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.key > span { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 28px; border-top: 2px solid var(--ink); }
.key i.ask { border-top-style: dashed; } .key i.hand { border-top-style: dotted; } .key i.off { border-top-color: var(--rule); }
.key i.gsq { width: 12px; height: 12px; border: 1.5px solid var(--ink); }
.key .ink { color: var(--ink); font-weight: 600; }
.mini { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 10px; }
.mini i { position: relative; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--edge); }
.mini i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 8px; height: 1.5px; background: var(--edge); }
.mini i:last-child { margin-right: 0; }
.mini i:last-child::after { display: none; }
.mini i.on { background: var(--ink); border-color: var(--ink); }
.mini i.on::after { background: var(--ink); }
.mini i.at { box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 3px var(--ink); }
.mini i.at::after { background: var(--edge); }
.mini i.wait { background: var(--marker); border-color: var(--marker-edge); border-radius: 0; box-shadow: none; }
.tbl tr:hover .mini i.at, .tbl tr.sel .mini i.at { box-shadow: 0 0 0 1.5px var(--desk), 0 0 0 3px var(--ink); }
.seq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seq.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sq { position: relative; padding: 20px 4px 6px 0; border: 0; background: none; color: var(--graphite); font: inherit; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; }
.sq::before { content: ""; position: absolute; left: 0; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.sq::after { content: ""; position: absolute; left: 14px; right: 4px; top: 6px; border-top: 2px solid var(--ink); }
.sq:last-child::after { display: none; }
.sq.read::before { background: var(--ink); }
.sq.next::after { border-top-color: var(--rule); }
.sq[aria-current="true"] { color: var(--ink); font-weight: 700; }
.sq[aria-current="true"]::before { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }

/* the letter: always a white sheet with its own light tokens, in both themes */
.sheet { position: relative; width: 100%; max-width: 680px; --paper: #FFFFFF; --ink: #0F1012; --graphite: #50545B; --rule: #D9DBDD; --edge: #7D8188; --desk: #F3F4F4; --wash: var(--a-wash-l); --pen: #B42318; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.sheet .hd { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px 32px; border-bottom: 1px solid var(--rule); }
.sheet .hd input { width: 100%; height: 28px; padding: 0; border: 0; border-bottom: 1px dashed transparent; background: none; color: var(--ink); font: inherit; }
.sheet .hd input:hover { border-bottom-color: var(--edge); }
.sheet .hd .v { min-height: 28px; line-height: 28px; }
.letter { padding: 28px 32px; font-family: Arial, Helvetica, sans-serif; font-stretch: 100%; font-size: 15px; line-height: 22px; }
.letter p + p { margin-top: 14px; }
.letter .foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 18px; color: var(--graphite); }
.letter [contenteditable]:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.letter.quote { color: var(--graphite); }
.need { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin: 4px -10px; background: var(--wash); color: var(--ink); font-family: 'Archivo', system-ui, sans-serif; font-stretch: 90%; font-size: 13px; line-height: 20px; font-weight: 600; }
.need .field { flex: 1 1 200px; height: 32px; }
.need .pen { flex-basis: 100%; }
.need.demo { margin: 0; }
.fold { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; width: 100%; min-height: 56px; padding: 8px 32px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fold { transition: background-color var(--t-hover) var(--e-std), opacity var(--t-press) var(--e-std); }
.fold:active { opacity: .7; }
.fold:hover { background: var(--desk); }
.fold .clip { display: block; }
.okstamp { position: absolute; right: 32px; top: 76px; z-index: 2; padding: 6px 12px; border: 2px solid var(--ink); background: var(--paper); font-family: 'Archivo', system-ui, sans-serif; font-stretch: 90%; font-size: 16px; font-weight: 800; transform: rotate(-4deg); animation: stamp-in var(--t-base) var(--e-pop); }
.sheet.slide { animation: next-in var(--t-base) var(--e-out); }
.toast { position: absolute; left: 50%; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); padding: 10px 12px 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: var(--shadow); transform: translateX(-50%); animation: rise-in var(--t-base) var(--e-out); }
.toast .act { color: var(--paper); }
.toast.out { animation: rise-out var(--t-fast) var(--e-in) forwards; }
.toast.demo { position: static; align-self: flex-start; transform: none; animation: none; }
.shell.docked .toast { bottom: 128px; }
.side { position: absolute; top: 56px; right: 0; bottom: 0; z-index: 15; display: flex; flex-direction: column; width: 400px; max-width: 100%; border-left: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); animation: side-in var(--t-sheet) var(--e-out); }
.side .body { flex: 1; min-height: 0; overflow: auto; padding: 8px 24px 24px; }
.side .hd, .side .ft { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }
.side .ft { border-top: 1px solid var(--rule); }
.side.out { animation: side-out var(--t-sheet-exit) var(--e-in) forwards; }
.side.demo { position: relative; top: 0; height: 320px; box-shadow: none; border: 1px solid var(--ink); animation: none; }
.dock { position: sticky; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 680px; margin-top: 16px; padding: 12px 0 10px; border-top: 1px solid var(--edge); background: var(--desk); }
.dock .dbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dock .dbtns .wide { min-width: 196px; }
.dock .dnote { display: flex; align-items: baseline; gap: 16px; min-height: 20px; }
.dock .dnote > p { flex: 1; min-width: 0; margin: 0; }
.dock.one { flex-direction: row; align-items: center; }
.dock:has(details[open]) { z-index: 25; }
.dock .sub { flex-basis: 100%; }
.bulkbar { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 8px max(40px, calc(50% - 640px)); border-top: 1px solid var(--ink); background: var(--paper); }
.bulkbar.demo { padding: 8px 16px; border: 1px solid var(--ink); }
.bulkbar[data-m] { animation: rise-in var(--t-base) var(--e-out); }
.sw-box { width: 100%; aspect-ratio: 3 / 2; border: 1px solid var(--rule); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes fade-in   { from { opacity: 0; } }
@keyframes fade-out  { to   { opacity: 0; } }
@keyframes rise-in   { from { opacity: 0; translate: 0 8px; } }
@keyframes rise-out  { to   { opacity: 0; translate: 0 8px; } }
@keyframes pop-in    { from { opacity: 0; scale: .96; } }
@keyframes pop-out   { to   { opacity: 0; scale: .97; } }
@keyframes drop-in   { from { opacity: 0; translate: 0 -8px; scale: .98; } }
@keyframes side-in   { from { translate: 100% 0; } }
@keyframes side-out  { to   { translate: 100% 0; } }
@keyframes sheet-up  { from { translate: 0 100%; } }
@keyframes sheet-down{ to   { translate: 0 100%; } }
@keyframes next-in   { from { opacity: 0; translate: 24px 0; } }
@keyframes stamp-in  { from { opacity: 0; scale: 1.3; } }
.still { animation: none !important; }
#ghostBox, #ghostBox * { pointer-events: none !important; }
/* a row that is new on screen fades in; it is keyed, so repaints do not replay it */
tr[data-m], .q[data-m] { animation: fade-in var(--t-fast) var(--e-std); }
/* plain disclosures ease open where the browser supports it */
.app { interpolate-size: allow-keywords; }
.app details:not(.menu)::details-content { block-size: 0; opacity: 0; overflow: clip;
  transition: block-size var(--t-base) var(--e-out), opacity var(--t-fast) var(--e-std), content-visibility var(--t-base) allow-discrete; }
.app details:not(.menu)[open]::details-content { block-size: auto; opacity: 1; }

/* outreach: queue, letter on the desk, rail. Same 1360 container as every other page. */
.tri { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; flex: 1; width: 100%; max-width: var(--w-table); margin: 0 auto; padding: 0 40px; }
.queue { padding: 16px 0 24px; }
.q { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 8px; align-items: center; width: 100%; min-height: 52px; padding: 6px 16px 6px 10px; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.q { transition: background-color var(--t-hover) var(--e-std), opacity var(--t-press) var(--e-std); }
.q:active { opacity: .7; }
.q:hover { background: var(--desk); }
.q[aria-current="true"] { border-left-color: var(--ink); background: var(--desk); }
.q .sub { grid-column: 2; }
.q.handled { color: var(--graphite); }
.q.wait { border-left-color: var(--marker); }
.stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 32px 0; background: var(--desk); }
.stage > .lab, .stage > .note, .stage > .g { width: 100%; max-width: 680px; }
.rail { padding: 24px 0 24px 24px; }
.chk { display: flex; align-items: baseline; gap: 10px; }
.chk::before { content: ""; flex: none; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translateY(-3px); }
.chk.bad { color: var(--pen); font-weight: 600; }
.chk.bad::before { width: 9px; height: 2px; border: 0; background: var(--pen); transform: translateY(-4px); }
.stamp { display: inline-block; padding: 2px 8px; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.only-phone { display: none; }
@container (max-width: 1100px) {
  .tri { grid-template-columns: 240px minmax(0, 1fr); }
  .rail { grid-column: 1 / -1; padding: 24px 0; }
}

/* settings: section list, and the line drawn top to bottom with a control on every segment */
.setgrid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; }
.setnav { flex: 0 0 200px; }
.setbody { flex: 1 1 560px; min-width: 0; max-width: 880px; }
.snav { padding: 7px 0 7px 12px; border-left: 1px solid var(--rule); color: var(--graphite); text-decoration: none; }
.snav { transition: background-color var(--t-hover) var(--e-std), color var(--t-hover) var(--e-std); }
.snav:hover { color: var(--ink); }
.snav.on { border-left: 2px solid var(--ink); padding-left: 11px; color: var(--ink); font-weight: 700; }
.vdot { position: relative; padding-left: 32px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--graphite); }
.vdot::before { content: ""; position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.vdot.todo::before { background: var(--paper); border: 1.5px solid var(--edge); }
.vseg { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 76px; padding: 12px 0 12px 32px; }
.vseg::before { content: ""; position: absolute; left: 4px; top: -1px; bottom: -1px; border-left: 2px solid var(--ink); }
.vseg.m-ask::before { border-left-style: dashed; }
.vseg.m-hand::before { border-left-style: dotted; }
.vseg.m-off::before { border-left-color: var(--rule); }
.vseg.gate::after { content: ""; position: absolute; left: -2px; top: calc(50% - 7px); width: 14px; height: 14px; background: var(--paper); border: 1.5px solid var(--ink); }
.vseg.gate.wait::after { background: var(--marker); border: 1px solid var(--marker-edge); }
.vseg .txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 300px; min-width: 0; }

.people .prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px) 120px; gap: 2px 16px; align-items: center; }
.people .prow .pa { text-align: right; }
.mrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 2px 12px; align-items: center; }

/* read-only viewer links */
.ro .c-cb, .ro .c-next, .ro .edit { display: none !important; }

/* tablets and small laptops: drop columns before anything runs off the side */
@container (max-width: 1250px) { .tbl .c-where { display: none; } }
@container (max-width: 1100px) { .tbl .c-x1, .tbl .c-x2, .bulkbar .hint { display: none; } }
@container (max-width: 1000px) {
  .not-stack { display: none !important; }
  .only-stack { display: revert; }
  .tbl, .tbl tbody { display: block; }
  .tbl thead { display: none; }
  .tbl tr { position: relative; display: grid; grid-template-columns: 36px 32px minmax(0, 1fr) auto; grid-template-areas: "cb fit firm next" "cb fit sub next"; align-items: center; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .tbl td { display: none; height: auto; padding: 0; border: 0; }
  .tbl td.c-cb { position: relative; z-index: 1; display: block; grid-area: cb; width: auto; }
  .tbl td.c-fit { display: block; grid-area: fit; width: auto; font-weight: 700; }
  .tbl td.c-firm { display: block; grid-area: firm; max-width: none; }
  .tbl td.c-prog { display: block; grid-area: sub; white-space: normal; }
  .tbl td.c-next { position: relative; z-index: 1; display: block; grid-area: next; padding-left: 12px; }
  .tbl td.c-firm a.name::after { content: ""; position: absolute; inset: 0; }
  .tbl tr.sel td, .tbl tbody tr:hover td { background: none; }
  .tbl tr.kb td { box-shadow: none; }
  .tbl tr.kb { outline: 2px solid var(--ink); outline-offset: -2px; }
  .tbl.plain tr, .ro .tbl tr, .tbl.ro tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "firm next" "sub next"; }
  .ro .tbl tr, .tbl.ro tr { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "fit firm" "fit sub"; }
  .hit { width: 36px; height: 44px; }
}

/* phone */
.phone-frame { width: 390px; height: 844px; overflow: hidden; }
.phone-frame .app { height: 844px; }
@container (max-width: 760px) {
  .shell { padding-bottom: 60px; }
  .top { height: 52px; padding: 0 16px; gap: 8px; }
  .nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: 60px; gap: 0; border-top: 1px solid var(--rule); background: var(--paper); }
  .nav a { flex: 1; justify-content: center; margin: -1px 0 0; border-bottom: 0; border-top: 2px solid transparent; }
  .nav a::after { top: -2px; bottom: auto; }
  .nav a[aria-current="page"]::after { background: var(--ink); }
  .main { padding: 20px 16px 24px; }
  .main.bleed { padding: 0; }
  .wrap { padding: 0 16px; }
  .not-phone { display: none !important; }
  .only-phone { display: revert; }
  .fl.only-phone { display: flex; }
  .sentence { font-size: 30px; line-height: 36px; }
  .title { font-size: 20px; line-height: 28px; }
  .btn, .field, .btn.sm, .field.sm { height: 48px; }
  .btn.sm { height: 44px; }
  .act { padding: 12px 0; min-height: 44px; }
  .x { width: 44px; }
  .ck { min-height: 44px; }
  .sw { display: flex; width: 100%; }
  .sw button { height: 44px; min-width: 0; flex: 1; }
  .tabs a, .tabs button { min-height: 44px; }
  .tabsw::after { content: ""; position: absolute; right: 0; top: 0; bottom: 1px; width: 32px; background: linear-gradient(to right, transparent, var(--paper)); pointer-events: none; }
  .cols { gap: 32px; }
  .band { padding: 16px; }
  .row.two { flex-wrap: wrap; gap: 0 16px; }
  .row.two > .grow { flex-basis: 100%; white-space: normal; }
  .row .clip.wrapp { white-space: normal; }
  .sheet .hd, .letter { padding-left: 16px; padding-right: 16px; }
  .sheet .hd { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .sheet .hd input, .sheet .hd .v { height: 44px; min-height: 44px; line-height: 44px; }
  .fold { padding: 8px 16px; grid-template-columns: 52px minmax(0, 1fr) auto; }
  .okstamp { right: 16px; top: 120px; }
  .side { top: 0; width: 100%; border-left: 0; z-index: 45; }
  .scrim.below { top: 0; }
  .toast { bottom: 72px; }
  .shell.docked .toast { bottom: 72px; top: auto; }
  .tri { display: block; padding: 0; }
  .queue { padding: 8px 16px 24px; }
  .q { min-height: 60px; padding-right: 0; }
  .stage { padding: 4px 16px 0; }
  .rail { padding: 24px 16px; }
  .tri.v-list .stage, .tri.v-list .rail { display: none; }
  .tri.v-letter .queue { display: none; }
  .dock { margin: 0 -16px; width: auto; max-width: none; align-self: stretch; padding: 8px 16px 12px; border-top: 1px solid var(--rule); background: var(--paper); }
  .dock .dbtns .btn { flex: 1 1 30%; min-width: 0; }
  .dock .dbtns .btn.go { flex: 1 1 100%; height: 52px; font-size: 16px; }
  .dock .dbtns .menu { flex: 1 1 30%; display: flex; }
  .dock .dbtns .menu > summary { flex: 1; }
  .dock .dnote .note.sub { display: none; }
  .bulkbar { padding: 8px 16px; }
  .bulkbar .btn { flex: 1 1 auto; }
  .p1 { order: -2; } .p2 { order: -1; }
  .setnav { display: none; }
  /* every popover becomes a bottom sheet above the tab bar, with a scrim */
  .menu { position: static; }
  .pop, .pop.up, .pop.left { position: fixed; left: 0; right: 0; top: auto; bottom: 60px; z-index: 50; min-width: 0; max-height: 70%; overflow: auto; padding: 8px 16px 16px; border: 0; border-top: 1px solid var(--ink); border-radius: 0; }
  details.menu[open] > .pop { animation: sheet-up var(--t-sheet) var(--e-out); }
  details.menu.closing > .pop { animation: sheet-down var(--t-sheet-exit) var(--e-in) forwards; }
  .pop a, .pop button.it, .pop .kv { min-height: 48px; align-items: center; padding: 8px 0; }
  details.menu[open] > summary::before { content: ""; position: fixed; left: 0; right: 0; top: 0; bottom: 60px; z-index: 49; background: var(--scrim); cursor: default; animation: fade-in var(--t-base) var(--e-std); }
  details.menu.closing > summary::before { animation: fade-out var(--t-sheet-exit) var(--e-std) forwards; }
  .palette { left: 0; top: 0; bottom: 0; width: 100%; padding: 8px 16px; border: 0; border-radius: 0; transform: none; z-index: 55; animation: fade-in var(--t-fast) var(--e-std); }
  .palette.out { animation: fade-out var(--t-exit) var(--e-std) forwards; }
  .palette a { min-height: 48px; align-items: center; padding: 8px 0; }
  .dialog { top: auto; bottom: 60px; left: 0; width: 100%; padding: 16px; border: 0; border-top: 1px solid var(--ink); border-radius: 0; transform: none; animation: sheet-up var(--t-sheet) var(--e-out); }
  .dialog.out { animation: sheet-down var(--t-sheet-exit) var(--e-in) forwards; }
  .people .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .people .prow .em { grid-column: 1; }
  .people .prow .pa { grid-column: 2; grid-row: 1 / span 2; }
}
@container (max-width: 760px) { .mrow { grid-template-columns: 28px minmax(0, 1fr) auto; } .mrow .mm { grid-column: 2 / -1; } }
.filt { flex: 1 1 240px; max-width: 320px; }
@container (max-width: 760px) { .filt { max-width: none; flex-basis: 100%; } }
@container (max-width: 1000px) { .top { gap: 16px; } }
.letter .body { white-space: pre-wrap; }
.outtabs { padding-top: 24px; }
@container (max-width: 760px) { .outtabs { padding-top: 8px; } .shell.docked .toast { top: auto; bottom: 236px; } }
@container (max-width: 1100px) { .sheet .hd { grid-template-columns: 52px minmax(0, 1fr); } .sheet .hd > :nth-child(3n) { grid-column: 2; } }
.mini.four i::after { width: 10px; }
.mini.four i { margin-right: 10px; }
@container (max-width: 760px) { .setgrid { gap: 16px; } .bar.end > .fl { flex: 1 1 100%; max-width: none !important; width: auto !important; } }
.dialog.demo, .pop.demo, .palette.demo { position: static; transform: none; width: auto; max-width: 420px; animation: none; }
.mrow .wy { margin: 0; }
.center { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.tbl th.left, .tbl td.left { text-align: left; }
.frame { overflow: hidden; }
.frame .app { height: var(--fh, 100%); }

/* round 3 fixes */
@container (max-width: 900px) {
  .line { grid-template-columns: minmax(0, 1fr); }
  .st { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 0 0 16px 24px; }
  .st .trk { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; height: auto; }
  .trk::before { top: 5px; }
  .trk::after { left: 4px; right: auto; top: 19px; bottom: -3px; border-top: 0; border-left: 2px solid var(--ink); }
  .st.m-ask .trk::after { border-left-style: dashed; }
  .st.m-hand .trk::after { border-left-style: dotted; }
  .st.m-off .trk::after { border-left-color: var(--rule); }
  .st.gate .trk i { left: -2px; top: calc(50% + 4px); }
  .st .fig { order: 3; height: auto; margin-left: auto; padding: 0; font-size: 20px; line-height: 20px; }
  .st .nm { order: 1; margin: 0; }
  .st .note { order: 4; width: 100%; }
}
.pop .it.only-phone, .pop .only-phone { display: none; }
@container (max-width: 760px) { .pop .it.only-phone { display: flex; } }
.only-norail { display: none; }
@container (max-width: 1100px) { .only-norail { display: revert; } }
.shell:has(details.menu[open]) .toast, .shell:has(.dialog:not(.out)) .toast { display: none; }
.shell:has(.bulkbar) .toast { bottom: 80px; }
.bar.hd { min-height: 32px; align-items: center; }
.field[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.tabsw { position: relative; }
@container (max-width: 760px) { .tabsw.cut::before { content: ""; position: absolute; left: 0; top: 0; bottom: 1px; z-index: 1; width: 24px; background: linear-gradient(to right, var(--paper), transparent); pointer-events: none; } }
.row.busy { color: var(--graphite); }
.tbl tr.clicky { cursor: pointer; }
.main > .tabsw.up { margin-top: -16px; }
@container (max-width: 760px) { .main > .tabsw.up { margin-top: -12px; } }
.sheet.narrow .hd { grid-template-columns: 52px minmax(0, 1fr); padding-left: 24px; padding-right: 24px; }
.sheet.narrow .hd > :nth-child(3n) { grid-column: 2; }
.sheet.narrow .hd .v { line-height: 20px; padding: 4px 0; overflow-wrap: anywhere; white-space: normal; }
.dock { box-shadow: 0 -16px 0 var(--desk); }
@container (max-width: 760px) { .dock { box-shadow: none; margin-top: 0; } }


/* ---- built app additions (no inline styles: the page's CSP allows them, but they live here) ---- */
.app { color-scheme: light; }
:root[data-theme="dark"] .app { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .app { color-scheme: dark; } }
.pt40 { padding-top: 40px; }
.signin-f, .addr-f { max-width: 420px; }
.pad-hit { padding: 16px 10px; }
.mw320 { max-width: 320px; } .mw560 { max-width: 560px; }
.w100 { width: 100%; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.wrapw { white-space: normal; overflow-wrap: anywhere; }
.loading { padding: 40px; color: var(--graphite); }
.wait { display: flex; justify-content: center; align-items: flex-start; min-height: 240px; padding-top: 72px; animation: fade-in var(--t-base) var(--e-std) var(--t-wait) backwards; }
.wait::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--rule); border-top-color: var(--graphite); border-radius: 50%; animation: spin .7s linear infinite; }
.sk.w26 { width: 26%; } .sk.w28 { width: 28%; } .sk.w30 { width: 30%; } .sk.w34 { width: 34%; } .sk.w36 { width: 36%; } .sk.w38 { width: 38%; } .sk.w40 { width: 40%; } .sk.w42 { width: 42%; }
.tbl.wide td { white-space: normal; }
.tbl.wide td.nowrap { white-space: nowrap; }
.tblw { width: 100%; overflow-x: auto; }
.st a.fig, .st .fig { min-height: 40px; }
@container (max-width: 900px) {
  .st > a.stlink { position: absolute; inset: 0; z-index: 1; }
  .st { min-height: 44px; }
}
.st > a.stlink { display: none; }
@container (max-width: 900px) { .st > a.stlink { display: block; } }
.letter textarea.body { display: block; width: 100%; min-height: 260px; padding: 0; border: 0; resize: vertical; background: none; color: var(--ink); font: inherit; line-height: 22px; }
.letter textarea.body:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.letter .foot { white-space: pre-wrap; }
.sheet .hd input.err { border-bottom: 1px solid var(--pen); }
.dlg-wide { width: min(640px, calc(100% - 32px)); }
.dialog .body { max-height: 60vh; overflow: auto; }
.code { padding: 8px 10px; background: var(--desk); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.drop.over { border-color: var(--ink); background: var(--desk); }
.kvs { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 24px; }
.kvs dt { color: var(--graphite); }
.kvs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.flag-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.savenote { min-height: 16px; }
.hidden { display: none !important; }
.prow + .prow { border-top: 1px solid var(--rule); }
.people .prow { padding: 10px 0; }
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; align-items: center; }
@container (max-width: 760px) { .mapgrid { grid-template-columns: minmax(0, 1fr); } }
.prog { height: 4px; background: var(--desk); }
.prog > i { display: block; height: 100%; background: var(--ink); }
.app .menu-inline{display:inline-block}
