:root {
  color-scheme: dark; --bg:#090a0d; --surface:#121419; --raised:#1c1f26; --line:#323640;
  --text:#f5f6f8; --muted:#adb3bf; --accent:#ff646a; --red:#ba1624;
  --gold:#e9bc59; --header:#090a0df2; --signal:#4c1b24; --glow:#bb293c49;
}
:root[data-theme=light] {
  color-scheme:light; --bg:#f5f5f6; --surface:#fff; --raised:#edeef1; --line:#cbd0d8;
  --text:#16191f; --muted:#505765; --accent:#a91421; --red:#b61927;
  --gold:#875c0c; --header:#f5f5f6f5; --signal:#e4e6e9; --glow:#47546619;
}
* { box-sizing:border-box; }
html { scroll-padding-top:90px; scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
p { color:var(--muted); }
a { color:inherit; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
[hidden] { display:none!important; }
img,svg,video { max-width:100%; }
img,video { display:block; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip { position:fixed; z-index:8; inset:8px auto auto 8px; padding:10px; background:var(--surface); transform:translateY(-160%); }
.skip:focus { transform:none; }
.wrap { width:min(1120px, calc(100% - 64px)); margin-inline:auto; }
.icon { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.site-header { position:sticky; top:0; z-index:5; border-bottom:1px solid var(--line); background:var(--header); backdrop-filter:blur(14px); }
.header-inner,.minimal-footer { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:66px; }
.brand { display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:750; letter-spacing:-.035em; }
.brand img { width:32px; height:32px; }
.nav,.minimal-footer nav { display:flex; align-items:center; flex-wrap:wrap; gap:8px 23px; }
.nav { margin-left:auto; }
.nav a,.minimal-footer nav a { color:var(--muted); text-decoration:none; font-size:14px; }
.nav a:hover,.nav a[aria-current],.minimal-footer nav a:hover { color:var(--text); }
.theme-control select { padding:6px 7px; font-size:13px; min-height:38px; }
.menu-button,.icon-button { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:8px; width:42px; height:42px; place-items:center; }
.menu-button,.mobile-only { display:none; }
.icon-button { display:grid; }
.site-footer { border-top:1px solid var(--line); padding-block:18px; color:var(--muted); font-size:13px; }
.site-footer .brand { color:var(--text); font-size:16px; }
.page-head { padding-block:clamp(40px,7vw,82px) 24px; }
h1,h2,h3 { color:var(--text); line-height:1.13; letter-spacing:-.035em; }
.page-head h1 { font-size:clamp(38px,6vw,68px); margin:0 0 12px; }
.intro { max-width:65ch; margin:0; font-size:18px; }
.page-content { margin-bottom:64px; }
.page-action { display:inline-block; margin-top:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 16px; border-radius:8px; border:1px solid var(--line); background:var(--surface); color:var(--text); font-weight:650; font-size:14px; text-decoration:none; }
.btn:hover { background:var(--raised); }
.btn.primary { background:var(--red); border-color:var(--red); color:#fff; }
.btn.primary:hover { background:#a00f1e; }
.btn:disabled { opacity:.64; cursor:default; }
.btn.small { padding:5px 12px; }
.button-row,.tech-actions { display:flex; flex-wrap:wrap; gap:10px; }
.text-link,.privacy-content a,.faq-list a,.usb-guide a { color:var(--accent); text-underline-offset:3px; }
.notice,.portal-panel,.release-card,.report-builder { padding:clamp(15px,3vw,28px); border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.notice { display:flex; gap:10px; align-items:center; margin-bottom:20px; }
.notice p { margin:0; }
.simple-page,.release-notes,.feature-list,.policy { max-width:850px; }
.release-top { display:flex; align-items:center; gap:15px; margin-bottom:14px; }
.release-top h2,.release-top p { margin:0; }
.app-icon { width:64px; height:64px; }
.compact-release { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.85fr); gap:clamp(18px,4vw,38px); align-items:start; }
.download-main { min-width:0; }
.download-links { display:grid; justify-items:start; gap:6px; margin-top:16px; }
.download-links a { display:inline-flex; align-items:center; gap:6px; color:var(--muted); text-underline-offset:3px; text-decoration-color:var(--line); font-size:.875rem; }
.download-links a:hover,.download-links a:focus-visible { color:var(--text); text-decoration-color:currentColor; }
.download-highlights { padding:clamp(16px,2.6vw,24px); background:var(--raised); border:1px solid var(--line); border-radius:10px; }
.download-highlights h3 { margin:4px 0 9px; font-size:clamp(22px,3vw,30px); }
.download-highlights p { margin:0; font-size:.9375rem; }
.download-highlights .download-eyebrow { color:var(--gold); font-weight:700; font-size:.75rem; letter-spacing:.07em; text-transform:uppercase; }
@media(max-width:680px) {
  .compact-release { grid-template-columns:minmax(0,1fr); }
}
details { border-bottom:1px solid var(--line); padding:13px 0; }
summary { cursor:pointer; font-weight:650; }
details p { margin:9px 0 0; }
.feature-row summary { display:flex; gap:12px; align-items:center; }
.feature-row summary .icon { color:var(--accent); }
.feature-row summary::after { content:"+"; color:var(--gold); margin-left:auto; }
.feature-row[open] summary::after { content:"−"; }
.feature-description { display:block; color:var(--muted); font-weight:400; }
.feature-body { padding-left:30px; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.gallery-caption h3 { margin:10px 0 0; }
.screenshot-frame { width:100%; aspect-ratio:16/9; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--muted); overflow:hidden; }
.screenshot-frame img { width:100%; height:100%; object-fit:contain; }
.screenshot-placeholder { display:grid; place-content:center; justify-items:center; gap:8px; font-size:13px; text-align:center; padding:10px; }
.gallery-open { padding:0; }
.dialog { width:min(1000px,92vw); border:1px solid var(--line); border-radius:12px; padding:16px; background:var(--surface); color:var(--text); }
.dialog::backdrop { background:#000b; }
.dialog-head,.dialog-footer { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.dialog-head { margin-bottom:12px; }
.dialog-head h2 { margin:0; font-size:20px; }
.dialog-footer { justify-content:flex-end; margin-top:12px; }
.field { margin-bottom:15px; }
.field label { display:block; font-size:14px; font-weight:620; margin-bottom:5px; }
.field :is(input,select,textarea),select,.support-search input { width:100%; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:9px 10px; }
.field textarea { resize:vertical; min-height:110px; }
.support-search { max-width:620px; display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.report-builder { display:grid; grid-template-columns:1fr 1fr; gap:26px; margin-top:30px; }
.report-builder h2,.portal-panel h2 { margin-top:0; }
.report-output { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--raised); padding:12px; }
.policy section { margin-bottom:28px; }
.policy p,.policy li { max-width:72ch; }
.policy a { color:var(--accent); }
@media(max-width:860px) {
  .header-inner { gap:10px; justify-content:flex-start; }
  .theme-control { margin-left:auto; }
  .menu-button { display:grid; flex:none; }
  .nav { display:none; position:absolute; inset:100% 0 auto; padding:14px 18px; background:var(--surface); border-bottom:1px solid var(--line); }
  .nav.open { display:grid; }
  .nav a { min-height:40px; display:flex; align-items:center; }
  .nav a.btn { width:max-content; }
}
@media(max-width:760px) {
  .wrap { width:calc(100% - 36px); }
  .minimal-footer { flex-wrap:wrap; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-builder { grid-template-columns:1fr; }
}
@media(max-width:420px) { .gallery-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
:root:not([data-theme=light]) [data-capture-theme=light],
:root[data-theme=light] [data-capture-theme=dark] { display:none; }
.checksum code { overflow-wrap:anywhere; }

.btn.gold { background:#e7b858; border-color:#e7b858; color:#241904; }
.btn.gold:hover:not(:disabled) { background:#f4cb73; border-color:#f4cb73; }
.nav a.btn { color:var(--text); }
.nav a.btn.primary { color:#fff; }

.screenshot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
.screenshot-grid .gallery-caption p { margin: 5px 0 0; font-size: 0.875rem; line-height: 1.45; min-height: 2.9em; }
.screenshot-grid .gallery-open { cursor: zoom-in; }
#dialog-content img { width: 100%; max-height: 72vh; object-fit: contain; }
@media (max-width: 940px) { .screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .screenshot-grid { grid-template-columns: 1fr; } }

.release-top > div,.report-builder > * { min-width:0; }
.release-top .app-icon { flex:none; }
.release-top p a { color:var(--accent); text-underline-offset:3px; }
@media (max-width:860px) {
  .nav {
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 10px;
    max-height:calc(100vh - 67px); max-height:calc(100dvh - 67px); overflow:auto;
  }
  .nav a { min-height:44px; padding:6px 10px; }
  .nav a.btn { width:100%; justify-content:flex-start; }
}
@media (max-width:600px) {
  .wrap { width:calc(100% - 28px); }
  .theme-control select { font-size:1rem; min-height:44px; }
  .page-head { padding-block:30px 18px; }
  .page-head h1 { font-size:clamp(34px,9vw,52px); }
  .intro { font-size:1rem; }
  .page-content { margin-bottom:36px; }
  .minimal-footer { justify-content:flex-start; gap:8px 20px; }
  .minimal-footer nav { gap:4px 16px; }
  .minimal-footer nav a { display:inline-flex; align-items:center; min-height:44px; }
  .report-builder { gap:14px; }
  .dialog-head,.dialog-footer { flex-wrap:wrap; }
  .release-top { align-items:flex-start; gap:10px; }
  .release-top .app-icon { width:46px; height:46px; }
}
