/* Library - BTD Engineering.
   Blue from the BTD sigma (#084E8B), cool steel neutrals, hairline rules, IBM Plex.
   Light is the default; [data-theme="dark"] on <html> switches (set by theme.js / the header button). */
@font-face { font-family: "IBM Plex Sans"; src: url(/static/fonts/IBMPlexSans.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/static/fonts/IBMPlexMono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/static/fonts/IBMPlexMono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f3f5f8; --panel: #ffffff; --raised: #f8fafc; --ink: #0e1726; --text: #1f2a3a; --muted: #586a7f; --faint: #8796a8;
  --line: #dde3ea; --line-strong: #c6cfda; --soft: #eef2f6; --grid: rgba(8, 78, 139, .055);
  --brand: #084e8b; --brand-hover: #063d6e; --brand-ink: #084e8b; --brand-tint: #e8f0f8; --on-brand: #ffffff;
  --navy: #0b1d33; --navy-2: #0a3a66;
  --focus: rgba(8, 78, 139, .25);
  --ok: #17784a; --ok-tint: #e8f5ee; --warn: #8a5c00; --warn-tint: #fdf6e4; --warn-line: #ead396;
  --bad: #b1261d; --bad-tint: #fcecea;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 8px 24px rgba(14, 23, 38, .05);
  --radius: 8px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --mark: url(/static/brand/sigma.svg?v=2);
  --logo: url(/static/brand/logo.svg?v=2);
  --icon-theme: url(/static/brand/moon.svg);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b111a; --panel: #111926; --raised: #16202f; --ink: #e9eef5; --text: #d3dbe6; --muted: #98a7ba; --faint: #6d7d91;
  --line: #213042; --line-strong: #2d3e54; --soft: #172231; --grid: rgba(106, 166, 220, .06);
  --brand: #2f7bc0; --brand-hover: #3d8bd2; --brand-ink: #7fb4e6; --brand-tint: #132840; --on-brand: #ffffff;
  --navy: #070d16; --navy-2: #0c2c4c;
  --focus: rgba(127, 180, 230, .32);
  --ok: #6bd39d; --ok-tint: #12271c; --warn: #e6bf63; --warn-tint: #29220f; --warn-line: #574820;
  --bad: #f08a80; --bad-tint: #2e1716;
  --shadow: none;
  --mark: url(/static/brand/sigma-dark.svg?v=2);
  --logo: url(/static/brand/logo-dark.svg?v=2);
  --icon-theme: url(/static/brand/sun.svg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand-ink); }
h1, h2, h3 { color: var(--ink); font-family: var(--font); }
h1 { font-size: 1.75rem; font-weight: 600; margin: 0 0 .3rem; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .8rem; letter-spacing: -.005em; }
h3 { font-size: .7rem; font-weight: 600; margin: 1.4rem 0 .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
p { margin: .4rem 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }
::selection { background: var(--brand-tint); }

/* ---------------------------------------------------------------- header */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .bar { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.mark { width: 22px; height: 28px; background: var(--mark) center / contain no-repeat; flex: none; }
.brand .word { display: block; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.1; }
.brand .by { display: block; font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.crumb { display: flex; align-items: center; gap: 1.1rem; font-weight: 500; color: var(--text); font-size: .98rem; white-space: nowrap; }
.crumb::before { content: ""; width: 1px; height: 28px; background: var(--line-strong); }
.crumb:empty { display: none; }
.who { margin-left: auto; display: flex; align-items: center; gap: .55rem; font-size: .88rem; }
.who .co { color: var(--muted); margin-right: .2rem; }
.who select { width: auto; max-width: 240px; padding: .35rem .5rem; font-size: .86rem; }
.theme-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--muted); }
.theme-btn::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon-theme) center / contain no-repeat; mask: var(--icon-theme) center / contain no-repeat; }
.theme-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: .32rem .75rem; color: var(--ink); font-size: .86rem; user-select: none; display: flex; align-items: center; gap: .5rem; }
.menu summary::before { content: attr(data-initials); width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); font-size: .66rem; font-weight: 600; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.menu[open] summary { border-color: var(--line-strong); background: var(--soft); }
.menu .pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(10, 20, 35, .14); min-width: 200px; padding: .35rem; z-index: 10; }
.menu .pop a, .menu .pop button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border-radius: 5px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; font-size: .88rem; cursor: pointer; }
.menu .pop a:hover, .menu .pop button:hover { background: var(--soft); color: var(--ink); }
.menu .pop hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.tabs { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs:empty { display: none; }
.tabs a { color: var(--muted); text-decoration: none; padding: .7rem 0 .72rem; border-bottom: 2px solid transparent; font-size: .9rem; white-space: nowrap; font-weight: 500; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }

main { max-width: 1200px; margin: 0 auto; padding: 2.2rem 1.5rem 4rem; }
.loading { color: var(--muted); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.head p { margin: .2rem 0 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .45rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card + .card, .grid2 + .card, .card + .grid2, section.card { margin-top: 1rem; }
.grid2 > .card { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* library home */
.hero { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 2.2rem 2.2rem 2rem; margin-bottom: 1.4rem; overflow: hidden;
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }
.hero::after { content: ""; position: absolute; right: 2rem; top: 50%; width: 120px; height: 150px; transform: translateY(-50%); background: var(--logo) center / contain no-repeat; opacity: .9; }
.hero h1 { font-size: 2.1rem; }
.hero p { max-width: 560px; color: var(--muted); }
.libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.lib { position: relative; display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; min-height: 230px; }
a.lib::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
a.lib:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(8, 78, 139, .10); }
.lib .ic { width: 44px; height: 44px; border-radius: 8px; background: var(--brand-tint); display: grid; place-items: center; }
.lib .ic img { width: 26px; height: 26px; }
:root[data-theme="dark"] .lib .ic img { filter: brightness(2.2) saturate(.7); }
.lib h2 { font-size: 1.25rem; margin: 0; }
.lib p { margin: 0; color: var(--muted); }
.lib .stats { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.lib .go { font-weight: 600; color: var(--brand-ink); font-size: .9rem; }
.lib.soon { background: transparent; border-style: dashed; box-shadow: none; }
.lib.soon .ic { background: var(--soft); }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); padding: .5rem .95rem; border-radius: 6px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--muted); background: var(--raised); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.danger { color: var(--bad); }
.btn.small { padding: .24rem .6rem; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--brand-ink); cursor: pointer; font: inherit; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

input, textarea, select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; padding: .52rem .65rem; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
form .group { margin-bottom: 1.4rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .85rem 1rem; }
label.f { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
label.f .row { display: flex; align-items: center; gap: .35rem; }
label.f.wide { grid-column: 1 / -1; }
div.f { display: flex; flex-direction: column; gap: .5rem; font-size: .8rem; color: var(--muted); font-weight: 500; }
div.f.wide { grid-column: 1 / -1; }
.unit { color: var(--muted); font-size: .8rem; min-width: 1.6em; font-family: var(--mono); }
.hint { font-size: .76rem; color: var(--faint); font-weight: 400; }
.hint.block { display: block; }
.pg { font-family: var(--mono); font-size: .68rem; border: 1px solid var(--line); background: var(--soft); color: var(--brand-ink); border-radius: 4px; padding: 0 .35rem; cursor: pointer; white-space: nowrap; font-weight: 500; }
.pg:hover { border-color: var(--brand); }
.from-pdf input { background: var(--warn-tint); border-color: var(--warn-line); }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--text); }
label.check input { width: auto; margin-top: .3rem; accent-color: var(--brand); }
label.check.wide { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- tables */
table.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.list th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: .55rem .7rem; border-bottom: 1px solid var(--line-strong); }
table.list td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--raised); }
.name { font-weight: 600; color: var(--ink); }
.chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.chip { font-size: .74rem; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .5rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rows { width: 100%; border-collapse: collapse; margin-top: .25rem; }
table.rows th { text-align: left; font-size: .74rem; color: var(--muted); font-weight: 500; padding: .2rem .3rem; }
table.rows td { padding: .2rem .3rem; }
table.rows td.x { width: 1%; white-space: nowrap; }
.rows-wrap { overflow-x: auto; }
table.rig { min-width: 900px; table-layout: fixed; }
table.rig th:nth-child(1) { width: 30%; }
table.rig th:nth-child(2) { width: 11rem; }
table.rig th:nth-child(6) { width: 9.5rem; }
table.rig th:nth-child(3), table.rig th:nth-child(4), table.rig th:nth-child(5) { width: 5.5rem; }
table.rig th:last-child { width: 2rem; }
table.rig select { min-width: 9rem; }

.empty { text-align: center; padding: 3rem 1rem; }
.empty .ways { display: flex; gap: 1rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- PDF review */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.viewer { position: sticky; top: 8rem; }
.viewer .bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.viewer img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: block; min-height: 200px; }
.viewer .imgwrap { max-height: calc(100vh - 12.5rem); overflow: auto; border-radius: 6px; }
.drop { margin-bottom: 1rem; border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 2.8rem 1rem; text-align: center; cursor: pointer;
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.drop:hover, .drop.over { border-color: var(--brand); background-color: var(--brand-tint); }
.drop b { display: block; font-size: 1.08rem; margin-bottom: .3rem; color: var(--ink); }

/* ---------------------------------------------------------------- notes, statuses */
.note { border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1rem; }
.note.warn { background: var(--warn-tint); border: 1px solid var(--warn-line); }
.note.bad { background: var(--bad-tint); border: 1px solid var(--bad); color: var(--bad); }
.note.ok { background: var(--soft); border: 1px solid var(--line); }
.note ul { margin: .35rem 0 0 1.1rem; padding: 0; }
.status { font-size: .74rem; border-radius: 4px; padding: .1rem .55rem; border: 1px solid var(--line); white-space: nowrap; font-weight: 500; }
.status.done { color: var(--ok); border-color: currentColor; background: var(--ok-tint); }
.status.failed { color: var(--bad); border-color: currentColor; background: var(--bad-tint); }
.status.reading, .status.queued { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); }
.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

ol.steps { padding-left: 1.2rem; margin: .5rem 0 0; }
ol.steps li { margin: .65rem 0; }
code, .key { font-family: var(--mono); font-size: .84rem; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .35rem; color: var(--ink); }
.keyrow { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cmd { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem 1rem; margin-top: .5rem; }
.cmd code { justify-self: start; align-self: start; }
.secret { font-family: var(--mono); background: var(--warn-tint); border: 1px solid var(--warn-line); padding: .5rem .75rem; border-radius: 6px; margin: .5rem 0; word-break: break-all; }
.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: .65rem 1.05rem; border-radius: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); z-index: 20; max-width: calc(100% - 32px); }

