/* ===== SysRoot dark mode — applied when <html data-theme="dark"> ===== */
.theme-btn{width:44px;height:44px;flex-shrink:0;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#F7D08A;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .2s,background .2s}
.theme-btn:hover{border-color:#F7D08A;background:rgba(255,255,255,.06)}
.theme-btn svg{width:20px;height:20px}
.theme-btn:focus-visible{outline:3px solid #E9A24A;outline-offset:2px}

html[data-theme="dark"]{color-scheme:dark;
  --ink:#06142B; --panel:#0C2045; --panel-2:#112A56; --line:#1F3868;
  --paper:#E8EEF8; --muted:#A8B6CF;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3),0 2px 8px rgba(0,0,0,.25);
  --shadow-md:0 2px 6px rgba(0,0,0,.3),0 14px 34px -10px rgba(0,0,0,.55);}
html[data-theme="dark"] body{background:var(--ink);color:var(--paper)}

/* cards & surfaces */
html[data-theme="dark"] .svc,html[data-theme="dark"] .tcard,html[data-theme="dark"] .ticket,html[data-theme="dark"] .stat,
html[data-theme="dark"] .topic,html[data-theme="dark"] .guide,html[data-theme="dark"] .legal section,
html[data-theme="dark"] .faq details,html[data-theme="dark"] .midrag-badge{background:var(--panel)!important;border-color:var(--line)!important}
html[data-theme="dark"] .steps li,html[data-theme="dark"] .steps-l li,html[data-theme="dark"] .svc-grid li,html[data-theme="dark"] .review,
html[data-theme="dark"] .contact-card,html[data-theme="dark"] .form-legal,html[data-theme="dark"] .pill,
html[data-theme="dark"] .kbd-table tr:nth-child(even) td{background:var(--panel-2)!important;border-color:var(--line)!important}
html[data-theme="dark"] .kbd-table,html[data-theme="dark"] .kbd-table td{border-color:var(--line)}
html[data-theme="dark"] kbd{background:#0A1B3A;color:#F7D08A;border-color:#2B4677}

/* text */
html[data-theme="dark"] .intro,html[data-theme="dark"] .steps li,html[data-theme="dark"] .steps-l li,html[data-theme="dark"] .legal p,
html[data-theme="dark"] .legal li,html[data-theme="dark"] .tcard .quote,html[data-theme="dark"] .review blockquote,
html[data-theme="dark"] .faq details>div,html[data-theme="dark"] .svc p,html[data-theme="dark"] .note p{color:#D2DCEC!important}
html[data-theme="dark"] .gtitle,html[data-theme="dark"] .t-name,html[data-theme="dark"] .cat-head h2,html[data-theme="dark"] .svc h3,
html[data-theme="dark"] .section-head h2,html[data-theme="dark"] .contact-info h2,html[data-theme="dark"] .legal h2,
html[data-theme="dark"] .faq summary,html[data-theme="dark"] .steps b,html[data-theme="dark"] .intro b,html[data-theme="dark"] .legal b,
html[data-theme="dark"] .svc-grid b,html[data-theme="dark"] .who-name,html[data-theme="dark"] .info-row .k,html[data-theme="dark"] label,
html[data-theme="dark"] .mb-text b,html[data-theme="dark"] .contact-card b,html[data-theme="dark"] .review figcaption b{color:#F2F5FB!important}
html[data-theme="dark"] .legal a,html[data-theme="dark"] .no-results a,html[data-theme="dark"] .form-legal a,html[data-theme="dark"] .rating-note a{color:#F7D08A!important}
html[data-theme="dark"] .legal a.btn-gold{color:#071833!important}

/* notes */
html[data-theme="dark"] .note.tip{background:#0F2A55!important;border-color:#24508F!important}
html[data-theme="dark"] .note.tip strong{color:#8FC2FF!important}
html[data-theme="dark"] .note.warn,html[data-theme="dark"] .note-box{background:#2A1D0C!important;border-color:#6B4A1C!important;color:#F1DDBF}
html[data-theme="dark"] .note.warn strong,html[data-theme="dark"] .note-box strong{color:#F7C27A!important}
html[data-theme="dark"] .pill.lvl1,html[data-theme="dark"] .svc-status,html[data-theme="dark"] .wa-badge{background:#0E3326!important;color:#6EE7B7!important;border-color:#1D5C45!important}
html[data-theme="dark"] .pill.lvl2{background:#2A1D0C!important;color:#F7C27A!important;border-color:#6B4A1C!important}
html[data-theme="dark"] .t-source{color:#6EE7B7}

/* buttons & inputs */
html[data-theme="dark"] .btn-line,html[data-theme="dark"] .btn-ghost,html[data-theme="dark"] .areas a{background:transparent!important;color:#E8EEF8!important;border-color:#3A5486!important}
html[data-theme="dark"] .areas a[aria-current]{background:#F7D08A!important;color:#071833!important;border-color:#F7D08A!important}
html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#0A1B3A!important;color:#E8EEF8!important;border-color:#2B4677!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#7F8EAB!important}
html[data-theme="dark"] .chev{border-color:var(--line)}
html[data-theme="dark"] .chev::before{border-color:#E8EEF8}
html[data-theme="dark"] .guide[open]{border-color:#3A5486!important}

/* smart assistant */
html[data-theme="dark"] .sra-panel{background:#0C2045;border-color:#1F3868}
html[data-theme="dark"] .sra-log{background:#06142B}
html[data-theme="dark"] .sra-bot{background:#0C2045;border-color:#1F3868;color:#E8EEF8}
html[data-theme="dark"] .sra-res,html[data-theme="dark"] .sra-chip{background:#112A56;border-color:#1F3868;color:#E8EEF8}
html[data-theme="dark"] .sra-res small{color:#A8B6CF}
html[data-theme="dark"] .sra-form,html[data-theme="dark"] .sra-note{background:#0C2045;color:#A8B6CF;border-color:#1F3868}
html[data-theme="dark"] .sra-form input{background:#0A1B3A;color:#E8EEF8;border-color:#2B4677}

@media (max-width:760px){.theme-btn{width:44px;height:44px}}
