:root { --ink:#0B1020; --card:#171F38; --line:#26304F; --tx:#EEF1FB; --mut:#8D97B8; --vio:#6D5EF6; --yes:#19E3A1; --no:#FF5D73; }
html, body { background: var(--ink); color: var(--tx); font-family: Inter, "Segoe UI", system-ui, sans-serif; }
a, .btn-link { color: #9A8CFF; }
.hc-sub { color: var(--mut); }
.hc-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 14px; }
.hc-card-sm { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #19E3A11a; color: var(--yes); font-size: 14px; }
.hc-cat { font-size: 12.5px; color: var(--mut); }
.hc-label { display:block; font-size: 13.5px; color: var(--mut); margin: 10px 0 4px; }
.hc-input { background: #0f1630; border: 1px solid var(--line); color: var(--tx); }
.hc-input:focus { background: #0f1630; color: var(--tx); border-color: var(--vio); box-shadow: none; }
.hc-rules { color: var(--mut); font-size: 14px; margin: 8px 0; }
.hc-rules summary { cursor: pointer; color: #9A8CFF; }
.hc-src { font-size: 12.5px; }
.hc-closed { margin-top: 8px; font-weight: 600; color: var(--mut); }
.btn-success { background: var(--yes); border-color: var(--yes); color: #06231a; font-weight: 700; }
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--yes); }
.invalid { outline: 1px solid var(--no); }
#blazor-error-ui { background: #FFB547; color: #2b1a00; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2); display: none; inset-inline-start: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; inset-inline-end: 0.75rem; top: 0.5rem; }

h1:focus, h2:focus { outline: none; }

.hc-stats { display:flex; gap:24px; flex-wrap:wrap; }
.hc-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hc-cal { margin: 12px 0; }
.hc-cal-label { font-size: 13px; color: var(--mut); }
.hc-bar { position:relative; height: 14px; border-radius: 9px; background:#0f1630; overflow:hidden; margin: 4px 0; }
.hc-bar i { position:absolute; inset-inline-start:0; top:0; bottom:0; display:block; }
.hc-said { background:#6D5EF666; }
.hc-did { background:transparent; border-inline-end: 4px solid var(--yes); height:100%; }
.hc-cal-nums { font-size: 12.5px; color: var(--mut); }
.hc-lb { padding-inline-start: 20px; }
.hc-lb li { margin: 6px 0; }
.hc-callcard { background: radial-gradient(120% 120% at 0% 0%, #6D5EF6 0%, #2a2470 55%, #121A30 100%); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.hc-callcard-q { font-size: 20px; font-weight: 700; margin: 8px 0 14px; }
.hc-callcard-p { font-size: 54px; font-weight: 800; letter-spacing: -.03em; }
.hc-callcard-p span { font-size: 18px; font-weight: 600; color: #d8d3ff; }
.hc-callcard-hash { margin-top: 12px; font-size: 13px; color: #d8d3ff; }
.btn-outline-light { color: var(--tx); border-color: var(--line); }

.hc-note { margin-top: 8px; padding: 8px 12px; border-inline-start: 3px solid var(--vio); color: #d3d8ee; font-size: 14px; background: #0f1630; border-radius: 6px; }
.hc-yes { color: var(--yes); }
.hc-no { color: var(--no); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #FFB547; outline-offset: 2px; }
.hc-sub { color: #A0A9C5; }
.hc-cat { color: #A0A9C5; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.hc-banner { margin-top: 12px; padding: 10px 14px; border: 2px solid #FFB547; border-radius: 10px; background: #2b1a00; color: #FFD58A; }
.hc-callcard .hc-cat { color: #fff; }
.hc-callcard-p span { color: #fff; }
.hc-callcard-hash { color: #fff; }
.alert-info, .alert-warning { color: #0B1020; }

/* Touch targets: at least 44px tall for links and buttons in the header and footer (WCAG 2.5.8 target size). */
.hc-foot-nav a, a.hc-signin, button.hc-lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.hc-foot-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }

/* Admin screens */
.hc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.hc-tab { background: var(--card); color: var(--tx); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-height: 44px; }
.hc-tab.on { background: var(--vio); border-color: var(--vio); color: #fff; }
.hc-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #26304F; color: var(--tx); }
.st-draft { background: #26304F; } .st-inreview { background: #5848dc; } .st-approved { background: #17714f; }
.st-scheduled { background: #0f6c8a; } .st-published { background: #19E3A1; color: #06231a; } .st-rejected { background: #9b3043; }
.st-pending { background: #5848dc; } .st-accepted { background: #19E3A1; color: #06231a; }
.hl-healthy { background: #19E3A1; color: #06231a; } .hl-contested { background: #2FD0FF; color: #06202b; }
.hl-lopsided { background: #FFB547; color: #2b1a00; } .hl-toofewforecasts { background: #26304F; }
.hc-qrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.hc-id { display: block; padding: 8px 10px; background: #0f1630; border: 1px solid var(--line); border-radius: 8px; word-break: break-all; }

/* ============ Redesign: mockup look (cards, hero, chips, Yes/No, Rule Lens, skeletons) ============ */
:root { --ink2:#121A30; --vio2:#9A8CFF; --amb:#FFB547; --sky:#4CC3FF; }
body { background: radial-gradient(1200px 500px at 50% -120px, #1a1f4a55, transparent 70%), #070A14; }
.hc-card { background: linear-gradient(180deg, #19223d 0%, #151c33 100%); border-radius: 20px; transition: border-color .15s, transform .15s; }
.hc-card:hover { border-color: #3a4672; }

/* Hero */
.hc-hero { position: relative; display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 22px 20px; border-radius: 24px; border: 1px solid #343e6e;
           background: radial-gradient(120% 140% at 0% 0%, #5a4be0 0%, #2a2470 46%, #121A30 100%); overflow: hidden; }
.hc-hero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #4CC3FF33, transparent 70%); pointer-events: none; }
.hc-hero-text { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.hc-eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ffffff; font-weight: 700; }
.hc-hero h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.hc-hero .hc-sub { color: #f1f2fc; margin-bottom: 12px; }
.hc-hero .hc-card { margin-top: 10px; background: #0b102066; border-color: #ffffff22; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hc-hero-art { position: relative; z-index: 1; width: clamp(96px, 24vw, 170px); height: auto; border-radius: 28px; box-shadow: 0 18px 40px #0008, 0 0 0 1px #ffffff22; flex: none; }
@media (max-width: 480px) { .hc-hero { flex-direction: column-reverse; align-items: flex-start; } .hc-hero-art { align-self: flex-end; margin-bottom: -6px; } }

/* Category chips */
.hc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hc-chips::-webkit-scrollbar { display: none; }
.hc-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 99px; background: #171F38; border: 1px solid #26304F; color: #c3cae3; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.hc-chip img { width: 28px; height: 28px; border-radius: 9px; }
.hc-chip:hover { border-color: #6D5EF6; color: #fff; }
.hc-chip[aria-pressed="true"] { background: #6D5EF6; border-color: #6D5EF6; color: #fff; }
.hc-chip small { opacity: .8; }

/* Question card */
.hc-q-head { display: flex; gap: 12px; align-items: flex-start; }
.hc-q-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px #ffffff1a; }
.hc-q-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 2px 0 0; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.hc-tag { font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: #26304F; color: #c3cae3; }
.hc-tag.paused { background: #1b2e44; color: var(--sky); font-weight: 700; }
.hc-tag.soon { background: #3a2a05; color: #FFD58A; }
.hc-tag.state { background: #19E3A122; color: var(--yes); font-weight: 700; }
.hc-pbig { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 14px; }
.hc-pbig span { font-size: 20px; margin-inline-start: 2px; }
.hc-pbig small { font-size: 14px; font-weight: 600; color: var(--mut); letter-spacing: 0; margin-inline-start: 8px; }
.hc-yn { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 10px 0 4px; background: #0f1630; }
.hc-yn .y { background: linear-gradient(90deg, #12b883, #19E3A1); transition: width .12s; }
.hc-yn .n { background: linear-gradient(90deg, #ff5d73, #d93f58); flex: 1; }
.hc-yn-l { display: flex; justify-content: space-between; font-size: 12.5px; }
.hc-yn-l .y { color: var(--yes); font-weight: 700; } .hc-yn-l .n { color: var(--no); font-weight: 700; }
.form-range { accent-color: #6D5EF6; margin-top: 4px; }
.hc-cta { width: 100%; min-height: 48px; border-radius: 14px; font-size: 16px; margin-top: 6px; }

/* Rule Lens panel */
.hc-lens { margin: 12px 0 4px; border: 1px solid #343e6e; background: #6D5EF61a; border-radius: 14px; }
.hc-lens summary { cursor: pointer; padding: 10px 14px; color: #c9c1ff; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.hc-lens summary::-webkit-details-marker { display: none; }
.hc-lens summary::after { content: "+"; margin-inline-start: auto; color: var(--vio2); font-size: 20px; }
.hc-lens[open] summary::after { content: "\2212"; }
.hc-lens-body { padding: 0 14px 12px; font-size: 14px; display: grid; gap: 8px; }
.hc-lens-row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.hc-lens-row b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.hc-lens-row.ok { color: #bff6e3; } .hc-lens-row.ok b, .hc-lens-row.ok .m { color: var(--yes); }
.hc-lens-row.no { color: #ffd0d7; } .hc-lens-row.no b, .hc-lens-row.no .m { color: var(--no); }
.hc-lens-row.chk { color: #cfe9ff; } .hc-lens-row.chk b, .hc-lens-row.chk .m { color: var(--sky); }
.hc-lens-row .m { font-weight: 800; }

/* Loading skeletons and empty states */
.hc-skel { height: 176px; border-radius: 20px; margin-top: 14px; border: 1px solid #26304F; background: linear-gradient(100deg, #151c33 30%, #1d2745 50%, #151c33 70%); background-size: 300% 100%; animation: hcshimmer 1.4s linear infinite; }
@keyframes hcshimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hc-empty { display: flex; gap: 16px; align-items: center; }
.hc-empty img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.hc-empty p { margin: 0; }
.hc-statcard { border-radius: 22px; border: 1px solid #343e6e; background: radial-gradient(120% 140% at 0% 0%, #4a3fd0 0%, #25205f 55%, #121A30 100%); padding: 18px; margin-top: 14px; }
.hc-statcard .hc-cat { color: #cfc8ff; }
.hc-pagehead { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hc-pagehead img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 1px #ffffff22; }
.hc-pagehead h1 { margin: 0; }
.hc-pagehead p { margin: 2px 0 0; }

/* Greeting, bell and search (top of home) */
.hc-greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.hc-greet-t { margin: 0; color: #c3cae3; font-size: 15px; }
.hc-bellwrap { position: relative; }
.hc-bell { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #171F38; border: 1px solid #26304F; color: #EEF1FB; cursor: pointer; }
.hc-bell:hover { border-color: #6D5EF6; }
.hc-bell svg, .hc-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hc-dot { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #D8344E; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.hc-notif { position: absolute; inset-inline-end: 0; top: 52px; z-index: 80; width: min(360px, 88vw); background: #151c33; border: 1px solid #343e6e; border-radius: 16px; box-shadow: 0 18px 50px #000a; overflow: hidden; }
.hc-notif-h { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid #26304F; }
.hc-notif-i { display: block; padding: 12px 14px; color: #dfe3f5; text-decoration: none; border-bottom: 1px solid #1d2745; font-size: 14px; min-height: 44px; }
.hc-notif-i:hover { background: #6D5EF61a; }
.hc-notif-k { display: inline-block; margin-inline-end: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--amb); }
.hc-search { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 14px; min-height: 48px; border-radius: 16px; background: #121A30; border: 1px solid #26304F; color: var(--mut); }
.hc-search:focus-within { border-color: #6D5EF6; }
.hc-search-in { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--tx); font-size: 15px; padding: 12px 0; outline: none; }
.hc-search-in::placeholder { color: #8D97B8; }

.hc-lang-foot { margin-inline-start: auto; background: #171F38; border: 1px solid #26304F; color: #EEF1FB; border-radius: 99px; padding: 6px 16px; font-size: 14px; cursor: pointer; }

.hc-linkbtn { background: none; border: 0; padding: 0 2px; color: #9A8CFF; text-decoration: underline; cursor: pointer; font: inherit; min-height: 24px; }
.hc-linkbtn:hover { color: #fff; }

.hc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hc-top .hc-bellwrap { position: relative; }
.hc-top .hc-notif { inset-inline-end: 0; inset-inline-start: auto; }
.hc-top .hc-right { margin-inline-start: auto; flex-wrap: nowrap; }
.hc-top .hc-bell { width: 40px; height: 40px; border-radius: 12px; }
.hc-askname { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: #6D5EF61a; border: 1px solid #343e6e; }
.hc-askname label { display: block; font-size: 13.5px; color: #cfd3ea; margin-bottom: 8px; }

/* Admin: frozen state and resolution trail */
.qs-open { background: #17714f; } .qs-closed { background: #26304F; } .qs-resolved { background: #19E3A1; color: #06231a; } .qs-frozen { background: #0f6c8a; }
.ev-proposed { background: #5848dc; } .ev-accepted, .ev-resolved { background: #19E3A1; color: #06231a; } .ev-rejected { background: #9b3043; }
.ev-frozen { background: #0f6c8a; } .ev-unfrozen { background: #17714f; } .ev-flagged { background: #FFB547; color: #2b1a00; }
.hc-trail { list-style: none; padding: 0; margin: 0; }
.hc-trail li { padding: 6px 0; border-top: 1px solid var(--line); }
.hc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.hc-check input { width: 24px; height: 24px; accent-color: #6D5EF6; }
.hc-bulk { border-color: #6D5EF6; }
@media (min-width: 768px) { .hc-bulk { position: sticky; top: 72px; z-index: 5; } }
.hc-empty-admin { text-align: center; padding: 28px 16px; }
.hc-tab:focus-visible { outline: 3px solid #FFB547; outline-offset: 2px; }

/* Accessibility pass: 44px touch targets and 24px+ choice controls (WCAG 2.2 AA 2.5.8). */
.form-control, .form-select, .btn:not(.btn-sm) { min-height: 44px; }
.hc-top .hc-bell, .hc-bell { width: 44px; height: 44px; }
.form-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-inline-start: 0; margin-bottom: 0; }
.form-check .form-check-input { float: none; margin: 0; width: 24px; height: 24px; flex: none; }
.form-check .form-check-label { padding: 8px 0; flex: 1; }

/* Language picker (footer) and right-to-left support: layout uses logical properties, so dir="rtl" mirrors it. */
.hc-langpick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hc-langpick label { color: var(--mut); font-size: 14px; }
.hc-langpick select { width: auto; min-width: 160px; }
.hc-machine-note { margin-top: 8px; padding: 6px 10px; border-inline-start: 3px solid var(--amb); background: #0f1630; border-radius: 6px; }
[dir="rtl"] .hc-lens summary::after { margin-inline-start: auto; }
html[dir="rtl"] input[type="range"], html[dir="rtl"] .hc-yn, html[dir="rtl"] .hc-yn-l { direction: ltr; }   /* the 1-99% slider keeps low-to-high left-to-right so the Yes bar and the thumb agree */
.hc-meter { height: 12px; border-radius: 99px; background: #0f1630; overflow: hidden; margin: 6px 0; }
.hc-meter i { display: block; height: 100%; background: linear-gradient(90deg, #5848dc, #4CC3FF); }
.hc-trans { border: 1px solid var(--line); }
.hc-trans legend { float: none; width: auto; padding: 0 6px; margin: 0; }

/* Needs you: risk buckets and reason chips */
.rk-low { background: #17714f; } .rk-one-click { background: #0f6c8a; } .rk-full { background: #9b3043; }
.hc-chips-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hc-reason { background: #0f1630; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; color: #d3d8ee; }
.hc-table th, .hc-table td { color: var(--tx); border-color: var(--line); background: transparent; }

/* Language picker with ~135 entries, and system-font stacks for scripts that need them (no web fonts are shipped). */
.hc-langpick input[type="search"] { width: auto; min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.hc-langpick select { max-width: 100%; flex: 1 1 220px; }
body:lang(hi), body:lang(mr), body:lang(ne), body:lang(mai), body:lang(bho), body:lang(doi), body:lang(gom), body:lang(hne), body:lang(brx), body:lang(sa) { font-family: "Nirmala UI", "Mangal", "Noto Sans Devanagari", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(bn), body:lang(as), body:lang(mni) { font-family: "Nirmala UI", "Vrinda", "Noto Sans Bengali", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(gu), body:lang(pa), body:lang(or), body:lang(ta), body:lang(te), body:lang(kn), body:lang(ml), body:lang(si) { font-family: "Nirmala UI", "Noto Sans", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(th), body:lang(lo) { font-family: "Leelawadee UI", Tahoma, "Noto Sans Thai", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(my) { font-family: "Myanmar Text", "Noto Sans Myanmar", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(km) { font-family: "Leelawadee UI", "Khmer UI", "Noto Sans Khmer", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(am), body:lang(ti) { font-family: Ebrima, "Nirmala UI", "Noto Sans Ethiopic", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(ka) { font-family: Sylfaen, "Noto Sans Georgian", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(hy) { font-family: Sylfaen, "Noto Sans Armenian", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(bo) { font-family: "Microsoft Himalaya", "Noto Serif Tibetan", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(dv) { font-family: "MV Boli", "Noto Sans Thaana", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(ar), body:lang(fa), body:lang(prs), body:lang(ur), body:lang(ps), body:lang(sd), body:lang(ug), body:lang(ks), body:lang(ku) { font-family: Tahoma, "Noto Naskh Arabic", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(he) { font-family: "Segoe UI", Arial, "Noto Sans Hebrew", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(zh-hans), body:lang(zh) { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(zh-hant), body:lang(yue), body:lang(lzh) { font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(ja) { font-family: "Yu Gothic UI", Meiryo, "Hiragino Sans", "Noto Sans JP", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(ko) { font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(iu), body:lang(iu-latn) { font-family: Gadugi, Euphemia, "Noto Sans Canadian Aboriginal", Inter, "Segoe UI", system-ui, sans-serif; }
body:lang(mn-mong) { font-family: "Mongolian Baiti", "Noto Sans Mongolian", Inter, "Segoe UI", system-ui, sans-serif; }

/* Watchlist star, closing-soon calendar, community chart */
.hc-star { margin-inline-start: auto; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #121A30; color: #FFD58A; font-size: 22px; line-height: 1; cursor: pointer; }
.hc-star[aria-pressed="true"] { background: #3a2a05; border-color: #FFB547; }
.hc-chipstar { font-size: 18px; width: 28px; text-align: center; color: #FFD58A; }
a.hc-chip { text-decoration: none; }
.hc-chip-sm { min-height: 44px; padding: 4px 14px; }
.hc-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.hc-chart { width: 100%; max-width: 420px; height: auto; margin-top: 6px; }
.hc-line { stroke: #4CC3FF; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hc-axis { stroke: #8D97B8; stroke-width: 1; } .hc-grid { stroke: #26304F; stroke-dasharray: 3 3; }
.hc-tick { fill: #A0A9C5; font-size: 9px; }
.hc-daylist { list-style: none; padding: 0; margin: 0; }
.hc-daylist li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hc-when { min-width: 72px; font-weight: 700; color: #c9c1ff; }

/* Always-reachable way back to English (header globe) */
.hc-globe { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; justify-content: center; padding-inline: 8px; border-radius: 12px; border: 1px solid #26304F; background: #171F38; color: #EEF1FB; text-decoration: none; font-size: 12px; font-weight: 700; }
.hc-globe svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hc-globe:hover { border-color: #6D5EF6; color: #fff; }

/* Terms gate dialog, responsible play, wallet, notices */
.hc-modal-back { position: fixed; inset: 0; background: rgba(5,8,18,.78); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.hc-modal { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-width: 520px; width: 100%; }
.hc-notice { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #4CC3FF1a; color: #bfe6ff; font-size: 14px; }
.hc-notice a { color: #d7efff; }
.hc-meter { height: 10px; border-radius: 6px; background: #0f1630; overflow: hidden; margin: 6px 0; }
.hc-meter i { display: block; height: 100%; background: #6D5EF6; }
.hc-table th, .hc-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.hc-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.hc-pos { color: var(--yes); } .hc-neg { color: #FF8FA0; }
.hc-check { margin-inline-end: 12px; }
.hc-table { width: 100%; }

/* Language combobox (footer). Opens upward, scrolls inside 60vh, 44px rows, logical properties for RTL. */
.hc-combo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.hc-combo > label { color: var(--mut); font-size: 14px; }
.hc-combo-wrap { position: relative; flex: 1 1 240px; min-width: 0; max-width: 420px; }
.hc-combo-wrap input { width: 100%; }
.hc-combo-list { position: absolute; inset-inline: 0; bottom: 100%; margin: 0 0 6px; padding: 4px; list-style: none; max-height: 60vh; overflow-y: auto; background: #0f1630; border: 1px solid #6D5EF6; border-radius: 12px; z-index: 1500; box-shadow: 0 -8px 24px rgba(0,0,0,.5); }
.hc-combo-list[hidden] { display: none; }
.hc-combo-opt, .hc-combo-none { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 8px; color: #EEF1FB; cursor: pointer; font-size: 15px; overflow-wrap: anywhere; }
.hc-combo-none { cursor: default; color: #C9D0E8; }
.hc-combo-opt.on { background: #2a2470; color: #fff; outline: 2px solid #FFB547; outline-offset: -2px; }
.hc-combo-opt[aria-selected="true"]::after { content: "\2713"; margin-inline-start: auto; padding-inline-start: 8px; }
.hc-combo-wrap input:focus-visible { outline: 3px solid #FFB547; outline-offset: 2px; }

/* WCAG 1.4.11 (audit A11Y-1): the boundary of an input or control must reach 3:1 against its surroundings. #6E7BA8 is 3.9:1 or more on every surface used. */
:root { --ctl: #6E7BA8; }
.hc-input, .form-control, .form-select, .hc-search, .hc-id { border-color: var(--ctl); }
.hc-chip, .hc-tab, .btn-outline-light { border-color: var(--ctl); }
.hc-check input[type=checkbox], .hc-check input[type=radio], .form-check-input { border-color: var(--ctl); }
.hc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.hc-dl dt { color: var(--mut); font-weight: 600; } .hc-dl dd { margin: 0; overflow-wrap: anywhere; }
.hc-progress { width: 100%; height: 12px; accent-color: var(--vio); }
.hc-helptext { font-size: 13.5px; color: #A0A9C5; margin: 4px 0 0; }
.hc-tag, .hc-chip { overflow-wrap: anywhere; }   /* text-spacing overrides must wrap, never clip (WCAG 1.4.12) */
.hc-notif:focus { outline: none; }

/* Contact form (block G) */
.hc-hp { position: absolute; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hc-fielderr { color: #FFB0BB; font-size: 14px; margin: 4px 0 0; }
.hc-pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #0f1630; border: 1px solid var(--ctl); border-radius: 8px; padding: 10px 12px; color: var(--tx); font-family: inherit; font-size: 14.5px; }
.hc-plain { overflow-wrap: anywhere; }

/* What if...? scenarios (edge-case simulator). Result is shown with an icon AND words, never colour alone. */
.hc-edge-n { margin-inline-start: 6px; padding: 0 8px; border-radius: 99px; background: #26304F; color: #c3cae3; font-size: 12px; }
.hc-edge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hc-edge-item { padding: 10px 12px; border-radius: 12px; background: #0B102066; border: 1px solid #26304F; }
.hc-edge-q { margin: 0 0 8px; font-weight: 600; }
.hc-edge-a { margin-top: 8px; }
.hc-edge-res { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 6px 10px; border-radius: 10px; width: fit-content; border: 1px solid currentColor; }
.hc-edge-res .m { font-weight: 800; font-size: 18px; line-height: 1; }
.hc-edge-res.res-yes { color: var(--yes); background: #19E3A114; }
.hc-edge-res.res-no { color: #ff8a9a; background: #FF5D7314; }
.hc-edge-res.res-void { color: var(--sky); background: #4CC3FF14; }
.hc-edge-why { margin: 0; color: #c3cae3; }
@media (forced-colors: active) { .hc-edge-res { border: 2px solid CanvasText; } }
fieldset.hc-edge-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; min-width: 0; }
fieldset.hc-edge-edit legend { float: none; width: auto; font-size: 15px; padding: 0 6px; margin: 0; }

/* Calibration Trainer */
.hc-tp-res { padding: 12px 14px; display: grid; gap: 4px; border: 1px solid currentColor; }
.hc-tp-res.t { color: var(--yes); background: #19E3A114; }
.hc-tp-res.f { color: #ff8a9a; background: #FF5D7314; }
.hc-tp-res p { color: var(--tx); }
.hc-tp-verdict { font-size: 18px; margin: 0; color: inherit !important; }
.hc-tp-why { margin: 6px 0 0; }
.hc-alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-alert-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px; border: 1px solid #26304F; border-radius: 12px; }
.hc-alertbox .hc-lens-body { gap: 10px; }

/* Language button in the top bar opens a dropdown right under it. */
.hc-langmenu { position: relative; }
.hc-langpanel { position: absolute; inset-inline-end: 0; top: 100%; margin-top: 8px; width: min(340px, 92vw); z-index: 60; background: #0f1630; border: 1px solid #6D5EF6; border-radius: 14px; padding: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.hc-langpanel .hc-combo { display: block; }
.hc-langpanel .hc-combo-wrap { max-width: none; }
.hc-langpanel .hc-combo-list { position: static; inset: auto; margin: 8px 0 0; max-height: min(55vh, 420px); border: 0; padding: 0; background: transparent; }

/* Phones: the language button shows only the globe so the full logo fits beside Sign in and the bell. */
@media (max-width: 430px) { .hc-globe span { display: none; } .hc-globe { padding-inline: 0; } }

/* ===== Phase 6A ===== */
.hc-catgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hc-cattile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #121a36; color: inherit; text-decoration: none; }
.hc-cattile:hover, .hc-cattile:focus-visible { border-color: #6D5EF6; }
.hc-cattile-n { font-weight: 700; overflow-wrap: anywhere; }
.hc-qli { align-items: center; justify-content: space-between; }
.hc-qli-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hc-factlist { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.hc-factlist dt { font-weight: 700; color: #c9c1ff; }
.hc-factlist dd { margin: 0 0 4px; overflow-wrap: anywhere; }
@media (min-width: 600px) { .hc-factlist { grid-template-columns: 180px 1fr; } .hc-factlist dd { margin: 0; } }
.hc-provbanner { margin-top: 12px; padding: 12px 14px; border: 2px solid #FFB547; border-radius: 12px; background: #2b1a00; color: #FFD58A; }
.hc-provbanner b { color: #FFE2AE; }
.hc-finalbanner { margin-top: 12px; padding: 12px 14px; border: 2px solid #19E3A1; border-radius: 12px; background: #06241b; color: #bff5e2; }
.hc-pausedbanner { margin-top: 12px; padding: 14px; border: 2px solid #4CC3FF; border-radius: 12px; background: #0e2236; color: #cfeaff; }
.hc-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0; flex-wrap: wrap; }
.hc-steps li { padding: 4px 12px; border-radius: 99px; background: #26304F; color: #c3cae3; font-size: 13px; }
.hc-steps li.on { background: #6D5EF6; color: #fff; font-weight: 700; }
.hc-itemized { width: 100%; border-collapse: collapse; }
.hc-itemized th, .hc-itemized td { padding: 8px 4px; border-top: 1px solid var(--line); text-align: left; }
.hc-itemized td.num, .hc-itemized th.num { text-align: right; font-variant-numeric: tabular-nums; }
.hc-itemized tr.total th, .hc-itemized tr.total td { font-weight: 800; font-size: 1.05em; }
.hc-hubgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hc-hubgrid li { margin: 0; }
.hc-hubtile { display: block; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #121a36; color: inherit; text-decoration: none; }
.hc-hubtile:hover, .hc-hubtile:focus-visible { border-color: #6D5EF6; }
.hc-hubtile b { display: block; margin-bottom: 4px; }
.hc-matrix { width: 100%; border-collapse: collapse; }
.hc-matrix th, .hc-matrix td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: center; }
.hc-matrix th:first-child, .hc-matrix td:first-child { text-align: left; }
.hc-matrix input[type=checkbox] { width: 22px; height: 22px; }
.hc-soon { opacity: .75; }
.hc-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.hc-shell { border: 2px dashed #6D5EF6; border-radius: 14px; padding: 14px; }

/* Phase 6B: money screens */
.hc-timeline { list-style: none; padding: 0; margin: 12px 0; }
.hc-timeline li { position: relative; padding-block: 6px 10px; padding-inline-start: 32px; border-inline-start: 2px solid var(--line); margin-inline-start: 10px; }
.hc-timeline li::before { content: ""; position: absolute; inset-inline-start: -9px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #26304F; border: 2px solid #c3cae3; }
.hc-timeline li.done::before { background: #19E3A1; border-color: #19E3A1; }
.hc-timeline li.now::before { background: #FFB547; border-color: #FFB547; }
.hc-timeline li.failed::before { background: #FF6B7A; border-color: #FF6B7A; }
.hc-timeline li .hc-sub { display: block; font-size: 13px; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.hc-chips button[aria-pressed=true] { background: #6D5EF6; color: #fff; border-color: #6D5EF6; }
.hc-feeline th, .hc-feeline td { color: #FFD58A; }