/* ---------------------------------------------------------------- sign in (full width) */
body.is-auth main { max-width: none; padding: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: relative; color: #e6eef7; padding: 3.5rem 3.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px),
    radial-gradient(120% 90% at 100% 100%, var(--navy-2) 0%, transparent 60%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%; }
.auth-logo { width: 74px; height: 138px; background: url(/static/brand/logo-white.svg) left center / contain no-repeat; }
.auth-copy h1 { color: #ffffff; font-size: 3rem; font-weight: 600; letter-spacing: -.03em; margin: .4rem 0 .6rem; }
.auth-copy p { color: #b9c8da; font-size: 1.08rem; max-width: 30rem; }
.auth-copy .eyebrow { color: #8fbbe6; }
.auth-list { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 30rem; }
.auth-list li { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #d5e0ec; font-size: .93rem; display: flex; gap: .8rem; }
.auth-list li::before { content: attr(data-n); font-family: var(--mono); font-size: .75rem; color: #8fbbe6; padding-top: .15rem; }
.auth-foot { font-size: .78rem; color: #8196ad; letter-spacing: .04em; }
.auth-main { position: relative; display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-main .theme-btn { position: absolute; top: 1.2rem; right: 1.2rem; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-card .muted { margin-bottom: 1.6rem; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card .btn.primary { justify-content: center; padding: .65rem 1rem; }
.err { color: var(--bad); font-size: .88rem; min-height: 1.2em; margin: 0; }

/* ---------------------------------------------------------------- plan check report */
.sev { font-size: .72rem; font-weight: 600; border-radius: 4px; padding: .05rem .5rem; white-space: nowrap; border: 1px solid; }
.sev-error { color: var(--bad); border-color: currentColor; background: var(--bad-tint); }
.sev-missing { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); }
.sev-check { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); }
.sev-info { color: var(--muted); border-color: var(--line); background: var(--soft); }
ul.rv { list-style: none; margin: 0; padding: 0; }
ul.rv li { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
ul.rv li:last-child { border-bottom: 0; }
.rv-group h3 { margin-top: 1rem; }
.rv-summary { font-size: 1.05rem; color: var(--ink); }
.rv-top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.rv-top .theme-btn { margin-left: auto; }
.rv-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.rv-pics img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: block; }

@media print {
  .btn, .rv-pics, .top, .theme-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; }
}
@media (max-width: 900px) {
  .split, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: static; }
  table.list .hide-sm { display: none; }
  .cmd { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { padding: 2rem 1.5rem; gap: 1.5rem; }
  .auth-logo { width: 46px; height: 86px; }
  .auth-copy h1 { font-size: 2.2rem; }
  .auth-list, .auth-foot { display: none; }
  .hero::after { display: none; }
}
@media (max-width: 620px) {
  .card { overflow-x: auto; }
  main { padding: 1.4rem 16px 3rem; }
  .top .bar { padding: 0 16px; gap: .6rem; height: 58px; }
  .tabs { padding: 0 16px; gap: 1.25rem; }
  .brand .by { display: none; }
  .crumb { font-size: .9rem; gap: .6rem; }
  .who .co { display: none; }
  .menu summary { padding: .3rem .45rem; }
  .menu summary .nm { display: none; }
  .fields { grid-template-columns: 1fr; }
  table.rows input { min-width: 4.5rem; }
  .libs { grid-template-columns: 1fr; }
  .hero { padding: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
}

/* load chart */
.chart-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.chart-head h2 { margin: 0; }
.chart-pick { margin: 1rem 0 .8rem; grid-template-columns: repeat(auto-fill, minmax(170px, 220px)); }
.chart-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: 6px; }
.chart-table { border-collapse: collapse; font-family: var(--mono); font-size: .8rem; width: max-content; min-width: 100%; }
.chart-table th, .chart-table td { padding: .28rem .55rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.chart-table thead th { position: sticky; top: 0; background: var(--soft); color: var(--ink); z-index: 1; }
.chart-table tbody th { position: sticky; left: 0; background: var(--soft); color: var(--ink); }
.chart-table td:empty { background: var(--raised); }
.chart-wrap + .muted { margin-top: .5rem; }
.signoff { margin-top: 1rem; }
.signoff .check { margin: .8rem 0; }
.signoff .actions { margin-top: .6rem; }
.btd-only { border-top: 1px dashed var(--line-strong); margin-top: 1.2rem; padding-top: 1rem; }
.card.btd-only { border-top: 1px dashed var(--line-strong); }
.btd-only h3 { margin-top: 0; }
.f code { font-size: .78rem; }
.fields > h3 { grid-column: 1 / -1; margin-bottom: 0; }

/* terms, lift log, seats */
.terms-card { max-width: 820px; margin: 0 auto; }
.terms h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.terms h2 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.terms p { margin: 0 0 .6rem; line-height: 1.55; }
.terms-card .check { margin: 1.2rem 0 1rem; }
.mono { font-family: var(--mono); font-size: .85em; }
dl.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem 1rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .85rem; }
dl.kv dd { margin: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
tr.chosen td { background: var(--ok-tint); }
.history { margin-top: 1rem; }
.history summary { cursor: pointer; color: var(--brand-ink); font-size: .9rem; }
.seats-in { width: 5rem; padding: .2rem .4rem; }
