/* Albargh Results — Production UI foundation */
.results-shell{
  --results-bg:#050b18;
  --results-card:#0f172a;
  --results-card-soft:#111c32;
  --results-card-strong:#0a1326;
  --results-text:#f8fafc;
  --results-muted:#94a3b8;
  --results-line:rgba(148,163,184,.16);
  --results-brand:#2563eb;
  --results-brand-2:#0b5cab;
  --results-success:#10b981;
  --results-success-soft:rgba(16,185,129,.12);
  --results-danger:#ef4444;
  --results-warning:#f59e0b;
  --results-radius:24px;
  --results-shadow:0 20px 60px rgba(0,0,0,.28);
  position:relative;
  min-height:100vh;
  color:var(--results-text);
  background:
    radial-gradient(circle at 50% -10%,rgba(37,99,235,.18),transparent 34%),
    radial-gradient(circle at 90% 20%,rgba(124,58,237,.08),transparent 25%),
    var(--results-bg);
  isolation:isolate;
}

.results-shell *,
.results-shell *::before,
.results-shell *::after{box-sizing:border-box}
.results-shell a{color:inherit}
.results-shell button,.results-shell input{font:inherit}
.results-ambient{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:-1}
.results-ambient::before{content:"";position:absolute;top:0;left:50%;width:min(900px,90vw);height:420px;transform:translateX(-50%);background:linear-gradient(180deg,rgba(37,99,235,.12),transparent);filter:blur(55px)}
.results-wrap{width:min(1180px,calc(100% - 28px));margin:0 auto;padding:24px 0 48px}

