.themes button{display:inline-grid; place-items:center; padding:.36rem .55rem}
.themes svg{width:14px; height:14px; display:block}
.setmenu{display:none; position:relative}
@media (max-width:760px){
.bar .barend > .lang{display:none}
.setmenu{display:block}
}
.setbtn{display:inline-flex; align-items:center; gap:.4rem; font:500 .78rem var(--mono); letter-spacing:.04em; color:#fff;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.38); border-radius:999px; padding:.42rem .75rem; min-height:36px; cursor:pointer}
.setbtn svg{width:15px; height:15px; display:block}
.setbtn .setth svg{display:none}
.setbtn[data-theme-now="light"] .i-light,.setbtn[data-theme-now="system"] .i-system,.setbtn[data-theme-now="dark"] .i-dark{display:block}
.setbtn[aria-expanded="true"]{background:#fff; color:#144085}
.setpanel{position:absolute; right:0; top:calc(100% + .55rem); z-index:60; width:min(19rem, calc(100vw - 2rem)); box-sizing:border-box;
  background:#fff; color:#10244a; border:1px solid rgba(16,36,74,.15); border-radius:14px; box-shadow:0 16px 40px rgba(16,36,74,.25); padding:.85rem}
.setl{margin:.1rem 0 .45rem; font:500 .66rem var(--mono); letter-spacing:.09em; text-transform:uppercase; color:#55627a}
.seg{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; background:#e3e9f3; border-radius:10px; padding:4px; margin:0 0 .7rem}
.seg:last-child{margin-bottom:0}
.seg button{display:flex; align-items:center; justify-content:center; gap:.35rem; font:500 .86rem var(--body); color:#10244a;
  background:transparent; border:0; border-radius:7px; padding:.55rem .35rem; min-height:40px; cursor:pointer}
.seg button svg{width:14px; height:14px; display:block}
.seg button[aria-pressed="true"]{background:#144085; color:#fff; box-shadow:0 1px 3px rgba(16,36,74,.3)}
.setpanel button:focus-visible,.setbtn:focus-visible{outline:2px solid #fd5c05; outline-offset:2px}
.seo .lng-link{font:500 .8rem var(--mono); color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.45); border-radius:999px; padding:.35rem .75rem}
.seo .crumbs{font:500 .75rem var(--mono); margin:0 0 .8rem}
.seo h1{margin:.2rem 0 .6rem}
.seo h2{margin:1.6rem 0 .5rem}
.seo-lead{font-size:1.1rem; max-width:62ch}
.seo-dl{display:grid; gap:0; margin:1rem 0; border-top:1px solid rgba(16,36,74,.15)}
.seo-dl div{display:grid; grid-template-columns:minmax(8rem,14rem) 1fr; gap:1rem; padding:.55rem 0; border-bottom:1px solid rgba(16,36,74,.15)}
.seo-dl dt{font:500 .72rem var(--mono); letter-spacing:.06em; text-transform:uppercase; color:#55627a; padding-top:.15rem}
.seo-dl dd{margin:0; font-weight:600}
.seo-act{display:flex; flex-wrap:wrap; gap:.6rem; margin:1.4rem 0 1rem}
.seo-btn{font:600 .9rem var(--body); text-decoration:none; padding:.7rem 1.1rem; border-radius:999px; background:#144085; color:#fff !important; border:1px solid #144085}
.seo-btn.ghost{background:transparent; color:#144085 !important}
.seo-list{list-style:none; padding:0; margin:0 0 1rem}
.seo-list li{padding:.45rem 0; border-bottom:1px solid rgba(16,36,74,.12)}
.seo-list a{text-decoration:none}
.seo-list b{font:600 .8rem var(--mono); margin-right:.4rem}
.seo-pn{display:flex; justify-content:space-between; gap:1rem; margin:1.5rem 0}
.seo-foot{margin-top:2.5rem; padding-top:1rem; border-top:1px solid rgba(16,36,74,.15)}
@media (max-width:560px){
.seo-dl div{grid-template-columns:1fr; gap:.15rem}
}
.bar .setpanel button:focus-visible{outline:2px solid #144085; outline-offset:2px}
@media screen{
html[data-theme="dark"]{--paper-bg:#0a1428; --panel:#13233f; --ink:#e8eef8; --slate:#9fb0c8; --sea:#4f9cc2;
  --council-blue:#7aa6f2; --surface:#112040;
  --bg:var(--paper-bg); --fg:var(--ink); --mute:var(--slate); --rule:rgba(232,238,248,.15);
  --accent:#7aa6f2; --accent-ink:#0a1428; --shadow:rgba(0,0,0,.5);
  color-scheme:dark;}
html[data-theme="dark"] body{background:var(--bg); color:var(--fg)}
html[data-theme="dark"] .bar{background:#0f2550; border-bottom-color:#fd5c05}
html[data-theme="dark"] .bar .lang button[aria-pressed="true"]{background:#e8eef8; color:#0f2550}
html[data-theme="dark"] .door,html[data-theme="dark"] .pv-tools{background:var(--surface)}
html[data-theme="dark"] .door-investment{--ct:#ff8f55}
html[data-theme="dark"] .cat-grant{color:#0a1428}
html[data-theme="dark"] .catsw button[data-cat="grant"][aria-pressed="true"]{color:#0a1428}
html[data-theme="dark"] .tool.src:hover,html[data-theme="dark"] .srcpdf:hover{color:#0a1428}
html[data-theme="dark"] .door-grant[aria-pressed="true"]{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="dark"] .door-investment[aria-pressed="true"]{background:#fd5c05; border-color:#fd5c05; color:#10244a}
html[data-theme="dark"] .catsw button[data-cat="investment"][aria-pressed="true"]{color:#10244a}
html[data-theme="dark"] .sndbtn[aria-pressed="true"]{color:var(--bg)}
html[data-theme="dark"] .tl{background:var(--panel)}
html[data-theme="dark"] .docpage{background:var(--bg); color:var(--fg)}
html[data-theme="dark"] .docpage header{background:#0f2550}
html[data-theme="dark"] .docpage a{color:#9cc0ff}
html[data-theme="dark"] .docpage .muted{color:var(--mute)}
html[data-theme="dark"] .docpage .choice{background:var(--surface); border-color:var(--rule)}
html[data-theme="dark"] .docpage .choice button{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="dark"] .docpage .choice button[data-consent-set="denied"]{background:transparent; color:#9cc0ff}
html[data-theme="dark"] .nf-code{color:#7aa6f2}
html[data-theme="dark"] .docpage .nf-home{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="dark"] .nf-play{background:transparent; color:#9cc0ff; border-color:#7aa6f2}
html[data-theme="dark"] .nf-play[aria-pressed="true"]{background:#e8eef8; color:#0a1428; border-color:#fd5c05}
html[data-theme="dark"] .nf-sea path[stroke]{stroke:#e8eef8}
html[data-theme="dark"] .cns{background:#112040; color:#e8eef8; border-color:rgba(232,238,248,.18); border-top-color:#7aa6f2}
html[data-theme="dark"] .cns button{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="dark"] .cns button[data-c="denied"]{background:transparent; color:#9cc0ff}
html[data-theme="dark"] .cns a{color:#9cc0ff}
html[data-theme="dark"] .sheet{--paper-bg:#f2f5fa; --panel:#e3e9f3; --ink:#10244a; --slate:#55627a; --sea:#3f8fb5; --council-blue:#144085;
  --bg:#fff; --fg:var(--paper-ink); --mute:var(--paper-mute); --rule:var(--paper-rule); --accent:#144085; --accent-ink:#fff;
  --shadow:rgba(16,36,74,.22); color-scheme:light;}
html[data-theme="dark"] .sheet .cat-grant{color:#fff}
html[data-theme="dark"] .pv .sheet{box-shadow:0 12px 40px rgba(0,0,0,.55)}
html[data-theme="dark"] .prov-qr{background:var(--surface); border-color:var(--rule)}
html[data-theme="dark"] .docpage header a{color:#fff}
html[data-theme="dark"] .setpanel{background:#112040; color:#e8eef8; border-color:rgba(232,238,248,.16); box-shadow:0 16px 40px rgba(0,0,0,.6)}
html[data-theme="dark"] .setl{color:#9fb0c8}
html[data-theme="dark"] .seg{background:#0a1428}
html[data-theme="dark"] .seg button{color:#e8eef8}
html[data-theme="dark"] .seg button[aria-pressed="true"]{background:#7aa6f2; color:#0a1428}
html[data-theme="dark"] .setbtn[aria-expanded="true"]{background:#e8eef8; color:#0f2550}
html[data-theme="dark"] .seo-dl,html[data-theme="dark"] .seo-dl div,html[data-theme="dark"] .seo-list li,html[data-theme="dark"] .seo-foot{border-color:rgba(232,238,248,.14)}
html[data-theme="dark"] .seo-dl dt{color:#9fb0c8}
html[data-theme="dark"] .seo-btn{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428 !important}
html[data-theme="dark"] .seo-btn.ghost{background:transparent; color:#9cc0ff !important}
html[data-theme="dark"] #scene{--ink:#10244a; --fg:#10244a; --mute:#55627a; --council-blue:#144085; --accent:#144085; --accent-ink:#fff}
html[data-theme="dark"] .cat-investment{color:#10244a}
html[data-theme="dark"] .bar .setpanel button:focus-visible{outline-color:#fd5c05}
html[data-theme="dark"] .catsw button[aria-pressed="true"] i{opacity:1}
}
@media screen and (prefers-color-scheme:dark){
html[data-theme="system"]{--paper-bg:#0a1428; --panel:#13233f; --ink:#e8eef8; --slate:#9fb0c8; --sea:#4f9cc2;
  --council-blue:#7aa6f2; --surface:#112040;
  --bg:var(--paper-bg); --fg:var(--ink); --mute:var(--slate); --rule:rgba(232,238,248,.15);
  --accent:#7aa6f2; --accent-ink:#0a1428; --shadow:rgba(0,0,0,.5);
  color-scheme:dark;}
html[data-theme="system"] body{background:var(--bg); color:var(--fg)}
html[data-theme="system"] .bar{background:#0f2550; border-bottom-color:#fd5c05}
html[data-theme="system"] .bar .lang button[aria-pressed="true"]{background:#e8eef8; color:#0f2550}
html[data-theme="system"] .door,html[data-theme="system"] .pv-tools{background:var(--surface)}
html[data-theme="system"] .door-investment{--ct:#ff8f55}
html[data-theme="system"] .cat-grant{color:#0a1428}
html[data-theme="system"] .catsw button[data-cat="grant"][aria-pressed="true"]{color:#0a1428}
html[data-theme="system"] .tool.src:hover,html[data-theme="system"] .srcpdf:hover{color:#0a1428}
html[data-theme="system"] .door-grant[aria-pressed="true"]{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="system"] .door-investment[aria-pressed="true"]{background:#fd5c05; border-color:#fd5c05; color:#10244a}
html[data-theme="system"] .catsw button[data-cat="investment"][aria-pressed="true"]{color:#10244a}
html[data-theme="system"] .sndbtn[aria-pressed="true"]{color:var(--bg)}
html[data-theme="system"] .tl{background:var(--panel)}
html[data-theme="system"] .docpage{background:var(--bg); color:var(--fg)}
html[data-theme="system"] .docpage header{background:#0f2550}
html[data-theme="system"] .docpage a{color:#9cc0ff}
html[data-theme="system"] .docpage .muted{color:var(--mute)}
html[data-theme="system"] .docpage .choice{background:var(--surface); border-color:var(--rule)}
html[data-theme="system"] .docpage .choice button{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="system"] .docpage .choice button[data-consent-set="denied"]{background:transparent; color:#9cc0ff}
html[data-theme="system"] .nf-code{color:#7aa6f2}
html[data-theme="system"] .docpage .nf-home{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="system"] .nf-play{background:transparent; color:#9cc0ff; border-color:#7aa6f2}
html[data-theme="system"] .nf-play[aria-pressed="true"]{background:#e8eef8; color:#0a1428; border-color:#fd5c05}
html[data-theme="system"] .nf-sea path[stroke]{stroke:#e8eef8}
html[data-theme="system"] .cns{background:#112040; color:#e8eef8; border-color:rgba(232,238,248,.18); border-top-color:#7aa6f2}
html[data-theme="system"] .cns button{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428}
html[data-theme="system"] .cns button[data-c="denied"]{background:transparent; color:#9cc0ff}
html[data-theme="system"] .cns a{color:#9cc0ff}
html[data-theme="system"] .sheet{--paper-bg:#f2f5fa; --panel:#e3e9f3; --ink:#10244a; --slate:#55627a; --sea:#3f8fb5; --council-blue:#144085;
  --bg:#fff; --fg:var(--paper-ink); --mute:var(--paper-mute); --rule:var(--paper-rule); --accent:#144085; --accent-ink:#fff;
  --shadow:rgba(16,36,74,.22); color-scheme:light;}
html[data-theme="system"] .sheet .cat-grant{color:#fff}
html[data-theme="system"] .pv .sheet{box-shadow:0 12px 40px rgba(0,0,0,.55)}
html[data-theme="system"] .prov-qr{background:var(--surface); border-color:var(--rule)}
html[data-theme="system"] .docpage header a{color:#fff}
html[data-theme="system"] .setpanel{background:#112040; color:#e8eef8; border-color:rgba(232,238,248,.16); box-shadow:0 16px 40px rgba(0,0,0,.6)}
html[data-theme="system"] .setl{color:#9fb0c8}
html[data-theme="system"] .seg{background:#0a1428}
html[data-theme="system"] .seg button{color:#e8eef8}
html[data-theme="system"] .seg button[aria-pressed="true"]{background:#7aa6f2; color:#0a1428}
html[data-theme="system"] .setbtn[aria-expanded="true"]{background:#e8eef8; color:#0f2550}
html[data-theme="system"] .seo-dl,html[data-theme="system"] .seo-dl div,html[data-theme="system"] .seo-list li,html[data-theme="system"] .seo-foot{border-color:rgba(232,238,248,.14)}
html[data-theme="system"] .seo-dl dt{color:#9fb0c8}
html[data-theme="system"] .seo-btn{background:#7aa6f2; border-color:#7aa6f2; color:#0a1428 !important}
html[data-theme="system"] .seo-btn.ghost{background:transparent; color:#9cc0ff !important}
html[data-theme="system"] #scene{--ink:#10244a; --fg:#10244a; --mute:#55627a; --council-blue:#144085; --accent:#144085; --accent-ink:#fff}
html[data-theme="system"] .cat-investment{color:#10244a}
html[data-theme="system"] .bar .setpanel button:focus-visible{outline-color:#fd5c05}
html[data-theme="system"] .catsw button[aria-pressed="true"] i{opacity:1}
}
