:root{color-scheme:light}
.theme-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;white-space:nowrap;font-family:var(--font);letter-spacing:0}
.theme-btn svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .theme-sun{display:none}
.top .right{gap:12px}
.catalog-head{flex-wrap:wrap}
.catalog-head .title{flex:1 1 280px;overflow-wrap:break-word}
.catalog-head .tabs{flex-shrink:0}
html[data-theme=dark]{color-scheme:dark;--bg:#10141c;--ink:#e9edf5;--ink-2:#d0d8e4;--ink-3:#a9b5c6;--ink-4:#929fb2;--line:rgba(174,191,215,.13);--line-2:rgba(174,191,215,.25);--card:rgba(26,34,47,.94)}
html[data-theme=dark] body{background:radial-gradient(110% 85% at 50% -25%,rgba(61,86,123,.3),transparent 60%),radial-gradient(90% 70% at 78% 18%,rgba(39,56,82,.28),transparent 65%),linear-gradient(180deg,#111721 0,#151c28 55%,#0e131c 100%)}
html[data-theme=dark] .bg-grid{background-image:linear-gradient(rgba(163,184,215,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(163,184,215,.045) 1px,transparent 1px)}
html[data-theme=dark] #spot{background:radial-gradient(circle,rgba(84,120,174,.09),rgba(42,63,92,.04) 45%,transparent 68%)}
html[data-theme=dark] .sheen{background:linear-gradient(90deg,transparent,rgba(169,191,224,.25),transparent)}
html[data-theme=dark] .top{background:rgba(16,22,32,.78)}
html[data-theme=dark] .top .logo,html[data-theme=dark] .catalog-head .title,html[data-theme=dark] .body h3,html[data-theme=dark] .src-row .nm,html[data-theme=dark] .modal .box h2,html[data-theme=dark] .tips-box h2{color:#edf2fa}
html[data-theme=dark] .top nav a{color:#b1bfd2}
html[data-theme=dark] .top nav a:hover,html[data-theme=dark] .top nav a[aria-current=page]{color:#f4f7fc}
html[data-theme=dark] .lang-btn,html[data-theme=dark] .tab,html[data-theme=dark] .chip,html[data-theme=dark] .tag{background:rgba(33,43,59,.85)}
html[data-theme=dark] .lang-btn:hover,html[data-theme=dark] .tab:hover,html[data-theme=dark] .chip:hover{border-color:#6c829f;color:#f0f5fc}
html[data-theme=dark] .tab.on,html[data-theme=dark] .chip.on{background:#dce7f6;border-color:#dce7f6;color:#172131}
html[data-theme=dark] .toolbar,html[data-theme=dark] .sources{background:rgba(24,32,45,.76)}
html[data-theme=dark] .search,html[data-theme=dark] .sel{background:#1b2433}
html[data-theme=dark] .search input::placeholder{color:#95a2b5;opacity:1}
html[data-theme=dark] .card{box-shadow:0 14px 34px -20px rgba(0,0,0,.7)}
html[data-theme=dark] .card:hover{box-shadow:0 22px 44px -20px rgba(0,0,0,.85);border-color:rgba(174,191,215,.35)}
html[data-theme=dark] .go .quick-play{background:rgba(169,190,222,.13);color:#e0e9f6}
html[data-theme=dark] .go .quick-play:hover{background:#dce7f6;color:#172131}
html[data-theme=dark] .spinner{border-top-color:#b5cef1}
html[data-theme=dark] .modal{background:rgba(4,8,14,.72)}
html[data-theme=dark] .modal .box{background:#1a2331}
html[data-theme=dark] .modal .mclose,html[data-theme=dark] .modal .fact{background:#222e40}
html[data-theme=dark] .modal .mevidence{background:#172f31;color:#b6d0d0}
html[data-theme=dark] .btn{background:#dce7f6;border-color:#dce7f6;color:#172131}
html[data-theme=dark] .btn:hover{background:#c3d6ef}
html[data-theme=dark] .btn.ghost{background:#222e40;border-color:var(--line-2);color:#dae5f5}
html[data-theme=dark] .btn.ghost:hover{border-color:#9ab3d6;background:#2a3950}
html[data-theme=dark] .tips-hint{background:#1e3045;border-left-color:#80aee8;color:#c0d7ef}
html[data-theme=dark] .tips-foot b{color:#97bdf0}
html[data-theme=dark] .tips-shell{background:rgba(167,192,228,.09)}
html[data-theme=dark] .toast{background:#dce7f6;color:#172131}
html[data-theme=dark] :focus-visible{outline-color:#90baff}
html[data-theme=dark] .theme-btn .theme-moon{display:none}
html[data-theme=dark] .theme-btn .theme-sun{display:block}
html[data-theme=dark] .about-title,html[data-theme=dark] .about-pillar h2{color:#edf2fa}
html[data-theme=dark] .about-kicker{background:#202c3e;color:#b9cce4}
html[data-theme=dark] .about-sub,html[data-theme=dark] .about-pillar p{color:var(--ink-3)}
html[data-theme=dark] .about-pillar{background:var(--card)}
html[data-theme=dark] .about-num{color:var(--ink-4)}
html[data-theme=dark] .about-cta{background:#dce7f6;color:#172131}
html[data-theme=dark] .about-cta:hover{background:#c3d6ef}
@media(max-width:600px){
  .top{gap:12px;height:auto;min-height:61px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
  .top .right{gap:8px;margin-left:auto}
  .top nav{gap:10px}
  .lang-btn{padding:6px 9px;min-height:34px}
  .theme-btn{padding:6px 8px}
  .catalog-head{gap:14px}
  .catalog-head .title{font-size:clamp(28px,7vw,38px);flex-basis:100%;line-height:1.2}
  .catalog-head .tabs{margin-left:auto}
}
