:root {
  color-scheme: light dark;
  --page: #f3f6f5; --sheet: #fff; --sunk: #e8eeec; --line: #cbd6d3; --ink: #14211f; --soft: #4d5e5a;
  --green: #0c5a50; --on-green: #fff; --plum: #8a2c63;
  --ok: #1d6b34; --ok-bg: #e2f2e5; --warn: #7a4d00; --warn-bg: #fbefd3; --bad: #a3231f; --bad-bg: #fbe5e3; --info: #1d5278; --info-bg: #e1eef7;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1513; --sheet: #17211f; --sunk: #202c29; --line: #35443f; --ink: #e6eeeb; --soft: #a3b5b0;
    --green: #6cc5b4; --on-green: #08231e; --plum: #e08fbd;
    --ok: #8fd6a0; --ok-bg: #16301d; --warn: #efc46c; --warn-bg: #33270d; --bad: #f5a19c; --bad-bg: #3b1a18; --info: #9ccbee; --info-bg: #142a3b;
  }
}
*, ::before, ::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; font-weight: 650; }
p, ul, ol, dl, form { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
small { display: block; color: var(--soft); font-size: .875rem; font-weight: 400; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono, .hash { font-family: var(--mono); font-size: .9em; }
.hash { display: block; overflow-wrap: anywhere; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 20; background: var(--sheet); padding: .75rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.fine { font-size: .875rem; color: var(--soft); }
.empty { color: var(--soft); padding: .75rem 0; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.scroll { overflow-x: auto; }

.seal { display: inline-block; width: 2.25rem; height: 2.25rem; flex: none; }
.seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seal path { fill: none; stroke: var(--green); stroke-width: 2.6; }
.seal .l1 { stroke: var(--plum); }
.seal.mid-seal { width: 4.5rem; height: 4.5rem; } .seal.big { width: 9rem; height: 9rem; }
.seal.mid-seal path { stroke-width: .7; } .seal.big path { stroke-width: .45; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--green); }
.btn.main { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.main:hover { filter: brightness(1.12); }
.btn.quiet { background: none; border-color: transparent; padding-inline: .6rem; }
.btn.quiet:hover { background: var(--sunk); }
.btn.danger { color: var(--bad); border-color: currentColor; }
.btn:disabled { opacity: .55; cursor: default; }

label { display: block; font-weight: 550; }
input:not([type=checkbox], [type=radio]), select, textarea { display: block; width: 100%; margin-top: .3rem; min-height: 2.6rem; padding: .5rem .7rem; border: 1px solid var(--soft); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-weight: 400; }
textarea { resize: vertical; }
input[readonly] { background: var(--sunk); border-color: var(--line); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--green); }
.tick { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; padding: .2rem 0; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 550; padding: 0; }
.stack { display: grid; gap: 1rem; } .stack > .btn { justify-self: start; } .stack > h2 { margin-top: 1rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; align-items: end; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; padding: .4rem 1.25rem; background: var(--sheet); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.15rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bar-end { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.bar-end .btn { position: relative; }
.who { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
.count { position: absolute; top: 0; right: 0; min-width: 1.2rem; padding: 0 .25rem; border-radius: 1rem; background: var(--bad); color: var(--sheet); font-size: .72rem; line-height: 1.2rem; text-align: center; }
.find { display: flex; align-items: center; gap: .6rem; flex: 0 1 26rem; min-width: 0; min-height: 2.5rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--page); color: var(--soft); font: inherit; cursor: pointer; white-space: nowrap; }
.find span { overflow: hidden; text-overflow: ellipsis; } .find kbd { margin-left: auto; font: .75rem var(--mono); }
.menu { display: none; }
.app { display: grid; grid-template: auto 1fr / 14rem minmax(0, 1fr); min-height: 100vh; }
.app > .bar { grid-column: 1 / -1; }
.side { position: sticky; top: 3.75rem; align-self: start; padding: 1.25rem .75rem; display: grid; gap: .15rem; }
.side a, .menu nav a { display: flex; align-items: center; gap: .7rem; min-height: 2.6rem; padding: .4rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; }
.side a:hover, .menu nav a:hover { background: var(--sunk); }
.side [aria-current], .menu [aria-current] { background: var(--sunk); color: var(--green); font-weight: 650; }
.app main { padding: 1.75rem 2rem 4rem; display: grid; gap: 1.5rem; align-content: start; max-width: 82rem; width: 100%; min-width: 0; }
.app main > *, .plain main > * { min-width: 0; }
main section { display: grid; gap: .75rem; align-content: start; }

.head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; }
.head > div:not(.row) { flex: 1 1 16rem; min-width: 0; } .head p { color: var(--soft); }
.notice { padding: .75rem 1rem; border-radius: 6px; background: var(--info-bg); color: var(--info); overflow-wrap: anywhere; }
.notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.bad { background: var(--bad-bg); color: var(--bad); } .notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice a { color: inherit; } .bad { color: var(--bad); }
.tag { padding: .1rem .5rem; border-radius: 4px; background: var(--sunk); color: var(--soft); font-size: .82rem; font-weight: 550; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--bad-bg); color: var(--bad); }

.drop { position: relative; display: grid; gap: .2rem; justify-items: center; padding: 1.5rem 1rem; border: 2px dashed var(--soft); border-radius: 8px; text-align: center; font-weight: 400; color: var(--soft); cursor: pointer; overflow-wrap: anywhere; }
.drop b { display: flex; gap: .5rem; align-items: center; color: var(--green); font-size: 1.05rem; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--green); background: var(--sheet); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.progress { list-style: none; padding: 0; } .progress li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: .5rem 0; overflow-wrap: anywhere; } .progress small.bad { grid-column: 1 / -1; color: var(--bad); }
progress, meter { accent-color: var(--green); height: .8rem; }

.docs, .lines { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.docs li, .lines > li { border-bottom: 1px solid var(--line); }
.docs a, .lines > li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; padding: .65rem .25rem; }
.docs a { color: inherit; text-decoration: none; } .docs a:hover { background: var(--sheet); } .docs a:hover b { text-decoration: underline; }
.docs a > span:not(.seal, .tag), .lines > li > span:first-child, .lines > li > a:first-child, .lines > li > .seal + span { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.lines > li > .seal:first-child { flex: none; }
.lines .new { background: var(--sheet); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; } .filters label { flex: 1 1 8rem; } .filters label:first-of-type { flex: 3 1 14rem; }
.pages { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.storage label { display: grid; gap: .3rem; color: var(--soft); font-weight: 400; max-width: 24rem; } .storage meter { width: 100%; }
table { width: 100%; border-collapse: collapse; } th, td { padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
thead th { font-size: .875rem; color: var(--soft); } .app td time { white-space: nowrap; }
.bars { max-width: 36rem; } .bars th { width: 5rem; font-weight: 400; } .bars th, .bars td { border: 0; padding-block: .1rem; font-variant-numeric: tabular-nums; } .bars meter { width: calc(100% - 3rem); }
.figures { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; } .figures dt { color: var(--soft); } .figures dd { margin: 0; font-size: 1.6rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); } .tabs a { padding: .6rem .8rem; color: var(--soft); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; } .tabs [aria-current] { color: var(--green); border-color: currentColor; font-weight: 650; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 2.5rem 3rem; }
dl:not(.figures) { display: grid; grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr); gap: .4rem 1rem; } dl:not(.figures) dt { color: var(--soft); } dl:not(.figures) dd { margin: 0; overflow-wrap: anywhere; }
details > summary { cursor: pointer; font-weight: 600; }
.person { width: 100%; } .person > summary { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-weight: 400; } .person > summary > span:first-child { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; } .person[open] > * + * { margin-top: 1rem; }
.box { max-width: 36rem; } .box form { margin-top: 1rem; }

.doc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 1fr); gap: 2rem; align-items: start; }
.preview { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
iframe.preview { height: min(78vh, 60rem); color-scheme: light; } .preview img { display: block; max-width: 100%; margin: auto; }
.preview.text, .preview.none { padding: 1.25rem; background: var(--sheet); } .preview.text { max-height: 78vh; overflow: auto; } .preview pre { margin: 1rem 0 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.panels > details { border-top: 1px solid var(--line); padding: .85rem 0; } .panels > details[open] > * + * { margin-top: .85rem; } .panels > form { padding-top: 1rem; border-top: 1px solid var(--line); }
.quote, blockquote { margin: 0; padding-left: .9rem; box-shadow: inset 2px 0 var(--line); overflow-wrap: anywhere; }
.record { max-width: 52rem; display: grid; gap: 1.5rem; } .people { padding: 0; list-style: none; } .people li { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); } .people img { width: 14rem; max-width: 100%; background: #fff; border-radius: 4px; }
.steps { padding-left: 1.25rem; display: grid; gap: 1.25rem; } .qr { width: 14rem; margin: .75rem 0; background: #fff; border-radius: 4px; } .qr svg { display: block; }
.codes { columns: 2; padding: 0; list-style: none; font-size: 1.1rem; line-height: 2; max-width: 24rem; }

.plain { min-height: 100vh; display: flex; flex-direction: column; } .plain main { flex: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; gap: 1.25rem; align-content: start; }
.narrow, .mid, .wide { width: 100%; display: grid; gap: 1.25rem; } .narrow { max-width: 26rem; margin: 0 auto; } .mid { max-width: 40rem; } .plain .mid { margin: 0 auto; } .narrow:has(.prose) { max-width: 42rem; } .prose { max-width: 68ch; overflow-wrap: anywhere; }
.plain .narrow:has(.checks) { max-width: 36rem; } .links { display: flex; flex-wrap: wrap; gap: 1.5rem; } .checks { padding: 0; list-style: none; } .checks .ok { color: var(--ok); }
.foot { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.25rem; border-top: 1px solid var(--line); color: var(--soft); }
.hero { display: grid !important; grid-template-columns: 1.15fr 1fr; gap: 3rem !important; align-items: center; padding-block: 1.5rem 3rem; } .hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1.05; } .hero > div { display: grid; gap: 1.25rem; } .lead { font-size: 1.2rem; max-width: 34ch; color: var(--soft); }
.facts { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem !important; border-top: 1px solid var(--line); padding-top: 2rem; } .facts div { display: grid; gap: .5rem; align-content: start; }
.checker { display: grid; gap: 1rem; padding: 1.5rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; } .checker .seal { justify-self: center; } .checker .btn { justify-self: start; }
.verdict { display: flex !important; flex-wrap: wrap; gap: 1.25rem !important; align-items: flex-start; padding: 1.25rem; border-radius: 8px; background: var(--info-bg); } .verdict > div { flex: 1 1 16rem; display: grid; gap: .6rem; min-width: 0; } .verdict.ok { background: var(--ok-bg); } .verdict.ok h2 { color: var(--ok); } .verdict.bad { background: var(--bad-bg); } .verdict.bad h2 { color: var(--bad); } .verdict.old { background: var(--warn-bg); } .verdict.old h2 { color: var(--warn); }
.signbox { max-width: 40rem; } .signbox canvas { display: block; width: 100%; background: #fff; border: 1px solid var(--soft); border-radius: 6px; touch-action: none; cursor: crosshair; margin-top: .3rem; } .label { font-weight: 550; } .signbox details[open] > * + * { margin-top: .75rem; }

dialog { width: min(38rem, calc(100vw - 2rem)); margin-top: 12vh; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); color: var(--ink); } dialog::backdrop { background: rgb(8 20 18 / .5); }
.found { max-height: 50vh; overflow: auto; margin-top: .75rem; } .found a { display: block; padding: .55rem .7rem; border-radius: 6px; color: inherit; text-decoration: none; overflow-wrap: anywhere; } .found a:hover, .found a:focus { background: var(--sunk); }
#ai-panel { position: fixed; z-index: 6; top: 3.75rem; right: 0; bottom: 0; width: min(25rem, 100vw); display: flex; flex-direction: column; gap: .75rem; padding: 1rem; background: var(--sheet); border-left: 1px solid var(--line); }
#ai-panel header { display: flex; align-items: center; gap: .1rem; } #ai-panel header label { flex: 1; min-width: 0; } #ai-panel select { margin: 0; } #ai-panel form { display: grid; gap: .5rem; } #ai-panel form .btn { justify-self: end; }
.talk { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; overflow-wrap: anywhere; } .talk > div { display: grid; gap: .5rem; } .talk .user { align-self: flex-end; max-width: 88%; padding: .5rem .8rem; border-radius: 8px; background: var(--sunk); white-space: pre-wrap; } .talk .wait, .talk .fault { color: var(--soft); } .talk .fault { color: var(--bad); } .talk ul, .talk ol { padding-left: 1.25rem; } .talk h3 { font-size: 1rem; } .talk pre { margin: 0; white-space: pre-wrap; } .talk td, .talk th { min-width: 6rem; font-size: .9rem; }
.talk .offer { padding: .85rem; border: 1px solid var(--plum); border-radius: 8px; } .talk .offer p { white-space: pre-wrap; } .talk .pastrow { display: flex; } .past { flex: 1; flex-direction: column; align-items: flex-start; white-space: normal; text-align: left; gap: 0; }
@media (min-width: 75rem) { .with-ai main { padding-right: 27rem; max-width: none; } .with-ai .doc { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 60rem) { .app { grid-template-columns: minmax(0, 1fr); } .side { display: none; } .menu { display: block; } .menu summary { display: flex; padding: .6rem; list-style: none; } .menu summary::-webkit-details-marker { display: none; } .menu nav { position: absolute; left: 0; right: 0; top: 100%; padding: .75rem; background: var(--sheet); border-bottom: 1px solid var(--line); } .doc, .hero { grid-template-columns: minmax(0, 1fr); } .who, .bar-end [data-ai] span, .app .brand { font-size: 1rem; } .find kbd { display: none; } .hero { gap: 2rem !important; padding-block: 0 1rem; } }
@media (max-width: 40rem) { .app main { padding: 1.25rem 1rem 3rem; } .bar { gap: .25rem; padding-inline: .6rem; } .app .brand, .find span, .bar-end [data-ai] span { display: none; } .find { flex: none; padding: 0 .65rem; border-color: transparent; background: none; color: inherit; } .who { max-width: 6rem; } .plain .bar-end .quiet { white-space: normal; text-align: right; } .checker { padding: 1rem; } #ai-panel { top: 0; } }
@media print { .bar, .side, .noprint, .btn, #ai-panel, .notice { display: none !important; } .app { display: block; } body { background: #fff; color: #000; } }
