/* =====================================================================
   DARK NAVY THEME (v1)  -  loaded AFTER theme.css on every page.
   - Login / register / forgot pages keep the railway photo and the moving track (dark navy card on top).
   - Inside pages: plain navy background, no photo, no machine animation (easier to read).
   - Test (quiz) page keeps its own background; only the colours change.
   Colours below are the DEFAULTS. Admin > Colour Scheme still overrides them (html:root wins over :root).
   To go back to the light look: remove the <link ... navy.css> line from the pages.
   ===================================================================== */
:root{--navy:#ffffff;--navy2:#ffd27a;--orange:#ffb347;--orange2:#ffc266;--ink:#e8eefb;--ink2:#b9c7e0;--ln:#2a4068;
  --card-rgb:20,38,74;--card-op:.94;--card-bdr:#2a4068;--card-fg:#e8eefb;--muted-c:#b9c7e0;--label-c:#9fb0cd;
  --nav1:#0b1730;--nav2:#14264a;--nav-fg:#ffffff;--nav-line:#ffb347;--btn-fg:#1a2540;--danger:#d64545;
  --th-bg:#0f1f3d;--th-fg:#ffffff;--th-line:#ffb347;--td-bg:#14264a;--td-alt:#172c55;--td-hov:#1f3560;--td-fg:#e8eefb;--td-mut:#9fb0cd;--tb-bdr:#2a4068;--td-ln:#2a4068;
  --ok-bg:#173d2a;--ok-fg:#7fe0a4;--warn-bg:#4a3510;--warn-fg:#ffd27a;--bad-bg:#4a1d1b;--bad-fg:#ff9b93}

/* ---------- page background: warm sunset on top fading to navy, photo underneath (all inside pages) ---------- */
body:not(:has(.quiz-wrap)),
body.auth,body.auth-alt,
body:has(.banner-admin):not(.auth):not(.auth-alt){
  background:
    linear-gradient(180deg, rgb(239 167 59 / 79%) 0%, rgb(29 86 103 / 32%) 38%, rgb(37 54 88 / 22%) 62%, rgb(23 48 94) 84%),
    url('images/bg-duo.jpg') center top/cover no-repeat fixed,
    linear-gradient(177deg, #0a184b 0%,#0f2350 55%, #15ffbee0 100%) fixed !important;
  color:#e8eefb}
body:has(.quiz-wrap){color:#e8eefb}
.hero{padding-bottom:60px}
.auth .hero{padding-bottom:90px}

/* ---------- cards ---------- */
body .card,body:not(.auth):not(.auth-alt) .card,body:has(.tablewrap) .card,.card.tablewrap,.card.qcard,.card.result-box,.quiz-wrap .card,body:not(.auth):not(.auth-alt) .quiz-wrap .card,.auth .hero > .card{
  --text:#e8eefb;--muted:#b9c7e0;--line:#2a4068;--field-bg:#0f1f3d;--ok:#7fe0a4;--bad:#ff9b93;--warn:#ffd27a;--accent2:#ffb347;--on-accent:#1a2540;
  background:rgba(var(--card-rgb),var(--card-op))!important;color:var(--card-fg);
  border:1px solid var(--card-bdr);border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.32);-webkit-backdrop-filter:none;backdrop-filter:none;
}
.auth .hero > .card{background:rgba(var(--card-rgb),.90)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body .card h1,body .card h2,body .card h3,body .card h4{color:var(--navy)}
body .card a:not(.btn):not(.pill):not(.card){color:var(--navy2)}
body .card a.accent{color:var(--orange)}
body a.card:hover,body:not(.auth):not(.auth-alt) a.card:hover{background:rgba(var(--card-rgb),1)!important;border-color:var(--orange)}
body a.card h2,body a.card h3{color:var(--navy)}
body .card hr{border-color:#2a4068}
body .card code{background:#0f1f3d;color:#ffd27a}
body .card details summary{color:var(--navy2)}
.card h1::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Crect x='14' width='6' height='12' rx='1' fill='%23ffffff' fill-opacity='.30'/%3E%3Crect y='2' width='36' height='2' fill='%23ffb347'/%3E%3Crect y='8' width='36' height='2' fill='%23ffb347'/%3E%3C/svg%3E") repeat-x left center/36px 12px;animation:thTrack 1.2s linear infinite}

/* ---------- top bar ---------- */
body .nav{background:linear-gradient(90deg,var(--nav1),var(--nav2))!important;border-bottom:3px solid var(--nav-line);box-shadow:0 4px 18px rgba(0,0,0,.4)}

/* ---------- banners (welcome / admin): photo stays, navy border ---------- */
body:not(.auth):not(.auth-alt) .banner-admin,body:not(.auth):not(.auth-alt) .banner-dash,body:not(.auth):not(.auth-alt) .banner{
  border:1px solid #2a4068;border-left:5px solid var(--orange);border-radius:22px;box-shadow:0 10px 28px rgba(0,0,0,.30)}
body .banner h1,body .banner-dash h1,body .banner-admin h1{color:#fff}
body .banner p,body .banner-dash p,body .banner-admin p{color:#d6e0f0}
.dashboard-top .brand,.dashboard-top .brand i{color:#fff}
.dashboard-top .brand i{color:var(--orange);font-style:normal}

/* ---------- buttons ---------- */
body .btn{background:var(--orange);color:var(--btn-fg);box-shadow:0 3px 10px rgba(0,0,0,.30);font-weight:800}
body .btn:hover{background:var(--orange2)}
body .btn.secondary,body .card .btn.secondary{background:#1f3560;color:#fff;border:1px solid #33496f;box-shadow:none}
body .btn.secondary:hover{background:#2a4476;border-color:#4b6290}
body .btn.danger{background:var(--danger);color:#fff}
body .pill{background:#1f3560;color:#d6e0f0;border:1px solid #33496f}
body .pill:hover{background:#2a4476}
body .tag{background:#4a3510;color:#ffd27a;border:1px solid #6b5420}

/* ---------- forms ---------- */
body .card input,body .card select,body .card textarea,body:has(.tablewrap) .card input,body:has(.tablewrap) .card select,body:has(.tablewrap) .card textarea,body:has(.opt-box) .card input,body:has(.opt-box) .card select,body:has(.opt-box) .card textarea,.auth input,.auth select,
html body table:not(.plain):not(.x) input,html body table:not(.plain):not(.x) select,html body table:not(.plain):not(.x) textarea{
  background:#0f1f3d!important;color:#e8eefb!important;border:1px solid #4b6290!important;color-scheme:dark;border-radius:10px}
body .card input:focus,body .card select:focus,body .card textarea:focus,.auth input:focus{border-color:var(--orange)!important;box-shadow:0 0 0 3px rgba(255,179,71,.25)}
body .card input::placeholder,body .card textarea::placeholder,.auth input::placeholder{color:#7f92b3}
input[type=date],input[type=time],input[type=datetime-local],input[type=month]{color-scheme:dark;color:#e8eefb}
body .card label{color:var(--label-c)}
body .notice{background:#4a3510;border:1px solid #6b5420;color:#ffd27a}
body .success{background:#173d2a;border:1px solid #2a6b4b;color:#7fe0a4}
body .error{background:#4a1d1b;border:1px solid #7a3531;color:#ff9b93}
body .notice a,body .notice span{color:#ffd27a!important}

/* ---------- chips ---------- */
body .chip,html body table:not(.plain):not(.x) .chip{background:#1f3560;color:#d6e0f0}
body .chip.ok,html body table:not(.plain):not(.x) .chip.ok{background:var(--ok-bg);color:var(--ok-fg)}
body .chip.warn,html body table:not(.plain):not(.x) .chip.warn{background:var(--warn-bg);color:var(--warn-fg)}
body .chip.bad,html body table:not(.plain):not(.x) .chip.bad{background:var(--bad-bg);color:var(--bad-fg)}

/* ---------- tables ---------- */
html body table:not(.plain):not(.x) th{border-right:1px solid rgba(255,255,255,.08);color:var(--th-fg)}
html body table:not(.plain):not(.x) .btn.secondary{background:#1f3560;color:#fff;border:1px solid #33496f}
html body table:not(.plain):not(.x) .btn.secondary:hover{background:#2a4476}
html body table:not(.plain):not(.x) .tag,html body table:not(.plain):not(.x) .pill{background:#1f3560;color:#d6e0f0;border:1px solid #33496f}
html body table:not(.plain):not(.x) .error{background:#4a1d1b;color:#ff9b93;border-color:#7a3531}
html body table:not(.plain):not(.x) .success{background:#173d2a;color:#7fe0a4;border-color:#2a6b4b}
html body table:not(.plain):not(.x) .notice{background:#4a3510;color:#ffd27a;border-color:#6b5420}
html body table:not(.plain):not(.x) a{color:var(--navy2)}
html body table:not(.plain):not(.x) b,html body table:not(.plain):not(.x) strong{color:var(--td-fg)}

/* ---------- stat boxes / analysis ---------- */
body .stat-box,body .stat-grid .stat-box,body .opt-box{background:rgba(var(--card-rgb),var(--card-op))!important;border:1px solid var(--card-bdr);border-top:3px solid var(--orange);color:var(--card-fg);box-shadow:none}
body .stat-box span{color:var(--muted-c)}
.cat-bar,.progress{background:#2a4068}
.info div{background:#14264a!important;border:1px solid #2a4068!important}

/* ---------- dashboard tiles ---------- */
.tile .ico{background:#1f3560;color:#ffd27a}
.tile:hover .ico{background:#4a3510;color:#ffb347}
.tile::after{color:#4b6290}
body .tile .stat{background:var(--orange);color:#1a2540;-webkit-text-fill-color:#1a2540}

/* ---------- test (quiz) page ---------- */
.quiz-wrap .question,.quiz-wrap .opt-body{color:#fff}
.quiz-wrap .option,body .quiz-wrap .option{background:#14264a!important;border:2px solid #2a4068;color:#e8eefb}
.quiz-wrap .option:hover,body .quiz-wrap .option:hover{background:#1d3a6b!important;border-color:var(--orange)}
.quiz-wrap .option:has(input:checked),body .quiz-wrap .option:has(input:checked){background:#1d3a6b!important;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,179,71,.22)}
.quiz-wrap .timer-pill{background:#0d1b33;color:#ffb347;border:2px solid #ffb347}
.quiz-wrap .timer-pill.low{color:#ff9b93;border-color:#ff6b60}
.quiz-wrap .pal-btn{background:#1f3560;color:#d6e0f0;border:1px solid #4b6290}
.quiz-wrap .pal-btn.done{background:#2f8f5b;color:#fff;border-color:#2f8f5b}
.quiz-wrap .pal-btn.current{outline:2px solid var(--orange)}
.quiz-wrap .quiz-top{color:#fff}.quiz-wrap .quiz-top .muted{color:#b9c7e0}

/* ---------- login / register pages: photo stays, card is dark navy ---------- */
body.auth .portal-head .wr,body.auth-alt .portal-head .wr{color:#fff}
body.auth .portal-head .office,body.auth-alt .portal-head .office{color:#1a2540;background:var(--orange);box-shadow:0 6px 16px rgba(255,179,71,.30)}
body.auth .portal-head .rly,body.auth-alt .portal-head .rly{color:var(--orange)}
body.auth .portal-head h1 span,body.auth-alt .portal-head h1 span{color:var(--orange)}
body.auth .login-links .register-link{color:#ffd27a!important;background:#4a3510;border:1px solid #6b5420}
body.auth .login-links .forgot-link{color:#d6e0f0!important;background:#1f3560;border:1px solid #33496f}
body.auth .login-links .admin-link{color:#fff!important;background:#7b3fa0;border:1px solid #7b3fa0}
.auth h1,.auth label,.auth .tag{text-shadow:none}

/* ---------- small things ---------- */
a{color:#ffd27a}
::selection{background:#ffb347;color:#1a2540}
@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html body:not(.zz1):not(.zz2),html body.auth,html body:has(.banner-admin):not(.zz1):not(.zz2){background:#fff!important;background-image:none!important;color:#111!important}
  html body::before,html body::after,html .nav,html .noprint,html .btn,html .dashboard-top{display:none!important}
  html body:not(.zz1):not(.zz2) .card,html body:not(.zz1):not(.zz2) .stat-box,html body:not(.zz1):not(.zz2) .info div,html body:not(.zz1):not(.zz2) .opt-box,html body .an-hero,html body .an-next,html body .an-grid{background:#fff!important;color:#111!important;border:1px solid #bbb!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
  html body:not(.zz1):not(.zz2) .card h1,html body:not(.zz1):not(.zz2) .card h2,html body:not(.zz1):not(.zz2) .card h3,html body h1,html body h2,html body h3,html .an-mid h1,html .an-ring-in b,html .stat-box b,html .stat-box span{color:#111!important;text-shadow:none!important}
  html .muted,html .an-ring-in span,html .an-eyebrow,html body .card label,html body .card p{color:#333!important}
  html .an-ring-in{background:#fff!important}
  html .tag{background:#eee!important;color:#111!important;border-color:#bbb!important}
  html .qcard{break-inside:avoid;page-break-inside:avoid}
  html .shell{width:100%!important}
}


/* ---------- page-local light bits made dark ---------- */
.sumline>span{background:#1f3560!important;color:#d6e0f0!important}
.sumline .chip.bad{background:var(--bad-bg)!important;color:var(--bad-fg)!important}
.sumline .chip.warn{background:var(--warn-bg)!important;color:var(--warn-fg)!important}
table.sumtab td.cbad a{background:var(--bad-bg)!important;color:var(--bad-fg)!important}
table.sumtab td.cwarn a{background:var(--warn-bg)!important;color:var(--warn-fg)!important}
table.sumtab th.rl{background:#0f1f3d!important}
table.mon .pf a{background:#1f3560!important;color:#ffd27a!important;border-color:#4b6290!important}
table.mon .pf a:hover{background:#2a4476!important}
.step{color:#b9c7e0!important}
.empty{color:#b9c7e0!important}
.guide{background:#0f1f3d!important;border-color:#2a4068!important;color:#e8eefb}
.muted,small{color:#b9c7e0}
body .card details summary.btn,details > summary.btn{color:var(--btn-fg)!important;display:inline-flex;align-items:center;list-style:none;white-space:nowrap}
details > summary.btn::-webkit-details-marker{display:none}

/* ---------- dashboard: status at a glance ---------- */
.statusstrip{padding:18px 22px;margin-bottom:18px}
.ss-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.ss-head h2{margin:0;font-size:20px}
.ss-head a{font-size:13px;font-weight:700;color:var(--orange)!important;text-decoration:none}
.ss-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
a.ss-box{display:block;border-radius:14px;padding:14px 16px;text-decoration:none;border:1px solid #33496f;border-top:4px solid #6f83a8;background:#1b2f55;transition:transform .15s}
a.ss-box:hover{transform:translateY(-2px)}
.ss-l{display:block;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#d6e0f0}
.ss-b{display:block;font-size:22px;font-weight:800;margin-top:4px;font-family:'Bricolage Grotesque','Noto Sans',sans-serif}
.ss-s{display:block;font-size:13px;margin-top:2px;color:#d6e0f0}
a.ss-box.bad{background:#3b1a19;border-color:#7a3531;border-top-color:#ff6b60}.ss-box.bad .ss-b{color:#ff9b93}
a.ss-box.warn{background:#3d2f10;border-color:#6b5420;border-top-color:#ffb347}.ss-box.warn .ss-b{color:#ffd27a}
a.ss-box.ok{background:#12392a;border-color:#2a6b4b;border-top-color:#3fbf7f}.ss-box.ok .ss-b{color:#7fe0a4}
a.ss-box.none .ss-b{color:#b9c7e0}a.ss-box.none .ss-s{color:#ffb347;font-weight:600}
@media(max-width:900px){.ss-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ss-grid{grid-template-columns:1fr}}

/* ---------- analysis page ---------- */
.an-hero{display:flex;align-items:center;gap:30px;padding:26px 30px;margin:14px 0 16px;border-top:4px solid #ff6b60!important}
.an-hero.pass{border-top-color:#3fbf7f!important}
.an-ring{flex:none;width:156px;height:156px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.an-ring-in{width:120px;height:120px;border-radius:50%;background:#14264a;display:flex;flex-direction:column;align-items:center;justify-content:center}
.an-ring-in b{font-family:'Bricolage Grotesque','Noto Sans',sans-serif;font-size:34px;font-weight:800;color:#fff;line-height:1}
.an-ring-in span{font-size:12px;color:#b9c7e0;margin-top:2px}
.an-mid{flex:1;min-width:0}
.an-mid h1{margin:2px 0 4px;font-size:34px}
.an-eyebrow{font-size:12px;font-weight:700;letter-spacing:1.2px;color:var(--orange)}
.an-res{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.an-pill{font-weight:800;font-size:15px;padding:8px 18px;border-radius:999px}
.an-pill.ok{background:#3fbf7f;color:#082418}.an-pill.bad{background:#ff6b60;color:#2a0a08}
.an-stats{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;width:320px}
.an-stats div{border-radius:12px;padding:10px 14px}
.an-stats b{display:block;font-size:22px;font-weight:800}.an-stats span{font-size:12px;font-weight:700}
.an-stats .ok{background:#173d2a;color:#7fe0a4}.an-stats .bad{background:#4a1d1b;color:#ff9b93}
.an-stats .warn{background:#4a3510;color:#ffd27a}.an-stats .plain{background:#1f3560;color:#d6e0f0}
.an-next{border-left:5px solid var(--orange)!important;margin-bottom:16px}
.an-next h2{margin:0 0 6px;font-size:18px}.an-next p{margin:0;line-height:1.7}
.cat-bar{position:relative}
.cat-bar s{position:absolute;top:-3px;width:2px;height:calc(100% + 6px);background:#fff;opacity:.85;text-decoration:none}
.an-grid{margin-bottom:22px}
.an-nums{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:7px;margin-top:10px}
.an-nums a{height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;text-decoration:none;color:#fff!important}
.an-nums a.ok{background:#2f8f5b}.an-nums a.bad{background:#ff6b60;color:#2a0a08!important}.an-nums a.warn{background:#4a3510;color:#ffd27a!important;border:1px solid #ffd27a}
.an-legend{display:flex;gap:18px;font-size:12px;color:#b9c7e0;margin-top:12px}
.an-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-2px;margin-right:6px}
.an-legend i.ok{background:#2f8f5b}.an-legend i.bad{background:#ff6b60}.an-legend i.warn{background:#4a3510;border:1px solid #ffd27a}
@media(max-width:900px){.an-hero{flex-direction:column;align-items:flex-start}.an-stats{width:100%}}
.ans.ok small{color:#7fe0a4}.ans.bad small{color:#ff9b93}.ans.un small{color:#ffd27a}
.badge.C{color:#7fe0a4}.badge.W{color:#ff9b93}.badge.U{color:#ffd27a}
.cat-row span:last-child{white-space:nowrap}

/* ---------- readable on the bright sunset top ---------- */
.dashboard-top{background:rgba(11,23,48,.84);border:1px solid #2a4068;border-radius:14px;padding:10px 16px!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
h3.grp{display:inline-block;background:rgba(11,23,48,.88);border:1px solid #2a4068;border-radius:999px;padding:6px 14px;color:var(--orange)!important}

/* ---------- fixes: buttons inside tables keep dark text; 5-box status strip; centred admin login tag ---------- */
html body table:not(.plain):not(.x) a.btn,html body table:not(.plain):not(.x) a.btn:visited,html body table:not(.plain):not(.x) button.btn{color:var(--btn-fg)!important}
html body table:not(.plain):not(.x) a.btn.secondary{color:#fff!important}
html body table:not(.plain):not(.x) a.btn.danger,html body table:not(.plain):not(.x) button.btn.danger{color:#fff!important}
body .card a.btn,body .card a.btn:visited{color:var(--btn-fg)!important}
body .card a.btn.secondary{color:#fff!important}
body .card a.btn.danger{color:#fff!important}
.ss-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}

/* ===== analysis v2 (shared by all 4 analysis pages) ===== */
.an-view{max-width:1000px;margin:auto}
.an-chip{background:#1f3560;color:#d6e0f0;font-weight:700;font-size:12px;padding:9px 12px;border-radius:999px}
.an-two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.an-two .card{margin:0!important}
.an-bars h2{margin:0 0 12px;font-size:16px}
.an-gh{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.an-gh h2{margin:0}
.an-filter{display:flex;gap:6px;flex-wrap:wrap}
.an-filter button{border:0;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:700;background:#1f3560;color:#d6e0f0;cursor:pointer;font-family:inherit}
.an-filter button.on{background:#ffb347;color:#1a2540}
.an-qh{font-family:'Bricolage Grotesque','Noto Sans',sans-serif;font-size:22px;margin:6px 0 12px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.an-qh span{font-weight:500;font-size:14px;color:#e8eefb}
.an-view .qcard{padding:16px 22px;margin-bottom:14px;border-left:6px solid #ffd27a!important}
.an-view .qcard.q-C{border-left-color:#3fbf7f!important}.an-view .qcard.q-W{border-left-color:#ff6b60!important}
.q-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.q-meta{font-size:12px;font-weight:700;letter-spacing:.6px;color:#9fb0cd}
.q-pill{font-weight:800;font-size:12px;padding:4px 12px;border-radius:999px}
.q-pill.C{background:#173d2a;color:#7fe0a4}.q-pill.W{background:#4a1d1b;color:#ff9b93}.q-pill.U{background:#4a3510;color:#ffd27a}
.an-view .qtext{font-size:15px;font-weight:700;line-height:1.55;margin:6px 0 4px}
.q-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.q-opt{display:flex;gap:10px;align-items:center;background:#1b2f55;border:1px solid #33496f;border-radius:10px;padding:9px 12px;font-size:13px;color:#d6e0f0;word-break:break-word}
.q-opt.cor{background:#173d2a;border-color:#2f8f5b;color:#d9f6e4}
.q-opt.wr{background:#4a1d1b;border-color:#ff6b60;color:#ffd5d1}
.q-l{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex:none}
.q-t{flex:1;min-width:0}
.q-tag{font-size:12px;white-space:nowrap}
.an-view .qimg{max-height:280px;max-width:100%;margin:8px 0;border-radius:8px;background:#fff;object-fit:contain;cursor:zoom-in;image-rendering:auto}
.q-opt .qimg{max-height:200px}
@media(max-width:760px){.an-two,.q-opts{grid-template-columns:1fr}.q-tag{white-space:normal}}
@media print{
  html body .q-opt{background:#fff!important;color:#111!important;border:1px solid #999!important}
  html body .q-opt.cor{background:#e3f6ea!important}html body .q-opt.wr{background:#fbe4e2!important}
  html body .q-meta,html body .an-qh,html body .an-qh span{color:#111!important;text-shadow:none!important}
  html body .an-chip,html body .q-pill{background:#eee!important;color:#111!important}
  html body .qcard{display:block!important}
}

/* secondary buttons (Toggle etc.) always light text, also <button> inside tables */
html body table:not(.plain):not(.x) button.btn.secondary,html body table:not(.plain):not(.x) a.btn.secondary,html body .card button.btn.secondary,html body button.btn.secondary{color:#fff!important}

.anlb{position:fixed;inset:0;z-index:99999;background:rgba(3,8,18,.95);display:flex;flex-direction:column}
.anlb-bar{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;padding:10px;flex:none}
.anlb-bar button{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.28);border-radius:10px;padding:8px 14px;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit}
.anlb-bar span{color:#ffb347;font-weight:800;min-width:56px;text-align:center}
.anlb-sc{flex:1;overflow:auto;display:flex;touch-action:pan-x pan-y pinch-zoom}
.anlb-sc img{margin:auto;display:block;max-width:none;background:#fff;border-radius:8px;cursor:zoom-in}
@media print{.anlb{display:none!important}}
