/* DocLink: clean clinical look, light + dark. No external assets. */
:root {
  --bg: #f5f7fa; --surface: #ffffff; --surface-2: #f0f3f7; --ink: #0f2236; --ink-2: #33475b; --muted: #5d6e80;
  --line: #dde4ec; --line-2: #c9d3de; --accent: #0b6e8c; --accent-2: #085a73; --accent-ink: #fff; --accent-soft: #e3f2f6;
  --focus: #1a73e8; --warn: #b45309; --bad: #b42318; --good: #1e7b45; --shadow: 0 1px 2px rgba(16,34,54,.06), 0 2px 8px rgba(16,34,54,.05);
  --red: #cf3e3a; --orange: #dc7016; --green: #3f8f25; --teal: #0f8783; --blue: #2b74cf; --gold: #b88a0e; --purple: #8a3fa8;
  --r: 12px; --r-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c141e; --surface: #131f2d; --surface-2: #182739; --ink: #e5edf5; --ink-2: #c3d0dd; --muted: #91a2b4;
    --line: #233446; --line-2: #2e445a; --accent: #45b8d6; --accent-2: #6cc9e1; --accent-ink: #062330; --accent-soft: #10303c;
    --focus: #7ab4ff; --warn: #f0a24a; --bad: #ff7b72; --good: #4cc387; --shadow: 0 1px 2px rgba(0,0,0,.3);
    --red: #f06a62; --orange: #f39a4a; --green: #74c255; --teal: #36c1bb; --blue: #6aa6f2; --gold: #e2bb45; --purple: #c084e0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c141e; --surface: #131f2d; --surface-2: #182739; --ink: #e5edf5; --ink-2: #c3d0dd; --muted: #91a2b4;
  --line: #233446; --line-2: #2e445a; --accent: #45b8d6; --accent-2: #6cc9e1; --accent-ink: #062330; --accent-soft: #10303c;
  --focus: #7ab4ff; --warn: #f0a24a; --bad: #ff7b72; --good: #4cc387; --shadow: 0 1px 2px rgba(0,0,0,.3);
  --red: #f06a62; --orange: #f39a4a; --green: #74c255; --teal: #36c1bb; --blue: #6aa6f2; --gold: #e2bb45; --purple: #c084e0;
  color-scheme: dark;
}
.c-red { --sc: var(--red); } .c-orange { --sc: var(--orange); } .c-green { --sc: var(--green); } .c-teal { --sc: var(--teal); }
.c-blue { --sc: var(--blue); } .c-gold { --sc: var(--gold); } .c-purple { --sc: var(--purple); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h2, .h2 { font-size: 1.35rem; } .h3 { font-size: 1.1rem; } .h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; } .narrow-l { max-width: 760px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
kbd { font: 600 .75rem var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface); color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; }
.hp { position: absolute; left: -5000px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo { width: 32px; height: 32px; } .logo-bg { fill: var(--accent); } .logo-fg { stroke: var(--accent-ink); }
.wordmark { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; } .wordmark b, .foot-brand b { font-weight: 800; color: var(--accent); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 44px 0 18px; font: inherit; background: var(--surface-2); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .kbd { position: absolute; right: 14px; top: 11px; pointer-events: none; }
.sr-panel { position: absolute; left: 0; right: 0; top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(10,25,40,.18); max-height: min(70vh, 560px); overflow: auto; padding: 6px; }
.sr-group { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.sr-item { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.sr-item[aria-selected="true"], .sr-item:hover { background: var(--accent-soft); color: var(--ink); }
.sr-item .t { font-weight: 600; } .sr-item .s { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item .dot { flex: none; transform: translateY(-1px); }
.sr-item mark, .search-results mark { background: none; color: var(--accent); font-weight: 700; }
.sr-more { display: block; text-align: center; padding: 8px; font-size: .9rem; }
.sr-empty { padding: 12px; color: var(--muted); }
.nav-desk { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav-desk a, .nav-desk .linkish { padding: 8px 10px; font-size: .95rem; color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); }
.nav-desk a:hover, .nav-desk .linkish:hover { background: var(--surface-2); color: var(--ink); }
.nav-desk form { margin: 0; display: flex; }
.nav-desk .btn { margin-left: 6px; padding: 8px 14px; color: var(--accent-ink); }
.nav-desk .btn:hover { background: var(--accent-2); color: var(--accent-ink); }
.nav-desk .theme-toggle { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.nav-desk .theme-toggle .tt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.theme-toggle svg { width: 20px; height: 20px; flex: none; }
.menu-body .theme-toggle { display: flex; gap: 10px; align-items: center; }
.menu { position: relative; margin-left: auto; flex: none; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 12px 10px; border-radius: var(--r-sm); color: var(--ink-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-2); }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; } .burger::before { top: -6px; } .burger::after { top: 6px; }
.menu-body { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(10,25,40,.18); padding: 8px; min-width: 230px; display: flex; flex-direction: column; z-index: 30; }
.menu-body a, .menu-body .linkish { padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); text-align: left; width: 100%; font: inherit; }
.menu-body a:hover, .menu-body .linkish:hover { background: var(--surface-2); }
.menu-body .btn { margin: 6px 4px 2px; width: auto; text-align: center; color: var(--accent-ink); }
.menu-body form { margin: 0; display: flex; }
.menu-body .theme-toggle { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
@media (min-width: 1000px) { .nav-desk { display: flex; } .menu { display: none; } }
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search .kbd { display: none; }
  .wordmark { font-size: 1.15rem; }
}
.cond, .cat, .card[id] { scroll-margin-top: 84px; }
@media (max-width: 640px) { .cond, .cat, .card[id] { scroll-margin-top: 128px; } }

/* generic */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--bad); color: #fff; } .btn-danger:hover { background: var(--bad); filter: brightness(.9); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.icon { background: none; border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; padding: 0 5px; font-size: .9rem; line-height: 1.6; }
.icon:hover { border-color: var(--line-2); color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.notice { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 10px 14px; border-radius: var(--r-sm); margin: 16px 0 0; }
.err { color: var(--bad); font-size: .9rem; margin: -6px 0 10px; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); vertical-align: 1px; }
.badge.pt { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--good); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.badge.login { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--bad); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--sc, var(--muted)); margin-right: 6px; }
.pill { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 12px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: .95rem; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 3px 0; }
blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; white-space: pre-wrap; }