.results-platform-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:6px 0 22px;background:rgba(15,23,42,.82);border:1px solid var(--results-line);border-radius:22px;box-shadow:var(--results-shadow);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.results-platform-brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none}
.results-brand-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:15px;background:linear-gradient(135deg,var(--results-brand),#1d4ed8);box-shadow:0 10px 30px rgba(37,99,235,.34);font-size:24px}
.results-brand-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
.results-brand-copy strong{font-size:21px;line-height:1.2;color:#fff;font-weight:900}
.results-brand-copy small{font-size:13px;line-height:1.4;color:var(--results-muted);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:520px}
.results-platform-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.results-lang-btn,.results-share-page{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 13px;border:1px solid var(--results-line);border-radius:999px;background:rgba(15,23,42,.82);color:#e2e8f0;text-decoration:none;font-weight:900;cursor:pointer;transition:.2s ease}
.results-lang-btn:hover,.results-share-page:hover{transform:translateY(-1px);border-color:rgba(96,165,250,.45)}
.results-lang-btn.is-active{background:var(--results-brand-2);border-color:var(--results-brand-2);color:#fff}
.results-share-page{background:rgba(37,99,235,.10);color:#bfdbfe;border-color:rgba(96,165,250,.24)}

.results-toast{position:fixed;top:90px;left:50%;z-index:99999;transform:translate(-50%,-18px);opacity:0;visibility:hidden;padding:11px 16px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#111827;color:#fff;box-shadow:0 16px 40px rgba(0,0,0,.32);font-weight:800;transition:.22s ease}
.results-toast.is-visible{transform:translate(-50%,0);opacity:1;visibility:visible}

.results-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;margin-bottom:18px;border:1px solid var(--results-line);border-radius:30px;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(17,28,50,.86));box-shadow:var(--results-shadow);overflow:hidden;position:relative}
.results-hero::after{content:"⚡";position:absolute;inset-inline-end:28px;bottom:-38px;font-size:170px;opacity:.035;transform:rotate(-12deg);pointer-events:none}
.results-hero-copy{position:relative;z-index:1;max-width:700px}
.results-eyebrow,.panel-kicker,.results-page-intro>span{display:inline-flex;align-items:center;gap:6px;color:#60a5fa;font-size:12px;font-weight:900;letter-spacing:.02em;text-transform:uppercase}
.results-hero h1,.results-page-intro h1{margin:10px 0 8px;font-size:clamp(30px,5vw,52px);line-height:1.08;font-weight:950;color:#fff;letter-spacing:-.03em}
.results-hero p,.results-page-intro p{margin:0;color:var(--results-muted);font-size:16px;line-height:1.75;font-weight:650}
.results-session-badge{display:flex;flex-direction:column;gap:6px;min-width:250px;padding:18px;border:1px solid rgba(96,165,250,.22);border-radius:20px;background:rgba(37,99,235,.08)}
.results-session-badge span{font-size:12px;color:#93c5fd;font-weight:900}
.results-session-badge strong{font-size:18px;color:#fff;line-height:1.45}

.hero-card,.panel,.results-sponsor-card,.result-sponsor-hero,.ad-banner,.results-stats-section,.results-page-intro{background:rgba(15,23,42,.90);border:1px solid var(--results-line);border-radius:var(--results-radius);box-shadow:var(--results-shadow)}
.results-search-panel{padding:24px;margin-bottom:18px}
.search-card{display:flex;flex-direction:column;gap:16px}
.search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.search-head>div{display:flex;flex-direction:column;gap:5px}
.search-head label{font-size:20px;line-height:1.35;color:#fff;font-weight:900}
.search-head small,.search-help{color:var(--results-muted);font-size:13px;line-height:1.55}
.search-security-note{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;background:var(--results-success-soft);color:#6ee7b7;font-size:12px;font-weight:900;white-space:nowrap}
.search-row{display:flex;align-items:stretch;gap:12px}
.search-input-wrap{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0 16px;border:1px solid var(--results-line);border-radius:17px;background:var(--results-card-strong);transition:.2s ease}
.search-input-wrap:focus-within{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.search-input-wrap>span{color:#64748b;font-size:18px;font-weight:900}
.search-input-wrap input{width:100%;min-width:0;padding:16px 0;border:0;outline:0;background:transparent;color:#fff;font-size:18px;font-weight:800;letter-spacing:.04em}
.search-input-wrap input::placeholder{color:#64748b;font-weight:600;letter-spacing:0}
.search-row>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:190px;padding:14px 20px;border:0;border-radius:17px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-weight:950;cursor:pointer;box-shadow:0 12px 28px rgba(37,99,235,.28);transition:.2s ease}
.search-row>button:hover{transform:translateY(-1px);filter:brightness(1.08)}
.search-help{margin:0;text-align:center}

.saved-results-block{margin-top:18px;padding-top:18px;border-top:1px solid var(--results-line)}
.saved-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.saved-results-head strong{color:#fff;font-size:14px}
.saved-results-head span{color:var(--results-muted);font-size:12px}
.saved-results-list{display:flex;flex-wrap:wrap;gap:9px}
.saved-result-chip{display:flex;align-items:stretch;border:1px solid var(--results-line);border-radius:14px;background:rgba(17,28,50,.76);overflow:hidden}
.saved-result-chip a{display:flex;flex-direction:column;gap:2px;padding:9px 12px;text-decoration:none}
.saved-result-chip strong{font-size:13px;color:#93c5fd}
.saved-result-chip span{font-size:11px;color:var(--results-muted);max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-result-chip button{width:34px;border:0;border-inline-start:1px solid var(--results-line);background:transparent;color:#fb7185;font-size:20px;cursor:pointer}

.results-stats-section{padding:20px;margin-bottom:18px}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.stat-box{position:relative;min-width:0;padding:18px;border:1px solid var(--results-line);border-radius:18px;background:var(--results-card-soft);overflow:hidden}
.stat-box::before{content:"";position:absolute;inset:0 auto auto 0;width:48%;height:3px;background:rgba(96,165,250,.42)}
.stat-box span{display:block;margin-bottom:8px;color:var(--results-muted);font-size:13px;font-weight:800}
.stat-box strong{display:block;color:#fff;font-size:clamp(24px,4vw,36px);line-height:1;font-weight:950}
.stat-success::before{background:var(--results-success)}
.stat-success strong{color:#6ee7b7}
.stat-wide{grid-column:span 4;text-align:center}
.mini-actions{display:flex;justify-content:flex-end;margin-top:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:12px 17px;border:1px solid var(--results-line);border-radius:14px;background:var(--results-card-soft);color:#e2e8f0;text-decoration:none;font-weight:900;cursor:pointer;transition:.2s ease}
.btn:hover{transform:translateY(-1px);border-color:rgba(96,165,250,.42)}
.btn-primary{background:var(--results-brand-2);border-color:var(--results-brand-2);color:#fff}
.btn-wa{background:#16a34a;border-color:#16a34a;color:#fff}
.celebrate-again{background:linear-gradient(135deg,#2563eb,#7c3aed);border-color:transparent;color:#fff}

.results-sponsor-card,.result-sponsor-hero{display:flex;align-items:center;gap:20px;padding:22px;margin:18px 0}
.results-sponsor-icon,.result-sponsor-icon{display:grid;place-items:center;width:68px;height:68px;flex:0 0 68px;border-radius:20px;background:linear-gradient(135deg,#1d4ed8,#0b5cab);box-shadow:0 14px 30px rgba(37,99,235,.26);font-size:32px}
.results-sponsor-copy,.result-sponsor-content{flex:1;min-width:0}
.results-sponsor-kicker,.result-sponsor-content>span{display:block;margin-bottom:5px;color:#6ee7b7;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.03em}
.results-sponsor-copy h2,.result-sponsor-content h2{margin:0 0 6px;color:#fff;font-size:clamp(21px,3vw,31px);line-height:1.25;font-weight:950}
.results-sponsor-copy p,.result-sponsor-content p{margin:0;color:var(--results-muted);font-size:14px;line-height:1.7;font-weight:650}
.results-sponsor-cta,.result-sponsor-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:12px 17px;border-radius:999px;background:#fff;color:#0b3f75!important;text-decoration:none;font-weight:950;white-space:nowrap}

.content-grid,.insights-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px;margin:18px 0}
.insights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.panel{padding:20px;min-width:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.panel-head>div{display:flex;flex-direction:column;gap:4px}
.panel-head h2{margin:0;color:#fff;font-size:22px;line-height:1.35;font-weight:950}
.panel-head a{color:#93c5fd;text-decoration:none;font-size:13px;font-weight:900}
.list-table{display:flex;flex-direction:column;gap:9px}
.row-item{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--results-line);border-radius:16px;background:var(--results-card-soft);text-decoration:none;transition:.2s ease}
.row-item:hover{transform:translateY(-1px);border-color:rgba(96,165,250,.42);background:#14213d}
.rank{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#0b5cab;color:#fff;font-weight:950}
.main{flex:1;min-width:0}
.main strong{display:block;color:#fff;font-size:14px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main span{display:block;margin-top:2px;color:var(--results-muted);font-size:12px}
.avg{color:#6ee7b7;font-size:17px;font-weight:950}
.honor-row:first-child{border-color:rgba(245,158,11,.36);background:linear-gradient(135deg,rgba(245,158,11,.08),var(--results-card-soft))}
.series-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.series-card{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:140px;padding:17px;border:1px solid var(--results-line);border-radius:17px;background:var(--results-card-soft);text-decoration:none;transition:.2s ease}
.series-card:hover{transform:translateY(-2px);border-color:rgba(96,165,250,.44)}
.series-card strong{font-size:28px;color:#fff;font-weight:950}
.series-card span{color:var(--results-muted);font-size:13px;line-height:1.45}
.insight-list{display:flex;flex-direction:column;gap:8px}
.insight-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--results-line);border-radius:13px;background:var(--results-card-soft)}
.insight-list span{color:#e2e8f0;font-size:13px;line-height:1.45}
.insight-list strong{color:#6ee7b7;font-size:14px}

.ad-banner{display:flex;align-items:center;gap:14px;padding:18px 20px;margin-top:18px;border-style:dashed}
.ad-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(245,158,11,.12);color:#fbbf24;font-size:11px;font-weight:950}
.ad-text{flex:1;color:#e2e8f0;font-weight:750}
.ad-banner>a{color:#93c5fd;font-weight:950;text-decoration:none}

.result-card{padding:24px;margin-bottom:18px;overflow:hidden}
.result-card.success{border-color:rgba(16,185,129,.44);box-shadow:0 20px 70px rgba(16,185,129,.10)}
.result-card-topline{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin-bottom:22px}
.kicker-inline,.status-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border-radius:999px;font-size:13px;font-weight:950}
.kicker-inline{background:rgba(37,99,235,.10);color:#bfdbfe;border:1px solid rgba(96,165,250,.20)}
.status-pill{background:var(--results-success-soft);color:#6ee7b7;border:1px solid rgba(16,185,129,.22)}
.result-card.failed .status-pill,.result-card.danger .status-pill{background:rgba(239,68,68,.10);color:#fca5a5;border-color:rgba(239,68,68,.22)}
.candidate-identity{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0 24px;border-bottom:1px solid var(--results-line)}
.candidate-identity-copy>span{display:block;color:#60a5fa;font-size:12px;font-weight:950;text-transform:uppercase}
.candidate-identity h1{margin:8px 0 5px;color:#fff;font-size:clamp(30px,5vw,52px);line-height:1.15;font-weight:950;letter-spacing:-.025em}
.candidate-identity p{margin:0;color:var(--results-muted);font-size:clamp(17px,3vw,25px);line-height:1.45}
.candidate-flash{display:grid;place-items:center;width:82px;height:82px;flex:0 0 82px;border-radius:25px;background:linear-gradient(135deg,rgba(37,99,235,.20),rgba(124,58,237,.12));font-size:40px}
.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.result-grid>div{padding:15px 16px;border:1px solid var(--results-line);border-radius:16px;background:var(--results-card-soft)}
.result-grid span{display:block;margin-bottom:6px;color:var(--results-muted);font-size:12px;font-weight:800}
.result-grid strong{display:block;color:#fff;font-size:18px;line-height:1.45;font-weight:950;overflow-wrap:anywhere}
.result-grid .result-highlight{background:linear-gradient(135deg,rgba(16,185,129,.10),var(--results-card-soft));border-color:rgba(16,185,129,.25)}
.result-grid .result-highlight strong{color:#6ee7b7;font-size:24px}
.result-long{grid-column:span 2}
.message-line{margin:18px 0 0;padding:14px 16px;border-radius:15px;background:rgba(255,255,255,.035);color:#dbeafe;font-size:15px;line-height:1.7;font-weight:700}
.official-details-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:18px;padding:17px;border:1px solid rgba(96,165,250,.22);border-radius:18px;background:rgba(37,99,235,.07)}
.official-details-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#0b5cab;color:#fff;font-size:22px}
.official-details-card span{display:block;color:#93c5fd;font-size:11px;font-weight:950;text-transform:uppercase}
.official-details-card h2{margin:4px 0;color:#fff;font-size:18px;font-weight:950}
.official-details-card p{margin:0;color:var(--results-muted);font-size:13px;line-height:1.55}
.official-details-card>a{display:inline-flex;padding:10px 14px;border-radius:999px;background:#fff;color:#0b3f75;text-decoration:none;font-weight:950;white-space:nowrap}
.candidate-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.candidate-actions .btn{min-width:130px}
.print-note{margin-top:10px;color:var(--results-muted);font-size:13px;text-align:center}
.results-confetti-canvas{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;pointer-events:none!important;z-index:2147483647!important}

.results-page-intro{padding:26px;margin-bottom:18px}
.results-page-intro.compact h1{font-size:clamp(28px,4vw,42px)}
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:54px 22px;margin-bottom:18px}
.empty-state-icon{display:grid;place-items:center;width:82px;height:82px;border-radius:24px;background:rgba(37,99,235,.10);color:#93c5fd;font-size:42px}
.empty-state>span{margin-top:16px;color:#60a5fa;font-size:12px;font-weight:950;text-transform:uppercase}
.empty-state h1{margin:8px 0;color:#fff;font-size:clamp(28px,5vw,44px);font-weight:950}
.empty-state p{margin:0;color:var(--results-muted);font-size:15px;line-height:1.7}
.empty-state-actions{margin-top:20px}

.results-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding:19px 4px;color:var(--results-muted)}
.results-footer>div{display:flex;flex-direction:column;gap:3px}
.results-footer strong{color:#e2e8f0;font-size:14px}
.results-footer span{font-size:12px}
.results-footer>a{color:#93c5fd;text-decoration:none;font-weight:900}
.results-back-top{position:fixed;bottom:86px;inset-inline-start:16px;z-index:9999;display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--results-line);border-radius:999px;background:#111827;color:#fff;text-decoration:none;font-size:27px;box-shadow:0 14px 35px rgba(0,0,0,.30);opacity:0;visibility:hidden;transform:translateY(10px);transition:.2s ease}
.results-back-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}

/* Light theme support */
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-shell{
  --results-bg:#f4f7fb;
  --results-card:#ffffff;
  --results-card-soft:#f8fafc;
  --results-card-strong:#ffffff;
  --results-text:#0f172a;
  --results-muted:#64748b;
  --results-line:#e2e8f0;
  --results-shadow:0 18px 50px rgba(15,23,42,.08);
  background:radial-gradient(circle at 50% -10%,rgba(37,99,235,.10),transparent 34%),var(--results-bg);
}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-platform-bar,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .hero-card,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .panel,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-sponsor-card,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .result-sponsor-hero,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .ad-banner,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-stats-section,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-page-intro{background:#fff}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-hero{background:linear-gradient(135deg,#fff,#f8fbff)}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-hero h1,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-brand-copy strong,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .search-head label,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .stat-box strong,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .panel-head h2,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .main strong,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .series-card strong,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .candidate-identity h1,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .result-grid strong,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .official-details-card h2,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-sponsor-copy h2,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .result-sponsor-content h2,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-page-intro h1,
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .empty-state h1{color:#0f2742}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .search-input-wrap input{color:#0f172a}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-lang-btn{background:#fff;color:#0f172a}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .results-lang-btn.is-active{background:#0b5cab;color:#fff}
html:not([data-theme="dark"]):not(.dark-theme):not(.dark-mode) body:not(.dark-theme):not(.dark-mode) .row-item:hover{background:#f2f7ff}

@media(max-width:900px){
  .content-grid,.insights-grid{grid-template-columns:1fr}
  .results-session-badge{min-width:210px}
}

@media(max-width:720px){
  .results-wrap{width:min(100% - 16px,1180px);padding-top:12px}
  .results-platform-bar{align-items:flex-start;padding:13px;gap:10px;border-radius:19px}
  .results-brand-icon{width:40px;height:40px;flex-basis:40px;font-size:21px}
  .results-brand-copy strong{font-size:17px}
  .results-brand-copy small{font-size:11px;max-width:185px}
  .results-platform-actions{gap:5px}
  .results-lang-btn,.results-share-page{min-height:36px;padding:7px 9px;font-size:12px}
  .results-share-page{font-size:0;width:38px;padding:0}
  .results-share-page span{font-size:16px}

  .results-hero{flex-direction:column;align-items:stretch;padding:22px;border-radius:24px}
  .results-hero h1{font-size:34px}
  .results-session-badge{min-width:0;width:100%}
  .results-search-panel{padding:17px;border-radius:21px}
  .search-head{flex-direction:column;gap:10px}
  .search-head label{font-size:18px}
  .search-security-note{align-self:flex-start}
  .search-row{flex-direction:column}
  .search-row>button{width:100%;min-width:0}
  .search-input-wrap input{font-size:17px}

  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .stat-box{padding:14px;border-radius:15px}
  .stat-box strong{font-size:26px}
  .stat-wide{grid-column:span 2}
  .mini-actions .btn{width:100%}

  .results-sponsor-card,.result-sponsor-hero{align-items:flex-start;flex-wrap:wrap;padding:17px;gap:13px;border-radius:21px}
  .results-sponsor-icon,.result-sponsor-icon{width:52px;height:52px;flex-basis:52px;font-size:25px;border-radius:16px}
  .results-sponsor-copy,.result-sponsor-content{flex:1 1 calc(100% - 68px)}
  .results-sponsor-cta,.result-sponsor-btn{width:100%}

  .panel{padding:15px;border-radius:21px}
  .panel-head h2{font-size:19px}
  .series-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .series-card{min-height:145px;padding:13px}
  .series-card strong{font-size:25px}
  .series-card span{font-size:12px}
  .row-item{padding:11px;gap:9px}
  .rank{width:38px;height:38px;flex-basis:38px}
  .main strong{font-size:13px}
  .avg{font-size:15px}

  .result-card{padding:17px;border-radius:22px}
  .result-card-topline{margin-bottom:15px}
  .candidate-identity{align-items:flex-start;gap:12px;padding:10px 0 18px}
  .candidate-identity h1{font-size:32px}
  .candidate-identity p{font-size:18px}
  .candidate-flash{width:54px;height:54px;flex-basis:54px;border-radius:17px;font-size:27px}
  .result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .result-grid>div{padding:12px;border-radius:14px}
  .result-grid strong{font-size:16px}
  .result-long{grid-column:span 2}
  .official-details-card{grid-template-columns:auto minmax(0,1fr);padding:14px}
  .official-details-card>a{grid-column:1/-1;width:100%;justify-content:center}
  .candidate-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .candidate-actions .btn{min-width:0;width:100%;padding:12px 9px;font-size:13px}
  .candidate-actions .btn-wa,.candidate-actions .celebrate-again{grid-column:1/-1}
  .message-line{font-size:14px}

  .ad-banner{flex-wrap:wrap;padding:15px}
  .ad-text{flex:1 1 calc(100% - 70px)}
  .ad-banner>a{width:100%;text-align:center;padding-top:4px}
  .results-footer{flex-direction:column;align-items:flex-start}
  .results-back-top{bottom:82px;width:44px;height:44px}
}

@media(max-width:420px){
  .results-brand-copy small{max-width:145px}
  .results-platform-actions{gap:4px}
  .results-lang-btn{padding-inline:8px}
  .series-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .series-card{min-height:136px}
  .result-grid{grid-template-columns:1fr}
  .result-long{grid-column:auto}
}

@media print{
  body *{visibility:hidden!important}
  .result-card,.result-card *{visibility:visible!important}
  .result-card{position:absolute;inset:0;width:100%;box-shadow:none!important;border:1px solid #ddd!important;background:#fff!important;color:#111!important}
  .candidate-actions,.print-note,.official-details-card,.results-platform-bar,.result-sponsor-hero,.results-footer,.results-back-top{display:none!important}
  .result-card h1,.result-card strong{color:#111!important}
  .result-card span,.result-card p{color:#555!important}
}

/* =========================================================
   RESULTS PORTAL — /results
   ========================================================= */
.results-portal-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height:390px;
  padding:54px 28px;
  margin-bottom:24px;
  text-align:center;
  border:1px solid var(--results-line);
  border-radius:32px;
  background:
    radial-gradient(circle at 50% 0%,rgba(37,99,235,.24),transparent 43%),
    linear-gradient(145deg,#071125 0%,#0b1730 52%,#07101f 100%);
  box-shadow:0 30px 80px rgba(2,8,23,.28);
}
.results-portal-hero::after{
  content:"";
  position:absolute;
  inset:auto -14% -62% -14%;
  height:300px;
  border-radius:50%;
  background:rgba(37,99,235,.16);
  filter:blur(65px);
  pointer-events:none;
}
.results-eyebrow{
  position:absolute;
  top:28px;
  inset-inline-start:50%;
  transform:translateX(-50%);
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 15px;
  border:1px solid rgba(96,165,250,.38);
  border-radius:999px;
  background:rgba(37,99,235,.12);
  color:#bfdbfe;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.results-portal-hero-copy{position:relative;z-index:1;max-width:810px;margin-top:28px}
.results-portal-kicker{margin:0 0 11px;color:#93c5fd;font-size:15px;font-weight:900}
.results-portal-hero h1{margin:0;color:#fff;font-size:clamp(42px,7vw,82px);line-height:1.05;font-weight:950;letter-spacing:-.045em}
.results-portal-hero h1 span{color:#fb923c;text-shadow:0 0 28px rgba(251,146,60,.32)}
.results-portal-hero-copy>p:last-child{max-width:690px;margin:22px auto 0;color:#cbd5e1;font-size:clamp(16px,2vw,21px);line-height:1.9}
.results-portal-section{
  padding:25px;
  border:1px solid var(--results-line);
  border-radius:27px;
  background:var(--results-card);
  box-shadow:var(--results-shadow);
}
.results-portal-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}
.results-portal-section-head span:first-child{display:block;margin-bottom:3px;color:var(--results-brand);font-size:12px;font-weight:900}
.results-portal-section-head h2{margin:0;color:var(--results-text);font-size:26px;font-weight:950}
.results-sessions-count{display:grid;place-items:center;min-width:45px;height:45px;padding:0 12px;border-radius:15px;background:var(--results-card-soft);color:var(--results-brand);font-size:17px;font-weight:950}
.results-sessions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.results-session-card{
  display:flex;
  min-height:260px;
  flex-direction:column;
  padding:20px;
  border:1px solid var(--results-line);
  border-radius:22px;
  background:linear-gradient(180deg,var(--results-card-soft),var(--results-card));
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.results-session-card:hover{transform:translateY(-4px);border-color:rgba(37,99,235,.45);box-shadow:0 22px 50px rgba(15,23,42,.12)}
.results-session-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}
.results-session-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:rgba(37,99,235,.1);font-size:23px}
.results-session-year{padding:7px 11px;border-radius:999px;background:var(--results-card);color:var(--results-muted);font-size:13px;font-weight:900}
.results-session-card h3{margin:0 0 10px;color:var(--results-text);font-size:20px;line-height:1.55;font-weight:950}
.results-session-card p{margin:0 0 22px;color:var(--results-muted);font-size:14px;line-height:1.8}
.results-session-link{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding:12px 14px;border-radius:14px;background:var(--results-brand);color:#fff!important;font-size:14px;font-weight:900;text-decoration:none!important}
.results-portal-empty{padding:55px 20px;text-align:center;border:1px dashed var(--results-line);border-radius:22px;background:var(--results-card-soft)}
.results-portal-empty>span{display:block;margin-bottom:12px;font-size:40px}
.results-portal-empty h3{margin:0 0 6px;color:var(--results-text);font-size:20px;font-weight:950}
.results-portal-empty p{margin:0;color:var(--results-muted)}
.results-portal-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 0}
.results-portal-trust>div{display:grid;grid-template-columns:auto 1fr;column-gap:11px;align-items:center;padding:16px;border:1px solid var(--results-line);border-radius:19px;background:var(--results-card)}
.results-portal-trust>div>span{grid-row:1/3;display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:var(--results-card-soft);font-size:21px}
.results-portal-trust strong{color:var(--results-text);font-size:14px;font-weight:950}
.results-portal-trust small{color:var(--results-muted);font-size:12px}

@media(max-width:900px){
  .results-sessions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .results-portal-hero{min-height:355px;padding:66px 18px 35px;border-radius:25px}
  .results-eyebrow{top:20px;font-size:11px}
  .results-portal-hero h1{font-size:45px}
  .results-portal-hero-copy>p:last-child{font-size:15px}
  .results-portal-section{padding:16px;border-radius:22px}
  .results-portal-section-head h2{font-size:20px}
  .results-sessions-grid{grid-template-columns:1fr}
  .results-session-card{min-height:225px;padding:17px}
  .results-portal-trust{grid-template-columns:1fr}
}

/* =========================================================
   RESULTS PORTAL — UNIFIED QUICK SEARCH (v3)
   ========================================================= */
.results-portal-search{
  position:relative;
  margin:18px 0;
  padding:24px;
  overflow:hidden;
  border:1px solid var(--results-line);
  border-radius:26px;
  background:linear-gradient(145deg,var(--results-card),var(--results-card-soft));
  box-shadow:var(--results-shadow);
}
.results-portal-search::before{
  content:"";
  position:absolute;
  inset:auto -80px -100px auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.13),transparent 68%);
  pointer-events:none;
}
.results-portal-search-head{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}
.results-portal-search-head>div:first-child{min-width:0}
.results-portal-search-head span:first-child{display:block;margin-bottom:4px;color:var(--results-brand);font-size:12px;font-weight:950}
.results-portal-search-head h2{margin:0;color:var(--results-text);font-size:clamp(23px,3vw,34px);font-weight:950;letter-spacing:-.02em}
.results-portal-search-head p{max-width:760px;margin:8px 0 0;color:var(--results-muted);font-size:14px;line-height:1.8}
.results-portal-search-badge{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:19px;background:linear-gradient(135deg,#0b5cab,#2563eb);box-shadow:0 12px 28px rgba(37,99,235,.25);font-size:27px}
.results-portal-search-form{position:relative;z-index:1;display:grid;grid-template-columns:minmax(240px,.78fr) minmax(0,1.55fr);gap:16px;align-items:end}
.results-portal-session-picker label,.results-portal-query-wrap>label{display:block;margin:0 2px 8px;color:var(--results-text);font-size:13px;font-weight:900}
.results-portal-select,.results-portal-current-session{width:100%;min-height:58px;border:1px solid var(--results-line);border-radius:17px;background:var(--results-card-soft);color:var(--results-text);font:inherit;font-size:14px;font-weight:850}
.results-portal-select{padding:0 16px;outline:none;cursor:pointer}
.results-portal-select:focus{border-color:var(--results-brand);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.results-portal-current-session{display:flex;align-items:center;gap:10px;padding:12px 15px}
.results-portal-current-session>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--results-card);font-size:18px}
.results-portal-current-session strong{overflow:hidden;color:var(--results-text);font-size:14px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}
.results-portal-query-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;min-height:58px;overflow:hidden;border:1px solid var(--results-line);border-radius:18px;background:var(--results-card)}
.results-portal-query-row:focus-within{border-color:var(--results-brand);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.results-portal-query-icon{display:grid;place-items:center;width:50px;color:var(--results-muted);font-size:24px}
.results-portal-query-row input{min-width:0;height:56px;padding:0 8px;border:0!important;outline:0!important;background:transparent!important;color:var(--results-text)!important;font:inherit;font-size:17px;font-weight:850;box-shadow:none!important}
.results-portal-query-row input::placeholder{color:var(--results-muted);font-weight:600;opacity:.76}
.results-portal-query-row button{display:flex;align-items:center;justify-content:center;gap:8px;align-self:stretch;min-width:164px;padding:0 21px;border:0;border-radius:15px;margin:4px;background:linear-gradient(135deg,#0b5cab,#1677ff);color:#fff;font:inherit;font-size:14px;font-weight:950;cursor:pointer;box-shadow:0 9px 20px rgba(22,119,255,.22);transition:transform .18s ease,filter .18s ease}
.results-portal-query-row button:hover{transform:translateY(-1px);filter:brightness(1.06)}
.results-portal-query-wrap small{display:block;margin:8px 4px 0;color:var(--results-muted);font-size:11px;line-height:1.6}
.results-portal-empty--compact{display:flex;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:initial}
.results-portal-empty--compact>span{margin:0;font-size:31px}
.results-portal-empty--compact h3{font-size:17px}
.results-portal-empty--compact p{font-size:13px}

@media(max-width:840px){
  .results-portal-search-form{grid-template-columns:1fr}
}
@media(max-width:640px){
  .results-portal-search{padding:17px;border-radius:22px}
  .results-portal-search-head{align-items:flex-start;margin-bottom:18px}
  .results-portal-search-badge{flex-basis:48px;width:48px;height:48px;border-radius:15px;font-size:22px}
  .results-portal-search-head h2{font-size:25px}
  .results-portal-search-head p{font-size:12px}
  .results-portal-current-session{min-height:53px}
  .results-portal-query-row{grid-template-columns:auto minmax(0,1fr);overflow:visible;border:0;background:transparent;gap:8px}
  .results-portal-query-icon{position:absolute;z-index:2;width:44px;height:54px}
  .results-shell[dir="rtl"] .results-portal-query-icon{right:0}
  .results-shell[dir="ltr"] .results-portal-query-icon{left:0}
  .results-portal-query-row input{grid-column:1/-1;width:100%;height:56px;padding-inline:45px 14px!important;border:1px solid var(--results-line)!important;border-radius:16px;background:var(--results-card)!important}
  .results-portal-query-row button{grid-column:1/-1;width:100%;min-height:54px;margin:0;border-radius:16px}
  .results-portal-query-wrap small{text-align:center}
}


/* =========================================================
   V5 — COMPACT PORTAL + IMPROVED SESSION LANDING
   ========================================================= */
.results-hero--session{
  min-height:0;
  padding:22px 24px;
  margin-bottom:14px;
  border-radius:24px;
}
.results-hero--session .results-hero-copy{max-width:820px}
.results-hero--session .results-eyebrow{
  display:inline-flex;
  margin:0 0 7px;
  padding:6px 10px;
  border:1px solid rgba(96,165,250,.20);
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:#93c5fd;
  font-size:11px;
  font-weight:900;
}
.results-hero--session h1{
  margin:0 0 7px;
  font-size:clamp(27px,3.5vw,43px);
  line-height:1.18;
  letter-spacing:-.025em;
}
.results-hero--session p{
  max-width:760px;
  font-size:14px;
  line-height:1.75;
}
.results-session-badge--brand{
  min-width:230px;
  max-width:310px;
  padding:14px 16px;
  border-radius:17px;
}
.results-session-badge--brand span{font-size:11px}
.results-session-badge--brand strong{font-size:15px;line-height:1.55}
.results-search-panel{
  margin-bottom:14px;
  box-shadow:0 14px 38px rgba(15,23,42,.09);
}
.results-search-panel .search-head{margin-bottom:13px}
.results-search-panel .search-row{gap:10px}
.results-stats-section{margin-top:14px}

@media(max-width:700px){
  .results-hero--session{padding:18px;border-radius:21px}
  .results-hero--session h1{font-size:29px}
  .results-hero--session p{font-size:13px}
  .results-session-badge--brand{width:100%;max-width:none;min-width:0;padding:12px 14px}
}

/* =========================================================
   V6 — DARK COMMAND CENTER (PORTAL + SESSION)
   ========================================================= */
.results-shell{
  --results-night:#050b18;
  --results-night-2:#09152a;
  --results-night-3:#0f1f3c;
  --results-night-line:rgba(148,163,184,.18);
  --results-night-text:#f8fafc;
  --results-night-muted:#94a3b8;
  --results-electric:#2484ff;
  --results-electric-2:#0b5cab;
  --results-success:#22c55e;
}

.results-shell .results-wrap{max-width:1180px;margin-inline:auto;padding-inline:16px}

.results-command-center{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(380px,1.18fr);
  gap:28px;
  margin:18px 0;
  padding:34px;
  border:1px solid var(--results-night-line);
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 16%,rgba(36,132,255,.22),transparent 30%),
    radial-gradient(circle at 88% 92%,rgba(14,165,233,.12),transparent 36%),
    linear-gradient(145deg,var(--results-night) 0%,var(--results-night-2) 58%,#07101f 100%);
  color:var(--results-night-text);
  box-shadow:0 28px 80px rgba(2,8,23,.28);
}
.results-command-center:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 0 44%,rgba(255,255,255,.025) 45%,transparent 46%);pointer-events:none}
.results-command-intro,.results-command-search{position:relative;z-index:1}
.results-live-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid rgba(96,165,250,.4);border-radius:999px;background:rgba(37,99,235,.12);color:#dbeafe;font-size:12px;font-weight:900}
.results-live-badge b{color:#fb923c}
.results-command-brand{display:flex;align-items:center;gap:15px;margin:26px 0 13px}
.results-command-bolt{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border:1px solid rgba(96,165,250,.32);border-radius:21px;background:rgba(37,99,235,.13);font-size:35px;box-shadow:inset 0 0 24px rgba(59,130,246,.12)}
.results-command-brand p{margin:0 0 4px;color:#93c5fd;font-size:13px;font-weight:850}
.results-command-brand h1{margin:0;color:#fff;font-size:clamp(34px,4vw,52px);line-height:1.12;font-weight:950;letter-spacing:-.035em}
.results-command-description{max-width:520px;margin:0;color:#cbd5e1;font-size:15px;line-height:1.9}

.results-command-search{align-self:center;padding:22px;border:1px solid rgba(148,163,184,.16);border-radius:23px;background:rgba(3,10,24,.6);backdrop-filter:blur(12px);box-shadow:0 18px 44px rgba(0,0,0,.22)}
.results-command-field+ .results-command-field{margin-top:16px}
.results-command-field label{display:block;margin:0 2px 8px;color:#dbeafe;font-size:12px;font-weight:900}
.results-command-current,.results-command-select{display:flex;align-items:center;gap:9px;width:100%;min-height:52px;padding:10px 13px;border:1px solid rgba(148,163,184,.18);border-radius:15px;background:rgba(15,31,60,.72);color:#f8fafc;font:inherit;font-size:13px;font-weight:850}
.results-command-select option{color:#0f172a;background:#fff}
.results-command-query{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px;padding:4px;border:1px solid rgba(148,163,184,.19);border-radius:16px;background:rgba(255,255,255,.055)}
.results-command-query>span{display:grid;place-items:center;width:42px;color:#94a3b8;font-size:22px}
.results-command-query input{width:100%;height:50px;padding:0 8px;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:17px;font-weight:800;box-shadow:none}
.results-command-query input::placeholder{color:#64748b}
.results-command-query button{display:flex;align-items:center;justify-content:center;gap:8px;align-self:stretch;min-width:142px;padding:0 18px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--results-electric-2),var(--results-electric));color:#fff;font:inherit;font-size:13px;font-weight:950;cursor:pointer;box-shadow:0 10px 24px rgba(36,132,255,.22)}
.results-command-query button b{color:#fbbf24}
.results-command-field small{display:block;margin:8px 2px 0;color:#64748b;font-size:10px}
.results-command-saved{margin-top:16px;padding-top:14px;border-top:1px solid rgba(148,163,184,.13)}
.results-command-saved-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.results-command-saved-head strong{color:#e2e8f0;font-size:12px}.results-command-saved-head span{color:#64748b;font-size:10px}
.results-command-saved-list{display:flex;flex-wrap:wrap;gap:7px}
.results-command-saved-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid rgba(148,163,184,.16);border-radius:10px;background:rgba(15,31,60,.72);color:#fff;cursor:pointer}
.results-command-saved-chip b{color:#60a5fa;font-family:monospace}.results-command-saved-chip span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#94a3b8;font-size:10px}
.results-command-empty{display:flex;align-items:center;justify-content:center;gap:10px;min-height:120px;padding:20px;border:1px dashed rgba(148,163,184,.22);border-radius:18px;color:#cbd5e1}

.results-portal-dashboard{margin:18px 0;padding:22px;border:1px solid var(--results-night-line);border-radius:24px;background:linear-gradient(180deg,#09152a,#07101f);color:#f8fafc;box-shadow:0 20px 56px rgba(2,8,23,.2)}
.results-portal-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.results-portal-dashboard-head span{display:block;margin-bottom:3px;color:#60a5fa;font-size:11px;font-weight:900}
.results-portal-dashboard-head h2{margin:0;color:#fff;font-size:22px;font-weight:950}
.results-portal-dashboard-head>b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(37,99,235,.13);color:#60a5fa;font-size:17px}
.results-session-list{display:grid;gap:9px}
.results-session-row{display:grid;grid-template-columns:36px 42px minmax(0,1fr) auto 26px;align-items:center;gap:11px;padding:12px;border:1px solid rgba(148,163,184,.14);border-radius:15px;background:rgba(15,31,60,.48);color:#fff;text-decoration:none;transition:.2s ease}
.results-session-row:hover{transform:translateY(-1px);border-color:rgba(96,165,250,.45);background:rgba(15,31,60,.72)}
.results-session-rank{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:rgba(255,255,255,.05);color:#60a5fa;font-weight:950}
.results-session-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(37,99,235,.12);font-size:19px}
.results-session-main{min-width:0}.results-session-main strong{display:block;color:#f8fafc;font-size:14px;font-weight:900}.results-session-main small{display:block;margin-top:2px;color:#64748b;font-size:10px}
.results-session-year{padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.055);color:#94a3b8;font-size:11px;font-weight:850}
.results-session-arrow{color:#60a5fa;font-size:18px}
.results-portal-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.results-portal-features>div{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;padding:13px;border:1px solid var(--results-night-line);border-radius:16px;background:#09152a;color:#fff}
.results-portal-features>div>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(37,99,235,.11);font-size:18px}
.results-portal-features strong{font-size:12px}.results-portal-features small{color:#64748b;font-size:10px}

/* Session page: keep the whole product surface visually consistent */
.results-shell .results-hero--session,
.results-shell .results-search-panel,
.results-shell .results-stats-section,
.results-shell .results-sponsor-card,
.results-shell .results-dashboard-grid>.panel,
.results-shell .insights-grid>.panel,
.results-shell .ad-banner{
  border-color:var(--results-night-line)!important;
  background:linear-gradient(145deg,#09152a,#07101f)!important;
  color:var(--results-night-text)!important;
  box-shadow:0 20px 58px rgba(2,8,23,.18)!important;
}
.results-shell .results-hero--session{padding:24px!important;border-radius:23px!important}
.results-shell .results-hero--session h1,
.results-shell .results-search-panel label,
.results-shell .results-stats-section strong,
.results-shell .results-dashboard-grid h2,
.results-shell .insights-grid h2,
.results-shell .results-sponsor-card h2{color:#f8fafc!important}
.results-shell .results-hero--session p,
.results-shell .results-search-panel small,
.results-shell .results-search-panel .search-help,
.results-shell .results-stats-section span,
.results-shell .results-dashboard-grid .main span,
.results-shell .series-card span,
.results-shell .insight-list span,
.results-shell .results-sponsor-card p{color:#94a3b8!important}
.results-shell .results-session-badge--brand,
.results-shell .stat-box,
.results-shell .series-card,
.results-shell .row-item,
.results-shell .insight-list>div{border-color:rgba(148,163,184,.14)!important;background:rgba(15,31,60,.62)!important}
.results-shell .search-input-wrap{border-color:rgba(148,163,184,.18)!important;background:rgba(255,255,255,.055)!important}
.results-shell .search-input-wrap input{color:#fff!important;background:transparent!important}
.results-shell .search-input-wrap input::placeholder{color:#64748b!important}
.results-shell .search-row button,.results-shell .btn-primary,.results-shell .results-sponsor-cta{background:linear-gradient(135deg,#0b5cab,#2484ff)!important;color:#fff!important;border:0!important}
.results-shell .stats-grid-enhanced{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.results-shell .results-dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)!important}
.results-shell .honor-row .avg,.results-shell .insight-list strong{color:#4ade80!important}

@media(max-width:900px){
  .results-command-center{grid-template-columns:1fr;gap:20px;padding:24px}
  .results-command-description{max-width:none}
  .results-shell .stats-grid-enhanced{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .results-shell .results-dashboard-grid{grid-template-columns:1fr!important}
}
@media(max-width:640px){
  .results-shell .results-wrap{padding-inline:10px}
  .results-command-center{margin:12px 0;padding:18px;border-radius:22px}
  .results-live-badge{font-size:10px;padding:7px 10px}
  .results-command-brand{align-items:flex-start;margin:20px 0 10px}
  .results-command-bolt{flex-basis:48px;width:48px;height:48px;border-radius:15px;font-size:27px}
  .results-command-brand h1{font-size:34px;line-height:1.2}
  .results-command-brand p{font-size:11px}
  .results-command-description{font-size:13px;line-height:1.8}
  .results-command-search{padding:14px;border-radius:18px}
  .results-command-query{grid-template-columns:1fr;background:transparent;border:0;padding:0;gap:8px}
  .results-command-query>span{display:none}
  .results-command-query input{height:52px;padding:0 13px;border:1px solid rgba(148,163,184,.18);border-radius:13px;background:rgba(255,255,255,.055)}
  .results-command-query button{width:100%;min-height:50px;border-radius:13px}
  .results-portal-dashboard{padding:15px;border-radius:19px}
  .results-portal-dashboard-head h2{font-size:18px}
  .results-session-row{grid-template-columns:32px 38px minmax(0,1fr) auto;padding:10px;gap:8px}
  .results-session-year{display:none}.results-session-arrow{display:none}
  .results-portal-features{grid-template-columns:1fr}
  .results-shell .results-hero--session{padding:17px!important}
  .results-shell .results-hero--session h1{font-size:25px!important}
  .results-shell .results-session-badge--brand{display:none!important}
  .results-shell .results-search-panel{padding:15px!important}
}

/* =========================================================
   PORTAL V7 — مسابقات 2026 بوضوح وبساطة
   ========================================================= */
.results-command-center--simple{
  display:block!important;
  min-height:auto!important;
  padding:28px 32px!important;
}
.results-command-center--simple .results-command-intro{max-width:900px!important;margin:auto!important;text-align:center!important}
.results-command-center--simple .results-live-badge{margin-inline:auto!important}
.results-command-center--simple .results-command-brand{justify-content:center!important;margin:20px 0 10px!important}
.results-command-center--simple .results-command-description{max-width:none!important;margin:0 auto!important;font-size:14px!important}

.results-current-panel{
  margin:18px 0!important;
  padding:24px!important;
  border:1px solid var(--results-night-line)!important;
  border-radius:26px!important;
  background:linear-gradient(180deg,#09152a,#07101f)!important;
  color:#f8fafc!important;
  box-shadow:0 20px 56px rgba(2,8,23,.22)!important;
}
.results-current-panel-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin-bottom:20px!important}
.results-current-panel-head span{display:block!important;margin-bottom:4px!important;color:#60a5fa!important;font-size:12px!important;font-weight:950!important}
.results-current-panel-head h2{margin:0!important;color:#fff!important;font-size:clamp(23px,3vw,34px)!important;font-weight:950!important}
.results-current-panel-head p{margin:7px 0 0!important;color:#94a3b8!important;font-size:13px!important;line-height:1.75!important}
.results-current-panel-head>b{display:grid!important;place-items:center!important;flex:0 0 45px!important;width:45px!important;height:45px!important;border-radius:14px!important;background:rgba(37,99,235,.15)!important;color:#60a5fa!important;font-size:18px!important}

.results-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.results-choice-card{position:relative!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;min-height:132px!important;padding:20px!important;border:1px solid rgba(148,163,184,.17)!important;border-radius:20px!important;background:rgba(15,31,60,.56)!important;color:#fff!important;cursor:pointer!important;transition:.2s ease!important}
.results-choice-card:hover{transform:translateY(-2px)!important;border-color:rgba(96,165,250,.45)!important;background:rgba(15,31,60,.78)!important}
.results-choice-card.is-selected{border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(59,130,246,.13),0 18px 36px rgba(2,8,23,.2)!important}
.results-choice-card.is-waiting{cursor:default!important;opacity:.78!important}
.results-choice-card input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.results-choice-icon{display:grid!important;place-items:center!important;width:58px!important;height:58px!important;border-radius:18px!important;background:rgba(37,99,235,.14)!important;font-size:28px!important}
.results-choice-copy{min-width:0!important}
.results-choice-copy small{display:block!important;margin-bottom:4px!important;color:#60a5fa!important;font-size:11px!important;font-style:normal!important;font-weight:900!important}
.results-choice-copy strong{display:block!important;color:#fff!important;font-size:17px!important;line-height:1.6!important;font-weight:950!important}
.results-choice-copy em{display:block!important;margin-top:6px!important;color:#94a3b8!important;font-size:11px!important;font-style:normal!important}
.results-choice-state{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:999px!important;background:rgba(16,185,129,.12)!important;color:#34d399!important;font-weight:950!important}
.results-choice-card.is-waiting .results-choice-state{background:rgba(245,158,11,.12)!important;color:#fbbf24!important}

.results-focused-search{margin-top:18px!important;padding:20px!important;border:1px solid rgba(148,163,184,.16)!important;border-radius:20px!important;background:rgba(3,10,24,.62)!important}
.results-focused-search-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}
.results-focused-search-head span{color:#60a5fa!important;font-size:11px!important;font-weight:950!important}
.results-focused-search-head strong{max-width:72%!important;overflow:hidden!important;color:#e2e8f0!important;font-size:13px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.results-focused-search>label{display:block!important;margin:0 2px 8px!important;color:#dbeafe!important;font-size:12px!important;font-weight:900!important}
.results-focused-query{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:4px!important;padding:4px!important;border:1px solid rgba(148,163,184,.2)!important;border-radius:17px!important;background:rgba(255,255,255,.055)!important}
.results-focused-query>span{display:grid!important;place-items:center!important;width:43px!important;color:#94a3b8!important;font-size:23px!important}
.results-focused-query input{width:100%!important;height:52px!important;padding:0 9px!important;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;font:inherit!important;font-size:17px!important;font-weight:850!important;box-shadow:none!important}
.results-focused-query input::placeholder{color:#64748b!important}
.results-focused-query button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;align-self:stretch!important;min-width:164px!important;padding:0 20px!important;border:0!important;border-radius:13px!important;background:linear-gradient(135deg,#0b5cab,#1677ff)!important;color:#fff!important;font:inherit!important;font-size:13px!important;font-weight:950!important;cursor:pointer!important;box-shadow:0 10px 24px rgba(36,132,255,.22)!important}
.results-focused-query button b{color:#fbbf24!important}
.results-focused-search>small{display:block!important;margin:8px 3px 0!important;color:#64748b!important;font-size:10px!important}
.results-waiting-message{display:flex!important;align-items:center!important;gap:14px!important;margin-top:18px!important;padding:18px!important;border:1px dashed rgba(148,163,184,.24)!important;border-radius:18px!important;background:rgba(3,10,24,.45)!important}
.results-waiting-message>span{font-size:28px!important}.results-waiting-message strong{display:block!important;color:#fff!important;font-size:14px!important}.results-waiting-message p{margin:4px 0 0!important;color:#94a3b8!important;font-size:11px!important}

.results-portal-features--compact{margin:14px 0!important}
.results-portal-features--compact>div{min-height:74px!important}
.results-footer--portal{margin-top:12px!important;padding:14px 16px!important}
.results-footer--portal>div{width:100%!important;text-align:center!important}
.results-footer--portal strong{font-size:13px!important}.results-footer--portal span{font-size:11px!important}

@media(max-width:780px){
  .results-command-center--simple{padding:18px!important}
  .results-command-center--simple .results-command-brand{align-items:center!important;margin:16px 0 8px!important}
  .results-command-center--simple .results-command-brand h1{font-size:30px!important}
  .results-command-center--simple .results-command-bolt{width:44px!important;height:44px!important;flex-basis:44px!important;font-size:24px!important}
  .results-current-panel{padding:16px!important;border-radius:21px!important}
  .results-current-panel-head h2{font-size:23px!important}
  .results-current-panel-head p{font-size:11px!important}
  .results-choice-grid{grid-template-columns:1fr!important;gap:13px!important}
  .results-choice-card{min-height:126px!important;padding:17px!important;gap:12px!important}
  .results-choice-icon{width:52px!important;height:52px!important;border-radius:16px!important;font-size:25px!important}
  .results-choice-copy strong{font-size:16px!important}
  .results-focused-search{padding:14px!important;border-radius:18px!important}
  .results-focused-search-head{align-items:flex-start!important;flex-direction:column!important;gap:4px!important}
  .results-focused-search-head strong{max-width:100%!important;white-space:normal!important}
  .results-focused-query{grid-template-columns:1fr!important;border:0!important;background:transparent!important;padding:0!important;gap:9px!important}
  .results-focused-query>span{display:none!important}
  .results-focused-query input{height:56px!important;padding:0 14px!important;border:1px solid rgba(148,163,184,.2)!important;border-radius:14px!important;background:rgba(255,255,255,.055)!important}
  .results-focused-query button{width:100%!important;min-height:52px!important;border-radius:14px!important}
  .results-focused-search>small{text-align:center!important}
  .results-portal-features--compact{grid-template-columns:1fr!important}
}


/* =========================================================
   PORTAL V8 — اختيار المسابقة ثم إظهار البحث
   ========================================================= */
.results-share-page--icon{
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  padding:0!important;
  border-radius:14px!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:22px!important;
  line-height:1!important;
}
.results-focused-search.is-collapsed{
  display:none!important;
}
.results-choice-card.is-active{
  cursor:pointer!important;
}
.results-choice-card.is-active::after{
  content:'اختر';
  position:absolute;
  inset-inline-end:14px;
  inset-block-end:12px;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(59,130,246,.14);
  color:#93c5fd;
  font-size:10px;
  font-weight:900;
}
.results-lang-fr .results-choice-card.is-active::after{content:'Choisir';}
.results-choice-card.is-selected::after{
  content:'محدد';
  background:rgba(16,185,129,.15);
  color:#6ee7b7;
}
.results-lang-fr .results-choice-card.is-selected::after{content:'Choisi';}
.results-choice-card.is-waiting:hover{
  transform:none!important;
}
.results-footer--portal{display:none!important;}
.results-shell + .site-footer,
.results-shell ~ footer{margin-top:0!important;}

@media(max-width:780px){
  .results-share-page--icon{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    border-radius:13px!important;
  }
  .results-choice-card.is-active::after{
    inset-inline-end:12px;
    inset-block-end:10px;
  }
}

/* =========================================================
   PORTAL V9 — واجهة أبسط وأكثر وضوحاً
   ========================================================= */
.results-command-center--simple{
  padding:22px 24px!important;
  min-height:auto!important;
  border-radius:24px!important;
}
.results-command-center--simple .results-live-badge{
  padding:7px 12px!important;
  font-size:11px!important;
}
.results-command-center--simple .results-command-brand{
  margin:14px 0 6px!important;
}
.results-command-center--simple .results-command-brand p{
  margin:0 0 2px!important;
  font-size:12px!important;
}
.results-command-center--simple .results-command-brand h1{
  font-size:clamp(30px,5vw,54px)!important;
  line-height:1.08!important;
}
.results-command-center--simple .results-command-description{
  font-size:13px!important;
  line-height:1.65!important;
}
.results-current-panel{padding:22px!important}
.results-current-panel-head{margin-bottom:16px!important}
.results-choice-grid{gap:16px!important}
.results-choice-card{
  min-height:148px!important;
  padding:22px!important;
  border-width:1px!important;
}
.results-choice-card.is-active{cursor:pointer!important}
.results-choice-card.is-active:hover{
  border-color:#3b82f6!important;
  box-shadow:0 16px 34px rgba(0,0,0,.18)!important;
}
.results-choice-card.is-active::after,
.results-choice-card.is-selected::after{display:none!important}
.results-choice-status{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:max-content!important;
  margin-top:10px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  font-style:normal!important;
  font-size:11px!important;
  font-weight:900!important;
}
.results-choice-status.is-available{
  color:#86efac!important;
  background:rgba(34,197,94,.12)!important;
  border:1px solid rgba(34,197,94,.22)!important;
}
.results-choice-status.is-pending{
  color:#fcd34d!important;
  background:rgba(245,158,11,.1)!important;
  border:1px solid rgba(245,158,11,.2)!important;
}
.results-choice-status b{font-size:8px!important}
.results-focused-search{
  scroll-margin-top:120px!important;
  animation:resultsSearchReveal .35s ease both!important;
}
@keyframes resultsSearchReveal{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}
.results-waiting-message{align-items:flex-start!important}
.results-refresh-btn{
  margin-top:12px!important;
  padding:9px 14px!important;
  border:1px solid rgba(96,165,250,.3)!important;
  border-radius:12px!important;
  background:rgba(37,99,235,.12)!important;
  color:#bfdbfe!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.results-trust-strip{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin:14px 0 0!important;
}
.results-trust-strip>div{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:62px!important;
  padding:11px 14px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:0 8px 22px rgba(15,23,42,.05)!important;
}
.results-trust-strip>div>span{
  display:grid!important;
  place-items:center!important;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
  background:#eff6ff!important;
  font-size:18px!important;
}
.results-trust-strip p{margin:0!important}
.results-trust-strip strong{display:block!important;font-size:12px!important}
.results-trust-strip small{display:block!important;margin-top:2px!important;color:#64748b!important;font-size:10px!important}
html[data-theme="dark"] .results-trust-strip>div,
html.dark-theme .results-trust-strip>div,
html.dark-mode .results-trust-strip>div,
body.dark-theme .results-trust-strip>div,
body.dark-mode .results-trust-strip>div{
  background:#08152b!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.14)!important;
}
html[data-theme="dark"] .results-trust-strip>div>span,
html.dark-theme .results-trust-strip>div>span,
html.dark-mode .results-trust-strip>div>span,
body.dark-theme .results-trust-strip>div>span,
body.dark-mode .results-trust-strip>div>span{background:#102247!important}
.results-footer--portal,
.results-shell .results-footer--portal{display:none!important}

@media(max-width:780px){
  .results-platform-bar{padding:11px 12px!important;margin-bottom:14px!important}
  .results-brand-copy strong{font-size:14px!important}
  .results-brand-copy small{font-size:9px!important}
  .results-command-center--simple{padding:18px 15px!important;border-radius:22px!important}
  .results-command-center--simple .results-command-brand h1{font-size:34px!important}
  .results-command-center--simple .results-command-description{font-size:12px!important}
  .results-current-panel{padding:15px!important}
  .results-current-panel-head{gap:10px!important}
  .results-current-panel-head>b{display:none!important}
  .results-current-panel-head h2{font-size:25px!important;line-height:1.25!important}
  .results-choice-grid{grid-template-columns:1fr!important;gap:14px!important}
  .results-choice-card{min-height:156px!important;padding:19px 16px!important}
  .results-choice-copy strong{font-size:19px!important;line-height:1.45!important}
  .results-choice-status{font-size:10px!important}
  .results-trust-strip{grid-template-columns:1fr!important;gap:8px!important;margin-top:10px!important}
  .results-trust-strip>div{min-height:56px!important;padding:9px 12px!important}
}
/* Results readability and positioning hotfix - 2026 */
.results-shell .result-encouragement,
.results-shell .candidate-message,
.results-shell .result-message,
.results-shell .message-line {
  color: #111827;
  font-weight: 800;
  line-height: 1.8;
  text-shadow: none;
}

.results-shell .result-actions .action-btn,
.results-shell .candidate-actions .action-btn,
.results-shell .result-action-secondary,
.results-shell .candidate-actions .btn:not(.btn-wa) {
  background: #ffffff;
  color: #111827;
  border-color: rgba(17, 24, 39, .22);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.results-shell .result-actions .action-btn:hover,
.results-shell .candidate-actions .action-btn:hover,
.results-shell .result-action-secondary:hover,
.results-shell .candidate-actions .btn:not(.btn-wa):hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(17, 24, 39, .36);
}

.results-shell .result-action-whatsapp,
.results-shell .whatsapp-share-btn,
.results-shell .candidate-actions .btn-wa {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .24);
}

.results-shell .result-action-whatsapp:hover,
.results-shell .whatsapp-share-btn:hover,
.results-shell .candidate-actions .btn-wa:hover {
  background: #15803d;
  color: #ffffff;
}

.results-shell .related-topper-card,
.results-shell .top-result-row,
.results-shell .linked-result-card,
.results-shell .row-item,
.results-shell .honor-row {
  color: #111827;
}

.results-shell .student-name,
.results-shell .student-id,
.results-shell .student-score,
.results-shell .row-item .main strong,
.results-shell .row-item .main span,
.results-shell .row-item .avg,
.results-shell .honor-row strong,
.results-shell .honor-row span {
  color: #111827;
  opacity: 1;
}

.results-shell .results-footer-note,
.results-shell .results-platform-summary,
.results-shell .results-footer {
  color: #1f2937;
}

.results-shell .results-footer-note h2,
.results-shell .results-footer-note .title,
.results-shell .results-platform-summary h2,
.results-shell .results-footer strong {
  color: #111827;
}

.results-shell .results-footer-note p,
.results-shell .results-platform-summary p,
.results-shell .results-footer span,
.results-shell .results-footer p {
  color: #374151;
  opacity: 1;
}

.results-shell .back-to-results-link {
  color: #0f172a;
  font-weight: 800;
}

.results-back-to-top,
.results-back-top {
  position: fixed;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .28);
  z-index: 9999;
}

.results-back-to-top:hover,
.results-back-top:hover {
  background: #0f172a;
  color: #ffffff;
}

.results-shell[dir="rtl"] .results-back-to-top,
.results-shell[dir="rtl"] .results-back-top,
html[lang="ar"] .results-back-to-top,
html[lang="ar"] .results-back-top,
body.lang-ar .results-back-to-top,
body.lang-ar .results-back-top {
  left: 22px;
  right: auto;
}

.results-shell[dir="ltr"] .results-back-to-top,
.results-shell[dir="ltr"] .results-back-top,
html[lang="fr"] .results-back-to-top,
html[lang="fr"] .results-back-top,
body.lang-fr .results-back-to-top,
body.lang-fr .results-back-top {
  right: 22px;
  left: auto;
}

@media (max-width: 640px) {
  .results-back-to-top,
  .results-back-top {
    bottom: 88px;
    width: 46px;
    height: 46px;
  }

  .results-shell[dir="rtl"] .results-back-to-top,
  .results-shell[dir="rtl"] .results-back-top,
  html[lang="ar"] .results-back-to-top,
  html[lang="ar"] .results-back-top,
  body.lang-ar .results-back-to-top,
  body.lang-ar .results-back-top {
    left: 14px;
  }

  .results-shell[dir="ltr"] .results-back-to-top,
  .results-shell[dir="ltr"] .results-back-top,
  html[lang="fr"] .results-back-to-top,
  html[lang="fr"] .results-back-top,
  body.lang-fr .results-back-to-top,
  body.lang-fr .results-back-top {
    right: 14px;
  }
}

@media (prefers-color-scheme: dark) {
  .results-shell .result-encouragement,
  .results-shell .candidate-message,
  .results-shell .result-message,
  .results-shell .message-line,
  .results-shell .related-topper-card,
  .results-shell .top-result-row,
  .results-shell .linked-result-card,
  .results-shell .row-item,
  .results-shell .honor-row,
  .results-shell .student-name,
  .results-shell .student-id,
  .results-shell .student-score,
  .results-shell .row-item .main strong,
  .results-shell .row-item .main span,
  .results-shell .row-item .avg,
  .results-shell .honor-row strong,
  .results-shell .honor-row span,
  .results-shell .results-footer-note h2,
  .results-shell .results-footer-note .title,
  .results-shell .results-platform-summary h2,
  .results-shell .results-footer strong {
    color: #f8fafc;
  }

  .results-shell .results-footer-note p,
  .results-shell .results-platform-summary p,
  .results-shell .results-footer span,
  .results-shell .results-footer p {
    color: #d1d5db;
  }

  .results-shell .result-actions .action-btn,
  .results-shell .candidate-actions .action-btn,
  .results-shell .result-action-secondary,
  .results-shell .candidate-actions .btn:not(.btn-wa) {
    background: #f8fafc;
    color: #111827;
    border-color: rgba(248, 250, 252, .34);
  }

  .results-shell .back-to-results-link {
    color: #f8fafc;
  }
}

/* Final scoped contrast overrides for hosted theme variants */
.results-shell .result-encouragement,
.results-shell .candidate-message,
.results-shell .result-message,
.results-shell .message-line {
  color: #334155 !important;
  opacity: 1 !important;
  font-weight: 700;
  line-height: 1.9;
}

.results-shell .result-actions .action-btn,
.results-shell .candidate-actions .action-btn,
.results-shell .result-action-secondary,
.results-shell .candidate-actions .btn:not(.btn-wa) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  opacity: 1 !important;
  font-weight: 700;
}

.results-shell .result-actions .action-btn:hover,
.results-shell .candidate-actions .action-btn:hover,
.results-shell .result-action-secondary:hover,
.results-shell .candidate-actions .btn:not(.btn-wa):hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.results-shell .result-action-whatsapp,
.results-shell .whatsapp-share-btn,
.results-shell .candidate-actions .btn-wa {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  font-weight: 800;
}

.results-shell .related-topper-card,
.results-shell .top-result-row,
.results-shell .linked-result-card,
.results-shell .row-item,
.results-shell .honor-row {
  background: #eef2f7;
  border: 1px solid #d7dee8;
}

.results-shell .related-topper-card .student-name,
.results-shell .top-result-row .student-name,
.results-shell .linked-result-card .student-name,
.results-shell .related-topper-card strong,
.results-shell .top-result-row strong,
.results-shell .row-item .main strong,
.results-shell .honor-row strong {
  color: #0f172a !important;
  opacity: 1 !important;
  font-weight: 800;
}

.results-shell .related-topper-card .student-meta,
.results-shell .top-result-row .student-meta,
.results-shell .row-item .main span,
.results-shell .honor-row span {
  color: #475569 !important;
  opacity: 1 !important;
}

.results-shell .related-topper-card .student-average,
.results-shell .top-result-row .student-average,
.results-shell .row-item .avg {
  color: #047857 !important;
  opacity: 1 !important;
  font-weight: 800;
}

.results-shell .results-footer-note h2,
.results-shell .results-footer-note .title,
.results-shell .results-platform-summary h2,
.results-shell .results-footer strong {
  color: #0f172a !important;
  opacity: 1 !important;
}

.results-shell .results-footer-note p,
.results-shell .results-platform-summary p,
.results-shell .results-footer span,
.results-shell .results-footer p {
  color: #475569 !important;
  opacity: 1 !important;
}

.results-shell .back-to-results-link {
  color: #0f5fbf !important;
  font-weight: 800;
  opacity: 1 !important;
}

.results-shell .back-to-results-link:hover {
  color: #084a94 !important;
  text-decoration: underline;
}

.results-back-to-top,
.results-back-top {
  position: fixed;
  bottom: 24px !important;
  z-index: 9999;
}

.results-shell[dir="rtl"] .results-back-to-top,
.results-shell[dir="rtl"] .results-back-top,
html[lang="ar"] .results-back-to-top,
html[lang="ar"] .results-back-top,
body.lang-ar .results-back-to-top,
body.lang-ar .results-back-top {
  left: 24px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
}

.results-shell[dir="ltr"] .results-back-to-top,
.results-shell[dir="ltr"] .results-back-top,
html[lang="fr"] .results-back-to-top,
html[lang="fr"] .results-back-top,
body.lang-fr .results-back-to-top,
body.lang-fr .results-back-top {
  right: 24px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
}

@media (max-width: 767px) {
  .results-back-to-top,
  .results-back-top {
    bottom: 88px !important;
  }

  .results-shell[dir="rtl"] .results-back-to-top,
  .results-shell[dir="rtl"] .results-back-top,
  html[lang="ar"] .results-back-to-top,
  html[lang="ar"] .results-back-top,
  body.lang-ar .results-back-to-top,
  body.lang-ar .results-back-top {
    left: 16px !important;
    right: auto !important;
  }

  .results-shell[dir="ltr"] .results-back-to-top,
  .results-shell[dir="ltr"] .results-back-top,
  html[lang="fr"] .results-back-to-top,
  html[lang="fr"] .results-back-top,
  body.lang-fr .results-back-to-top,
  body.lang-fr .results-back-top {
    right: 16px !important;
    left: auto !important;
  }
}

html[data-theme="dark"] .results-shell .result-encouragement,
html.dark-theme .results-shell .result-encouragement,
body.dark-theme .results-shell .result-encouragement,
html[data-theme="dark"] .results-shell .candidate-message,
html.dark-theme .results-shell .candidate-message,
body.dark-theme .results-shell .candidate-message,
html[data-theme="dark"] .results-shell .result-message,
html.dark-theme .results-shell .result-message,
body.dark-theme .results-shell .result-message,
html[data-theme="dark"] .results-shell .message-line,
html.dark-theme .results-shell .message-line,
body.dark-theme .results-shell .message-line {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .results-shell .result-actions .action-btn,
html.dark-theme .results-shell .result-actions .action-btn,
body.dark-theme .results-shell .result-actions .action-btn,
html[data-theme="dark"] .results-shell .candidate-actions .action-btn,
html.dark-theme .results-shell .candidate-actions .action-btn,
body.dark-theme .results-shell .candidate-actions .action-btn,
html[data-theme="dark"] .results-shell .candidate-actions .btn:not(.btn-wa),
html.dark-theme .results-shell .candidate-actions .btn:not(.btn-wa),
body.dark-theme .results-shell .candidate-actions .btn:not(.btn-wa) {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .results-shell .related-topper-card,
html.dark-theme .results-shell .related-topper-card,
body.dark-theme .results-shell .related-topper-card,
html[data-theme="dark"] .results-shell .top-result-row,
html.dark-theme .results-shell .top-result-row,
body.dark-theme .results-shell .top-result-row,
html[data-theme="dark"] .results-shell .linked-result-card,
html.dark-theme .results-shell .linked-result-card,
body.dark-theme .results-shell .linked-result-card,
html[data-theme="dark"] .results-shell .row-item,
html.dark-theme .results-shell .row-item,
body.dark-theme .results-shell .row-item,
html[data-theme="dark"] .results-shell .honor-row,
html.dark-theme .results-shell .honor-row,
body.dark-theme .results-shell .honor-row {
  background: #1e293b;
  border-color: #334155;
  color: #ffffff;
}

html[data-theme="dark"] .results-shell .related-topper-card .student-name,
html.dark-theme .results-shell .related-topper-card .student-name,
body.dark-theme .results-shell .related-topper-card .student-name,
html[data-theme="dark"] .results-shell .top-result-row .student-name,
html.dark-theme .results-shell .top-result-row .student-name,
body.dark-theme .results-shell .top-result-row .student-name,
html[data-theme="dark"] .results-shell .linked-result-card .student-name,
html.dark-theme .results-shell .linked-result-card .student-name,
body.dark-theme .results-shell .linked-result-card .student-name,
html[data-theme="dark"] .results-shell .related-topper-card strong,
html.dark-theme .results-shell .related-topper-card strong,
body.dark-theme .results-shell .related-topper-card strong,
html[data-theme="dark"] .results-shell .top-result-row strong,
html.dark-theme .results-shell .top-result-row strong,
body.dark-theme .results-shell .top-result-row strong,
html[data-theme="dark"] .results-shell .row-item .main strong,
html.dark-theme .results-shell .row-item .main strong,
body.dark-theme .results-shell .row-item .main strong,
html[data-theme="dark"] .results-shell .honor-row strong,
html.dark-theme .results-shell .honor-row strong,
body.dark-theme .results-shell .honor-row strong {
  color: #ffffff !important;
}

html[data-theme="dark"] .results-shell .related-topper-card .student-meta,
html.dark-theme .results-shell .related-topper-card .student-meta,
body.dark-theme .results-shell .related-topper-card .student-meta,
html[data-theme="dark"] .results-shell .top-result-row .student-meta,
html.dark-theme .results-shell .top-result-row .student-meta,
body.dark-theme .results-shell .top-result-row .student-meta,
html[data-theme="dark"] .results-shell .row-item .main span,
html.dark-theme .results-shell .row-item .main span,
body.dark-theme .results-shell .row-item .main span,
html[data-theme="dark"] .results-shell .honor-row span,
html.dark-theme .results-shell .honor-row span,
body.dark-theme .results-shell .honor-row span {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .results-shell .related-topper-card .student-average,
html.dark-theme .results-shell .related-topper-card .student-average,
body.dark-theme .results-shell .related-topper-card .student-average,
html[data-theme="dark"] .results-shell .top-result-row .student-average,
html.dark-theme .results-shell .top-result-row .student-average,
body.dark-theme .results-shell .top-result-row .student-average,
html[data-theme="dark"] .results-shell .row-item .avg,
html.dark-theme .results-shell .row-item .avg,
body.dark-theme .results-shell .row-item .avg {
  color: #6ee7b7 !important;
}

html[data-theme="dark"] .results-shell .results-footer-note h2,
html.dark-theme .results-shell .results-footer-note h2,
body.dark-theme .results-shell .results-footer-note h2,
html[data-theme="dark"] .results-shell .results-footer-note .title,
html.dark-theme .results-shell .results-footer-note .title,
body.dark-theme .results-shell .results-footer-note .title,
html[data-theme="dark"] .results-shell .results-platform-summary h2,
html.dark-theme .results-shell .results-platform-summary h2,
body.dark-theme .results-shell .results-platform-summary h2,
html[data-theme="dark"] .results-shell .results-footer strong,
html.dark-theme .results-shell .results-footer strong,
body.dark-theme .results-shell .results-footer strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .results-shell .results-footer-note p,
html.dark-theme .results-shell .results-footer-note p,
body.dark-theme .results-shell .results-footer-note p,
html[data-theme="dark"] .results-shell .results-platform-summary p,
html.dark-theme .results-shell .results-platform-summary p,
body.dark-theme .results-shell .results-platform-summary p,
html[data-theme="dark"] .results-shell .results-footer span,
html.dark-theme .results-shell .results-footer span,
body.dark-theme .results-shell .results-footer span {
  color: #cbd5e1 !important;
}

/* Related toppers visibility fix */
.results-shell .related-results-list .row-item,
.results-shell .related-topper-card,
.results-shell .top-result-row,
.results-shell .linked-result-card {
  min-height: 78px;
  align-items: center !important;
  background: #647086 !important;
  border: 1px solid rgba(203, 213, 225, .28) !important;
  overflow: visible !important;
}

.results-shell .related-results-list .main,
.results-shell .related-topper-card .main,
.results-shell .top-result-row .main,
.results-shell .linked-result-card .main {
  display: block !important;
  min-width: 0;
  overflow: visible !important;
  position: static !important;
  text-indent: 0 !important;
}

.results-shell .related-topper-card .student-name,
.results-shell .related-results-list .student-name,
.results-shell .top-result-row .student-name,
.results-shell .linked-result-card .student-name,
.results-shell .related-results-list .candidate-name,
.results-shell .related-results-list .topper-name,
.results-shell .related-results-list .related-result-name,
.results-shell .row-item.top-result-row .main strong {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: static !important;
  text-indent: 0 !important;
}

.results-shell .related-results-list .main span,
.results-shell .related-results-list .student-meta,
.results-shell .related-topper-card .student-meta,
.results-shell .top-result-row .student-meta,
.results-shell .linked-result-card .student-meta {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 1.45;
}

.results-shell .related-results-list .student-id,
.results-shell .related-topper-card .student-id,
.results-shell .top-result-row .student-id,
.results-shell .linked-result-card .student-id {
  color: #e2e8f0 !important;
}

.results-shell .related-results-list .student-average,
.results-shell .related-topper-card .student-average,
.results-shell .top-result-row .student-average,
.results-shell .linked-result-card .student-average,
.results-shell .row-item.top-result-row .avg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #6ee7b7 !important;
  font-weight: 900 !important;
  font-size: 18px !important;
}

.results-shell .saved-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.results-shell .saved-result-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: rgba(15, 31, 60, .84);
  overflow: hidden;
}

.results-shell .saved-result-link {
  min-width: 0;
  padding: 10px 12px;
}

.results-shell .saved-result-chip strong {
  color: #bfdbfe !important;
  font-weight: 900;
}

.results-shell .saved-result-chip span {
  color: #cbd5e1 !important;
  opacity: 1;
}

.results-shell .saved-result-actions {
  display: flex;
  align-items: stretch;
}

.results-shell .saved-result-actions button {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  border: 0;
  border-inline-start: 1px solid rgba(148, 163, 184, .22);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.results-shell .saved-result-copy {
  background: rgba(37, 99, 235, .18) !important;
  color: #bfdbfe !important;
}

.results-shell .saved-result-remove {
  background: rgba(244, 63, 94, .13) !important;
  color: #fecdd3 !important;
  font-size: 18px !important;
}