/* Compte Hubibu, dark theme (Thibault's rule: every screen in light AND dark).
   Applies when the page is dark (html[data-theme=dark], from the account through theme.js); account.html opts in with data-hb-dark.
   Light values stay in account.html; only colours are redefined here. */
html[data-theme=dark][data-hb-dark]{color-scheme:dark;--ink:#e3eaee;--muted:#a3b0b9;--line:#33414b;--accent:#9cc4ee;--paper:#18222a;--hb-surface:#18222a;--hb-ink:#e3eaee;--hb-muted:#a3b0b9;--hb-line:#33414b;--hb-tint:#22313d;--hb-action:#9cc4ee}
html[data-theme=dark][data-hb-dark] body{background:#10181e}
html[data-theme=dark][data-hb-dark] header{background:#18222a}
html[data-theme=dark][data-hb-dark] input,html[data-theme=dark][data-hb-dark] select,html[data-theme=dark][data-hb-dark] textarea{background:#0f171d;color:var(--ink);border-color:#4a5a66}
html[data-theme=dark][data-hb-dark] button{background:#2f6aa5;border-color:#2f6aa5;color:#fff}
html[data-theme=dark][data-hb-dark] button.secondary{background:transparent;color:var(--accent);border-color:#4a5a66}
html[data-theme=dark][data-hb-dark] button:focus-visible,html[data-theme=dark][data-hb-dark] input:focus,html[data-theme=dark][data-hb-dark] select:focus{outline-color:#5f9fd6}
html[data-theme=dark][data-hb-dark] #notice{background:#1c2a36}
html[data-theme=dark][data-hb-dark] #notice.error{background:#3a2220;border-color:#e0806f;color:#f4b3a8}
html[data-theme=dark][data-hb-dark] th{background:#1d2830}
html[data-theme=dark][data-hb-dark] .warning{color:#f0c060}
html[data-theme=dark][data-hb-dark] .info-button{background:#1b2f2b;border-color:#4f7a72;color:#8fd3c4}
html[data-theme=dark][data-hb-dark] .info-button:hover{background:#24403a}
html[data-theme=dark][data-hb-dark] .help-tooltip{background:#1d2830;border-color:#4f7a72;box-shadow:0 8px 24px #0008}
html[data-theme=dark][data-hb-dark] .help-tooltip strong{color:#8fd3c4}
html[data-theme=dark][data-hb-dark] .workspace-nav button{background:transparent;color:var(--muted);border-color:transparent}
html[data-theme=dark][data-hb-dark] .workspace-nav button[aria-pressed=true]{color:#cfe7ff;background:#1f3546;border-color:#35556e}
html[data-theme=dark][data-hb-dark] .badge{background:#26323b;color:#c3ced6}
html[data-theme=dark][data-hb-dark] .badge.good{background:#1d3427;color:#7fd39b}
html[data-theme=dark][data-hb-dark] .badge.warn{background:#3a2f17;color:#f0c060}
html[data-theme=dark][data-hb-dark] .badge.bad{background:#3d2220;color:#f19a8f}
html[data-theme=dark][data-hb-dark] .badge.info{background:#1c2b3b;color:#8cc0f0}
html[data-theme=dark][data-hb-dark] .application{background:#18222a}
html[data-theme=dark][data-hb-dark] .mail-preview iframe{background:#1d2830}