/* forms */
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, input.sm, form.inline input {
  display: block; width: 100%; margin-top: 5px; font: 400 1rem var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form .hint { font-size: .85rem; color: var(--muted); margin: -6px 0 10px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.form fieldset .check { margin: 0; }
.form .code { font: 600 1.4rem var(--mono); letter-spacing: .3em; text-align: center; max-width: 220px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; align-items: end; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
form.inline input { width: auto; margin: 0; padding: 6px 10px; font-size: .9rem; }
.danger { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.danger-t { color: var(--bad); }
.msg { margin-top: 32px; }
.qr { display: flex; justify-content: center; margin: 8px 0; } .qr svg { border-radius: 8px; max-width: 100%; height: auto; }
.totp-key { text-align: center; } .totp-key code { font-size: 1rem; letter-spacing: .08em; background: var(--surface-2); padding: 4px 10px; border-radius: 6px; user-select: all; }
.steps { padding-left: 20px; }

/* home */
.hero { padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 4vw, 40px); max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); letter-spacing: -.03em; }
.hero .hl { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sc); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.sec-card h3 { font-size: 1.15rem; margin-bottom: 8px; } .sec-card h3 a { color: var(--ink); text-decoration: none; }
.sec-card h3 a:hover { color: var(--sc); }
.sec-card ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.sec-card li a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.sec-card li a:hover { color: var(--sc); }
.specs { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spec-grid { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.spec { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; position: relative; overflow: hidden; height: 100%; }
.spec::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sc); }
.spec:hover { border-color: var(--sc); box-shadow: var(--shadow); }
.spec-t { color: var(--ink); font-weight: 650; } .spec-n { color: var(--muted); font-size: .82rem; }
.cta { margin: 40px 0 8px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r); padding: 24px; }
.cta h2 { margin-bottom: 4px; } .cta p { margin: 0; color: var(--ink-2); }

/* section pages */
.page-head { padding: 28px 0 12px; }
.page-head.c-red, .page-head.c-orange, .page-head.c-green, .page-head.c-teal, .page-head.c-blue, .page-head.c-gold, .page-head.c-purple { border-bottom: 3px solid var(--sc); margin-bottom: 20px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; } .crumbs a { color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.filter input { height: 38px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; font: inherit; background: var(--surface); color: var(--ink); width: min(320px, 70vw); }
.links { list-style: none; padding: 0; margin: 0; }
.lnk { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lnk:last-child { border-bottom: 0; }
.lnk > a { font-weight: 550; text-decoration: none; grid-column: 1; }
.lnk > a:hover { text-decoration: underline; }
.lnk > a::after { content: "↗"; font-size: .75em; margin-left: 4px; color: var(--muted); }
.lnk .meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .82rem; color: var(--muted); align-items: center; }
.lnk .note { font-style: italic; }
.lnk .acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 2px; align-items: center; }
.lnk .where { color: var(--muted); }
.star { background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 6px; color: var(--line-2); display: inline-flex; }
.star svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.star:hover { color: var(--gold); } .star.on { color: var(--gold); } .star.on svg { fill: currentColor; }
.report { color: var(--line-2); text-decoration: none; font-weight: 800; width: 24px; text-align: center; border-radius: 6px; }
.report:hover { color: var(--bad); background: var(--surface-2); }
.report-k { font-weight: 800; color: var(--bad); }
.key { border-left: 4px solid var(--sc, var(--accent)); }
main .key { border-left-width: 4px; }
.conds { display: flex; flex-direction: column; gap: 8px; }
.cond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.cond > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: var(--r); }
.cond > summary::-webkit-details-marker { display: none; }
.cond > summary::before { content: "+"; font: 700 1.1rem var(--mono); color: var(--sc, var(--accent)); width: 14px; flex: none; transition: transform .15s; }
.cond[open] > summary::before { content: "−"; }
.cond > summary:hover { background: var(--surface-2); }
.cond-t { font-weight: 650; font-size: 1.05rem; }
.aka { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cnt { margin-left: auto; font-size: .78rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; flex: none; }
.cond-body { padding: 0 18px 16px 42px; }
.cond-tools { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.cond-tools a { color: var(--muted); }
.cond .cond { box-shadow: none; margin: 10px 0 4px; background: var(--surface-2); }
.cond .cond > summary { padding: 10px 14px; }
.cond .cond .cond-body { padding-left: 38px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.quick-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.chip { font-size: .8rem; text-decoration: none; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.g-extra { border-color: color-mix(in srgb, var(--sc, var(--accent)) 50%, var(--line-2)); color: var(--sc, var(--accent)); font-weight: 600; }
.chip.g-au { font-weight: 600; }
.cat-grid { columns: 2 380px; column-gap: 16px; }
.cat-grid .card { break-inside: avoid; display: inline-block; width: 100%; }
.cat h2 { border-bottom: 2px solid var(--sc, var(--accent)); padding-bottom: 6px; }
main .c-red .cat h2, .page-head ~ .cat-grid .cat h2 { border-color: var(--line); }
.subcat { margin-top: 12px; }
.legend { margin: 28px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.empty { padding: 16px; }
.cond.hit > summary .cond-t { color: var(--accent); }
.search-results .sr-group { padding-left: 0; }
.search-results .sr-item { padding: 10px 12px; }
.search-results .res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; margin-bottom: 16px; }
.fav-list { list-style: none; padding: 0; margin: 0; }
.fav-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fav-list li .star { margin-left: auto; }
.prose h2 { margin-top: 1.6em; } .prose li { margin-bottom: .35em; }
.prose { padding-top: 24px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 56px; background: var(--surface); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 28px; flex-wrap: wrap; }
.foot-in > div { max-width: 520px; }
.foot-brand { font-size: 1.1rem; margin-bottom: 4px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: flex-start; }
.foot-nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; } .foot-nav a:hover { color: var(--accent); }

/* admin */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.admin-nav a { padding: 7px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.admin-nav a.on { background: var(--accent-soft); color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink-2); display: flex; flex-direction: column; }
.stat b { font-size: 1.7rem; color: var(--ink); line-height: 1.1; } .stat span { font-size: .85rem; }
.stat.warn b { color: var(--warn); }
.small-stats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 12px 0 20px; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl .num { text-align: right; }
@media (max-width: 800px) { .tbl { display: block; overflow-x: auto; } }
.qitem header { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.approve { margin: 8px 0; } .approve > summary { list-style: none; display: inline-flex; } .approve > summary::-webkit-details-marker { display: none; }
.approve form { margin-top: 12px; padding: 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.ed-node header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .ed-node h3 { margin: 0; font-size: 1.05rem; }
.ed-node .ed-node { margin: 12px 0 0; background: var(--surface-2); box-shadow: none; }
.ed-links { list-style: none; padding: 0; margin: 8px 0; }
.ed-links li { padding: 4px 0; border-bottom: 1px dotted var(--line); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.hbadge { font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.hbadge.h-dead, .stat.h-dead b { color: var(--bad); } .hbadge.h-dead { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.hbadge.h-moved, .stat.h-moved b { color: var(--warn); } .hbadge.h-moved { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.hbadge.h-error, .stat.h-error b { color: var(--warn); }
.stat.h-ok b { color: var(--good); }
p.hbadge { display: block; text-transform: none; font-weight: 500; font-size: .9rem; padding: 8px 12px; border-radius: var(--r-sm); }
.row-menu { position: relative; } .row-menu > summary { list-style: none; } .row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > form, .row-menu[open] > form + form { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; background: var(--surface-2); padding: 8px; border-radius: var(--r-sm); margin-top: 4px; }
.inline-form .row3 { grid-template-columns: 2fr 1fr auto; }
.add-child { margin-top: 8px; } .add-child input { min-width: 260px; }
time { white-space: nowrap; }
@media print { .top, .foot, .acts, .quick, .toolbar, .cond-tools, .legend { display: none !important; } details > * { display: block; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--bg); font-weight: 700; margin-left: 4px; }
