html{color-scheme:dark light}
.theme-switcher{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 88%,transparent)}
.theme-switcher button{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:700;padding:7px 9px;border-radius:8px;cursor:pointer;transition:.18s ease}
.theme-switcher button:hover{color:var(--text)}
.theme-switcher button[aria-pressed="true"]{background:var(--panel2);color:var(--text);box-shadow:0 4px 14px rgba(0,0,0,.12)}
.theme-switcher .theme-icon{font-size:13px;line-height:1}

html[data-theme="light"]{
  --bg:#f4f7fb;
  --bg2:#edf2f8;
  --panel:#ffffff;
  --panel2:#f4f7fb;
  --line:#d9e1ec;
  --text:#18212f;
  --muted:#66758a;
  --shadow:0 28px 80px rgba(40,61,90,.14)
}
html[data-theme="light"] body{
  background:radial-gradient(circle at 75% 10%,rgba(78,99,255,.09),transparent 30%),radial-gradient(circle at 15% 25%,rgba(53,210,255,.07),transparent 26%),var(--bg);
}
html[data-theme="light"] .noise{opacity:.018}
html[data-theme="light"] .site-header{border-color:rgba(31,46,66,.1);background:rgba(255,255,255,.78);box-shadow:0 12px 35px rgba(44,62,88,.08)}
html[data-theme="light"] .site-header nav a{color:#4b5a70}
html[data-theme="light"] .site-header nav a:hover{color:#152033}
html[data-theme="light"] .btn-secondary{background:#fff;color:#203047;border-color:#d1dae7}
html[data-theme="light"] .btn-ghost{color:#324158;border-color:#d2dbe8}
html[data-theme="light"] .hero-copy h1 span,
html[data-theme="light"] .section-heading h2 span,
html[data-theme="light"] .ai-copy h2 span{background:linear-gradient(90deg,#26324a 5%,#1fb7e5,#735cff);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="light"] .eyebrow{color:#5e7594}
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .ai-copy p,
html[data-theme="light"] .launch-card p{color:#627188}
html[data-theme="light"] .privacy-note{color:#718098}
html[data-theme="light"] .preview-window{border-color:#d5dfec;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,249,253,.98));box-shadow:var(--shadow)}
html[data-theme="light"] .window-top{border-color:#dce3ed;background:#f4f7fb}
html[data-theme="light"] .window-top b{color:#66758b}
html[data-theme="light"] .window-top span{background:#c5d0df}
html[data-theme="light"] .preview-drive-row small,
html[data-theme="light"] .float-card small{color:#77869b}
html[data-theme="light"] .capacity-track{background:#e6ecf4}
html[data-theme="light"] .preview-bar{color:#66758a}
html[data-theme="light"] .preview-bar b{color:#2d3b51}
html[data-theme="light"] .preview-bar:nth-child(5) i{background:#a4afbe}
html[data-theme="light"] .float-card{border-color:#d6e0ec;background:rgba(255,255,255,.95);box-shadow:0 18px 45px rgba(41,58,84,.14)}
html[data-theme="light"] .float-card span{color:#6f7f95}
html[data-theme="light"] .trust-strip{border-color:#dfe6ef;color:#7a879a}
html[data-theme="light"] .analyzer-card{border-color:#d8e0eb;background:linear-gradient(180deg,#ffffff,#f7f9fc);box-shadow:var(--shadow)}
html[data-theme="light"] .analyzer-toolbar,
html[data-theme="light"] .summary-grid,
html[data-theme="light"] .file-panel{border-color:#dfe6ef}
html[data-theme="light"] .summary-grid article{border-color:#dfe6ef}
html[data-theme="light"] .summary-grid small,
html[data-theme="light"] .summary-grid span,
html[data-theme="light"] .analyzer-toolbar small,
html[data-theme="light"] .file-panel-head small,
html[data-theme="light"] .sort-control{color:#718097}
html[data-theme="light"] .scan-progress{background:#f1f5fa;border-color:#dce4ee}
html[data-theme="light"] .scan-progress span{color:#65768d}
html[data-theme="light"] .crumb{color:#6d7d92}
html[data-theme="light"] .crumb.current{color:#233147}
html[data-theme="light"] .crumb-sep{color:#a6b1bf}
html[data-theme="light"] .storage-row:hover{background:#f3f7fb;border-color:#d8e2ef}
html[data-theme="light"] .storage-label small{color:#7b899d}
html[data-theme="light"] .storage-track{background:#edf2f7;border-color:#dce4ee}
html[data-theme="light"] .storage-value small{color:#7a879a}
html[data-theme="light"] .sort-control select{background:#fff;color:#243247;border-color:#d4deeb}
html[data-theme="light"] .file-table-wrap th,
html[data-theme="light"] .file-table-wrap td{border-color:#e2e8f0}
html[data-theme="light"] .file-table-wrap th{background:#f5f8fb;color:#7a879a}
html[data-theme="light"] .file-table-wrap td{color:#4d5b70}
html[data-theme="light"] .file-table-wrap td:first-child{color:#202d40}
html[data-theme="light"] .browser-note{color:#728097}
html[data-theme="light"] .feature-card{border-color:#dbe3ee;background:linear-gradient(150deg,#fff,#f7f9fc)}
html[data-theme="light"] .feature-card:hover{border-color:#c7d5e6}
html[data-theme="light"] .feature-icon{background:#eef5fb;border-color:#d3e2f0}
html[data-theme="light"] .feature-card p{color:#68778c}
html[data-theme="light"] .ai-card{border-color:#d7e0eb;background:radial-gradient(circle at 80% 30%,rgba(110,124,255,.1),transparent 32%),linear-gradient(145deg,#fff,#f6f9fc)}
html[data-theme="light"] .tag-cloud span{border-color:#d6e0ec;color:#55657b;background:#f7f9fc}
html[data-theme="light"] .model-card{border-color:#d8e1ec;background:#fff;box-shadow:0 16px 36px rgba(42,61,89,.09)}
html[data-theme="light"] .model-card small{color:#77869a}
html[data-theme="light"] .model-card.duplicate{background:linear-gradient(90deg,rgba(109,224,165,.12),#fff)}
html[data-theme="light"] footer{border-color:#dfe6ef}

@media (max-width:860px){
  .theme-switcher{order:-1}
  .theme-switcher button{padding:7px 8px}
  .theme-switcher .theme-label{display:none}
}
