/* Colour scheme button (light / dark / system) and the dark-mode corrections for rules that use fixed colours.
   The theme variables themselves are switched in includes/theme_style.php (html[data-scheme="dark"]). Loaded last. */
.q-scheme{position:relative;display:inline-flex}
.q-scheme-btn{cursor:pointer}
.q-scheme-btn .q-scheme-ico{display:none;align-items:center;justify-content:center}
.q-scheme[data-current="light"] .q-scheme-ico[data-ico="light"],
.q-scheme[data-current="dark"] .q-scheme-ico[data-ico="dark"],
.q-scheme[data-current="system"] .q-scheme-ico[data-ico="system"]{display:inline-flex}
.q-scheme-panel{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:1600;min-width:178px;padding:6px;background:var(--surface,#fff);border:1px solid var(--border,#dce8e2);border-radius:12px;box-shadow:var(--shadow-lg,0 18px 40px rgba(18,55,45,.14))}
/* z-index above the top-bar search (1500): on a phone the search row sits right under the button and covered the first choice */
.q-scheme-panel[hidden]{display:none}
.q-scheme-opt{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:var(--text-soft,#4d655c);font:inherit;font-size:14px;text-align:start;cursor:pointer}
.q-scheme-opt:hover{background:var(--primary-subtle,#f3faf7);color:var(--primary-dark,#07543c)}
.q-scheme-opt[aria-checked="true"]{background:var(--primary-soft,#e9f7f1);color:var(--primary-dark,#07543c);font-weight:700}
.q-scheme-opt svg{flex:none}
@media print{html[data-scheme="dark"]{color-scheme:light}}
.q-auth-card-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.q-auth-scheme-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--border,#dce8e2);background:var(--surface,#fff);color:var(--primary-dark,#07543c)}
.q-auth-scheme-btn:hover{background:var(--primary-soft,#e9f7f1)}

/* ===== Dark scheme corrections (fixed colours in older rules) ===== */
