@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#03151b;--p:#061f27;--p2:#082a33;--c:#00f5d4;--g:#ffd64a;--r:#ff4057;--t:#f4fbff;--m:#9db8c2;--l:#13515b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 25% -10%,#0b414a 0,transparent 40%),var(--bg);color:var(--t);font:14px/1.5 Inter,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}.topbar{height:68px;display:flex;align-items:center;gap:22px;padding:0 clamp(12px,3vw,40px);border-bottom:1px solid #0b727a;background:#021116ed;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}.mark{font-size:31px;color:var(--c);text-shadow:0 0 14px #00f5d477}.brand strong{font:900 27px/1 'Barlow Condensed',sans-serif;display:block;letter-spacing:-.5px}.brand em{font-style:normal;color:var(--c)}.brand small{display:block;color:var(--m);font-size:8px;font-weight:800;letter-spacing:1.1px}.topbar nav{display:flex;gap:17px;align-items:center;flex:1;white-space:nowrap}.topbar nav a{font-size:12px;padding:24px 1px 21px;border-bottom:3px solid transparent}.topbar nav a.active,.topbar nav a:hover{color:var(--c);border-color:var(--c)}.search{display:flex;max-width:230px;flex:1}.search input{width:100%;min-width:0}.wallet{padding:8px 11px;border:1px solid #c4a52e;border-radius:8px;color:var(--g);font-weight:800;white-space:nowrap}.wallet b{font-size:17px}.avatar,.profile-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;border:2px solid #36727a;background:linear-gradient(135deg,#4b8791,#0a2831);font-weight:800;flex-shrink:0}.mobile{display:none;background:transparent;color:var(--c);border:1px solid var(--l);border-radius:7px;padding:7px}.wrap{max-width:1680px;margin:auto;padding:22px clamp(12px,2vw,30px) 30px}input,select,textarea{background:#031920;border:1px solid #1b5964;border-radius:8px;padding:11px 12px;color:var(--t);width:100%;min-width:0}input::placeholder,textarea::placeholder{color:#7696a0}label{display:block;color:#d7e9ed;font-size:12px;font-weight:700;margin:13px 0 7px}textarea{resize:vertical}.toast{position:relative;margin-bottom:16px;padding:12px 40px 12px 15px;border:1px solid #1b887e;border-radius:9px;background:#07372f;color:#c8fff4}.toast button{position:absolute;right:10px;top:5px;background:none;border:0;color:inherit;font-size:23px}.hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,.82fr);gap:14px}.hero{min-height:350px;padding:28px;position:relative;overflow:hidden;border:1px solid #14616a;border-radius:14px;background:linear-gradient(90deg,#02151bf2,#062831d9 55%,#03151b88),radial-gradient(circle at 75% 20%,#1d7884,transparent 28%),linear-gradient(130deg,#061b22,#0b424b 55%,#030f14);box-shadow:0 16px 36px #0005}.hero:after{content:"";position:absolute;right:-15px;bottom:-80px;width:45%;height:110%;opacity:.2;background:repeating-linear-gradient(135deg,transparent 0 15px,#2ca3a5 16px 18px,transparent 19px 34px);transform:skew(-10deg);pointer-events:none}.eyebrow{display:block;color:var(--g);font-weight:800;letter-spacing:2px;font-size:11px;text-transform:uppercase}.hero h1{font:900 clamp(43px,4.5vw,67px)/.88 'Barlow Condensed',sans-serif;margin:12px 0 14px;position:relative;z-index:1}.hero h1 span{color:var(--g)}.hero>p{color:#e2f0f3;font-size:14px}.features{display:flex;gap:0;margin:24px 0 20px;max-width:730px;position:relative;z-index:1}.features div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:0 13px;border-right:1px solid #20606a;color:var(--c);font-size:22px;flex:1}.features div:last-child{border:0}.features b{font-size:10px;color:var(--t)}.features small{font-size:9px;color:var(--m)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:8px;font-weight:800;font-size:12px;border:1px solid transparent;cursor:pointer;transition:.15s;text-align:center}.btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.btn:disabled{opacity:.4;cursor:not-allowed}.primary{color:#001b1b;background:linear-gradient(100deg,#00edbd,#00d6cb);box-shadow:0 0 18px #00e4c31f}.outline{border-color:var(--c);background:#031a20;color:var(--t)}.gold{background:linear-gradient(100deg,#ffe66b,#ffc928);color:#251d00}.big{padding:13px 20px;text-transform:uppercase}.full{width:100%}.hero>.btn{margin-right:10px;position:relative;z-index:1}.hero-side,.panel{border:1px solid #14525c;border-radius:12px;background:linear-gradient(145deg,#082630,#04171d);padding:18px}.hero-side h2,.panel h2{font:800 25px/1.1 'Barlow Condensed',sans-serif;margin:9px 0}.hero-side p,.panel p{color:#bad0d6}.mini-contests{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:15px 0}.mini-contests a{border:1px solid #166b73;border-radius:8px;padding:10px 5px;text-align:center;color:var(--c);font-size:18px;background:#061c24}.mini-contests b,.mini-contests small{display:block;color:var(--t);font-size:10px}.mini-contests small{font-size:9px;color:var(--m)}.feature-contest{padding:15px;border:1px solid #19777c;border-radius:10px;background:linear-gradient(110deg,#061e26ed,#082b34df),radial-gradient(circle at 80% 20%,#1d7079,transparent 40%)}.feature-contest h3{font:800 24px 'Barlow Condensed',sans-serif;margin:9px 0 0}.feature-contest p{font-size:11px}.pill{display:inline-block;padding:4px 8px;border-radius:5px;font-size:9px;font-weight:900}.free{background:var(--c);color:#002b2a}.premium{background:var(--r);color:white}.live{background:var(--r);color:white}.section{margin-top:24px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}.section-head h2,.heading h1{font-family:'Barlow Condensed',sans-serif;font-weight:900}.section-head h2{font-size:25px;margin:0}.section-head em{color:var(--c);font-style:normal}.section-head a{font-size:11px;color:var(--c)}.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.case-card{border:1px solid #1c5862;border-radius:10px;overflow:hidden;background:#f1f7f8;color:#061820;box-shadow:0 10px 22px #0003;display:flex;flex-direction:column;min-width:0}.art,.case-feature-art,.case-scene,.list-art{position:relative;overflow:hidden;background-color:#082a33;background-image:radial-gradient(ellipse at 75% 25%,#d29b54 0 4%,transparent 18%),linear-gradient(130deg,transparent 30%,#07171d 30% 48%,transparent 49%),linear-gradient(155deg,#15525b,#04171d 62%,#b07a38)}.art{height:140px;display:block;padding:9px}.art:before,.case-feature-art:before,.case-scene:before,.list-art:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 24px,#b8e3e418 25px 26px,transparent 27px 52px),linear-gradient(0deg,#03151b9c,transparent 70%)}.art-wallet{background-image:radial-gradient(ellipse at 72% 27%,#e4b47b 0 5%,transparent 17%),linear-gradient(145deg,transparent 20%,#111b1c 21% 40%,transparent 41%),linear-gradient(30deg,#172b2e,#b77a3d 35%,#0a343b 65%,#031319)}.art-message{background-image:radial-gradient(ellipse at 75% 30%,#16c6ce 0 2%,transparent 20%),linear-gradient(90deg,#071c2b,#0b5966 45%,#020c13)}.art-heir{background-image:radial-gradient(ellipse at 80% 28%,#f4c678 0 3%,transparent 20%),linear-gradient(0deg,#02090c 0 15%,transparent 16%),linear-gradient(90deg,#102c32,#0a2026 40%,#a96b39 41%,#081c22 45%,#0a2932)}.art-code{background-image:radial-gradient(ellipse at 30% 65%,#e0ac65 0 7%,transparent 20%),linear-gradient(130deg,#080f14,#b17a40 36%,#1b434a 60%,#061319)}.art-office{background-image:linear-gradient(90deg,#07171c,#1d5b68 32%,#031319 34% 62%,#236c75 63%,#06161b)}.art-midnight{background-image:radial-gradient(ellipse at 80% 25%,#ff5e32 0 3%,transparent 18%),linear-gradient(90deg,#07111a,#711d2a 48%,#0a151d)}.stamp{position:absolute;right:10px;bottom:9px;color:#fff8;font-size:10px;font-weight:900;letter-spacing:2px;transform:rotate(-8deg);border:1px solid #fff5;padding:3px 6px}.case-body{padding:10px 11px 11px;display:flex;flex-direction:column;flex:1}.case-body h3{font:800 19px/1.1 'Barlow Condensed',sans-serif;margin:0 0 6px}.meta{font-size:10px;color:#0e7279;font-weight:700}.case-body p{font-size:10px;line-height:1.5;color:#34505a;flex:1}.case-body .btn{width:100%;font-size:11px;padding:9px}.contest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.contest-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #17616b;border-radius:12px;background:linear-gradient(120deg,#082b34,#04191f);min-width:0}.contest-icon{width:48px;height:48px;border-radius:10px;background:#073f46;border:1px solid #168c87;color:var(--c);display:grid;place-items:center;font-size:27px;flex-shrink:0}.grow{flex:1;min-width:0}.contest-card h3{font:800 21px 'Barlow Condensed',sans-serif;margin:0}.contest-card p{margin:1px 0 8px;color:var(--m);font-size:10px}.metrics{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--m)}.metrics b{display:block;color:var(--g);font-size:13px}.bottom{display:grid;grid-template-columns:2fr 1fr;gap:13px;margin-top:17px}.steps{display:flex;justify-content:space-between;gap:12px}.steps span{display:block;font-size:11px}.steps b{display:inline-grid;place-items:center;width:40px;height:40px;border:2px solid var(--c);border-radius:50%;font-size:19px;color:var(--c);margin-right:7px}.steps small{display:block;color:var(--m)}.big-num{display:block;font:800 40px 'Barlow Condensed',sans-serif;color:var(--c)}.heading{margin:10px 0 22px}.heading h1{font-size:clamp(35px,4vw,48px);line-height:1.02;margin:5px 0}.heading p{margin:0;color:var(--m)}.filter{display:flex;gap:10px;margin-bottom:18px}.filter input{flex:1}.detail{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:stretch}.case-feature-art{min-height:410px;border:1px solid #17616b;border-radius:13px;padding:17px}.case-feature-art .stamp{bottom:20px;right:20px}.tags{display:flex;gap:7px;flex-wrap:wrap}.tags span{background:#0b444d;color:#b5ffef;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:800}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.stats>div{padding:11px;background:#03181e;border:1px solid #134953;border-radius:8px;min-width:0}.stats small{display:block;color:var(--m);font-size:9px;letter-spacing:.6px}.stats b{display:block;font-size:12px;margin-top:4px;overflow-wrap:anywhere}.panel ul{list-style:none;padding:0}.panel li{padding:9px 0;border-bottom:1px solid #14434b;font-size:12px;color:#d9e9ec}.gold-text{color:var(--g)}.muted{font-size:11px;color:var(--m)}.investigation{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.investigation aside{align-self:start;position:sticky;top:85px}.investigation aside h3{font:800 21px 'Barlow Condensed',sans-serif;margin:0}.side-links{display:grid;gap:6px;margin:15px 0}.side-links a{padding:10px;border-radius:7px;background:#07343d;color:var(--c);font-size:12px}.hint{border:1px solid #6d5a1c;background:#2a260e;padding:12px;border-radius:8px;margin-top:20px}.hint b{color:var(--g);font-size:11px}.hint p{font-size:10px}.case-scene{height:190px;border:1px solid #17616b;border-radius:11px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:13px}.case-scene>b{align-self:flex-end;letter-spacing:2px;font-size:10px}.evidence-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:10px 0 14px}.evidence{min-width:0;border:1px solid #1a5964;background:#06222b;border-radius:9px;padding:12px 10px;display:flex;flex-direction:column;gap:7px;color:var(--t);text-align:left;cursor:pointer}.evidence:hover{border-color:var(--c)}.evidence b{font-size:11px}.evidence small{font-size:10px;color:var(--m)}.narrow{max-width:620px;margin:0 auto}.result{text-align:center;padding:28px}.result-mark{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:var(--c);color:#032329;font-size:37px;font-weight:900;margin:0 auto 15px}.result .btn{margin:6px}.callout{border:1px solid #9b8425;background:#28240f;border-radius:9px;padding:14px;margin:15px 0}.table-panel{overflow:auto}.tabs{display:flex;gap:8px;margin-bottom:12px}.tabs button{border:1px solid var(--l);border-radius:18px;background:#04181f;color:var(--m);padding:8px 13px}.tabs button.active{background:var(--c);color:#002a2a}table{width:100%;border-collapse:collapse;min-width:480px}th,td{text-align:left;padding:13px;border-bottom:1px solid #123c45;font-size:12px}th{font-size:10px;color:var(--m);text-transform:uppercase}tr:hover td{background:#082832}.four{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}.four .panel{font-size:11px;color:var(--m)}.four strong{display:block;color:var(--c);font-size:23px}.case-list{display:grid;gap:9px}.list-row{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #14515b;border-radius:10px;background:#061f27}.list-art{width:85px;height:58px;border-radius:6px;flex-shrink:0}.list-row small{display:block;color:var(--m);font-size:10px}.status{font-size:10px;color:var(--c);white-space:nowrap}.wallet-hero{margin-bottom:15px;background:radial-gradient(circle at 80% 10%,#0d676a,transparent 38%),linear-gradient(120deg,#082b34,#04171d)}.wallet-hero strong{display:block;font:800 46px 'Barlow Condensed',sans-serif;color:var(--g)}.amounts{display:flex;gap:9px;margin:15px 0}.amounts label{flex:1;border:1px solid var(--l);padding:12px;text-align:center;border-radius:8px;color:var(--g)}.amounts input{width:auto}.payrow{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--l)}.payrow b{color:var(--g)}.countdown{padding:20px;background:#03181e;border:1px solid #176a74;border-radius:9px;color:var(--c);font-size:26px;letter-spacing:2px}.countdown small{display:block;font-size:9px;color:var(--m);letter-spacing:1px}.profile-mark{width:80px;height:80px;margin:0 auto 16px;font-size:24px}.auth{text-align:center}.auth .brand{justify-content:center;margin-bottom:18px}.auth form{text-align:left}.auth p{color:var(--m);font-size:12px}.auth p a{color:var(--c)}.faqs details{padding:14px 0;border-bottom:1px solid var(--l)}.faqs summary{cursor:pointer;font-weight:800}.faqs p{font-size:12px;color:var(--m)}.check{display:flex;gap:8px;align-items:center}.check input{width:auto}dialog{background:#06232b;color:var(--t);border:1px solid var(--c);border-radius:14px;padding:25px;max-width:460px;width:calc(100% - 30px)}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.close{float:right;background:none;border:0;color:var(--t);font-size:24px}footer{border-top:1px solid #10444d;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px clamp(14px,3vw,40px);color:var(--m);font-size:10px}footer a{color:var(--c)}hr{border:0;border-top:1px solid var(--l);margin:20px 0}
@media(min-width:1400px){.case-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.art{height:125px}}
@media(max-width:1100px){.topbar{gap:12px}.topbar nav{gap:10px}.topbar nav a{font-size:11px}.search{max-width:180px}.hero-grid{grid-template-columns:1.2fr .8fr}.case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.features div{padding:0 7px}.contest-card{flex-wrap:wrap}.contest-card .btn{width:100%}}
@media(max-width:850px){.mobile{display:block;order:2}.topbar nav{display:none;position:absolute;top:61px;left:0;right:0;background:#021116;padding:10px 15px;border-bottom:1px solid var(--l);flex-wrap:wrap}.topbar nav.open{display:flex}.topbar nav a{padding:8px}.search{max-width:210px;margin-left:auto}.hero-grid{grid-template-columns:1fr}.hero{min-height:320px}.case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail{grid-template-columns:1fr 1fr}.case-feature-art{min-height:300px}.contest-grid{grid-template-columns:1fr}.bottom{grid-template-columns:1fr}.investigation{grid-template-columns:185px minmax(0,1fr)}.evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contest-card{flex-wrap:nowrap}.contest-card .btn{width:auto}}
@media(max-width:600px){.topbar{padding:0 10px;gap:8px}.brand strong{font-size:20px}.brand small{font-size:6px}.mark{font-size:25px}.search{display:none}.wallet{margin-left:auto;font-size:11px;padding:7px}.wrap{padding:15px 11px 25px}.hero{padding:22px 16px;min-height:0}.hero h1{font-size:48px}.hero>p{font-size:12px}.features{display:grid;grid-template-columns:repeat(2,1fr);row-gap:12px}.features div{border:0;border-bottom:1px solid #20515a;padding:7px}.hero>.btn{width:100%;margin:5px 0}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.art{height:105px}.case-body{padding:9px}.case-body h3{font-size:16px}.case-body p{font-size:10px}.section-head h2{font-size:22px}.contest-card{flex-wrap:wrap;padding:12px}.contest-card .btn{width:100%}.steps{display:grid;grid-template-columns:1fr 1fr}.heading h1{font-size:38px}.filter{flex-wrap:wrap}.filter input{flex-basis:100%}.detail{grid-template-columns:1fr}.case-feature-art{min-height:240px}.investigation{grid-template-columns:1fr}.investigation aside{position:static}.side-links{grid-template-columns:repeat(2,1fr)}.case-scene{height:160px}.action-row{flex-direction:column}.stats{gap:5px}.stats>div{padding:8px 6px}.stats b{font-size:11px}.four{grid-template-columns:repeat(2,1fr)}.list-row{flex-wrap:wrap}.list-art{width:65px;height:50px}.list-row .grow{width:calc(100% - 85px)}.status{margin-left:76px}.list-row .btn{margin-left:auto}.amounts{flex-wrap:wrap}.amounts label{min-width:28%}.mini-contests b{font-size:9px}.mini-contests small{font-size:8px}.bottom{gap:10px}footer{flex-direction:column;gap:5px}}

/* Database-backed public category navigation */
.category-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.category-chip{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #17616b;border-radius:999px;background:#06232b;color:#d9f8f4;font-size:11px;font-weight:800;transition:background .15s,border-color .15s}.category-chip:hover,.category-chip.selected{border-color:var(--c);background:#06443f;color:var(--c)}.empty-state{grid-column:1/-1;padding:18px}

/* Live case detail media: images, evidence and suspect records from MySQL */
.live-case-images,.live-suspects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:16px 0 24px}.live-case-images figure,.live-suspect,.live-evidence-item{margin:0;border:1px solid #dfe8e9;border-radius:12px;background:#fff;overflow:hidden}.live-case-images img{display:block;width:100%;height:170px;object-fit:cover}.live-case-images figcaption{padding:12px}.live-case-images figcaption p,.live-suspect p,.live-evidence-item p{margin:5px 0 0;color:#60727c;line-height:1.5}.live-suspect{display:flex;gap:12px;align-items:center;padding:10px}.live-suspect img{width:68px;height:68px;object-fit:cover;border-radius:8px}.live-evidence-list{display:grid;gap:10px;margin:12px 0 24px}.live-evidence-item{display:flex;gap:14px;align-items:center;padding:10px}.live-evidence-item img{width:84px;height:72px;object-fit:cover;border-radius:8px}.live-evidence-item>div{min-width:0}.case-description{line-height:1.7;overflow-wrap:anywhere}.case-description p{margin:0 0 12px}.case-description ul,.case-description ol{padding-left:22px}@media(max-width:680px){.live-case-images,.live-suspects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-evidence-item img{width:64px;height:64px}}

/* CASE ROOM INTERNATIONAL MYSTERY-GAMING DESIGN SYSTEM — inspired by supplied reference */
:root{--bg:#071923;--p:#0b202b;--p2:#102b37;--c:#e5b85c;--g:#efc36c;--r:#bd4038;--t:#f6f0e5;--m:#b9c1c3;--l:#314955;--paper:#f4ecdc;--ink:#172633;--line:#d8d0c0;--gold:#d9a94f}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:radial-gradient(ellipse at 50% -20%,#203b48 0,transparent 48%),#071923;color:var(--t);font-family:Inter,Arial,sans-serif;letter-spacing:.005em}a{transition:color .18s,background .18s,border-color .18s,transform .18s}button,input,select,textarea{font-family:inherit}
.topbar{height:64px;padding:0 clamp(16px,3vw,48px);gap:22px;background:rgba(5,17,24,.96);border-bottom:1px solid rgba(220,180,96,.35);box-shadow:0 5px 24px #0003}.brand{gap:11px}.mark{color:var(--gold);text-shadow:none;font-size:27px}.brand strong{font-family:Georgia,'Times New Roman',serif;font-size:22px;letter-spacing:.02em;font-weight:700}.brand em{color:var(--gold)}.brand small{color:#b8c2c6;font-size:8px;letter-spacing:1.5px}.topbar nav{gap:22px}.topbar nav a{font-size:11px;letter-spacing:.025em;padding:23px 0 20px;color:#d6dcde}.topbar nav a.active,.topbar nav a:hover{color:var(--gold);border-color:var(--gold)}.search input{border-radius:999px;background:#0b202b;border-color:#334650;padding:8px 13px}.wallet{border:1px solid #9c7638;border-radius:5px;color:#f3ca76;background:#172b34;padding:8px 12px}.avatar,.profile-mark{background:linear-gradient(135deg,#d8b15f,#8d6730);border:2px solid #f0d99c;color:#16212a}
.wrap{max-width:1500px;padding:24px clamp(14px,2.5vw,38px) 42px}body:has(.hero-grid) .wrap{padding-top:18px}.hero-grid{grid-template-columns:minmax(0,1.6fr) minmax(300px,.85fr);gap:0;border:1px solid #324b55;border-radius:8px;overflow:hidden;background:#0b202b;box-shadow:0 22px 60px #0004}.hero{min-height:440px;padding:clamp(25px,4vw,54px);border:0;border-radius:0;background:linear-gradient(90deg,rgba(3,14,20,.95),rgba(4,19,27,.72) 47%,rgba(4,19,27,.12)),radial-gradient(ellipse at 78% 35%,#425c61 0,transparent 34%),linear-gradient(135deg,#183542,#06141c 70%);display:flex;flex-direction:column;justify-content:center}.hero:after{width:48%;height:100%;right:0;bottom:0;opacity:.12;background:repeating-linear-gradient(135deg,transparent 0 28px,#d7b66b 29px 30px,transparent 31px 58px)}.eyebrow{color:var(--gold);font-size:10px;letter-spacing:2.2px}.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(42px,5vw,70px);line-height:.98;font-weight:700;letter-spacing:-.025em;margin:15px 0 18px;max-width:720px}.hero h1 span{color:#f0c875}.hero>p{max-width:500px;color:#e0e4e3;font-size:14px;line-height:1.8}.features{margin:28px 0 24px;max-width:760px}.features div{color:var(--gold);border-color:#536068}.features b{font-size:10px;color:#fff}.features small{color:#c3ccce}.hero-side{border:0;border-left:1px solid #344954;border-radius:0;padding:26px;background:linear-gradient(150deg,#122b36,#091923)}.hero-side h2,.panel h2{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:700}.hero-side p,.panel p{color:#bbc6c9}.mini-contests a{border-color:#354d56;background:#102731;color:var(--gold);border-radius:5px}.feature-contest{border:1px solid #7b643b;border-radius:5px;background:linear-gradient(135deg,#1b3038,#0b1b24)}.feature-contest h3{font-family:Georgia,'Times New Roman',serif;font-size:23px}.pill{border-radius:3px;letter-spacing:.06em}.free{background:#d7b05d;color:#1b252a}.premium{background:#a83d35;color:#fff}.live{background:#a83d35;color:#fff}
.btn{border-radius:4px;padding:11px 16px;font-size:11px;letter-spacing:.025em;font-weight:800;box-shadow:none}.primary,.gold{background:linear-gradient(120deg,#f0cc7b,#dca84e);color:#17232b;border:1px solid #e7c575;box-shadow:0 4px 12px #0002}.primary:hover,.gold:hover{filter:brightness(1.06);transform:translateY(-2px)}.outline{border:1px solid #b28c4c;background:transparent;color:#f0cb7b}.big{text-transform:none;font-size:12px;padding:13px 20px}.section{margin-top:32px}.section-head{border-bottom:1px solid #314650;padding-bottom:11px;margin-bottom:16px}.section-head h2,.heading h1{font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-.015em}.section-head h2{font-size:25px}.section-head em{color:var(--gold)}.section-head a{color:var(--gold);font-size:11px}.category-chips{gap:8px}.category-chip{background:#112833;border:1px solid #344b55;border-radius:4px;color:#e7e1d5;padding:9px 14px;font-size:11px}.category-chip:hover,.category-chip.selected{background:#e2b65d;color:#18242a;border-color:#e2b65d}.case-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.case-card{background:var(--paper);color:var(--ink);border:1px solid #c8bfae;border-radius:5px;box-shadow:0 8px 22px #0003;transition:transform .2s,box-shadow .2s}.case-card:hover{transform:translateY(-3px);box-shadow:0 15px 30px #0004}.art{height:190px;background-size:cover;background-position:center}.art:before{background:linear-gradient(0deg,rgba(4,13,17,.68),transparent 70%)}.case-body{padding:15px}.case-body h3{font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.2;color:#172633}.case-body p{font-size:11px;color:#59636a;line-height:1.65}.meta{color:#687b7f;font-size:10px}.case-body .btn{margin-top:8px}.contest-grid{gap:14px}.contest-card{border:1px solid #334b55;border-radius:5px;background:linear-gradient(135deg,#112b36,#0a1b24);padding:17px}.contest-icon{border-radius:4px;background:#273d45;border:1px solid #a9874a;color:var(--gold)}.contest-card h3{font-family:Georgia,'Times New Roman',serif;font-size:20px}.metrics b{color:var(--gold)}.bottom{gap:16px}.panel{border:1px solid #314853;border-radius:5px;background:#0d242e;padding:20px}.steps b{border-color:var(--gold);color:var(--gold)}.big-num{color:var(--gold)}
.heading{margin:12px 0 24px}.heading h1{font-size:clamp(34px,4vw,52px)}.heading p{color:#c0c9ca;max-width:760px;line-height:1.7}.filter input,input,select,textarea{background:#f8f4eb;color:#1b2a34;border:1px solid #d0c7b7;border-radius:4px}.filter input::placeholder,input::placeholder,textarea::placeholder{color:#8c9699}label{color:#d9dedc}.detail{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}.case-feature-art{min-height:400px;border:1px solid #52626a;border-radius:5px;background-color:#142a35;background-image:linear-gradient(0deg,#08151bd9,transparent 60%),radial-gradient(ellipse at 60% 30%,#5d6a66,transparent 30%),linear-gradient(135deg,#263e49,#08161e 65%,#735b38);background-size:cover;background-position:center}.detail>.panel{background:var(--paper);color:#1a2a35;border-color:#d6cbb9;padding:25px}.detail>.panel h2,.detail>.panel h3{font-family:Georgia,'Times New Roman',serif;color:#192c37}.detail>.panel p,.detail>.panel .muted{color:#59666b}.detail .tags span{background:#e7ddca;border:1px solid #d6c6a8;color:#293b43;border-radius:3px;padding:6px 9px;font-size:10px}.case-description{color:#2a3b42;line-height:1.8}.stats{gap:8px}.stats>div{background:#e9e0d0;border:1px solid #d5c9b5;border-radius:4px}.stats small{color:#6a7374}.stats b{color:#172a35}.live-case-images{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.live-case-images figure,.live-suspect,.live-evidence-item{background:#fffaf0;border:1px solid #d8cdb9;border-radius:5px;color:#1b2a34;box-shadow:0 4px 12px #1726330b}.live-case-images img{height:155px}.live-case-images figcaption{padding:11px;font-size:12px}.live-case-images figcaption p,.live-suspect p,.live-evidence-item p{color:#626c70;font-size:11px;line-height:1.6}.live-evidence-item{padding:12px}.live-evidence-item img{width:90px;height:78px}.live-suspects-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.live-suspect{padding:12px}.live-suspect img{width:64px;height:64px;border-radius:4px}.case-description ul,.case-description ol{line-height:1.8}.investigation{grid-template-columns:230px minmax(0,1fr);gap:16px}.investigation aside{background:#0d242e;border:1px solid #344b54;border-radius:5px;padding:16px}.side-links a{background:#172e38;color:#e4c16f;border:1px solid transparent;border-radius:4px}.side-links a:hover{border-color:#b28a48;background:#1c3641}.hint{border:1px solid #94733d;background:#2b2a20;border-radius:4px}.hint b{color:#f0cb7b}.evidence{border:1px solid #3b5058;background:#112a34;border-radius:4px}.evidence:hover{border-color:var(--gold)}.result-mark{background:var(--gold);color:#15232b}.callout{border:1px solid #b08b4c;background:#29281f;border-radius:4px}.table-panel{border-radius:5px}.tabs button{border:1px solid #465b63;background:#102731;color:#d3d9d8}.tabs button.active{background:var(--gold);color:#1c2a30}.table-panel table{color:#e5e9e7}th{color:#d8b86f}th,td{border-color:#344b55}tr:hover td{background:#122e39}.list-row{border:1px solid #334b55;border-radius:5px;background:#0d242e}.list-row small{color:#b7c2c5}.status{color:#e4c16f}.wallet-hero{background:linear-gradient(120deg,#172f39,#0b1b24);border-color:#8e713e}.wallet-hero strong{color:var(--gold)}.amounts label{border-color:#78623a;color:var(--gold)}.payrow{border-color:#344b55}.payrow b{color:var(--gold)}.countdown{background:#102832;border-color:#9c7a3d;color:var(--gold)}.auth{background:var(--paper);color:#1a2a35;border:1px solid #d8cbb5;border-radius:6px;padding:28px}.auth p{color:#58676d}.auth p a{color:#91651f}.auth label{color:#263740}.auth input{background:#fff}.faqs details{border-color:#354b54}.faqs summary{color:#f2d28d}footer{border-color:#344b55;color:#b9c3c5}footer a{color:var(--gold)}dialog{background:#102832;color:#f5eee1;border-color:var(--gold)}
/* Detail and game screens use alternating dark investigation surfaces and warm dossier panels, as in the supplied reference. */
.investigation .panel,.investigation main .panel{background:var(--paper);color:#1a2a35;border-color:#d7cbb8}.investigation .panel h2,.investigation .panel h3{color:#1b2a35}.investigation .panel p,.investigation .panel small{color:#5c676b}.investigation .panel input,.investigation .panel select,.investigation .panel textarea{background:#fff;color:#172633;border-color:#d5c9b8}.investigation .panel li{color:#34454d;border-color:#ddd3c4}.investigation .panel .btn{color:#18252c}.investigation .panel .primary,.investigation .panel .gold{background:linear-gradient(120deg,#f0cc7b,#dca84e);color:#17232b}
.toast{background:#172f36;border-color:#b08a47;color:#f3d58d;border-radius:4px}.empty-state{background:#102832;color:#e4e9e6;border-color:#344b55}
@media(min-width:1400px){.case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.art{height:190px}}
@media(max-width:1100px){.topbar{gap:12px}.topbar nav{gap:12px}.hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr)}.case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.topbar nav{background:#071923;border-color:#344b55}.hero-grid{grid-template-columns:1fr}.hero{min-height:350px}.hero-side{border-left:0;border-top:1px solid #344954}.detail{grid-template-columns:1fr}.case-feature-art{min-height:280px}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.investigation{grid-template-columns:1fr}.investigation aside{position:static}.bottom{grid-template-columns:1fr}}
@media(max-width:600px){.topbar{height:58px;padding:0 10px}.brand strong{font-size:18px}.brand small{display:none}.wrap{padding:14px 10px 28px}.hero{padding:25px 18px;min-height:330px}.hero h1{font-size:43px}.features{display:grid;grid-template-columns:repeat(2,1fr)}.features div{border:0;border-bottom:1px solid #40535a;padding:8px}.hero>.btn{width:100%;margin:5px 0}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.art{height:125px}.case-body{padding:10px}.case-body h3{font-size:16px}.case-body p{font-size:10px}.section-head h2{font-size:21px}.heading h1{font-size:35px}.detail>.panel{padding:15px}.live-case-images,.live-suspects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-case-images img{height:125px}.live-evidence-item{align-items:flex-start}.live-evidence-item img{width:64px;height:64px}.steps{display:grid;grid-template-columns:1fr 1fr}.filter{flex-wrap:wrap}.filter input{flex-basis:100%}.case-feature-art{min-height:220px}.investigation .side-links{grid-template-columns:repeat(2,1fr)}footer{flex-direction:column}}

/* Pixel-focused recreation of the supplied CaseRoom 20-screen reference */
:root{--bg:#030f17;--p:#061923;--p2:#09232d;--c:#eac45e;--g:#f4cd68;--r:#e33d45;--t:#f5f3ec;--m:#b3c4ca;--l:#214451;--gold:#f2c95f}
body{background:#030f17;color:#f5f3ec;font-family:'DM Sans',Arial,sans-serif;letter-spacing:0}
.topbar{height:58px;gap:22px;padding:0 clamp(12px,2.2vw,34px);background:#020c12;border-bottom:1px solid #24505c;box-shadow:none}
.brand{gap:7px}.mark{font-size:24px;color:var(--gold)}.brand strong{font:800 20px/1 'Playfair Display',Georgia,serif;letter-spacing:0}.brand em{color:var(--gold)}.brand small{font-size:7px;letter-spacing:1px;color:#9db3bc}
.topbar nav{gap:clamp(10px,1.6vw,24px)}.topbar nav a{font-size:10px;padding:21px 0 18px;color:#e2e9e9}.topbar nav a.active,.topbar nav a:hover{color:var(--gold);border-color:var(--gold)}
.header-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.header-login,.header-signup{font-size:10px;font-weight:800;padding:7px 12px;border-radius:3px}.header-login{border:1px solid #2c7382;background:#041923}.header-signup{background:linear-gradient(110deg,#ffe38c,#f0be4c);color:#14212a;border:1px solid #f0c85d}
.wrap{max-width:1600px;padding:15px clamp(12px,1.2vw,20px) 30px}body:has(.reference-hero) .wrap{padding-top:0}
.reference-hero{min-height:255px;position:relative;overflow:hidden;display:flex;align-items:center;border:1px solid #235363;background:linear-gradient(90deg,#020d14f7 0%,#03131bdc 37%,#04131b50 75%,#020d14a0),var(--hero-image,linear-gradient(135deg,#0a2732,#07151e 55%,#4c351e));background-size:cover;background-position:center 45%;margin-bottom:12px;padding:26px clamp(20px,3vw,42px)}.reference-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#030f17a8,transparent 42%,#030f1730);pointer-events:none}.hero-copy{position:relative;z-index:2;max-width:620px}.reference-hero .eyebrow{font-size:9px;letter-spacing:1.7px;color:#e8c768}.reference-hero h1{font:800 clamp(37px,4vw,57px)/.93 'Playfair Display',Georgia,serif;letter-spacing:-1px;margin:9px 0 10px}.reference-hero h1 em{font-style:normal;color:#f1cf72}.reference-hero p{font-size:12px;line-height:1.6;max-width:460px;color:#d6e2e5;margin:0 0 15px}.reference-hero .btn{font-size:10px;padding:9px 13px}
.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 10px}.mode-card{--mode-accent:#1ad4a7;position:relative;isolation:isolate;overflow:hidden;min-height:190px;padding:13px 15px 12px;border:1px solid var(--mode-accent);background:#061720;display:flex;flex-direction:column}.mode-card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#03121af7 0%,#04151be8 50%,#04151b8c 100%)}.mode-card .mode-bg{position:absolute;inset:0;z-index:-2;background-position:center;background-size:cover;opacity:.58;filter:saturate(.8)}.mode-premium{--mode-accent:#f0c95e}.mode-contest{--mode-accent:#ed4048}.mode-title{display:flex;align-items:center;gap:10px;margin-bottom:7px}.mode-symbol{color:var(--mode-accent);font-size:28px;width:32px;text-align:center}.mode-title .pill{font-size:8px;padding:3px 6px}.mode-title h2{font:700 20px/1.15 'Playfair Display',Georgia,serif;margin:3px 0 0;color:#fff}.mode-card p{font-size:10px;line-height:1.45;color:#d5e1e4;margin:0 0 8px;max-width:420px}.mode-card ul{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:3px;color:#e1e8e9;font-size:9px}.mode-card li{display:flex;gap:6px}.mode-card li:first-letter{color:var(--mode-accent)}.mode-card .btn{margin-top:auto;width:100%;font-size:9px;padding:7px 8px;border-color:var(--mode-accent);background:#04151bd9;color:#f2d173}.mode-free .btn{border-color:#1bd2a2;color:#8af4d6}.mode-premium .btn{background:linear-gradient(100deg,#ffe18a,#efbf4d);color:#14212a}.mode-contest .btn{border-color:#e43d47;color:#fff}
.reference-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#061923;border:1px solid #1b4654;margin:0 0 17px;padding:9px 5px}.reference-stats>div{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;justify-content:center;padding:3px 12px;border-right:1px solid #1d414d}.reference-stats>div:last-child{border:0}.reference-stats b{grid-row:span 2;color:var(--gold);font-size:20px}.reference-stats strong{font-size:13px;line-height:1.1}.reference-stats small{font-size:8px;color:#aabdc5}
.reference-featured{margin:0 0 17px}.reference-featured .section-head{margin-bottom:10px;padding:0 0 7px;border-bottom:1px solid #214652}.reference-featured .section-head h2{font:700 18px 'Playfair Display',Georgia,serif}.reference-featured .section-head a{font-size:9px}.case-grid.reference-case-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.case-card{background:#061923;color:#f4f5f0;border:1px solid #1d4d5c;border-radius:4px;box-shadow:none;min-width:0}.case-card:hover{border-color:var(--gold);box-shadow:0 7px 16px #0004}.case-card .art{height:95px;border-radius:0;background-size:cover;background-position:center}.art:before{background:linear-gradient(0deg,#03121ad9,transparent 75%)}.stamp{font-size:7px;letter-spacing:1px}.case-body{padding:8px 9px 9px}.case-body h3{font:700 11px/1.25 'Playfair Display',Georgia,serif;color:#f7f5ee;margin:0 0 6px;min-height:27px}.case-body .meta{font-size:8px;color:#bdcbd0}.case-body p{font-size:8px;line-height:1.35;color:#a9bbc1;display:none}.case-body .btn{margin-top:7px;font-size:8px;padding:6px 7px;background:#051922;border:1px solid #2c7280;color:#e6c45f;box-shadow:none}.case-body .btn.primary{border-color:#12b98e;color:#8ff2d4}.difficulty-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#eac75b;margin-right:4px}.difficulty-dot.hard{background:#e43d47}.difficulty-dot.easy{background:#15d1a2}
.reference-how{display:grid;grid-template-columns:1.25fr repeat(4,minmax(0,1fr));gap:10px;align-items:center;border-top:1px solid #1e4653;padding:13px 0 15px}.how-heading h2{font:700 20px 'Playfair Display',Georgia,serif;margin:0}.how-heading p{font-size:9px;color:#aabdc5;margin:3px 0}.how-step{display:grid;grid-template-columns:25px 1fr;column-gap:7px;align-items:center}.how-step span{grid-row:span 2;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--gold);color:#10212a;font-size:10px;font-weight:900}.how-step b{font-size:9px}.how-step small{font-size:8px;color:#aebec4}.reference-competition-section{margin-top:0}.reference-competition-section .section-head h2{font-size:18px}.contest-card{border-radius:4px;padding:10px;border-color:#214956;background:#061923}.contest-icon{background:#0b2b35;border-color:#a88744;color:var(--gold);border-radius:3px}.contest-card h3{font:700 13px 'Playfair Display',Georgia,serif}.contest-card p{font-size:9px}.contest-card .btn{font-size:9px;padding:7px 9px}
/* Keep all secondary screens in the same reference palette while preserving their existing PHP workflows. */
.panel,.hero-side,.feature-contest,.list-row,.contest-card,.investigation aside{background:#061923;color:#f3f4ef;border-color:#214956;border-radius:4px;box-shadow:none}.panel h2,.panel h3,.hero-side h2{color:#f6f1e7;font-family:'Playfair Display',Georgia,serif}.panel p,.panel .muted{color:#b6c6cb}.case-body .btn.gold,.btn.primary,.btn.gold{background:linear-gradient(110deg,#ffe28a,#efbd49);color:#16232b;border-color:#e8c15e;box-shadow:none}.btn.outline{background:#041720;color:#e7c45f;border-color:#286778}.heading h1{font:700 clamp(32px,4vw,48px) 'Playfair Display',Georgia,serif}.heading .eyebrow{color:var(--gold)}.filter input,.filter select,input,select,textarea{background:#04151e;color:#f5f2e9;border:1px solid #285464;border-radius:4px}.filter input::placeholder,input::placeholder,textarea::placeholder{color:#78949e}.detail>.panel,.investigation .panel,.investigation main .panel{background:#061923;color:#f3f4ef;border-color:#214956}.detail>.panel h2,.detail>.panel h3,.investigation .panel h2,.investigation .panel h3{color:#f6f1e7}.detail>.panel p,.detail>.panel .muted,.investigation .panel p,.investigation .panel small{color:#b6c6cb}.detail .case-description{color:#d2dfe2}.live-case-images figure,.live-suspect,.live-evidence-item{background:#061923;border:1px solid #214956;color:#f4f3ee;border-radius:4px}.live-case-images figcaption p,.live-suspect p,.live-evidence-item p{color:#b3c4ca}.live-case-images img{height:150px}.auth{background:#061923;color:#f5f3ec;border-color:#28515f}.auth p{color:#b6c6cb}.auth label{color:#e5e9e7}.auth input{background:#04151e;color:#f4f3ec}.table-panel,.table-panel table{background:#061923;color:#f3f4ef}.tabs button{background:#061923;border-color:#28515f;color:#dbe4e5}.tabs button.active{background:#f0c65e;color:#13232a}.stats>div{background:#061923;border-color:#214956}.stats b{color:var(--gold)}.stats small{color:#aabdc5}.toast{background:#102a32;color:#f2d177;border-color:#826a3d}.pill.free{background:#19d1a3;color:#03271f}.pill.premium{background:#f0c95e;color:#241b06}.pill.live{background:#e83d46;color:#fff}
@media(min-width:1300px){.reference-hero{min-height:275px}.case-grid.reference-case-grid .art{height:110px}}
@media(max-width:900px){.topbar{gap:12px}.topbar nav{gap:10px}.reference-hero{min-height:245px}.case-grid.reference-case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-how{grid-template-columns:repeat(2,minmax(0,1fr))}.how-heading{grid-column:1/-1}.reference-stats>div{padding:3px 6px}.header-actions{gap:5px}}
@media(max-width:650px){.topbar{height:58px}.brand strong{font-size:18px}.brand small{display:none}.header-actions{margin-left:auto}.header-login,.header-signup{padding:7px 8px;font-size:9px}.topbar nav{top:58px;background:#020d14;border-bottom:1px solid #214956}.wrap{padding:10px 10px 24px}.reference-hero{min-height:240px;padding:22px 17px;background-position:center}.reference-hero h1{font-size:43px}.reference-hero p{font-size:11px}.mode-grid{grid-template-columns:1fr}.mode-card{min-height:180px}.reference-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.reference-stats>div{border-bottom:1px solid #1d414d;padding:8px}.reference-stats>div:nth-child(even){border-right:0}.reference-stats>div:last-child{grid-column:1/-1;border-bottom:0}.case-grid.reference-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.case-grid.reference-case-grid .art{height:105px}.case-body h3{font-size:11px}.reference-how{grid-template-columns:1fr 1fr;gap:12px}.how-heading h2{font-size:19px}.reference-competition-section .contest-grid{grid-template-columns:1fr}.header-actions .header-login{display:none}}

/* Reference-match repair: keep artwork behind readable content and prevent
   card overlays from covering feature text or call-to-action buttons. */
.reference-hero{background-position:center 42%;background-size:cover;min-height:clamp(250px,22vw,330px);border-radius:0 0 5px 5px}
.reference-hero .hero-copy{z-index:3}
.mode-card{isolation:isolate;position:relative;display:flex;flex-direction:column;overflow:hidden;min-height:220px;padding:14px 16px 12px;border-radius:8px}
.mode-card .mode-bg{position:absolute;inset:0;z-index:-2;display:block;background-position:center;background-size:cover;opacity:.64;pointer-events:none}
.mode-card:after{z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(2,14,21,.97) 0%,rgba(2,14,21,.82) 56%,rgba(2,14,21,.48) 100%)}
.mode-card>*:not(.mode-bg){position:relative;z-index:1}
.mode-card .mode-title{align-items:center;min-height:48px;margin-bottom:7px}
.mode-card .mode-title h2{font-size:clamp(18px,1.5vw,23px);line-height:1.15;margin:3px 0 0}
.mode-card p{font-size:11px;line-height:1.5;margin:0 0 9px;max-width:420px;color:#e0e8eb}
.mode-card ul{font-size:11px;line-height:1.45;gap:4px;margin:0 0 12px;color:#f0f4f4}
.mode-card li{align-items:flex-start}
.mode-card .btn{position:relative;z-index:2;flex-shrink:0;margin-top:auto;min-height:36px;line-height:1.25;padding:8px 12px;font-size:10px;white-space:normal;text-align:center;opacity:1;visibility:visible}
.mode-free .mode-bg{opacity:.6}
.mode-premium .mode-bg{opacity:.66}
.mode-contest .mode-bg{opacity:.62}
.reference-stats{margin-top:9px}
.reference-featured{margin-top:18px}
.case-grid.reference-case-grid .art{background-position:center;background-size:cover}
@media(max-width:850px){.mode-card{min-height:205px}.mode-card .btn{min-height:38px}}
@media(max-width:600px){.mode-card{min-height:190px}.mode-card .mode-title h2{font-size:20px}.mode-card p,.mode-card ul{font-size:11px}.mode-card .btn{font-size:11px}}

/* Discover Cases page — reference-screen layout */
.discover-banner{position:relative;isolation:isolate;overflow:hidden;min-height:180px;margin:-22px calc(clamp(12px,2vw,30px) * -1) 16px;padding:28px clamp(18px,2.5vw,36px);display:flex;align-items:center;border-bottom:1px solid #1d5261;background-image:linear-gradient(90deg,rgba(2,13,20,.97) 0%,rgba(2,13,20,.83) 48%,rgba(2,13,20,.2) 100%),linear-gradient(0deg,rgba(2,13,20,.52),transparent 65%),var(--discover-image,linear-gradient(120deg,#071a25,#0d4652 58%,#031016));background-position:center 45%;background-size:cover;background-repeat:no-repeat}
.discover-banner:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#03131a66,transparent 50%);pointer-events:none}
.discover-banner-content{max-width:720px;position:relative;z-index:1}.discover-banner .eyebrow{color:#f5ca5d;font-size:10px;letter-spacing:2px}.discover-banner h1{font:700 clamp(32px,3.2vw,48px)/1.05 'Playfair Display',Georgia,serif;color:#f8f4e9;margin:7px 0 8px}.discover-banner p{font-size:12px;line-height:1.55;color:#d6e2e5;margin:0;max-width:570px}
.discover-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin:0 0 15px}.search-field{display:flex;align-items:center;gap:9px;margin:0;min-width:0;border:1px solid #245462;border-radius:4px;background:#04151e;padding:0 12px;color:#f1c85e}.search-field>span{font-size:22px;line-height:1}.search-field input{border:0;background:transparent;outline:none;padding:11px 0;box-shadow:none}.discover-search>.btn{min-width:84px}.discover-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:8px}.discover-filters select{height:36px;padding:7px 9px;font-size:10px;border-radius:4px;background:#061b24;color:#e3e9e8;border-color:#245462}.discover-filters .discover-apply{height:36px;white-space:nowrap;font-size:10px;padding:7px 12px}.discover-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 10px;padding:0 0 7px;border-bottom:1px solid #153d49;color:#e9c55f;font-size:11px;font-weight:800}.discover-results-head .results-note{font-size:10px;font-weight:400;color:#8faab4}.case-grid.discover-case-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}.discover-case-grid .case-card{min-width:0}.discover-case-grid .case-card .art{height:clamp(110px,12vw,165px);background-position:center;background-size:cover}.discover-case-grid .case-body{min-height:94px}.discover-case-grid .case-body h3{min-height:28px;font-size:12px}.discover-case-grid .case-body .meta{font-size:9px}.discover-case-grid .case-body .btn{font-size:9px;padding:7px 8px}
@media(max-width:1050px){.discover-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.case-grid.discover-case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.discover-banner{margin:-10px -10px 13px;padding:22px 16px;min-height:155px;background-position:center}.discover-banner h1{font-size:32px}.discover-banner p{font-size:10px;max-width:340px}.discover-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.discover-filters .discover-apply{grid-column:1/-1}.case-grid.discover-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.discover-case-grid .case-card .art{height:clamp(78px,24vw,125px)}.discover-case-grid .case-body{padding:7px}.discover-case-grid .case-body h3{font-size:10px;min-height:25px}.discover-case-grid .case-body .meta{font-size:8px}.discover-case-grid .case-body .btn{font-size:8px;padding:6px 5px}.discover-results-head .results-note{display:none}}
@media(max-width:380px){.discover-search{grid-template-columns:minmax(0,1fr) auto;gap:6px}.discover-search>.btn{min-width:65px;padding:8px}.discover-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.discover-banner h1{font-size:29px}}

/* Premium archive — second-reference layout */
.premium-search{display:grid;grid-template-columns:minmax(180px,1fr) repeat(4,minmax(105px,150px)) auto;gap:8px;margin:0 0 12px;padding:10px;border:1px solid #214652;background:#061923;border-radius:5px}
.premium-search input,.premium-search select{height:35px;min-width:0;padding:7px 9px;border:1px solid #245462;border-radius:4px;background:#03151e;color:#e9f0f2;font-size:10px}
.premium-search .btn{height:35px;padding:7px 12px;font-size:10px}
.premium-results{font-size:10px;color:#e6c15e;font-weight:800;margin:6px 0 10px;padding-bottom:7px;border-bottom:1px solid #183e4b}
.case-grid.premium-case-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.premium-case-grid .case-card{background:#061923;color:#f5f3ec;border:1px solid #1d4d5c;border-radius:4px;box-shadow:none;min-width:0}
.premium-case-grid .art.premium-art{height:clamp(105px,12vw,155px);padding:7px;background-position:center;background-size:cover;border-radius:0}
.premium-case-grid .art.premium-art:before{background:linear-gradient(0deg,#03121ad9,transparent 75%)}
.premium-case-grid .case-body{padding:8px 9px 9px;min-height:78px}
.premium-case-grid .case-body h3{font:700 12px/1.25 'Playfair Display',Georgia,serif;color:#f7f5ee;min-height:29px;margin:0 0 6px}
.premium-case-grid .case-body .meta{font-size:9px;color:#bdcbd0}
.premium-case-grid .case-body .btn{margin-top:8px;width:100%;font-size:9px;padding:7px;background:#051922;border:1px solid #2c7280;color:#e6c45f;box-shadow:none}
.premium-case-grid .case-body .btn.gold{background:linear-gradient(120deg,#ffe58d,#f3bd48);color:#111820;border-color:#ffe18a}
.premium-pagination{display:flex;justify-content:center;gap:5px;margin:16px 0 25px}
.premium-pagination span{min-width:25px;height:24px;display:grid;place-items:center;border:1px solid #285361;border-radius:3px;background:#041923;color:#d9e6ea;font-size:10px}
.premium-pagination .current{background:linear-gradient(120deg,#ffe58d,#f3bd48);color:#111820;border-color:#ffe18a;font-weight:900}
@media(max-width:1000px){.premium-search{grid-template-columns:repeat(3,minmax(0,1fr))}.premium-search input{grid-column:1/-1}.case-grid.premium-case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.premium-search{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.premium-search input{grid-column:1/-1}.premium-search .btn{grid-column:1/-1}.case-grid.premium-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.premium-case-grid .art.premium-art{height:clamp(82px,25vw,125px)}.premium-case-grid .case-body{padding:7px}.premium-case-grid .case-body h3{font-size:10px;min-height:25px}.premium-case-grid .case-body .meta{font-size:8px}}

/* Live Competitions reference layout and visible empty-database fallback */
.competition-tabs{display:flex;gap:0;border:1px solid #214956;border-radius:5px;overflow:hidden;margin:10px 0 14px;background:#04151e}
.competition-tabs button{flex:1;padding:11px 12px;background:#04151e;color:#dce6e8;border:0;border-right:1px solid #214956;font-size:11px;font-weight:800;cursor:pointer}
.competition-tabs button:last-child{border-right:0}.competition-tabs button.active{background:linear-gradient(110deg,#ffe28a,#efbd49);color:#15232b}
.contest-grid.reference-contest-list{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:16px}
.reference-contest-card{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:stretch;gap:14px;padding:10px;border:1px solid #214956;border-radius:5px;background:linear-gradient(110deg,#061923,#03131b);min-width:0}
.reference-contest-card[hidden]{display:none!important}
.reference-contest-card .contest-thumb{position:relative;min-height:112px;border-radius:3px;background-color:#071c25;background-size:cover;background-position:center;border:1px solid #1d4c59;overflow:hidden}
.reference-contest-card .contest-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#020b11a8,transparent 70%)}
.contest-status{position:absolute;z-index:1;left:7px;top:7px;padding:4px 7px;border-radius:3px;font-size:9px;font-weight:900;background:#e33d45;color:white}
.contest-status.upcoming{background:#d5e1e5;color:#12232b}
.reference-contest-card .grow{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.contest-card-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.contest-card-title-row h3{font:700 18px 'Playfair Display',Georgia,serif;margin:0;color:#f5f3ec}
.reference-contest-card p{font-size:10px;margin:0;color:#b5c7ce}.reference-contest-card .metrics{display:flex;gap:14px;flex-wrap:wrap;font-size:10px}.reference-contest-card .metrics span{color:#d1dce0}.reference-contest-card .metrics b{display:inline;color:#f3ce68;font-size:11px}
.reference-contest-card .btn{align-self:flex-start;min-width:145px;margin-top:2px;padding:8px 12px;border-radius:3px;font-size:10px}.reference-contest-card .btn.join-live{background:#e32937;color:white;border-color:#f13b48}.demo-label{font-size:8px;letter-spacing:.08em;color:#e5c66d;border:1px solid #8e753f;padding:3px 5px;border-radius:3px}
.competition-steps-panel{margin-top:12px}.competition-steps-panel h2{font:700 23px 'Playfair Display',Georgia,serif}
@media(max-width:650px){.competition-tabs button{font-size:9px;padding:10px 5px}.reference-contest-card{grid-template-columns:112px minmax(0,1fr);gap:9px;padding:7px}.reference-contest-card .contest-thumb{min-height:118px}.contest-card-title-row h3{font-size:13px}.reference-contest-card .metrics{gap:6px;font-size:9px}.reference-contest-card .btn{min-width:0;width:100%;align-self:stretch}.competition-steps-panel .steps{grid-template-columns:1fr 1fr}}

/* Case Brief — reference image layout repair */
.case-detail-hero{display:block!important;max-width:1450px;margin:8px auto 0!important}
.case-detail-cover{position:relative!important;display:flex!important;min-height:260px!important;height:clamp(220px,27vw,330px)!important;overflow:hidden!important;border:1px solid #164754!important;border-radius:7px!important;background:#06141c!important;isolation:isolate}
.case-detail-cover>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 45%!important;z-index:-2!important}
.case-detail-cover .cover-shade{position:absolute!important;inset:0!important;z-index:-1!important;background:linear-gradient(90deg,rgba(1,10,16,.94) 0%,rgba(1,10,16,.65) 42%,rgba(1,10,16,.06) 100%),linear-gradient(0deg,rgba(1,10,16,.78),transparent 55%)!important}
.case-detail-cover .cover-topline{position:absolute!important;top:13px!important;left:16px!important;right:16px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}
.case-detail-cover .cover-title{position:absolute!important;left:clamp(16px,3vw,34px)!important;bottom:22px!important;right:24px!important;max-width:760px!important}
.case-detail-cover .cover-title .eyebrow{color:#19d4a2!important;font-size:10px!important;font-weight:900!important;letter-spacing:1.8px!important}
.case-detail-cover .cover-title h1{font:800 clamp(26px,3.4vw,43px)/1.08 Georgia,serif!important;color:#fff!important;margin:7px 0!important;text-shadow:0 2px 18px #000!important}
.case-detail-cover .cover-title p{max-width:680px!important;color:#e0eaf0!important;font-size:12px!important;line-height:1.55!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.case-detail-cover .cover-bottom{display:none!important}
.case-purchase-card{display:none!important}
.case-reference-tabs{display:flex!important;gap:0!important;max-width:1450px!important;margin:0 auto 15px!important;background:#041923!important;border:1px solid #164754!important;border-top:0!important;border-radius:0 0 6px 6px!important;overflow-x:auto!important}
.case-reference-tabs a{display:block!important;min-width:92px!important;text-align:center!important;padding:12px 18px!important;color:#c4d5dd!important;border-bottom:2px solid transparent!important;font-size:11px!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important}
.case-reference-tabs a.active,.case-reference-tabs a:hover{color:#ffd45c!important;border-bottom-color:#ffd45c!important;background:rgba(255,212,92,.035)!important}
.case-detail-content{display:block!important;max-width:1450px!important;margin:0 auto 30px!important}
.case-detail-main{display:block!important;min-width:0!important}
.case-detail-sidebar{display:none!important}
.reference-overview{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(210px,.8fr)!important;gap:22px!important;align-items:center!important;padding:22px!important;background:linear-gradient(145deg,#061d26,#04151c)!important;border:1px solid #174653!important;border-radius:7px!important;margin:0 0 18px!important}
.reference-overview-copy{min-width:0!important}
.reference-overview .section-eyebrow{color:#ffd45c!important;font-size:9px!important;letter-spacing:1.5px!important;font-weight:900!important}
.reference-overview h2{font:800 clamp(20px,2.3vw,28px)/1.15 Georgia,serif!important;margin:8px 0 12px!important;color:#f5f2e9!important}
.reference-overview .case-description{font-size:12px!important;line-height:1.75!important;color:#c5d9e0!important;white-space:normal!important;overflow-wrap:anywhere!important}
.reference-overview-image{display:block!important;width:100%!important;height:clamp(150px,18vw,230px)!important;object-fit:cover!important;border:1px solid #27525c!important;border-radius:5px!important;box-shadow:0 8px 24px rgba(0,0,0,.3)!important}
.reference-image-fallback{background:linear-gradient(0deg,#04131a66,#04131a66),url('../premium/premium-1.jpg') center/cover no-repeat!important}
.reference-begin-form{margin-top:18px!important}
.reference-begin-form .btn{min-width:190px!important;padding:12px 18px!important}
.case-detail-main>.detail-section:not(.reference-overview){background:#041923!important;border:1px solid #164754!important;border-radius:7px!important;padding:18px!important;margin:14px 0!important}
.case-description p{margin:0 0 10px!important}
.case-description p:last-child{margin-bottom:0!important}
@media(max-width:650px){.case-detail-cover{height:235px!important;min-height:235px!important}.case-detail-cover .cover-title{left:15px!important;bottom:16px!important}.case-detail-cover .cover-title h1{font-size:27px!important}.case-reference-tabs a{min-width:78px!important;padding:11px 12px!important}.reference-overview{grid-template-columns:1fr!important;padding:16px!important;gap:14px!important}.reference-overview-image{height:175px!important;grid-row:1!important}.reference-overview-copy{grid-row:2!important}}


/* Competition Details reference layout — scoped to this page only */
.contest-detail-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);gap:16px;align-items:start;max-width:1450px;margin:18px auto 12px}
.contest-detail-left,.contest-detail-right{min-width:0;overflow:hidden;background:linear-gradient(145deg,#071d26,#04151c);border:1px solid #174653;border-radius:7px}
.contest-detail-cover{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:245px;padding:17px;background-color:#071820;background-size:cover;background-position:center;overflow:hidden}
.contest-detail-cover:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,rgba(8,36,46,.35),rgba(1,9,14,.08))}
.contest-detail-cover>.pill{position:absolute;top:12px;left:12px}
.contest-detail-cover .pill.upcoming{background:#d3e7ed;color:#06151b}
.contest-cover-title small,.contest-case-name small{display:block;color:#ffd35a;font-size:9px;font-weight:900;letter-spacing:1.5px}
.contest-cover-title h2{font:800 clamp(23px,2.4vw,34px)/1.06 Georgia,serif;margin:7px 0;color:#f8f5ed}
.contest-cover-title p{margin:0;color:#d5e4e9;font-size:12px}
.contest-quick-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:11px 11px 0}
.contest-quick-stats>div{min-width:0;text-align:center;padding:10px 4px;background:#03131a;border:1px solid #16414c;border-radius:4px}
.contest-quick-stats b{display:block;color:#ffd35a;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.contest-quick-stats small{display:block;color:#a9c1c9;font-size:9px;margin-top:4px}
.contest-countdown{margin:11px 11px 0;padding:10px;text-align:center;background:#03131a;border:1px solid #16414c;border-radius:4px}
.contest-countdown small{display:block;color:#c5d8de;font-size:9px;font-weight:800;letter-spacing:1px}
.contest-countdown strong{display:block;color:#f4fbff;font-size:22px;line-height:1.3}
.contest-countdown span{display:block;color:#8faeb8;font-size:9px;margin-top:2px}
.contest-join-form{padding:11px 11px 0}.contest-join-form button:disabled{opacity:.6;cursor:not-allowed}
.contest-wallet-note{padding:0 11px 11px;margin:6px 0 0;font-size:10px}
.contest-detail-right{padding:20px 22px}
.contest-about{padding-bottom:15px;border-bottom:1px solid #17414b}
.contest-section-title{display:flex;align-items:center;gap:10px}
.contest-section-title>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #987a25;border-radius:6px;color:#ffd35a;font-size:20px}
.contest-section-title h2{font:800 clamp(20px,2vw,26px)/1.15 Georgia,serif;margin:0;color:#f4f1e8}
.contest-about>p,.contest-case-summary p{color:#c4d8df;font-size:12px;line-height:1.7;margin:12px 0}
.contest-case-name{padding:10px 12px;background:#03131a;border:1px solid #16414c;border-radius:4px}
.contest-case-name strong{display:block;margin-top:4px;color:#f5f5ee;font-size:13px}
.contest-rules,.contest-prizes{padding:14px 0;border-bottom:1px solid #17414b}
.contest-rules h3,.contest-prizes h3,.contest-case-summary h3{font:800 18px/1.2 Georgia,serif;margin:0 0 9px;color:#f5f2e9}
.contest-rules ol{margin:0;padding-left:21px;color:#c5d8df;font-size:12px;line-height:1.8}
.contest-prizes>div{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid #102f38;color:#d7e5e9;font-size:12px}
.contest-prizes>div:last-child{border-bottom:0}.contest-prizes b{color:#ffd35a}
.prize-medal{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:6px;border-radius:50%;font-style:normal;font-size:10px;font-weight:900;color:#06131a;background:#ffd35a}
.prize-medal.second{background:#c6d4dc}.prize-medal.third{background:#c98b56}
.contest-case-summary{padding-top:14px}.contest-case-summary a{color:#ffd35a;font-size:11px;font-weight:800}
@media(max-width:820px){.contest-detail-layout{grid-template-columns:1fr}.contest-detail-cover{min-height:230px}}
@media(max-width:480px){.contest-detail-layout{gap:11px;margin-top:12px}.contest-detail-cover{min-height:190px}.contest-quick-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.contest-detail-right{padding:15px}.contest-section-title h2{font-size:21px}}

/* Investigation suite: reference-matched dark dossier layouts */
.ir-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-5px 0 13px;border-bottom:1px solid #214956;padding-bottom:10px}.ir-tabs{display:flex;gap:7px}.ir-tabs a{padding:9px 18px;border:1px solid #214956;background:#061923;border-radius:4px;color:#c7d6d9;font-size:12px}.ir-tabs a.active{color:#f4cc5c;border-color:#d8ad45;border-bottom:2px solid #f4cc5c}.ir-timer{display:flex;align-items:center;gap:10px;border:1px solid #214956;border-radius:4px;padding:7px 12px;color:#b8cbd0;font-size:11px}.ir-timer strong{font-size:17px;color:#ff5261;font-variant-numeric:tabular-nums}.ir-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr);gap:13px;align-items:start}.ir-board,.ir-suspect-panel,.ir-notes{padding:13px}.ir-board-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #1b3d49;color:#f2cc65;font-weight:800;font-size:11px;letter-spacing:1px}.ir-board-head small,.ir-board-head a{color:#9eb7bf;font-size:10px;letter-spacing:0;font-weight:500}.ir-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ir-evidence-tile{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:5px;border:1px solid #214956;background:#03141c;border-radius:4px;transition:border-color .15s,transform .15s}.ir-evidence-tile:hover{border-color:#e6bd52;transform:translateY(-2px)}.ir-evidence-tile img{width:100%;height:clamp(100px,13vw,180px);object-fit:cover;border-radius:2px}.ir-evidence-tile>span:not(.ir-evidence-placeholder){font-size:11px;font-weight:700;line-height:1.25;color:#f5f0e5}.ir-evidence-tile small{font-size:8px;color:#d4b960;letter-spacing:1px}.ir-evidence-placeholder{height:clamp(100px,13vw,180px);display:grid;place-items:center;background:linear-gradient(135deg,#0b2a35,#17252a);font-size:35px;color:#eac65d}.ir-board-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.ir-board-actions .btn{font-size:10px;padding:8px 10px}.ir-suspect-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #183b46}.ir-suspect-row img,.ir-avatar{width:43px;height:43px;flex-shrink:0;object-fit:cover;border:1px solid #315765;border-radius:4px}.ir-avatar{display:grid;place-items:center;background:#102a34;color:#f0c95d}.ir-suspect-row>span:nth-child(2){min-width:0;flex:1}.ir-suspect-row b,.ir-suspect-row small{display:block}.ir-suspect-row b{font-size:11px}.ir-suspect-row small{color:#9fb6bd;font-size:9px;margin-top:3px}.ir-arrow{font-size:22px;color:#eac65d}.ir-hint-mini{margin-top:14px;padding:12px;border:1px solid #80663a;background:#24251f;border-radius:4px}.ir-hint-mini p{font-size:11px;line-height:1.5}.ir-notes{margin-top:13px}.ir-notes textarea{margin-bottom:10px}/* Reference-matched evidence viewer: compact cinematic panel with vertical thumbnails */
.ev-viewer{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;padding:12px;max-width:860px;margin:12px auto;background:#03141c;border:1px solid #214956;border-radius:5px;box-shadow:0 12px 32px #0006}
.ev-thumbnails{display:flex;flex-direction:column;gap:7px;align-items:stretch}
.ev-thumbnails a{height:48px;overflow:hidden;border:1px solid #214956;border-radius:4px;display:grid;place-items:center;color:#eac65d;background:#061923}
.ev-thumbnails a.active{border:2px solid #f1ca5d;box-shadow:0 0 0 1px #f1ca5d55}
.ev-thumbnails img{width:100%;height:100%;object-fit:cover}
.ev-main{min-width:0;position:relative}
.ev-image-wrap{height:clamp(220px,30vw,330px);max-width:570px;margin:0 auto;position:relative;display:grid;place-items:center;background:#020e14;border:1px solid #214956;border-radius:4px;overflow:hidden}
.ev-image-wrap>img{display:block;width:100%;height:100%;object-fit:contain;background:#020e14}
.ev-empty{color:#eac65d;letter-spacing:3px}
.ev-image-controls{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 10px;pointer-events:none}
.ev-image-controls a{pointer-events:auto;display:grid;place-items:center;width:31px;height:36px;border:1px solid #79909a;border-radius:4px;background:#03151bd9;color:#fff;font-size:27px;text-decoration:none}
.ev-close{position:absolute;z-index:3;right:8px;top:7px;width:25px;height:25px;display:grid;place-items:center;border:0;border-radius:3px;background:#03151bd9;color:#fff;font-size:23px;line-height:1;text-decoration:none}
.ev-caption{padding:10px 3px 2px;max-width:570px;margin:0 auto}
.ev-caption .eyebrow{font-size:9px;letter-spacing:1.2px}
.ev-caption h2{font:700 20px Georgia,serif;margin:5px 0}
.ev-caption p{color:#b5c7cc;line-height:1.5;font-size:11px;margin:5px 0}
.ev-footer{display:flex;justify-content:space-between;gap:10px;max-width:860px;margin:12px auto 0}.suspect-profile-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.7fr);gap:14px;align-items:start}.suspect-profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.suspect-profile-card{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid #214956;border-radius:4px;background:#061923}.suspect-profile-card img,.suspect-profile-avatar{width:88px;height:95px;flex-shrink:0;object-fit:cover;border:1px solid #315765;border-radius:4px}.suspect-profile-avatar{display:grid;place-items:center;background:linear-gradient(145deg,#102d36,#06151c);font-size:30px;color:#eac65d}.suspect-profile-card b,.suspect-profile-card span,.suspect-profile-card small{display:block}.suspect-profile-card b{font:700 15px Georgia,serif}.suspect-profile-card span{color:#eac65d;font-size:10px;margin:4px 0}.suspect-profile-card small{color:#a8bdc4;font-size:10px}.suspect-profile-note h2{font:700 24px Georgia,serif}.suspect-profile-note p{line-height:1.7;color:#b4c7cc}.suspect-detail{display:grid;grid-template-columns:minmax(180px,300px) minmax(0,1fr);gap:22px;padding:20px}.suspect-detail-photo{width:100%;max-height:370px;object-fit:cover;border:1px solid #315765;border-radius:4px}.suspect-detail-copy h2{font:700 32px Georgia,serif;margin:7px 0}.suspect-role{color:#eac65d}.suspect-detail-tabs{display:flex;gap:20px;border-bottom:1px solid #214956;margin:20px 0;padding-bottom:10px;color:#b4c7cc;font-size:11px}.suspect-detail-tabs .active{color:#f2cc65;border-bottom:2px solid #f2cc65;padding-bottom:10px}.suspect-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hint-page{max-width:900px;margin:auto;padding:20px}.hint-page-heading{display:flex;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid #214956}.hint-bulb{width:58px;height:58px;display:grid;place-items:center;border:1px solid #b38e3e;border-radius:50%;color:#f3cd65;font-size:30px}.hint-page-heading h2{font:700 28px Georgia,serif;margin:4px 0}.hint-page-heading p{margin:0;font-size:12px}.hint-purchase-list{display:grid;gap:9px;margin:17px 0}.hint-purchase-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #214956;border-radius:4px;background:#03151d}.hint-medal{width:42px;height:42px;display:grid;place-items:center;border:1px solid #9a7c39;border-radius:50%;color:#f2ca5e;font-size:17px;flex-shrink:0}.hint-purchase-row b{font-size:12px}.hint-purchase-row p{font-size:10px;margin:3px 0 0}.hint-purchase-row>strong{color:#f2ca5e;white-space:nowrap}.hint-purchase-row form{margin:0}.hint-used{font-size:9px;color:#21d5a8;font-weight:800}.hint-purchase-row button{min-width:76px}
@media(max-width:850px){.ir-layout,.suspect-profile-layout{grid-template-columns:1fr}.ir-evidence-tile img,.ir-evidence-placeholder{height:150px}.suspect-detail{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:600px){.ir-toolbar{align-items:stretch;flex-direction:column}.ir-tabs a{flex:1;text-align:center}.ir-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ir-evidence-tile img,.ir-evidence-placeholder{height:120px}.ir-suspect-panel{order:-1}.ev-viewer{grid-template-columns:42px minmax(0,1fr);gap:7px;padding:7px;margin:8px auto}.ev-thumbnails a{height:43px}.ev-image-wrap{height:230px}.ev-caption h2{font-size:17px}.ev-footer{margin-top:10px}.ev-footer{flex-direction:column}.suspect-profile-list{grid-template-columns:1fr}.suspect-profile-card img,.suspect-profile-avatar{width:68px;height:75px}.suspect-detail{grid-template-columns:1fr}.suspect-detail-photo{max-height:280px}.hint-page{padding:12px}.hint-purchase-row{gap:8px;padding:8px}.hint-medal{width:34px;height:34px}.hint-purchase-row p{max-width:170px}.hint-purchase-row>strong{font-size:11px}.hint-purchase-row button{min-width:56px;padding:8px}}

/* Investigation Room — second reference image: evidence pinboard + suspect rail */
.ir-toolbar{margin:0 0 12px;padding:0 0 9px;border-bottom:1px solid #214956}
.ir-tabs a{min-width:68px;padding:8px 13px;border-radius:3px;background:#041820}
.ir-layout{grid-template-columns:minmax(0,1.7fr) minmax(270px,.78fr);gap:10px}
.ir-board,.ir-suspect-panel{padding:10px;border-radius:3px;background:#041820}
.ir-board-head{padding-bottom:7px;margin-bottom:8px;font-size:10px}
.ir-evidence-grid.ir-pinboard{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(125px,1fr));gap:8px;padding:5px;background:radial-gradient(ellipse at 50% 25%,#18343c,#071b23 72%);border:1px solid #153c47;min-height:315px;overflow:hidden}
.ir-pinboard:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.24;background:repeating-linear-gradient(0deg,transparent 0 26px,#3c6870 27px,transparent 28px 53px),repeating-linear-gradient(90deg,transparent 0 31px,#3c6870 32px,transparent 33px 62px)}
.ir-pinboard .ir-evidence-tile{z-index:1;align-self:stretch;padding:4px;background:#07151b;border-color:#31515a;box-shadow:0 4px 10px #0008;transform:rotate(-.5deg)}
.ir-pinboard .ir-evidence-tile:nth-child(2n){transform:rotate(1deg);border-color:#9b8147}
.ir-pinboard .ir-evidence-tile:nth-child(3n){transform:rotate(-1.1deg)}
.ir-pinboard .ir-evidence-tile:hover{z-index:3;transform:rotate(0) scale(1.025);border-color:#f1ca5d}
.ir-pinboard .ir-evidence-tile img,.ir-pinboard .ir-evidence-placeholder{height:clamp(95px,12vw,145px);object-fit:cover}
.ir-pinboard .ir-evidence-tile>span:not(.ir-evidence-placeholder){font-size:10px}
.ir-pinboard .ir-evidence-tile small{font-size:7px}
.ir-suspect-row{padding:8px 0;gap:8px}
.ir-suspect-row img,.ir-avatar{width:39px;height:39px}
.ir-suspect-row b{font-size:10px}
.ir-suspect-row small{font-size:8px;line-height:1.35}
.ir-hint-mini{margin-top:10px;padding:10px}
.ir-hint-mini .btn{padding:9px;font-size:10px}
.ir-notes{margin-top:10px;padding:10px;border-radius:3px}
.ir-notes textarea{min-height:58px;border-radius:3px}
.ir-notes .btn{border-radius:3px}
@media(max-width:850px){.ir-layout{grid-template-columns:1fr}.ir-evidence-grid.ir-pinboard{grid-template-rows:repeat(2,minmax(110px,1fr));min-height:280px}.ir-pinboard .ir-evidence-tile img,.ir-pinboard .ir-evidence-placeholder{height:clamp(100px,20vw,160px)}}
@media(max-width:600px){.ir-evidence-grid.ir-pinboard{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;min-height:0}.ir-pinboard .ir-evidence-tile img,.ir-pinboard .ir-evidence-placeholder{height:120px}.ir-suspect-panel{order:0}.ir-toolbar{flex-direction:row;align-items:center}.ir-timer{padding:6px 8px}.ir-timer strong{font-size:14px}}


/* Final Investigation Room refinement — collage-board reference */
.ir-layout{grid-template-columns:minmax(0,1.72fr) minmax(265px,.78fr);gap:9px}
.ir-board{padding:9px}
.ir-evidence-grid.ir-pinboard{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(6,minmax(25px,1fr));gap:7px;min-height:370px;height:clamp(340px,36vw,480px);padding:12px;background:radial-gradient(ellipse at 45% 30%,#17343a,#061820 75%);border:1px solid #214956;overflow:hidden}
.ir-evidence-grid.ir-pinboard:before{opacity:.32;background:repeating-linear-gradient(0deg,transparent 0 25px,#31515a 26px,transparent 27px 51px),repeating-linear-gradient(90deg,transparent 0 31px,#31515a 32px,transparent 33px 63px)}
.ir-pinboard .ir-collage-tile{position:relative;display:block;min-width:0;min-height:0;padding:0;overflow:hidden;border:3px solid #d2c8a6;border-radius:1px;background:#07151b;box-shadow:0 6px 13px #000b;transform:rotate(-1deg)}
.ir-pinboard .ir-collage-tile:nth-child(1){grid-column:1/5;grid-row:1/4;transform:rotate(-2deg)}
.ir-pinboard .ir-collage-tile:nth-child(2){grid-column:5/9;grid-row:1/4;transform:rotate(1.5deg)}
.ir-pinboard .ir-collage-tile:nth-child(3){grid-column:9/13;grid-row:1/4;transform:rotate(2deg)}
.ir-pinboard .ir-collage-tile:nth-child(4){grid-column:2/6;grid-row:4/7;transform:rotate(1deg)}
.ir-pinboard .ir-collage-tile:nth-child(5){grid-column:6/9;grid-row:4/7;transform:rotate(-1.5deg)}
.ir-pinboard .ir-collage-tile:nth-child(6){grid-column:9/13;grid-row:4/7;transform:rotate(1deg)}
.ir-pinboard .ir-collage-tile img,.ir-pinboard .ir-collage-tile .ir-evidence-placeholder{display:block;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:0}
.ir-pinboard .ir-collage-tile:hover{z-index:4;transform:rotate(0) scale(1.035);border-color:#f3d36e}
.ir-collage-caption{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:2px;padding:20px 7px 6px;background:linear-gradient(transparent,#001016ed);color:#fff}
.ir-collage-caption b{font-size:10px;line-height:1.2;text-shadow:0 1px 4px #000}
.ir-collage-caption small{font-size:7px;letter-spacing:1px;color:#f2ce66}
.ir-pin{position:absolute;top:4px;left:50%;width:7px;height:7px;border-radius:50%;background:#f1cf68;border:1px solid #fff3;box-shadow:0 1px 4px #0009}
.ir-board-actions{margin-top:8px}
@media(max-width:850px){.ir-layout{grid-template-columns:1fr}.ir-evidence-grid.ir-pinboard{height:360px;min-height:320px}}
@media(max-width:600px){.ir-evidence-grid.ir-pinboard{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(35px,1fr));height:410px;min-height:0;gap:6px;padding:8px}.ir-pinboard .ir-collage-tile:nth-child(1){grid-column:1/4;grid-row:1/4}.ir-pinboard .ir-collage-tile:nth-child(2){grid-column:4/7;grid-row:1/4}.ir-pinboard .ir-collage-tile:nth-child(3){grid-column:1/3;grid-row:4/7}.ir-pinboard .ir-collage-tile:nth-child(4){grid-column:3/5;grid-row:4/7}.ir-pinboard .ir-collage-tile:nth-child(5){grid-column:5/7;grid-row:4/6}.ir-pinboard .ir-collage-tile:nth-child(6){grid-column:5/7;grid-row:6/7}.ir-collage-caption b{font-size:8px}.ir-collage-caption{padding:14px 4px 4px}}


/* Exact second-reference investigation room layout */
.ir-reference-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.ir-reference-actions .ir-board-actions{margin:0;display:flex;gap:7px}
.ir-icon-action{display:grid;place-items:center;width:38px;height:35px;border:1px solid #28505d;border-radius:4px;background:#061a23;color:#eac65d;font-size:19px;text-decoration:none;box-shadow:inset 0 1px #ffffff08}
.ir-icon-action:hover{border-color:#f2cd65;background:#102c36}
.ir-accuse-button{min-width:180px;text-align:center;padding:10px 18px}
.ir-suspect-panel .ir-board-head>span{text-transform:none;font-size:12px;letter-spacing:.4px;color:#f4f0e7}
.ir-suspect-panel .ir-suspect-row{min-height:68px}
.ir-suspect-panel .ir-suspect-row img,.ir-suspect-panel .ir-avatar{width:48px;height:52px;object-fit:cover}
.ir-suspect-panel .ir-suspect-row b{font-size:11px;color:#f5f1e8}
.ir-suspect-panel .ir-suspect-row small{font-size:9px;line-height:1.35}
.ir-evidence-grid.ir-pinboard .ir-collage-tile{min-height:0}
@media(max-width:850px){.ir-reference-actions{flex-wrap:wrap}.ir-accuse-button{flex:1}}
@media(max-width:600px){.ir-reference-actions{align-items:stretch}.ir-reference-actions .ir-board-actions{flex:1}.ir-icon-action{flex:1;width:auto}.ir-accuse-button{min-width:145px}.ir-suspect-panel .ir-suspect-row img,.ir-suspect-panel .ir-avatar{width:42px;height:44px}}


/* Reference-matched Persons of Interest sidebar only; evidence board remains unchanged */
.ir-suspect-panel .ir-suspect-row-reference{display:flex;align-items:center;gap:9px;min-height:69px;padding:8px 0;border-bottom:1px solid #183b46;text-decoration:none}
.ir-suspect-panel .ir-suspect-row-reference img,.ir-suspect-panel .ir-suspect-row-reference .ir-avatar{width:39px;height:42px;flex:0 0 39px;object-fit:cover;border:1px solid #315765;border-radius:4px}
.ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy{display:block;flex:1;min-width:0}
.ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy b{display:block;font-size:10px;line-height:1.25;color:#f5f1e8}
.ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy small{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;font-size:8px;line-height:1.35;color:#b4cbd2}
.ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy em{display:block;margin-top:4px;font-size:9px;line-height:1.2;font-style:normal;color:#f2c85c}
.ir-suspect-panel .ir-suspect-row-reference .ir-arrow{font-size:20px;flex:0 0 auto;color:#f2c85c}
.ir-suspect-panel .ir-hint-vault{margin-top:10px;padding:10px;background:#24251f;border:1px solid #80663a;border-radius:4px}
.ir-suspect-panel .ir-hint-vault-title{color:#f3cb61;font-size:10px;font-weight:900;letter-spacing:1.6px}
.ir-suspect-panel .ir-hint-vault p{margin:8px 0 10px;color:#c8d7dc;font-size:9px;line-height:1.45}
.ir-suspect-panel .ir-hint-vault-button{display:block;width:100%;text-align:center;padding:9px 10px;font-size:10px}
@media(max-width:850px){.ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy small{-webkit-line-clamp:4}}

/* Final reference layout: Investigation Board left, Suspects right, no Hint Vault in this screen */
.ir-bottom-row{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(265px,.78fr);gap:9px;align-items:center;margin-top:10px}
.ir-bottom-row .ir-board-actions{display:flex;align-items:center;gap:9px;margin:0;padding:0 6px}
.ir-bottom-row .ir-icon-action{width:42px;height:42px;font-size:21px;cursor:pointer}
.ir-bottom-row .ir-accuse-button{display:flex;align-items:center;justify-content:center;min-height:54px;width:100%;font-size:16px;font-weight:800}
.ir-suspect-panel .ir-hint-vault{display:block!important}
@media(max-width:850px){.ir-bottom-row{grid-template-columns:1fr;gap:10px}.ir-bottom-row .ir-accuse-button{grid-row:1}.ir-bottom-row .ir-board-actions{justify-content:flex-start}}

/* Corrected top navigation: Investigation Board title + Evidence Viewer / Suspects tabs; Hint Vault lives in the right rail. */
.ir-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #214956}
.ir-toolbar-left{display:flex;align-items:center;gap:18px;min-width:0;flex-wrap:wrap}
.ir-toolbar-title{color:#f3cc65;font-size:11px;letter-spacing:1.5px;font-weight:900;white-space:nowrap}
.ir-toolbar .ir-tabs a{padding:9px 13px;white-space:nowrap}
.ir-suspect-panel .ir-hint-vault{display:block!important;margin-top:10px;padding:10px;background:#24251f;border:1px solid #80663a;border-radius:4px}
@media(max-width:600px){.ir-toolbar{align-items:flex-start;flex-direction:column}.ir-toolbar-left{width:100%;align-items:flex-start;flex-direction:column;gap:8px}.ir-toolbar .ir-tabs{width:100%}.ir-toolbar .ir-tabs a{flex:1;text-align:center}.ir-timer{align-self:flex-end}}

/* CaseRoom reference-style investigation modes: Board / Evidence Viewer / Suspects */
.ir-mode-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #214956}
.ir-mode-nav a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:9px 14px;border:1px solid #214956;border-radius:3px;background:#061923;color:#d6e1e4;text-decoration:none;font-size:12px;white-space:nowrap}
.ir-mode-nav a.active{color:#f5cf65;border-color:#e7bd4c;background:#071a20;box-shadow:inset 0 -2px #e7bd4c}
.ir-board-timer{width:max-content;margin:0 0 10px auto}
.ir-board-full{padding:10px;margin-bottom:10px}
.ir-board-full .ir-evidence-grid.ir-pinboard{height:clamp(350px,38vw,480px);min-height:350px}
.ir-board-bottom{margin-top:8px}
.ir-board-bottom>span{min-width:1px}
.suspect-reference-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.8fr);gap:13px;align-items:start}
.suspect-reference-main{display:grid;grid-template-columns:minmax(170px,260px) minmax(0,1fr);gap:18px;padding:18px}
.suspect-reference-photo{display:block;width:100%;height:260px;object-fit:cover;border:1px solid #315765;border-radius:4px;background:#071820}
.suspect-reference-copy h2{font:700 27px Georgia,serif;margin:7px 0 5px;color:#f5f0e6}
.suspect-reference-copy h3{font:700 14px Georgia,serif;margin:18px 0 8px}
.suspect-reference-copy>p:not(.suspect-role){color:#b6c9ce;line-height:1.7;font-size:12px}
.suspect-reference-copy .suspect-detail-tabs{gap:0;justify-content:space-between;margin:16px 0;padding:0}
.suspect-reference-copy .suspect-detail-tabs a{padding:10px 7px;color:#b4c7cc;text-decoration:none;border-bottom:1px solid #214956;font-size:11px}
.suspect-reference-copy .suspect-detail-tabs a.active{color:#f2cc65;border-bottom:2px solid #f2cc65}
.suspect-reference-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.suspect-reference-side{padding:12px}
.suspect-reference-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #183b46;text-decoration:none}
.suspect-reference-row:last-child{border-bottom:0}
.suspect-reference-row img,.suspect-reference-row .ir-avatar{width:56px;height:58px;object-fit:cover;border:1px solid #315765;border-radius:4px;flex:0 0 56px}
.suspect-reference-row b,.suspect-reference-row small{display:block}
.suspect-reference-row b{font-size:11px;color:#f5f0e6}
.suspect-reference-row small{margin-top:4px;color:#e6c15c;font-size:10px}
@media(max-width:800px){.suspect-reference-layout{grid-template-columns:1fr}.suspect-reference-main{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:560px){.ir-mode-nav{gap:6px}.ir-mode-nav a{flex:1;padding:8px 6px;font-size:10px}.ir-board-full .ir-evidence-grid.ir-pinboard{height:390px;min-height:0}.suspect-reference-main{grid-template-columns:1fr}.suspect-reference-photo{height:250px;max-width:260px}.ir-board-timer{margin-left:0}}


/* Requested Investigation Room split: 70% investigation board / 30% suspect and hint rail */
.ir-investigation-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(260px,3fr);gap:12px;align-items:start;width:100%}
.ir-investigation-main{min-width:0}
.ir-investigation-layout .ir-board-full{width:100%;min-width:0;margin:0}
.ir-investigation-layout .ir-suspect-panel{min-width:0;padding:10px;margin:0;background:#061923;border:1px solid #214956;border-radius:4px}
.ir-investigation-layout .ir-suspect-panel .ir-board-head{margin-bottom:6px;padding-bottom:8px}
.ir-investigation-layout .ir-suspect-panel .ir-suspect-row-reference{min-height:61px;padding:7px 0;gap:8px}
.ir-investigation-layout .ir-suspect-panel .ir-suspect-row-reference img,.ir-investigation-layout .ir-suspect-panel .ir-suspect-row-reference .ir-avatar{width:38px;height:40px;flex-basis:38px}
.ir-investigation-layout .ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy b{font-size:10px}
.ir-investigation-layout .ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy em{font-size:8px}
.ir-investigation-layout .ir-suspect-panel .ir-suspect-row-reference .ir-suspect-copy small{font-size:8px;-webkit-line-clamp:3;line-height:1.3}
.ir-investigation-layout .ir-suspect-panel .ir-hint-vault{margin-top:10px;padding:10px}
.ir-investigation-layout .ir-board-bottom{display:flex;justify-content:flex-start;margin:8px 0 0}
.ir-investigation-layout .ir-board-bottom .ir-accuse-button{min-height:38px;min-width:180px;width:auto;padding:9px 20px;font-size:11px}
.ir-board-timer{margin:0 0 10px auto}
@media(max-width:850px){.ir-investigation-layout{grid-template-columns:minmax(0,1fr)}.ir-investigation-layout .ir-suspect-panel{order:2}.ir-investigation-layout .ir-evidence-grid.ir-pinboard{height:360px;min-height:320px}}
@media(max-width:600px){.ir-investigation-layout .ir-evidence-grid.ir-pinboard{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(35px,1fr));height:410px;min-height:0;gap:6px;padding:8px}.ir-investigation-layout .ir-pinboard .ir-collage-tile:nth-child(1){grid-column:1/4;grid-row:1/4}.ir-investigation-layout .ir-pinboard .ir-collage-tile:nth-child(2){grid-column:4/7;grid-row:1/4}.ir-investigation-layout .ir-pinboard .ir-collage-tile:nth-child(3){grid-column:1/3;grid-row:4/7}.ir-investigation-layout .ir-pinboard .ir-collage-tile:nth-child(4){grid-column:3/5;grid-row:4/7}.ir-investigation-layout .ir-pinboard .ir-collage-tile:nth-child(5){grid-column:5/7;grid-row:4/6}.ir-investigation-layout .ir-pinboard .ir-collage-tile:nth-child(6){grid-column:5/7;grid-row:6/7}}

/* User-requested action placement: remove board utility icon row and place accusation after Hint Vault. */
.ir-board-actions.ir-reference-actions{display:none!important}
.ir-board-bottom{display:none!important}
.ir-sidebar-accuse{display:flex;justify-content:center;align-items:center;margin-top:18px;padding-top:0}
.ir-sidebar-accuse .ir-accuse-button{display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box;text-align:center;padding:11px 16px;margin:0}


/* Evidence Viewer full-width correction requested 2026-10-19 */
.ev-viewer{width:100%;max-width:none;margin:12px 0;padding:12px;grid-template-columns:54px minmax(0,1fr)}
.ev-main{width:100%;min-width:0}
.ev-image-wrap{width:100%;max-width:none;height:clamp(280px,48vw,620px);margin:0}
.ev-image-wrap>img{width:100%;height:100%;object-fit:contain}
.ev-caption{width:100%;max-width:none;margin:0;padding:10px 3px 2px}
.ev-footer{width:100%;max-width:none;margin:12px 0 0}
@media(max-width:600px){.ev-viewer{width:100%;grid-template-columns:42px minmax(0,1fr);margin:8px 0;padding:7px}.ev-image-wrap{height:clamp(230px,65vw,380px)}.ev-footer{flex-direction:column}}

/* Suspect Profile reference layout: one featured profile + other suspects sidebar */
.suspect-profile-page{grid-template-columns:minmax(0,2.1fr) minmax(300px,.95fr);gap:16px;margin-top:14px}
.suspect-profile-page .suspect-reference-main{grid-template-columns:minmax(220px,31%) minmax(0,1fr);gap:22px;padding:20px}
.suspect-profile-page .suspect-reference-photo{height:100%;min-height:300px;max-height:400px}
.suspect-profile-page .suspect-reference-copy h2{font-size:30px}
.suspect-profile-page .suspect-main-description{font-size:13px;line-height:1.65;color:#c0d1d6;margin:12px 0 16px}
.suspect-profile-page .suspect-reference-side{padding:16px}
.suspect-profile-page .suspect-reference-side .ir-board-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid #214956;color:#f2ca5e;font-weight:800;font-size:13px}
.suspect-profile-page .suspect-reference-side .ir-board-head small{font-size:11px;color:#a9c0c7;font-weight:400}
.suspect-profile-page .suspect-reference-row-detailed{position:relative;align-items:flex-start;gap:12px;padding:14px 18px 14px 0}
.suspect-profile-page .suspect-reference-row-detailed img,.suspect-profile-page .suspect-reference-row-detailed .ir-avatar{width:74px;height:88px;flex:0 0 74px}
.suspect-profile-page .suspect-reference-row-copy{display:block;min-width:0;flex:1}
.suspect-profile-page .suspect-reference-row-detailed b{font-size:14px}
.suspect-profile-page .suspect-reference-row-detailed .suspect-reference-role{font-size:12px;color:#c1d0d5;margin:3px 0 5px}
.suspect-profile-page .suspect-reference-row-detailed .suspect-reference-description{font-size:12px;line-height:1.5;color:#b8cbd0;margin-top:0}
.suspect-profile-page .suspect-reference-chevron{position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:24px;color:#d6e0e3}
@media(max-width:950px){.suspect-profile-page{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr)}.suspect-profile-page .suspect-reference-main{grid-template-columns:minmax(160px,30%) minmax(0,1fr);gap:14px;padding:14px}.suspect-profile-page .suspect-reference-photo{min-height:260px}}
@media(max-width:760px){.suspect-profile-page{grid-template-columns:1fr}.suspect-profile-page .suspect-reference-main{grid-template-columns:180px minmax(0,1fr)}.suspect-profile-page .suspect-reference-side{order:2}}
@media(max-width:540px){.suspect-profile-page .suspect-reference-main{grid-template-columns:1fr}.suspect-profile-page .suspect-reference-photo{height:280px;min-height:0;max-width:280px}.suspect-profile-page .suspect-reference-row-detailed img,.suspect-profile-page .suspect-reference-row-detailed .ir-avatar{width:60px;height:68px;flex-basis:60px}}

/* Submit Answer / Make Your Accusation — reference-matched suspect selection */
.accusation-wrap{width:min(100%,900px);margin:24px auto 34px;padding:22px 24px;background:linear-gradient(145deg,rgba(7,29,38,.98),rgba(3,17,24,.98));border:1px solid #164453;border-radius:8px;box-shadow:0 16px 42px rgba(0,0,0,.2)}
.accusation-form{text-align:center}
.accusation-suspects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 auto 22px}
.accusation-suspect{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:10px 8px 12px;border:1px solid #176074;border-radius:8px;background:linear-gradient(180deg,#09232d,#061720);cursor:pointer;transition:border-color .18s,transform .18s,background .18s}
.accusation-suspect:hover{border-color:#f3c84f;transform:translateY(-2px)}
.accusation-suspect:has(input:checked){border-color:#f4c84d;box-shadow:0 0 0 1px rgba(244,200,77,.25),inset 0 0 18px rgba(244,200,77,.08);background:linear-gradient(180deg,#17313a,#0a2028)}
.accusation-suspect input{position:absolute;left:10px;top:10px;accent-color:#f4c84d;width:14px;height:14px;z-index:2}
.accusation-portrait{display:block;width:100%;height:138px;overflow:hidden;border:1px solid #315765;border-radius:5px;background:#102b35}
.accusation-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%}
.portrait-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:#f4c84d;font-size:42px;background:radial-gradient(ellipse at top,#23424a,#071820)}
.accusation-name{font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:700;color:#f8f4e8;line-height:1.2}
.accusation-role{font-size:11px;color:#a9c4ce;line-height:1.3}
.accusation-reason-label{display:block;text-align:left;color:#dce9ed;font-size:12px;margin:0 0 7px}
.accusation-reason-label span{color:#8faab4}
.accusation-form textarea{width:100%;box-sizing:border-box;min-height:58px;resize:vertical;margin-bottom:16px;background:#04151d;color:#e9f2f5;border:1px solid #24505e;border-radius:4px;padding:10px;font:inherit}
.accusation-submit{display:block;width:min(100%,360px);margin:0 auto}
@media(max-width:640px){.accusation-wrap{padding:14px 12px;margin:16px auto 24px}.accusation-suspects{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.accusation-portrait{height:150px}.accusation-name{font-size:14px}}

/* Case result: full-width panel with distinct success and incorrect-answer states. */
.result-reference{width:100%;max-width:none;margin:0;padding:24px 28px;text-align:left;background:radial-gradient(ellipse at 18% 0%,#063d34 0,transparent 52%),#061923;border:1px solid #24515a;border-radius:5px;box-shadow:0 0 32px #00dba515}.result-reference-head{display:flex;align-items:center;justify-content:flex-start;gap:14px;text-align:left;margin:0 0 22px}.result-reference-head .result-mark{display:grid;place-items:center;width:62px;height:62px;flex:0 0 62px;border-radius:50%;font-size:36px;line-height:1;font-weight:900;background:#42e6ad;color:#032d27;box-shadow:0 0 24px #2af0ae55}.result-reference.is-incorrect{background:radial-gradient(ellipse at 18% 0%,#3a1720 0,transparent 52%),#061923;border-color:#8b2638;box-shadow:0 0 28px #ff405710}.result-reference.is-incorrect .result-mark{background:#ff4057;color:#fff;box-shadow:0 0 22px #ff405755;font-size:42px}.result-reference-head .eyebrow{color:#42e6ad}.result-reference.is-incorrect .result-reference-head .eyebrow{color:#ff4057}.result-reference-head h2{font:700 clamp(25px,3vw,36px)/1.1 Georgia,'Times New Roman',serif;color:#42e6ad;margin:3px 0 4px}.result-reference.is-incorrect .result-reference-head h2{color:#ff6578}.result-reference-head p{margin:0;color:#c5d8dc;font-size:12px}.result-reference-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(230px,.9fr);align-items:center;gap:22px}.result-reference-details h3{font:700 22px/1.2 Georgia,'Times New Roman',serif;margin:0 0 13px;color:#f6f1e7}.result-metrics{display:grid;gap:0;margin-bottom:17px}.result-metrics>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 11px;border-bottom:1px solid #1b414b;background:#071d25}.result-metrics>div:first-child{border-radius:4px 4px 0 0}.result-metrics>div:last-child{border-bottom:0;border-radius:0 0 4px 4px}.result-metrics span{font-size:10px;color:#b7cbd0;text-transform:uppercase;letter-spacing:.04em}.result-metrics b{font-size:13px;color:#f4ce62}.result-reference-actions{display:flex;flex-wrap:wrap;gap:10px}.result-reference-actions .btn{min-width:145px}.result-reference-art{height:190px;min-width:0;border:1px solid #24535c;border-radius:5px;overflow:hidden;background:#071c23;box-shadow:0 0 20px #0005}.result-reference-art img{display:block;width:100%;height:100%;object-fit:cover}.result-art-placeholder{display:grid;place-items:center;width:100%;height:100%;font:700 20px Georgia,serif;letter-spacing:2px;color:#f0ca60;background:radial-gradient(ellipse at 70% 25%,#9b713c 0,transparent 25%),linear-gradient(135deg,#14424a,#06161d 55%,#493a25)}
@media(max-width:640px){.result-reference{padding:18px 14px}.result-reference-head{align-items:flex-start;justify-content:flex-start}.result-reference-head .result-mark{width:48px;height:48px;flex-basis:48px;font-size:28px}.result-reference-body{grid-template-columns:1fr;gap:15px}.result-reference-art{grid-row:1;height:170px}.result-reference-details h3{font-size:19px}.result-reference-actions{display:grid;grid-template-columns:1fr 1fr}.result-reference-actions .btn{min-width:0;padding:11px 8px}}

/* Case result layout: centered status and a clearly labeled next-case card */
.result-reference-head{justify-content:center;text-align:center;max-width:760px;margin:0 auto 24px;}
.result-reference-head>div:last-child{text-align:center;}
.result-reference-body{grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);align-items:start;}
.result-next-case{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;width:100%;}
.result-next-case .result-reference-art{width:100%;height:220px;}
.result-next-title{font:700 21px/1.25 Georgia,'Times New Roman',serif;color:#f6f1e7;text-align:center;margin:0;}
.result-next-case>.btn{align-self:stretch;justify-content:center;text-align:center;}
@media(max-width:640px){.result-reference-head{align-items:center;text-align:center}.result-reference-body{grid-template-columns:1fr}.result-next-case{grid-row:auto}.result-next-case .result-reference-art{height:190px}.result-reference-actions{grid-template-columns:1fr}.result-reference-actions .btn{width:100%}}


/* CASE RESULT FIX 2026-10-19: force left-aligned feedback, visible progress metrics and next-case card. */
.result-reference-head{justify-content:flex-start!important;text-align:left!important;max-width:none!important;margin:0 0 22px!important;align-items:center!important}
.result-reference-head>div:last-child{text-align:left!important;min-width:0}
.result-reference-body{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr)!important;align-items:start!important;gap:26px!important}
.result-reference-details{min-width:0}
.result-metrics{display:grid!important;grid-template-columns:1fr!important;visibility:visible!important;opacity:1!important}
.result-metrics>div{display:flex!important;visibility:visible!important;min-height:38px}
.result-next-case{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-width:0;width:100%!important;padding:14px;border:1px solid #8b2638;border-radius:8px;background:linear-gradient(145deg,#17151c,#061923)}
.result-next-case .result-reference-art{display:block!important;width:100%!important;height:220px!important;min-height:180px!important}
.result-next-title{display:block!important;color:#f6f1e7!important;text-align:left!important;font:700 22px/1.25 Georgia,'Times New Roman',serif!important;margin:0!important;overflow-wrap:anywhere}
.result-next-case>.btn{display:flex!important;align-self:stretch!important;justify-content:center!important;text-align:center!important;min-height:48px}
.result-reference-actions .btn{display:inline-flex!important}
@media(max-width:700px){.result-reference{padding:18px 14px!important}.result-reference-head{justify-content:flex-start!important;text-align:left!important;align-items:flex-start!important}.result-reference-head>div:last-child{text-align:left!important}.result-reference-body{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}.result-next-case{grid-row:auto!important}.result-next-case .result-reference-art{height:190px!important}.result-next-title{text-align:left!important}.result-reference-actions{display:grid!important;grid-template-columns:1fr!important}.result-reference-actions .btn{width:100%!important}}

/* CASE EXPLANATION PAGE — reference-inspired layout */
.explanation-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.95fr);gap:16px;align-items:start}
.explanation-main.panel,.explanation-aside.panel{min-width:0;padding:0;overflow:hidden}
.explanation-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #285464;background:#04151e}
.explanation-tabs a{display:block;text-align:center;padding:13px 8px;color:#d3dfe1;font-size:12px;font-weight:800;border-bottom:3px solid transparent}
.explanation-tabs a.active,.explanation-tabs a:hover{color:#f0c95e;border-bottom-color:#f0c95e;background:#0b2028}
.explanation-tab-panel{padding:20px 22px 12px}.explanation-tab-panel[hidden]{display:none!important}
.explanation-tab-panel h2,.explanation-aside h2{font:700 23px/1.2 'Playfair Display',Georgia,serif;color:#f6f1e7;margin:10px 0 13px}
.explanation-tab-panel h3{font:700 15px 'Playfair Display',Georgia,serif;color:#f0d17d}
.explanation-tab-panel .case-description{font-size:13px;line-height:1.8;color:#d2dfe2;overflow-wrap:anywhere}
.explanation-tab-panel .case-description p{margin:0 0 12px}
.explanation-intro{font-size:12px;color:#b6c6cb;line-height:1.7}
.explanation-timeline{list-style:none;padding:0;margin:18px 0}.explanation-timeline li{display:grid;grid-template-columns:14px 1fr;gap:12px;padding:0 0 18px;position:relative}.explanation-timeline li:not(:last-child):before{content:"";position:absolute;left:5px;top:12px;bottom:-1px;width:1px;background:#8d713c}.timeline-dot{width:11px;height:11px;border:2px solid #f0c95e;border-radius:50%;margin-top:4px}.explanation-timeline h3{margin:0 0 4px}.explanation-timeline p,.explanation-evidence-list p{font-size:12px;line-height:1.65;color:#b6c6cb;margin:0}
.explanation-evidence-list{list-style:none;padding:0;margin:15px 0}.explanation-evidence-list li{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #24414a;font-size:12px}.explanation-evidence-list li:last-child{border-bottom:0}.evidence-check{color:#f0c95e;font-weight:900}.explanation-evidence-list b{color:#f5f1e8}.explanation-tab-panel .callout{margin:18px 0;background:#29281f;border-color:#8e713e;padding:13px 15px}.explanation-tab-panel .callout p{margin:4px 0 0;font-size:12px;color:#d9d5c8}.explanation-footer{padding:0 22px 20px}.explanation-aside{padding:12px!important}.explanation-case-art{height:190px;min-height:190px;border:1px solid #285464;border-radius:5px;position:relative;background-position:center;background-size:cover}.case-closed-stamp{position:absolute;right:18px;top:50%;transform:translateY(-50%) rotate(-8deg);display:block;padding:10px 16px;border:2px solid #d9c8a1;background:#c7b58e;color:#17232b;text-align:center;font:700 18px/1.15 Georgia,serif;box-shadow:0 4px 12px #0008}.explanation-aside h2{font-size:20px;margin:10px 0 8px}.explanation-case-name{font:700 16px Georgia,serif;color:#f5f1e8!important;margin:0 0 9px}.explanation-case-meta{font-size:11px;color:#b6c6cb!important;margin:5px 0}
@media(max-width:760px){.explanation-layout{grid-template-columns:minmax(0,1fr)}.explanation-aside{grid-row:1}.explanation-case-art{height:180px}.explanation-tab-panel{padding:17px 15px 10px}.explanation-footer{padding:0 15px 16px}}

/* Admin-uploaded Investigation Board image on the player investigation screen */
.ir-uploaded-investigation-board{width:100%;padding:10px;box-sizing:border-box;background:#061a20;border:1px solid rgba(80,180,174,.25);border-radius:0 0 8px 8px;overflow:hidden}
.ir-uploaded-investigation-board img{display:block;width:100%;height:auto;max-height:780px;object-fit:contain;object-position:center;border-radius:5px;background:#041116}
@media(max-width:700px){.ir-uploaded-investigation-board{padding:6px}.ir-uploaded-investigation-board img{max-height:65vh}}

/* Profile & Settings — full-width layout with Wallet & Rewards as a fifth tab */
.profile-wide{width:100%;max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.profile-wide .panel{min-width:0}
.profile-wide-hero{padding:22px 24px!important;width:100%;border-radius:7px!important}
.profile-identity{display:flex;align-items:center;gap:18px;min-width:0}
.profile-mark-large{width:82px;height:82px;flex:0 0 82px;font-size:25px;background:linear-gradient(135deg,#f0cf77,#8b6a2e);color:#10212a;border:2px solid #f3d989}
.profile-identity-copy{flex:1;min-width:0}.profile-identity-copy h2{font:700 clamp(24px,3vw,36px) Georgia,serif!important;margin:5px 0!important}.profile-identity-copy p{margin:0 0 8px}.profile-identity-copy small{color:#9db8c2}.profile-xp{height:7px;max-width:440px;background:#15343d;border-radius:20px;overflow:hidden;margin:9px 0}.profile-xp span{display:block;width:68%;height:100%;background:linear-gradient(90deg,#00d9ae,#ffd64a)}.profile-edit{margin-left:auto;min-width:140px}.profile-quick-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.profile-quick-stats>div{padding:12px 14px;background:#041820;border:1px solid #214956;border-radius:5px}.profile-quick-stats strong,.profile-quick-stats small{display:block}.profile-quick-stats strong{font-size:22px;color:#f0c95e}.profile-quick-stats small{font-size:11px;color:#b6c6cb}.profile-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;border:1px solid #214956;background:#04151e;border-radius:6px;overflow:hidden}.profile-tabs a{display:block;text-align:center;padding:15px 10px;color:#d3dfe1;font-weight:800;border-bottom:3px solid transparent;white-space:normal}.profile-tabs a:hover,.profile-tabs a.active{color:#f0c95e;background:#0b2028;border-bottom-color:#f0c95e}.profile-tab-content{width:100%;padding:22px 24px!important;border-radius:7px!important}.profile-tab-content .section-head{margin-bottom:12px}.profile-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;align-items:end}.profile-edit-form label{margin-top:8px}.profile-edit-form button{grid-column:1/-1;justify-self:start;min-width:180px}.profile-signout{border-top:1px solid #214956;margin-top:20px;padding-top:16px}.profile-signout button{min-width:160px}.profile-wallet-grid{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.8fr);gap:14px}.profile-wallet-balance{padding:22px!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:190px}.profile-wallet-balance strong{font:700 clamp(32px,4vw,48px) Georgia,serif;color:#f0c95e;margin:8px 0}.profile-wallet-balance p{font-size:12px;margin:0 0 16px}.profile-wallet-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.profile-wallet-shortcut{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;padding:18px 10px!important;color:#f3f4ef}.profile-wallet-shortcut>span{display:grid;place-items:center;width:42px;height:42px;border:1px solid #8f7139;border-radius:8px;color:#f0c95e;font-size:22px}.profile-wallet-shortcut b{font-size:12px}.profile-wallet-shortcut small{color:#9db8c2;font-size:10px}.profile-transactions{padding:20px 22px!important}.profile-transaction-table{width:100%}.profile-transaction-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(90px,.6fr) minmax(120px,.6fr);gap:12px;align-items:center;padding:13px 10px;border-bottom:1px solid #21414a;font-size:12px}.profile-transaction-row:last-child{border-bottom:0}.profile-transaction-head{font-weight:800;color:#f0c95e;text-transform:uppercase;font-size:10px;letter-spacing:.6px}.profile-transaction-row small{color:#9db8c2}.transaction-credit{color:#25d6a1}.profile-pref-row{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:18px;max-width:700px;margin:16px 0}.profile-security-row{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #214956}.profile-security-row span{color:#b6c6cb;text-align:right;overflow-wrap:anywhere}
@media(max-width:800px){.profile-wallet-grid{grid-template-columns:1fr}.profile-wallet-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-edit{min-width:120px}.profile-tabs a{padding:12px 5px;font-size:11px}}
@media(max-width:560px){.profile-wide-hero,.profile-tab-content{padding:16px!important}.profile-identity{align-items:flex-start;flex-wrap:wrap}.profile-mark-large{width:62px;height:62px;flex-basis:62px}.profile-edit{margin-left:0;width:100%}.profile-quick-stats{gap:6px}.profile-quick-stats>div{padding:9px 8px}.profile-quick-stats strong{font-size:18px}.profile-quick-stats small{font-size:9px}.profile-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-tabs a:last-child{grid-column:1/-1}.profile-edit-form{grid-template-columns:1fr}.profile-edit-form button{grid-column:auto;width:100%}.profile-transaction-row{grid-template-columns:minmax(0,1.3fr) minmax(65px,.6fr) minmax(90px,.7fr);gap:6px;padding:11px 4px;font-size:10px}.profile-transaction-head{font-size:9px}.profile-pref-row{grid-template-columns:1fr;gap:4px}}

/* Consolidated CASE ROOM compact case-list styles */
.art,.case-feature-art,.case-scene,.list-art{position:relative;overflow:hidden;background-color:#082a33;background-image:radial-gradient(ellipse at 75% 25%,#d29b54 0 4%,transparent 18%),linear-gradient(130deg,transparent 30%,#07171d 30% 48%,transparent 49%),linear-gradient(155deg,#15525b,#04171d 62%,#b07a38)}.art:before,.case-feature-art:before,.case-scene:before,.list-art:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 24px,#b8e3e418 25px 26px,transparent 27px 52px),linear-gradient(0deg,#03151b9c,transparent 70%)}.list-row{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #14515b;border-radius:10px;background:#061f27}.list-art{width:85px;height:58px;border-radius:6px;flex-shrink:0}.list-row small{display:block;color:var(--m);font-size:10px}.list-row{border:1px solid #334b55;border-radius:5px;background:#0d242e}.list-row small{color:#b7c2c5}
/* Keep all secondary screens in the same reference palette while preserving their existing PHP workflows. */
.panel,.hero-side,.feature-contest,.list-row,.contest-card,.investigation aside{background:#061923;color:#f3f4ef;border-color:#214956;border-radius:4px;box-shadow:none}


/* My Cases & Progress: compact horizontal case rows only */
.case-list .list-row{display:flex;align-items:center;gap:12px;padding:9px;border:1px solid #14515b;border-radius:5px;background:#061f27;min-width:0}
.case-list .list-art{width:78px;height:52px;flex:0 0 78px;border-radius:5px}
.list-case-main{flex:1;min-width:90px}
.list-case-main>b{display:block;font-size:13px;line-height:1.35;margin-bottom:3px}
.list-case-main>small{display:block;color:var(--m);font-size:10px;margin-bottom:7px}
.list-progress{height:5px;width:100%;max-width:240px;overflow:hidden;border-radius:99px;background:#17343c;border:1px solid #204a54}
.list-progress>span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#16d6a0,#f4ce55);transition:width .25s ease}
.list-percent{font-size:11px;font-weight:700;color:var(--c);min-width:34px;text-align:right}
/* Consolidated CASE ROOM extend-time styles */

.extend-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 auto;max-width:1240px}
.extend-option{min-width:0;border:1px solid #e7bd39;border-radius:20px;background:rgba(1,11,15,.72);padding:26px 24px 22px;text-align:center;display:flex;flex-direction:column;align-items:center;box-shadow:inset 0 0 28px rgba(244,190,48,.035)}
.extend-option.extend-free{border-color:#00d7b3;box-shadow:inset 0 0 34px rgba(0,215,179,.08),0 0 15px rgba(0,215,179,.08)}
.extend-option-icon{height:76px;color:#ffce47;font-size:64px;line-height:1;position:relative;margin:2px auto 12px;text-shadow:0 0 18px rgba(255,198,54,.22)}.extend-option-icon b{font-family:Arial,sans-serif;position:absolute;right:-8px;bottom:-2px;border-radius:50%;background:#ffca3f;color:#06151b;width:27px;height:27px;font-size:22px;line-height:27px}
.extend-free .extend-option-icon{color:#21e0b4;text-shadow:0 0 18px rgba(0,215,179,.2)}.extend-free .extend-option-icon b{background:#21e0b4}
.extend-option h2{font-size:clamp(22px,2.2vw,34px);margin:4px 0 10px;color:#f6f7f8}.extend-price{font-size:28px;font-weight:800;color:#ffc62f;margin:0 0 8px}.extend-option p{color:#a9c0ca;font-size:17px;line-height:1.45;min-height:50px;margin:8px 0 22px;max-width:290px}.extend-option form{width:100%;margin-top:auto}
.extend-footer{display:flex;align-items:center;justify-content:center;gap:12px;color:#9bb4c0;font-size:17px;margin:28px auto 0;text-align:center}.extend-footer span{font-size:26px;color:#a8c5d1}
.header-profile{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border:1px solid #e7bd39;border-radius:4px;color:#07151b;background:#f4c84e;font-weight:800;text-decoration:none}.header-profile:hover{filter:brightness(1.06)}

/* Reference-match pass: My Cases & Progress */
body:has(.case-progress-row){background:#031219;color:#eef7f8}
body:has(.case-progress-row) main,body:has(.case-progress-row) .container,body:has(.case-progress-row) .page,body:has(.case-progress-row) .content{max-width:none!important;width:100%!important}
body:has(.case-progress-row) .heading{position:relative;isolation:isolate;min-height:210px;margin:-20px -16px 24px!important;padding:44px 4% 20px!important;overflow:hidden;background:linear-gradient(90deg,rgba(1,15,21,.99) 0%,rgba(1,15,21,.91) 38%,rgba(1,15,21,.28) 100%),linear-gradient(0deg,#031219 0%,transparent 40%),url('../premium/premium-1.jpg') center 42%/cover no-repeat}
body:has(.case-progress-row) .heading .eyebrow{font-size:15px;letter-spacing:3px;color:#f7c650;font-weight:800}
body:has(.case-progress-row) .heading h1{font-size:clamp(42px,4.7vw,70px);line-height:1.05;margin:12px 0;color:#fff;font-weight:700;letter-spacing:-1px}
body:has(.case-progress-row) .heading p{font-size:clamp(16px,1.5vw,24px);color:#87c9d7;margin:12px 0 0}
body:has(.case-progress-row) .stats.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;margin:0 3.8% 26px}
body:has(.case-progress-row) .stats.four .panel{display:flex;align-items:center;gap:24px;min-height:126px;padding:22px 24px;border:1px solid #006073;border-radius:11px;background:linear-gradient(135deg,rgba(2,37,47,.94),rgba(2,21,29,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.03);font-size:18px;color:#9dd8e4}
body:has(.case-progress-row) .stats.four .panel:before{content:"";display:block;flex:0 0 54px;height:54px;border:2px solid #006073;border-radius:50%;background:rgba(0,85,102,.17);box-shadow:inset 0 0 0 8px rgba(0,70,82,.12)}
body:has(.case-progress-row) .stats.four .panel strong{display:block;color:#ffc34f;font-family:Georgia,serif;font-size:42px;line-height:1.1;margin-top:7px}
body:has(.case-progress-row) .case-list{margin:0 3.9% 28px}
body:has(.case-progress-row) .case-progress-row{display:grid!important;grid-template-columns:minmax(230px,27%) minmax(300px,1fr) minmax(245px,23%);align-items:stretch!important;gap:28px!important;padding:20px 24px!important;border:1px solid #00788a!important;border-radius:16px!important;background:linear-gradient(120deg,rgba(2,25,33,.97),rgba(2,20,28,.97))!important;min-height:390px;box-shadow:0 12px 34px rgba(0,0,0,.14)}
body:has(.case-progress-row) .case-progress-row .list-art{width:100%;height:100%;min-height:350px;border-radius:11px;border:1px solid #008093;background-size:cover!important;background-position:center!important}
body:has(.case-progress-row) .case-progress-row .list-case-main{min-width:0;display:flex;flex-direction:column;padding:4px 0}
body:has(.case-progress-row) .case-progress-row .list-case-main>b{font-family:Georgia,'Times New Roman',serif;font-size:clamp(23px,2.1vw,36px);line-height:1.2;color:#f4f5f6;margin-bottom:10px}
body:has(.case-progress-row) .case-progress-row .list-case-main>small{font-size:18px;color:#a9d9e2;margin-bottom:14px}
body:has(.case-progress-row) .case-progress-row .list-progress{height:13px;border-radius:20px;background:#183b41;border:1px solid #327d6b;overflow:hidden;margin-bottom:18px}
body:has(.case-progress-row) .case-progress-row .list-progress span{background:linear-gradient(90deg,#43d78e,#ffd04e);border-radius:20px}
body:has(.case-progress-row) .case-progress-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:10px 0 18px}
body:has(.case-progress-row) .case-progress-metrics>span{min-width:0;display:flex;flex-direction:column;gap:4px;padding:0 12px;border:0;border-left:1px solid #075361;border-radius:0;background:transparent}
body:has(.case-progress-row) .case-progress-metrics>span:first-child{border-left:0;padding-left:0}
body:has(.case-progress-row) .case-progress-metrics small{font-size:16px;color:#9bd4df;letter-spacing:0}
body:has(.case-progress-row) .case-progress-metrics strong{font-family:Georgia,'Times New Roman',serif;font-size:25px;color:#f5f7f8}
body:has(.case-progress-row) .case-answer-status{margin-top:auto;padding:18px 20px;border:1px solid #3a2931;border-radius:12px;background:rgba(25,26,34,.8);font-size:16px;color:#c2d9df;line-height:1.6}
body:has(.case-progress-row) .case-progress-row .list-percent,body:has(.case-progress-row) .case-progress-row>.status{display:none}
body:has(.case-progress-row) .case-row-actions{align-self:center;display:flex;flex-direction:column;justify-content:center;gap:16px;padding-left:24px;border-left:1px solid #006073;min-width:0}
body:has(.case-progress-row) .case-row-actions .btn{display:flex;align-items:center;justify-content:center;min-height:78px;width:100%;padding:16px;border:2px solid #45c8df;border-radius:9px;background:transparent;color:#f6f6f6;font-family:Georgia,serif;font-size:20px;font-weight:700}
body:has(.case-progress-row) .case-row-actions .case-ranking-btn{border-color:#ffc13d;color:#ffc13d;font-family:inherit;font-size:19px}
@media(max-width:1000px){body:has(.case-progress-row) .stats.four{gap:12px;margin-left:16px;margin-right:16px}body:has(.case-progress-row) .stats.four .panel{padding:14px;gap:10px}body:has(.case-progress-row) .stats.four .panel:before{display:none}body:has(.case-progress-row) .case-list{margin-left:16px;margin-right:16px}body:has(.case-progress-row) .case-progress-row{grid-template-columns:180px minmax(0,1fr);gap:18px!important}body:has(.case-progress-row) .case-progress-row .list-art{min-height:250px;grid-row:span 2}body:has(.case-progress-row) .case-row-actions{grid-column:2;flex-direction:row;border-left:0;padding:0;justify-content:flex-start}body:has(.case-progress-row) .case-row-actions .btn{min-height:52px}}
@media(max-width:640px){body:has(.case-progress-row) .heading{margin:-12px -10px 18px!important;padding:30px 18px 24px!important;min-height:180px}body:has(.case-progress-row) .stats.four{grid-template-columns:repeat(2,minmax(0,1fr));margin:0 10px 18px}body:has(.case-progress-row) .stats.four .panel{min-height:90px;font-size:13px;padding:12px}body:has(.case-progress-row) .stats.four .panel strong{font-size:29px}body:has(.case-progress-row) .case-list{margin:0 10px 20px}body:has(.case-progress-row) .case-progress-row{display:flex!important;flex-direction:column;min-height:0;padding:14px!important}body:has(.case-progress-row) .case-progress-row .list-art{height:230px;min-height:230px;width:100%}body:has(.case-progress-row) .case-progress-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}body:has(.case-progress-row) .case-progress-metrics>span{padding:0 5px}body:has(.case-progress-row) .case-progress-metrics small{font-size:11px}body:has(.case-progress-row) .case-progress-metrics strong{font-size:17px}body:has(.case-progress-row) .case-answer-status{font-size:13px;padding:12px}body:has(.case-progress-row) .case-row-actions{width:100%;flex-direction:column}body:has(.case-progress-row) .case-row-actions .btn{font-size:16px;min-height:50px}}

/* Exact reference correction: restore wide desktop composition and real case artwork */
@media(min-width:1001px){
 body:has(.case-progress-row) .heading{min-height:230px!important;padding:42px 4% 24px!important;margin:-20px -16px 24px!important;background-position:center 42%!important}
 body:has(.case-progress-row) .stats.four{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:26px!important;margin:0 3.8% 26px!important}
 body:has(.case-progress-row) .stats.four .panel{min-height:126px!important;display:flex!important;align-items:center!important;gap:24px!important;padding:22px 24px!important}
 body:has(.case-progress-row) .case-list{margin:0 3.9% 28px!important}
 body:has(.case-progress-row) .case-progress-row{display:grid!important;grid-template-columns: minmax(280px,23%) minmax(0,1fr) minmax(245px,23%)!important;align-items:stretch!important;gap:28px!important;padding:20px 24px!important;min-height:455px!important}
 body:has(.case-progress-row) .case-progress-row .list-art{grid-column:1;grid-row:1 / span 5;min-height:410px!important;height:100%!important;width:100%!important;border-radius:10px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(0,20,25,.06),rgba(0,10,15,.18)),url('../premium/premium-1.jpg') center/cover no-repeat!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main{grid-column:2;grid-row:1;min-width:0!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main>b{font-family:Georgia,serif!important;font-size:clamp(23px,2.1vw,36px)!important;line-height:1.2!important;display:block!important;margin:0 0 12px!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main>small{font-size:18px!important;color:#9dd8e4!important}
 body:has(.case-progress-row) .case-progress-row .list-progress{height:13px!important;margin-top:14px!important;border-radius:99px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics{display:flex!important;gap:22px!important;margin-top:28px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics>span{border:0!important;border-radius:0!important;border-right:1px solid #006073!important;background:transparent!important;min-width:130px!important;padding:0 18px 0 0!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics small{font-size:17px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics strong{font-size:25px!important;color:#f6f6f6!important}
 body:has(.case-progress-row) .case-progress-row .case-answer-status{margin-top:24px!important;padding:20px!important;border:1px solid #3a2630!important;border-radius:12px!important;background:rgba(30,24,31,.7)!important;font-size:16px!important}
 body:has(.case-progress-row) .case-progress-row .list-percent,body:has(.case-progress-row) .case-progress-row>.status{display:none!important}
 body:has(.case-progress-row) .case-row-actions{grid-column:3;grid-row:1 / span 5;align-self:center!important;border-left:1px solid #006073!important;padding-left:28px!important;min-width:0!important;gap:18px!important}
 body:has(.case-progress-row) .case-row-actions .btn{min-height:78px!important;font-size:20px!important}
}
/* Icon circles and case cover styling */
body:has(.case-progress-row) .stats.four .panel:before{content:""!important;background-color:rgba(0,85,102,.17)!important;background-repeat:no-repeat!important;background-position:center!important;background-size:28px!important}
body:has(.case-progress-row) .stats.four .panel:nth-child(1):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffc34f' stroke-width='1.8'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v10H3z'/%3E%3C/svg%3E")!important}
body:has(.case-progress-row) .stats.four .panel:nth-child(2):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffc34f' stroke-width='1.8'%3E%3Cpath d='M8 21h8M12 17v4M5 5l7-3 7 3-2 10H7z'/%3E%3C/svg%3E")!important}
body:has(.case-progress-row) .stats.four .panel:nth-child(3):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffc34f' stroke-width='1.8'%3E%3Cpath d='M9 18h6M10 22h4M8 14c-5-4-2-11 4-11s9 7 4 11l-2 2h-4z'/%3E%3C/svg%3E")!important}
body:has(.case-progress-row) .stats.four .panel:nth-child(4):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffc34f' stroke-width='1.8'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Cpath d='M16 14h5M3 9h18M7 6V4h10v2'/%3E%3C/svg%3E")!important}
@media(max-width:1000px){body:has(.case-progress-row) .case-progress-row{grid-template-columns: minmax(180px,32%) minmax(0,1fr)!important;min-height:0!important}body:has(.case-progress-row) .case-progress-row .list-art{grid-column:1!important;grid-row:1 / span 5!important;min-height:300px!important}body:has(.case-progress-row) .case-progress-row .list-case-main{grid-column:2!important;grid-row:1!important}body:has(.case-progress-row) .case-row-actions{grid-column:2!important;grid-row:2!important;flex-direction:row!important;border-left:0!important;padding-left:0!important}}

/* Cumulative compatibility layer: retain newer suspect/evidence/wallet/extension styles */
.ev-viewer{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;padding:12px;max-width:1200px;margin:12px auto;background:#03141c;border:1px solid #214956;border-radius:5px;box-shadow:0 12px 32px #0006}
.ev-image-wrap{height:clamp(300px,42vw,520px);width:100%;max-width:none;margin:0 auto;position:relative;display:grid;place-items:center;background:#020e14;border:1px solid #214956;border-radius:4px;overflow:hidden}
.ev-caption{padding:2px 3px 12px;width:100%;max-width:none;margin:0 auto}
.ev-caption .eyebrow{font-size:10px;letter-spacing:1.5px;color:#eac65d;font-weight:800}
.ev-caption h2{font:700 clamp(22px,2vw,30px) Georgia,serif;margin:5px 0;color:#f4f1e9}
.ev-caption p{color:#b5c7cc;line-height:1.6;font-size:13px;margin:5px 0;max-width:1000px}
.extend-time-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.extend-time-option{min-width:0;display:flex;flex-direction:column;gap:10px;padding:20px}.extend-time-option h2{margin:0;font-size:clamp(18px,2vw,25px)}.extend-time-option p{color:#b8cbd0;line-height:1.5;margin:0 0 8px}.extend-time-option form{margin-top:auto}.extension-price{font-size:24px;color:#ffd45b}.extend-time-option .eyebrow{color:#ffd45b;font-weight:800;letter-spacing:1px}.ir-board-timer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ir-board-timer .btn{margin-left:auto}@media(max-width:760px){.extend-time-grid{grid-template-columns:1fr}.extend-time-option{padding:16px}.ir-board-timer .btn{margin-left:0}}
.ev-viewer .ev-main{display:flex;flex-direction:column;gap:0;min-width:0}
.ev-viewer .ev-caption{order:0}
.ev-viewer .ev-image-wrap{order:1}
 .ev-viewer{grid-template-columns:1fr;gap:10px;padding:10px}
 .ev-image-wrap{height:clamp(240px,62vw,420px)}
 .ev-caption h2{font-size:23px}
 .ev-caption p{font-size:12px}
.suspect-profile-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:8px 0 12px;padding:0}
.suspect-profile-page .suspect-profile-facts>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:7px;align-items:start;font-size:11px;line-height:1.45}
.suspect-profile-page .suspect-profile-facts dt{color:#f2ca5e;font-weight:700;margin:0}
.suspect-profile-page .suspect-profile-facts dd{color:#d1dfe2;margin:0;overflow-wrap:anywhere}
.suspect-profile-page .suspect-detail-tabs{display:flex!important;align-items:stretch!important;justify-content:space-between!important;gap:0!important;margin:12px 0 0!important;padding:0!important;border-bottom:1px solid #214956!important;background:transparent!important}
.suspect-profile-page .suspect-detail-tabs button{appearance:none!important;-webkit-appearance:none!important;display:block!important;flex:1 1 0!important;min-width:0!important;margin:0!important;padding:10px 7px 9px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#b9cbd0!important;font:500 11px Arial,sans-serif!important;text-align:center!important;cursor:pointer!important;box-shadow:none!important}
.suspect-profile-page .suspect-detail-tabs button:hover{color:#f5d36e!important;background:rgba(242,202,94,.04)!important}
.suspect-profile-page .suspect-detail-tabs button.active{color:#f2ca5e!important;border-bottom-color:#f2ca5e!important;background:transparent!important}
.suspect-profile-page .suspect-detail-section{padding-top:10px!important;margin-top:0!important}
.suspect-profile-page .suspect-detail-section h3{font:700 13px Georgia,serif!important;color:#f5f0e6!important;margin:0 0 7px!important}
.suspect-profile-page .suspect-detail-section p,.suspect-profile-page .suspect-evidence-links{font-size:11px!important;line-height:1.55!important;color:#c4d4d9!important;margin:0!important}
.suspect-profile-page .suspect-evidence-links{padding-left:18px!important}
.suspect-profile-page .suspect-evidence-links li{padding:6px 0!important;border-bottom:1px solid #183b46!important}
.suspect-profile-page .suspect-reference-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:14px!important}
.suspect-profile-page .suspect-reference-side{padding:12px!important;min-width:0!important}
.suspect-profile-page .suspect-reference-side .ir-board-head{display:flex!important;justify-content:space-between!important;align-items:center!important;padding-bottom:10px!important;border-bottom:1px solid #214956!important;color:#f2ca5e!important;font-weight:800!important;font-size:13px!important}
.suspect-profile-page .suspect-reference-row-detailed{display:flex!important;position:relative!important;align-items:flex-start!important;gap:9px!important;padding:11px 15px 11px 0!important;text-decoration:none!important;border-bottom:1px solid #183b46!important}
.suspect-profile-page .suspect-reference-row-detailed img,.suspect-profile-page .suspect-reference-row-detailed .ir-avatar{display:block!important;width:62px!important;height:70px!important;flex:0 0 62px!important;object-fit:cover!important;border-radius:4px!important}
.suspect-profile-page .suspect-reference-row-copy{display:block!important;min-width:0!important;flex:1!important}
.suspect-profile-page .suspect-reference-row-detailed b{display:block!important;font-size:12px!important;color:#f5f0e6!important}
.suspect-profile-page .suspect-reference-row-detailed .suspect-reference-role{display:block!important;font-size:10px!important;line-height:1.4!important;color:#c1d0d5!important;margin:4px 0!important}
.suspect-profile-page .suspect-reference-row-detailed .suspect-reference-description{display:block!important;font-size:10px!important;line-height:1.45!important;color:#b8cbd0!important;margin-top:3px!important}
.suspect-profile-page .suspect-reference-chevron{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;font-size:22px!important;color:#d8c06b!important}
@media(max-width:900px){.suspect-profile-page.suspect-reference-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)!important}.suspect-profile-page .suspect-reference-main{grid-template-columns:145px minmax(0,1fr)!important;gap:12px!important}.suspect-profile-page .suspect-reference-photo{height:190px!important}}
@media(max-width:680px){.suspect-profile-page.suspect-reference-layout{grid-template-columns:1fr!important}.suspect-profile-page .suspect-reference-main{grid-template-columns:120px minmax(0,1fr)!important;padding:10px!important;gap:10px!important}.suspect-profile-page .suspect-reference-photo{height:155px!important}.suspect-profile-page .suspect-reference-copy h2{font-size:23px!important}.suspect-profile-page .suspect-profile-facts>div{grid-template-columns:75px minmax(0,1fr)!important}}
@media(max-width:430px){.suspect-profile-page .suspect-reference-main{grid-template-columns:1fr!important}.suspect-profile-page .suspect-reference-photo{width:150px!important;height:175px!important}.suspect-profile-page .suspect-detail-tabs button{font-size:10px!important;padding:9px 3px!important}}



/* Compact responsive My Cases & Progress layout (reference 2) */
body:has(.case-progress-row) .heading{
  min-height:0!important;margin:0 0 24px!important;padding:0!important;
  background:none!important;overflow:visible!important;
}
body:has(.case-progress-row) .heading .eyebrow{font-size:11px!important;letter-spacing:2px!important}
body:has(.case-progress-row) .heading h1{font-size:clamp(28px,3vw,44px)!important;line-height:1.1!important;margin:8px 0!important;letter-spacing:-.6px!important}
body:has(.case-progress-row) .heading p{font-size:14px!important;margin:8px 0 0!important;color:#b6d2d8!important}
body:has(.case-progress-row) .stats.four{gap:8px!important;margin:0 0 14px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
body:has(.case-progress-row) .stats.four .panel{
  min-height:74px!important;padding:12px!important;display:block!important;
  border:1px solid #174d58!important;border-radius:4px!important;
  background:#061b22!important;font-size:11px!important;color:#c6e0e5!important;
  box-shadow:none!important
}
body:has(.case-progress-row) .stats.four .panel:before{display:none!important}
body:has(.case-progress-row) .stats.four .panel strong{
  display:block!important;font:700 23px/1.15 Arial,sans-serif!important;
  color:#ffc64e!important;margin-top:5px!important
}
body:has(.case-progress-row) .case-list{margin:0 0 18px!important;gap:8px!important}
body:has(.case-progress-row) .case-progress-row{
  display:grid!important;grid-template-columns:78px minmax(0,1fr) auto!important;
  align-items:center!important;gap:12px!important;min-height:0!important;
  padding:10px!important;border:1px solid #14515b!important;border-radius:5px!important;
  background:#061f27!important;box-shadow:none!important
}
body:has(.case-progress-row) .case-progress-row .list-art{
  width:78px!important;height:52px!important;min-height:52px!important;
  grid-row:auto!important;border:0!important;border-radius:4px!important
}
body:has(.case-progress-row) .case-progress-row .list-case-main{
  display:block!important;min-width:0!important;padding:0!important
}
body:has(.case-progress-row) .case-progress-row .list-case-main>b{
  font:700 13px/1.35 Arial,sans-serif!important;margin:0 0 3px!important;
  color:#f4f7f8!important
}
body:has(.case-progress-row) .case-progress-row .list-case-main>small{
  font-size:10px!important;line-height:1.4!important;margin:0!important;color:#b5d1d8!important
}
body:has(.case-progress-row) .case-progress-row .list-progress,
body:has(.case-progress-row) .case-progress-metrics,
body:has(.case-progress-row) .case-answer-result,
body:has(.case-progress-row) .case-progress-row .case-answer-status{display:none!important}
body:has(.case-progress-row) .case-progress-row .list-percent{display:none!important}
body:has(.case-progress-row) .case-progress-row>.status{
  display:block!important;white-space:normal!important;font-size:10px!important;
  color:#ffc64e!important;text-align:right!important
}
body:has(.case-progress-row) .case-row-actions{
  grid-column:3!important;grid-row:1!important;align-self:center!important;
  display:flex!important;flex-direction:row!important;justify-content:flex-end!important;
  gap:7px!important;padding:0!important;border:0!important;min-width:0!important
}
body:has(.case-progress-row) .case-row-actions .btn{
  width:auto!important;min-height:36px!important;padding:8px 14px!important;
  border:1px solid #167083!important;border-radius:4px!important;
  background:transparent!important;color:#ffc64e!important;
  font:700 11px Arial,sans-serif!important;white-space:nowrap!important
}
body:has(.case-progress-row) .case-row-actions .case-ranking-btn{display:none!important}
@media(max-width:760px){
 body:has(.case-progress-row) main,body:has(.case-progress-row) .container,
 body:has(.case-progress-row) .page,body:has(.case-progress-row) .content{
  width:auto!important;max-width:100%!important
 }
 body:has(.case-progress-row) .heading{margin:0 0 16px!important}
 body:has(.case-progress-row) .stats.four{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body:has(.case-progress-row) .stats.four .panel{min-height:66px!important;padding:10px!important}
 body:has(.case-progress-row) .stats.four .panel strong{font-size:21px!important}
 body:has(.case-progress-row) .case-progress-row{
  grid-template-columns:62px minmax(0,1fr)!important;gap:10px!important;padding:10px!important
 }
 body:has(.case-progress-row) .case-progress-row .list-art{
  width:62px!important;height:54px!important;min-height:54px!important;grid-column:1!important;grid-row:1!important
 }
 body:has(.case-progress-row) .case-progress-row .list-case-main{grid-column:2!important;grid-row:1!important}
 body:has(.case-progress-row) .case-progress-row>.status{display:none!important}
 body:has(.case-progress-row) .case-row-actions{
  grid-column:2!important;grid-row:2!important;justify-content:flex-start!important;margin-top:2px!important
 }
 body:has(.case-progress-row) .case-row-actions .btn{min-height:34px!important;padding:7px 12px!important}
}
@media(max-width:380px){
 body:has(.case-progress-row) .heading h1{font-size:26px!important}
 body:has(.case-progress-row) .stats.four .panel{font-size:10px!important}
 body:has(.case-progress-row) .stats.four .panel strong{font-size:19px!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main>b{font-size:12px!important}
}

/* CASE ROOM My Cases & Progress — compact reference-matched detailed card */
body:has(.case-progress-row) .heading{min-height:0!important;margin:0 0 14px!important;padding:0!important;background:none!important;overflow:visible!important}
body:has(.case-progress-row) .heading .eyebrow{font-size:10px!important;letter-spacing:1.7px!important}
body:has(.case-progress-row) .heading h1{font-size:clamp(25px,3vw,38px)!important;line-height:1.08!important;margin:5px 0!important;letter-spacing:-.5px!important}
body:has(.case-progress-row) .heading p{font-size:12px!important;margin:5px 0 0!important;color:#a9d5df!important}
body:has(.case-progress-row) .stats.four{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0 0 12px!important}
body:has(.case-progress-row) .stats.four .panel{min-height:52px!important;padding:8px 10px!important;border:1px solid #145461!important;border-radius:4px!important;background:#061b22!important;font-size:10px!important;color:#bcdde3!important;box-shadow:none!important}
body:has(.case-progress-row) .stats.four .panel:before{display:none!important}
body:has(.case-progress-row) .stats.four .panel strong{display:block!important;font:700 20px/1.1 Georgia,serif!important;color:#ffc64e!important;margin-top:3px!important}
body:has(.case-progress-row) .case-list{display:flex!important;flex-direction:column!important;gap:10px!important;margin:0 0 18px!important}
body:has(.case-progress-row) .case-progress-row{display:grid!important;grid-template-columns:88px minmax(0,1fr) 94px!important;grid-template-rows:auto!important;align-items:start!important;gap:10px!important;min-height:0!important;padding:10px!important;border:1px solid #126071!important;border-radius:5px!important;background:#05212a!important;box-shadow:none!important;overflow:hidden!important}
body:has(.case-progress-row) .case-progress-row .list-art{grid-column:1!important;grid-row:1!important;position:relative!important;width:88px!important;height:136px!important;min-height:136px!important;border:1px solid #145563!important;border-radius:4px!important;overflow:hidden!important;background-position:center!important;background-size:cover!important}
body:has(.case-progress-row) .case-progress-row .list-art:after{content:'✓ Completed';position:absolute;top:5px;left:4px;padding:3px 6px;border:1px solid #18d78a;border-radius:20px;background:#062e2c;color:#e8fff6;font:700 8px Arial,sans-serif;white-space:nowrap}
body:has(.case-progress-row) .case-progress-row .list-case-main{grid-column:2!important;grid-row:1!important;display:block!important;min-width:0!important;padding:0!important}
body:has(.case-progress-row) .case-progress-row .list-case-main>b{display:block!important;font:700 14px/1.25 Georgia,serif!important;margin:0 0 3px!important;color:#f7f4ee!important}
body:has(.case-progress-row) .case-progress-row .list-case-main>small{display:block!important;font-size:10px!important;line-height:1.35!important;margin:0!important;color:#b7d9e1!important}
body:has(.case-progress-row) .case-progress-row .list-progress{display:block!important;height:5px!important;margin:7px 0 2px!important;border-radius:8px!important;overflow:hidden!important;background:#153d43!important}
body:has(.case-progress-row) .case-progress-row .list-progress span{display:block!important;height:100%!important;border-radius:8px!important;background:linear-gradient(90deg,#28d58b,#ffd04c)!important}
body:has(.case-progress-row) .case-progress-row .case-progress-summary{display:block!important;text-align:right!important;font-size:9px!important;color:#c1e0e5!important;margin:0 0 6px!important}
body:has(.case-progress-row) .case-progress-row .case-progress-summary strong{color:#ffc64e!important}
body:has(.case-progress-row) .case-progress-row .case-progress-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin:7px 0!important;padding:0!important}
body:has(.case-progress-row) .case-progress-row .case-progress-metrics>span{display:block!important;min-width:0!important;padding:0 4px!important;border:0!important;border-right:1px solid #14515b!important;border-radius:0!important;background:transparent!important}
body:has(.case-progress-row) .case-progress-row .case-progress-metrics>span:last-child{border-right:0!important}
body:has(.case-progress-row) .case-progress-row .case-progress-metrics small{display:block!important;font-size:9px!important;line-height:1.2!important;color:#a9d5df!important}
body:has(.case-progress-row) .case-progress-row .case-progress-metrics strong{display:block!important;font:700 14px/1.2 Georgia,serif!important;color:#f6f2eb!important;margin-top:3px!important;white-space:nowrap!important}
body:has(.case-progress-row) .case-progress-row .case-answer-result{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;margin:7px 0 5px!important;padding:7px!important;border:1px solid #452934!important;border-radius:5px!important;background:#111e29!important}
body:has(.case-progress-row) .case-progress-row .answer-entry,body:has(.case-progress-row) .case-progress-row .answer-outcome{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
body:has(.case-progress-row) .case-progress-row .answer-entry{border-right:1px solid #3c2b34!important;padding-right:5px!important}
body:has(.case-progress-row) .case-progress-row .answer-entry small,body:has(.case-progress-row) .case-progress-row .answer-outcome small{font-size:9px!important;color:#b5d8e1!important}
body:has(.case-progress-row) .case-progress-row .answer-entry strong{display:block!important;width:max-content!important;max-width:100%!important;overflow-wrap:anywhere!important;padding:5px 7px!important;border:1px solid #6d303a!important;border-radius:4px!important;background:#38232b!important;color:#fff!important;font:700 10px Arial,sans-serif!important}
body:has(.case-progress-row) .case-progress-row .answer-outcome strong{font:700 14px/1.1 Georgia,serif!important;color:#ff5353!important}
body:has(.case-progress-row) .case-progress-row .answer-outcome.is-correct strong{color:#38d88c!important}
body:has(.case-progress-row) .case-progress-row .answer-outcome span{font-size:9px!important;line-height:1.25!important;color:#b5d8e1!important;overflow-wrap:anywhere!important}
body:has(.case-progress-row) .case-progress-row .case-answer-status{display:block!important;font-size:10px!important;line-height:1.3!important;margin:6px 0 0!important;padding:0!important;border:0!important;background:none!important;color:#b9d8df!important}
body:has(.case-progress-row) .case-progress-row .case-answer-status a{color:#ffc64e!important;font-weight:700!important;text-decoration:none!important}
body:has(.case-progress-row) .case-progress-row .list-percent{display:none!important}
body:has(.case-progress-row) .case-progress-row>.status{display:none!important}
body:has(.case-progress-row) .case-row-actions{grid-column:3!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-self:center!important;justify-content:center!important;gap:7px!important;min-width:0!important;padding:0 0 0 8px!important;border-left:1px solid #14515b!important}
body:has(.case-progress-row) .case-row-actions .btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:35px!important;padding:6px 4px!important;border:1px solid #168097!important;border-radius:4px!important;background:transparent!important;color:#f5f2ec!important;font:700 10px Arial,sans-serif!important;white-space:normal!important;text-align:center!important}
body:has(.case-progress-row) .case-row-actions .case-ranking-btn{display:flex!important;border-color:#e9ae2b!important;color:#ffc64e!important}
@media(max-width:760px){
 body:has(.case-progress-row) main,body:has(.case-progress-row) .container,body:has(.case-progress-row) .page,body:has(.case-progress-row) .content{width:auto!important;max-width:100%!important}
 body:has(.case-progress-row) .heading{margin:0 0 12px!important}
 body:has(.case-progress-row) .stats.four{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-bottom:10px!important}
 body:has(.case-progress-row) .stats.four .panel{min-height:48px!important;padding:7px 9px!important}
 body:has(.case-progress-row) .stats.four .panel strong{font-size:19px!important}
 body:has(.case-progress-row) .case-progress-row{grid-template-columns:82px minmax(0,1fr)!important;gap:9px!important;padding:8px!important}
 body:has(.case-progress-row) .case-progress-row .list-art{grid-column:1!important;grid-row:1 / span 2!important;width:82px!important;height:132px!important;min-height:132px!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main{grid-column:2!important;grid-row:1!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main>b{font-size:13px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics{gap:2px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics>span{padding:0 2px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics small{font-size:8px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics strong{font-size:12px!important}
 body:has(.case-progress-row) .case-progress-row .case-answer-result{gap:5px!important;padding:6px!important}
 body:has(.case-progress-row) .case-progress-row .answer-outcome strong{font-size:12px!important}
 body:has(.case-progress-row) .case-row-actions{grid-column:2!important;grid-row:2!important;flex-direction:row!important;align-self:start!important;justify-content:flex-start!important;border-left:0!important;padding:0!important;margin-top:2px!important}
 body:has(.case-progress-row) .case-row-actions .btn{width:auto!important;flex:1!important;min-height:32px!important;padding:6px 4px!important;font-size:10px!important}
}
@media(max-width:420px){
 body:has(.case-progress-row) .heading h1{font-size:24px!important}
 body:has(.case-progress-row) .case-progress-row{grid-template-columns:68px minmax(0,1fr)!important;gap:7px!important;padding:7px!important}
 body:has(.case-progress-row) .case-progress-row .list-art{width:68px!important;height:116px!important;min-height:116px!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main>b{font-size:12px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics small{font-size:7px!important}
 body:has(.case-progress-row) .case-progress-row .case-progress-metrics strong{font-size:11px!important}
 body:has(.case-progress-row) .case-progress-row .answer-entry strong{font-size:9px!important;padding:4px!important}
}

/* FINAL OVERRIDE — exact compact My Cases row from user's 2026-10-22 reference */
body:has(.case-progress-row) .case-list{margin:0 0 18px!important;gap:8px!important}
body:has(.case-progress-row) .case-progress-row{
 display:grid!important;grid-template-columns:88px minmax(0,1fr) 86px!important;
 grid-template-rows:minmax(0,1fr)!important;align-items:center!important;gap:11px!important;
 min-height:0!important;padding:10px!important;border:1px solid #14515b!important;
 border-radius:5px!important;background:#061f27!important;box-shadow:none!important
}
body:has(.case-progress-row) .case-progress-row .list-art{
 grid-column:1!important;grid-row:1!important;width:88px!important;height:134px!important;min-height:134px!important;
 align-self:center!important;border:1px solid #176170!important;border-radius:4px!important;
 background-size:cover!important;background-position:center!important
}
body:has(.case-progress-row) .case-progress-row .list-case-main{
 grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:auto auto 7px auto auto!important;align-content:center!important;align-items:center!important;
 min-width:0!important;padding:0!important;gap:0 8px!important
}
body:has(.case-progress-row) .case-progress-row .list-case-main>b{
 grid-column:1/3!important;grid-row:1!important;font:700 14px/1.25 Georgia,'Times New Roman',serif!important;
 margin:0 0 3px!important;color:#f4f7f8!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
body:has(.case-progress-row) .case-progress-row .list-case-main>small{
 grid-column:1/3!important;grid-row:2!important;font-size:10px!important;line-height:1.35!important;
 margin:0 0 6px!important;color:#b5d1d8!important
}
body:has(.case-progress-row) .case-progress-row .list-progress{
 grid-column:1/3!important;grid-row:3!important;display:block!important;width:100%!important;height:5px!important;
 margin:0!important;border:0!important;border-radius:99px!important;background:#183b41!important;overflow:hidden!important
}
body:has(.case-progress-row) .case-progress-row .list-progress span{display:block!important;height:100%!important;background:linear-gradient(90deg,#43d78e,#ffd04e)!important;border-radius:99px!important}
body:has(.case-progress-row) .case-progress-row .case-progress-summary{
 grid-column:2!important;grid-row:4!important;justify-self:end!important;display:block!important;text-align:right!important;
 margin:3px 0 0!important;font:10px/1.2 Arial,sans-serif!important;color:#c4e1e5!important;white-space:nowrap!important
}
body:has(.case-progress-row) .case-progress-row .case-progress-summary strong{color:#ffc64e!important;font-weight:700!important}
body:has(.case-progress-row) .case-progress-metrics{
 grid-column:1/3!important;grid-row:5!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:0!important;margin:15px 0 0!important
}
body:has(.case-progress-row) .case-progress-metrics>span{
 min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important;padding:0 8px!important;
 border:0!important;border-left:1px solid #14515b!important;border-radius:0!important;background:transparent!important
}
body:has(.case-progress-row) .case-progress-metrics>span:first-child{padding-left:0!important;border-left:0!important}
body:has(.case-progress-row) .case-progress-metrics small{font-size:9px!important;line-height:1.2!important;color:#b5d1d8!important}
body:has(.case-progress-row) .case-progress-metrics strong{font:700 16px/1.2 Georgia,'Times New Roman',serif!important;color:#f4f7f8!important;white-space:nowrap!important}
body:has(.case-progress-row) .case-answer-result{display:none!important}
body:has(.case-progress-row) .case-progress-row .case-answer-status{
 grid-column:1/3!important;display:block!important;margin:4px 0 0!important;padding:0!important;border:0!important;
 background:transparent!important;border-radius:0!important;color:#b5d1d8!important;font:10px/1.3 Arial,sans-serif!important
}
body:has(.case-progress-row) .case-progress-row .case-answer-status a{display:inline-block!important;margin-top:4px!important;color:#ffc64e!important;font-weight:700!important;text-decoration:none!important}
body:has(.case-progress-row) .case-progress-row .list-percent{display:none!important}
body:has(.case-progress-row) .case-progress-row>.status{display:none!important}
body:has(.case-progress-row) .case-row-actions{
 grid-column:3!important;grid-row:1!important;align-self:center!important;display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:stretch!important;gap:8px!important;min-width:0!important;padding:0!important;border:0!important
}
body:has(.case-progress-row) .case-row-actions .btn{
 display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:36px!important;
 padding:7px 5px!important;border:1px solid #167083!important;border-radius:4px!important;background:transparent!important;
 color:#ffc64e!important;font:700 10px Arial,sans-serif!important;white-space:nowrap!important
}
body:has(.case-progress-row) .case-row-actions .case-ranking-btn{display:flex!important;border-color:#ffc64e!important;color:#ffc64e!important}
@media(max-width:760px){
 body:has(.case-progress-row) .case-progress-row{grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;padding:9px!important}
 body:has(.case-progress-row) .case-progress-row .list-art{grid-column:1!important;grid-row:1!important;width:64px!important;height:96px!important;min-height:96px!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main{grid-column:2!important;grid-row:1!important;grid-template-rows:auto auto 5px auto auto!important}
 body:has(.case-progress-row) .case-progress-row .list-case-main>b{font-size:12px!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
 body:has(.case-progress-row) .case-progress-metrics{margin-top:10px!important}
 body:has(.case-progress-row) .case-progress-metrics>span{padding:0 5px!important}
 body:has(.case-progress-row) .case-progress-metrics small{font-size:8px!important}
 body:has(.case-progress-row) .case-progress-metrics strong{font-size:13px!important}
 body:has(.case-progress-row) .case-progress-row .case-answer-status{font-size:9px!important}
 body:has(.case-progress-row) .case-row-actions{grid-column:2!important;grid-row:2!important;flex-direction:row!important;justify-content:flex-start!important;margin-top:0!important}
 body:has(.case-progress-row) .case-row-actions .btn{width:auto!important;min-width:96px!important;min-height:32px!important;padding:6px 9px!important}
}
@media(max-width:420px){
 body:has(.case-progress-row) .case-progress-row{grid-template-columns:54px minmax(0,1fr)!important;gap:8px!important}
 body:has(.case-progress-row) .case-progress-row .list-art{width:54px!important;height:82px!important;min-height:82px!important}
 body:has(.case-progress-row) .case-progress-metrics small{font-size:7px!important}
 body:has(.case-progress-row) .case-progress-metrics strong{font-size:11px!important}
 body:has(.case-progress-row) .case-row-actions .btn{min-width:0!important;font-size:9px!important}
}

/* FIX: Always show the submitted answer and CORRECT/INCORRECT result on completed cases. */
body:has(.case-progress-row) .case-progress-row .case-answer-result{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;
 grid-column:1/3!important;grid-row:auto!important;min-width:0!important;margin:8px 0 4px!important;
 padding:8px!important;border:1px solid #452934!important;border-radius:5px!important;background:#111e29!important
}
body:has(.case-progress-row) .case-progress-row .answer-entry,
body:has(.case-progress-row) .case-progress-row .answer-outcome{
 display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important
}
body:has(.case-progress-row) .case-progress-row .answer-entry{padding-right:7px!important;border-right:1px solid #3c2b34!important}
body:has(.case-progress-row) .case-progress-row .answer-entry small,
body:has(.case-progress-row) .case-progress-row .answer-outcome small{font-size:10px!important;color:#b5d8e1!important}
body:has(.case-progress-row) .case-progress-row .answer-entry strong{
 display:inline-block!important;width:max-content!important;max-width:100%!important;overflow-wrap:anywhere!important;
 padding:5px 8px!important;border:1px solid #6d303a!important;border-radius:4px!important;background:#38232b!important;
 color:#fff!important;font:700 12px/1.25 Arial,sans-serif!important
}
body:has(.case-progress-row) .case-progress-row .answer-outcome strong{font:700 17px/1.15 Georgia,'Times New Roman',serif!important;color:#ff5353!important}
body:has(.case-progress-row) .case-progress-row .answer-outcome.is-correct strong{color:#38d88c!important}
body:has(.case-progress-row) .case-progress-row .answer-outcome span{font-size:10px!important;line-height:1.3!important;color:#b5d8e1!important;overflow-wrap:anywhere!important}
body:has(.case-progress-row) .case-progress-row .case-answer-status{grid-column:1/3!important;grid-row:auto!important}
@media(max-width:760px){
 body:has(.case-progress-row) .case-progress-row .case-answer-result{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:5px!important;padding:6px!important;margin:6px 0 3px!important}
 body:has(.case-progress-row) .case-progress-row .answer-entry small,
 body:has(.case-progress-row) .case-progress-row .answer-outcome small{font-size:9px!important}
 body:has(.case-progress-row) .case-progress-row .answer-entry strong{font-size:10px!important;padding:4px 5px!important}
 body:has(.case-progress-row) .case-progress-row .answer-outcome strong{font-size:13px!important}
 body:has(.case-progress-row) .case-progress-row .answer-outcome span{font-size:9px!important}
}


/* Cumulative repair: left-aligned shared timer and compact Evidence Viewer thumbnails */
/* User-requested layout: keep the investigation timer anchored to the left. */
.ir-board-timer{width:fit-content!important;max-width:100%;justify-content:flex-start!important;margin-left:0!important;margin-right:auto!important;gap:16px!important;padding:10px 12px;box-sizing:border-box}
.ir-board-timer>span{margin-right:0!important;flex:0 0 auto}
.ir-board-timer>strong{flex:0 0 auto}
.ir-board-timer .ir-extend-time-btn{margin-left:0!important;flex:0 0 auto}
@media(max-width:560px){.ir-board-timer{width:100%!important;gap:8px!important;justify-content:flex-start!important;flex-wrap:wrap}.ir-board-timer>span{margin-right:4px!important}.ir-board-timer>strong{margin-right:auto}}


/* Evidence Viewer repair: compact horizontal thumbnail strip and clear image hierarchy */
.ev-viewer{
  display:flex !important; flex-direction:column !important; gap:10px !important;
  width:100% !important; max-width:1200px !important; margin:12px 0 !important;
  padding:10px !important; box-sizing:border-box !important;
}
.ev-viewer .ev-thumbnails{
  display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
  align-items:stretch !important; gap:8px !important; width:100% !important;
  overflow-x:auto !important; overflow-y:hidden !important; padding:0 0 3px !important;
  scrollbar-width:thin;
}
.ev-viewer .ev-thumbnails a{
  display:block !important; flex:0 0 96px !important; width:96px !important;
  height:62px !important; min-width:96px !important; box-sizing:border-box !important;
  overflow:hidden !important; border:1px solid #214956 !important; border-radius:4px !important;
}
.ev-viewer .ev-thumbnails a.active{border:2px solid #f1ca5d !important;}
.ev-viewer .ev-thumbnails img{display:block !important; width:100% !important; height:100% !important; object-fit:cover !important;}
.ev-viewer .ev-main{display:flex !important; flex-direction:column !important; gap:8px !important; width:100% !important; min-width:0 !important;}
.ev-viewer .ev-caption{order:0 !important; margin:0 !important; padding:0 2px 4px !important;}
.ev-viewer .ev-caption .eyebrow{display:block !important; margin-bottom:4px !important;}
.ev-viewer .ev-caption h2{margin:0 0 4px !important; font-size:clamp(18px,2vw,25px) !important; line-height:1.2 !important;}
.ev-viewer .ev-caption p{margin:0 !important; line-height:1.5 !important; font-size:12px !important; overflow-wrap:anywhere !important;}
.ev-viewer .ev-image-wrap{order:1 !important; position:relative !important; width:100% !important; min-width:0 !important; margin:0 !important;}
.ev-viewer .ev-image-wrap>img{display:block !important; width:100% !important; max-height:560px !important; height:auto !important; object-fit:contain !important; object-position:center !important; border-radius:3px !important;}
.ev-viewer .ev-image-controls{position:absolute !important; left:8px !important; right:8px !important; top:50% !important; display:flex !important; justify-content:space-between !important; transform:translateY(-50%) !important; pointer-events:none !important;}
.ev-viewer .ev-image-controls a{pointer-events:auto !important;}
@media(max-width:600px){
 .ev-viewer{padding:7px !important; gap:8px !important;}
 .ev-viewer .ev-thumbnails{gap:6px !important;}
 .ev-viewer .ev-thumbnails a{flex-basis:76px !important; width:76px !important; min-width:76px !important; height:50px !important;}
 .ev-viewer .ev-caption h2{font-size:19px !important;}
 .ev-viewer .ev-caption p{font-size:11px !important;}
 .ev-viewer .ev-image-wrap>img{max-height:420px !important;}
}

/* MERGED PAGE FIXES: Profile & Wallet, Leaderboard; existing My Cases/Timer/Evidence layers retained */
/* Profile & Settings — reference-inspired player profile layout */
.profile-reference{max-width:1180px;margin:0 auto 20px;display:grid;gap:14px}.profile-overview{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:20px;align-items:center;padding:20px 24px;background:linear-gradient(115deg,#0c2933,#071923 72%);border-color:#284c57}.profile-avatar-large{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,#f8df9a,#b38b42 65%,#705124);border:3px solid #d7b35b;color:#14232b;font:800 34px Georgia,serif;box-shadow:0 0 0 5px #d5b45a12}.profile-identity{min-width:0}.profile-identity .eyebrow{font-size:9px;margin-bottom:4px}.profile-identity h2{font:700 clamp(25px,3vw,36px)/1.12 Georgia,'Times New Roman',serif;margin:0 0 5px;color:#f7f1e5}.profile-level{margin:0 0 8px;color:#eac45e;font-size:12px;font-weight:700}.profile-identity>small{display:block;color:#a9c0c6;font-size:10px;margin-top:5px}.profile-xp{height:8px;max-width:330px;border-radius:8px;background:#142f38;border:1px solid #31505a;overflow:hidden}.profile-xp span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#00e7ad,#28d8a2);box-shadow:0 0 10px #00e7ad44}.profile-edit-link{white-space:nowrap;min-width:130px}.profile-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-mini-stats .panel{padding:13px 16px;border-radius:5px}.profile-mini-stats span{display:block;font-size:10px;color:#afc1c6}.profile-mini-stats strong{display:block;font:700 23px Georgia,serif;color:#f0c85c;margin-top:3px}.profile-wallet-balance-mini{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.profile-wallet-add-amount{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:3px;padding:7px 12px;border:1px solid #b99138;border-radius:7px;background:linear-gradient(135deg,#f4cf6b,#dcae3e);color:#17242a;font-size:11px;font-weight:800;text-decoration:none;transition:filter .18s,transform .18s}.profile-wallet-add-amount:hover{filter:brightness(1.08);transform:translateY(-1px)}.profile-wallet-add-amount:focus-visible{outline:2px solid #fff;outline-offset:3px}.profile-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #31505a;background:#061923}.profile-tabs button{appearance:none;border:0;border-bottom:3px solid transparent;background:transparent;color:#c4d1d4;padding:14px 8px;font-size:12px;font-weight:700;cursor:pointer}.profile-tabs button:hover,.profile-tabs button.active{color:#f3ce68;border-bottom-color:#f3ce68;background:linear-gradient(0deg,#eac45e0c,transparent)}.profile-tab-panel{padding:20px 24px;border-radius:5px}.profile-tab-panel[hidden]{display:none!important}.profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid #294751}.profile-section-heading h2,.profile-tab-panel>h2{font:700 21px Georgia,'Times New Roman',serif;margin:0;color:#f6f0e4}.profile-section-heading .btn{font-size:10px;padding:8px 12px}.profile-info-list{margin:0}.profile-info-list>div{display:grid;grid-template-columns:minmax(130px,.55fr) minmax(0,1.45fr);gap:16px;padding:12px 10px;border-bottom:1px solid #1e3b45;font-size:12px}.profile-info-list>div:nth-child(odd){background:#0a2029}.profile-info-list dt{color:#aebfc3}.profile-info-list dd{margin:0;color:#f2f0e8;font-weight:600;overflow-wrap:anywhere}.profile-edit-form{display:none;margin-top:18px;padding:18px;border:1px solid #2b4d57;border-radius:5px;background:#061923}.profile-edit-form.is-open{display:block}.profile-edit-form h3{font:700 17px Georgia,serif;margin:0 0 8px}.profile-edit-form input{background:#04171e;color:#f5f3ec;border-color:#31535e}.profile-edit-form .btn{margin-top:14px;min-width:150px}.profile-setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid #24434d}.profile-setting-row b,.profile-setting-row small{display:block}.profile-setting-row b{font-size:12px}.profile-setting-row small{font-size:10px;color:#a9bdc2;margin-top:4px}.profile-status-pill{white-space:nowrap;color:#eac45e;border:1px solid #6c5b35;border-radius:3px;padding:5px 8px;font-size:9px;font-weight:800}.profile-signout{margin-top:18px}
@media(max-width:650px){.profile-overview{grid-template-columns:76px minmax(0,1fr);gap:13px;padding:15px}.profile-avatar-large{width:72px;height:72px;font-size:24px}.profile-identity h2{font-size:24px}.profile-edit-link{grid-column:1/-1;width:100%}.profile-mini-stats{gap:7px}.profile-mini-stats .panel{padding:10px}.profile-mini-stats strong{font-size:18px}.profile-mini-stats span{font-size:9px}.profile-tabs button{font-size:10px;padding:12px 3px}.profile-tab-panel{padding:15px 12px}.profile-info-list>div{grid-template-columns:100px minmax(0,1fr);gap:9px;padding:10px 7px;font-size:11px}.profile-section-heading h2,.profile-tab-panel>h2{font-size:18px}.profile-setting-row{align-items:flex-start}}


/* Wallet & Rewards tab added to Profile & Settings; existing profile layout preserved. */
/* Profile page: wallet and rewards section */
.profile-wallet-layout{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.5fr);gap:16px;align-items:start}
.profile-wallet-section{min-width:0}
.profile-wallet-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.profile-wallet-top>div{margin-right:auto;min-width:115px}
.profile-wallet-top small{display:block;color:var(--m);font-size:11px}
.profile-wallet-top strong{display:block;color:var(--gold,var(--g));font-size:25px;font-weight:900}
.profile-wallet-top .btn{font-size:10px;padding:10px}
.profile-transactions{padding:14px}
.profile-transactions .section-head{margin-bottom:8px}
.profile-transactions .section-head h3{font:800 18px 'Barlow Condensed',sans-serif;margin:0}
.transaction-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 90px;gap:12px;align-items:center;padding:10px 4px;border-bottom:1px solid #344b55;font-size:11px}
.transaction-head{color:var(--m);font-size:10px;font-weight:800}
.transaction-row b,.transaction-row time{text-align:right;white-space:nowrap}
.transaction-row .credit{color:#20d6a0}
.transaction-row .debit{color:#ff5968}
.transaction-row time{color:var(--m)}
.profile-transactions .muted{font-size:10px;margin:12px 0 0}
.profile-wallet-layout{grid-template-columns:1fr}
.profile-wallet-top>div{width:100%;margin-bottom:5px}
.transaction-row{grid-template-columns:minmax(0,1fr) 90px 70px;gap:7px;font-size:10px}
.profile-wallet-tab .section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.profile-wallet-tab .section-head h2,.profile-wallet-tab .section-head h3{margin:0}
.profile-wallet-tab .section-head a{color:var(--gold,#f4c64e);text-decoration:none}
.profile-wallet-tab .profile-wallet-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px;margin-bottom:16px}
.profile-wallet-tab .profile-wallet-balance{display:flex;flex-direction:column;gap:4px;min-width:150px;margin-right:auto}
.profile-wallet-tab .profile-wallet-balance small{color:var(--muted,#a7bdc6)}
.profile-wallet-tab .profile-wallet-balance strong{font-size:1.6rem;color:var(--gold,#f4c64e)}
.profile-wallet-tab .profile-transactions{padding:16px}
.profile-wallet-tab .transaction-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 100px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line,#20444f)}
.profile-wallet-tab .transaction-head{font-size:.8rem;color:var(--muted,#a7bdc6);font-weight:700}
.profile-wallet-tab .credit{color:#24d6a1}.profile-wallet-tab .debit{color:#ff6979}
.profile-wallet-tab .muted{color:var(--muted,#a7bdc6);font-size:.85rem}
@media(max-width:700px){.profile-wallet-tab .profile-wallet-top{align-items:stretch}.profile-wallet-tab .profile-wallet-top .btn{width:100%}.profile-wallet-tab .transaction-row{grid-template-columns:minmax(0,1fr) 85px 65px;font-size:.8rem}}


/* Final responsive profile settings + wallet/rewards polish */
.profile-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.profile-tabs button{min-width:0;white-space:normal}
.profile-wallet-tab .profile-wallet-top{background:linear-gradient(120deg,#0b2932,#071820);border:1px solid #284c57}
.profile-wallet-tab .profile-wallet-balance{padding:4px 0}
.profile-wallet-tab .profile-wallet-balance strong{font-family:Georgia,'Times New Roman',serif}
@media(max-width:650px){.profile-tabs{display:flex;overflow-x:auto;scrollbar-width:thin}.profile-tabs button{flex:0 0 auto;min-width:max-content;padding:12px 13px}.profile-wallet-tab .section-head{align-items:flex-start;flex-wrap:wrap}.profile-wallet-tab .transaction-row{grid-template-columns:minmax(0,1fr) 72px 60px;gap:5px}.profile-wallet-tab .profile-wallet-top .btn{width:100%;text-align:center}}

/* CASE ROOM leaderboard — compact reference-inspired rankings layout */
.leaderboard-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:0;width:min(100%,760px);margin:18px 0 0;border-bottom:1px solid #24434d}
.leaderboard-tabs a{display:flex;justify-content:center;align-items:center;min-height:42px;padding:10px 14px;color:#b7cbd0;text-decoration:none;text-align:center;font-size:12px;font-weight:800;letter-spacing:.2px;border-bottom:3px solid transparent;transition:color .18s ease,border-color .18s ease,background .18s ease}
.leaderboard-tabs a:hover{color:#fff;background:rgba(255,255,255,.025)}
.leaderboard-tabs a.active{color:#f7ca52;border-bottom-color:#f7ca52}
.leaderboard-panel{width:100%;margin:0 0 22px;padding:14px 16px 10px;overflow:hidden;border:1px solid #244954;border-radius:5px;background:#061a22;box-shadow:0 5px 18px rgba(0,0,0,.12)}
.leaderboard-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 8px;color:#dce8eb;font-size:12px}
.leaderboard-note strong{font-size:13px;font-weight:900;color:#f4f7f8}
.leaderboard-note span{color:#b8cbd0;font-size:11px}
.leaderboard-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:12px}
.leaderboard-table thead th{padding:11px 12px;color:#f5c84f;text-align:left;text-transform:uppercase;font-size:9px;letter-spacing:.45px;font-weight:900;border-bottom:1px solid #284650;white-space:nowrap}
.leaderboard-table tbody td{padding:9px 12px;color:#e5eef0;border-bottom:1px solid rgba(57,87,97,.65);vertical-align:middle}
.leaderboard-table tbody tr:last-child td{border-bottom:0}
.leaderboard-table tbody tr:hover{background:rgba(255,255,255,.025)}
.leaderboard-table th:first-child,.leaderboard-table td:first-child{width:64px}
.leaderboard-table th:nth-child(2),.leaderboard-table td:nth-child(2){width:38%}
.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3){width:30%}
.leaderboard-rank{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;font-size:11px;font-weight:900;color:#d9e7e9}
.leaderboard-rank.negative{color:#ff6875}
.leaderboard-player{display:inline-flex;align-items:center;gap:9px;min-width:0}
.leaderboard-avatar{display:inline-flex;flex:0 0 28px;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid #6d8c96;border-radius:50%;background:linear-gradient(145deg,#23424d,#0a2029);color:#f4d477;font-size:11px;font-weight:900;box-shadow:inset 0 0 0 2px rgba(255,255,255,.035)}
.leaderboard-player strong{overflow-wrap:anywhere;font-size:11px;font-weight:800;color:#f0f5f6}
.leaderboard-score{font-size:12px;font-weight:900;color:#f2f7f8;font-variant-numeric:tabular-nums;white-space:nowrap}
.leaderboard-score.negative{color:#ff6875}
.leaderboard-empty{text-align:center!important;color:#a9c0c6!important;padding:24px 10px!important}
@media(min-width:900px){.leaderboard-panel{padding:14px 20px 10px}.leaderboard-table tbody td{padding-top:10px;padding-bottom:10px}}
@media(max-width:650px){.leaderboard-tabs{width:100%;margin-top:14px}.leaderboard-tabs a{min-height:40px;padding:9px 6px;font-size:11px}.leaderboard-panel{padding:10px 9px 7px;margin-bottom:16px}.leaderboard-note{align-items:flex-start;gap:5px;margin-bottom:6px}.leaderboard-note strong{font-size:12px}.leaderboard-note span{font-size:10px;line-height:1.45}.leaderboard-table{font-size:10px}.leaderboard-table thead th{padding:9px 5px;font-size:8px;letter-spacing:.15px;white-space:normal}.leaderboard-table tbody td{padding:8px 5px;font-size:10px}.leaderboard-table th:first-child,.leaderboard-table td:first-child{width:38px}.leaderboard-table th:nth-child(2),.leaderboard-table td:nth-child(2){width:43%}.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3){width:27%}.leaderboard-player{gap:6px}.leaderboard-avatar{width:24px;height:24px;flex-basis:24px;font-size:9px}.leaderboard-player strong{font-size:10px}.leaderboard-score{font-size:10px}.leaderboard-rank{font-size:10px;min-width:18px}}
@media(max-width:380px){.leaderboard-panel{padding-left:6px;padding-right:6px}.leaderboard-table thead th,.leaderboard-table tbody td{padding-left:4px;padding-right:4px}.leaderboard-avatar{width:21px;height:21px;flex-basis:21px}.leaderboard-player{gap:4px}}

/* Functional cinematic Live Contest Room — reference-aligned layout */
.live-room-ref{display:flex;flex-direction:column;gap:12px;max-width:1500px;margin:0 auto;color:#f4f7f8}
.live-room-top{position:relative;isolation:isolate;overflow:hidden;min-height:235px;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:20px;align-items:center;padding:26px 28px;border:1px solid #087c91;border-radius:10px;background:linear-gradient(90deg,#03121bed 0%,#03121bdc 42%,#03121b88 100%),radial-gradient(ellipse at 78% 20%,#c58b4b 0,transparent 34%),linear-gradient(135deg,#103c49,#04151c 65%,#342b20)}
.live-room-hero-image{position:absolute;z-index:-1;inset:0 0 0 auto;width:58%;height:100%;object-fit:cover;object-position:center;opacity:.8;mask-image:linear-gradient(90deg,transparent 0%,#000 40%)}
.live-room-top>div:first-child{position:relative;z-index:1;max-width:720px}.live-room-top h1{font-family:Georgia,serif;font-size:clamp(28px,3.4vw,46px);line-height:1.1;margin:8px 0 12px;color:#fff}.live-room-meta{display:flex;flex-wrap:wrap;gap:8px 15px;margin-bottom:13px;color:#c7dbe0;font-size:12px}.live-room-description{max-width:720px;font-size:13px;line-height:1.65;color:#e3edef}.live-room-countdown{position:relative;z-index:1;justify-self:end;align-self:start;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:185px;padding:16px;border:1px solid #00b8d5;border-radius:10px;background:#03141beF;box-shadow:0 8px 30px #0008}.live-room-countdown small{font-size:10px;letter-spacing:1px;font-weight:800;color:#e6d17a}.live-room-countdown strong{font-size:clamp(30px,3.5vw,44px);font-variant-numeric:tabular-nums;line-height:1.1;color:#ffd95b}.live-room-countdown strong.expired{color:#ff6470}
.live-room-section{border:1px solid #08748a;border-radius:8px;padding:13px 15px;background:linear-gradient(145deg,#061d27,#04131b);min-width:0}.live-room-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}.live-room-section-head h2{margin:0;font:700 clamp(18px,2vw,25px) Georgia,serif;color:#f7f4ed}.live-room-section-head>span{font-size:11px;color:#c0d4d9;text-align:right}.live-room-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.live-room-evidence-card{min-width:0;overflow:hidden;border:1px solid #0a6678;border-radius:7px;background:#03151e}.live-room-evidence-card>img,.live-room-evidence-placeholder{display:block;width:100%;height:115px;object-fit:cover;background:linear-gradient(135deg,#17434d,#071a22);border-bottom:1px solid #155568}.live-room-evidence-placeholder{display:grid;place-items:center;font-size:42px;color:#f4cd58}.live-room-evidence-body{padding:10px 11px}.live-room-evidence-body h3{font:700 16px Georgia,serif;margin:0 0 5px;color:#fff}.live-room-evidence-body small{color:#f4d65e;font-size:9px;letter-spacing:1px;text-transform:uppercase}.live-room-evidence-body p{margin:7px 0 0;color:#d1e0e3;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.live-room-suspects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.live-room-suspect{display:flex;align-items:center;gap:12px;min-width:0;padding:8px;border:1px solid #08687c;border-radius:7px;background:#03151e}.live-room-suspect>img,.live-room-suspect-avatar{width:95px;height:74px;flex:0 0 95px;object-fit:cover;border-radius:5px;background:linear-gradient(135deg,#173843,#08171e);display:grid;place-items:center;color:#f5d75b;font-size:30px}.live-room-suspect h3{margin:0 0 4px;font:700 17px Georgia,serif}.live-room-suspect small{font-size:9px;letter-spacing:.8px;color:#f4d45b}.live-room-suspect p{margin:5px 0 0;font-size:11px;line-height:1.4;color:#c7dadd}
.live-room-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch}.live-room-hints{display:flex;flex-direction:column;gap:7px}.live-room-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #0a6375;border-radius:7px;background:#041820}.live-room-hint>div{min-width:0}.live-room-hint b{font-size:12px;color:#f5d45d}.live-room-hint p{font-size:11px;line-height:1.45;margin:4px 0 0;color:#d6e5e8}.live-room-hint form{flex-shrink:0}.live-room-unlocked,.live-room-locked{font-size:9px;letter-spacing:.7px;font-weight:800;color:#69e4c9;white-space:nowrap}.live-room-locked{color:#8ea3a9}.live-room-extension form{display:flex;flex-direction:column;gap:8px}.live-room-extension label{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #08768b;border-radius:7px;background:#041820;cursor:pointer}.live-room-extension label>span{display:flex;flex-direction:column;gap:3px;flex:1}.live-room-extension label b{font-size:12px}.live-room-extension label small{font-size:10px;color:#b9cdd2}.live-room-extension label strong{font-size:11px;color:#f7d65c;white-space:nowrap}.live-room-extension input[type=radio]{accent-color:#00d4cb}.live-room-extension button{margin-top:2px}.live-room-submit .live-room-answer-form{display:flex;flex-direction:column;gap:7px}.live-room-answer-form select{width:100%;min-height:44px;border:1px solid #b7c9cf;border-radius:5px;background:#f8fbfc;color:#11252b;padding:10px 12px;font-size:14px}.live-room-ref .btn.gold{background:linear-gradient(90deg,#f8d778,#dba941);color:#07151a;border:1px solid #ffdf7b;font-weight:800}.live-room-ref .btn.full{width:100%;justify-content:center}.live-room-submitted{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;border:1px solid #0c8b72;background:#052a28;border-radius:6px;color:#eafff9}.live-room-submitted strong{color:#6df0c8}.live-room-footnote{margin:0;color:#8da7ad;font-size:10px;line-height:1.5}.live-room-ref button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:850px){.live-room-top{grid-template-columns:minmax(0,1fr) 165px;padding:18px}.live-room-countdown{min-width:150px;padding:12px}.live-room-tools{grid-template-columns:1fr}.live-room-evidence{grid-template-columns:repeat(2,minmax(0,1fr))}.live-room-section-head{align-items:flex-start;flex-direction:column}.live-room-section-head>span{text-align:left}}
@media(max-width:560px){.live-room-top{grid-template-columns:1fr;min-height:0;padding:16px}.live-room-hero-image{width:100%;opacity:.3;mask-image:linear-gradient(180deg,#000,transparent 100%)}.live-room-countdown{justify-self:start;min-width:150px}.live-room-top h1{font-size:29px}.live-room-evidence,.live-room-suspects{grid-template-columns:1fr}.live-room-suspect>img,.live-room-suspect-avatar{width:76px;height:70px;flex-basis:76px}.live-room-section{padding:10px}.live-room-hint{align-items:flex-start;flex-wrap:wrap}.live-room-hint form{margin-left:auto}.live-room-extension label{align-items:flex-start}.live-room-extension label strong{font-size:10px}}

/* Reference-matched full-width Live Contest Room */
.page-live .topbar{display:none!important}
.page-live main.wrap{max-width:1540px;padding:0 clamp(12px,3.9vw,60px) 28px;margin:0 auto}
.page-live .live-room-ref{max-width:none;gap:10px;font-size:14px}
.live-room-brandbar{min-height:62px;display:flex;align-items:center;gap:26px;padding:8px 12px 8px 6px;background:linear-gradient(90deg,#02151d,#031019);border-bottom:1px solid #08748a;margin:0 0 0;}
.live-room-brand{display:flex;align-items:center;gap:10px;min-width:240px}
.live-room-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;color:#e9f7fb;font-size:28px;background:linear-gradient(145deg,#123f4c,#020c12);border:1px solid #14788a}
.live-room-brand strong{display:block;font:900 24px/1 Arial,sans-serif;letter-spacing:1px;color:#f7fbff}
.live-room-brand small{display:block;margin-top:4px;font:800 9px/1 Arial,sans-serif;letter-spacing:1.5px;color:#c7d9df}
.live-room-case-pill{display:inline-flex;align-items:center;gap:10px;border:1px solid #008da8;border-radius:11px;padding:11px 16px;font-weight:800;font-size:14px;white-space:nowrap}
.live-room-case-pill i,.live-room-brand-actions span i{display:inline-block;width:13px;height:13px;border-radius:50%;background:#00e6cf;box-shadow:0 0 12px #00e6cf55}
.live-room-brand-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.live-room-brand-actions a,.live-room-brand-actions>span{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #087d93;border-radius:9px;padding:0 16px;font-size:12px;font-weight:900;white-space:nowrap}
.live-room-brand-actions>span{background:#c81020;border-color:#ff2538;color:#fff}
.live-room-brand-actions>span i{background:#ff273b;box-shadow:none}
.live-room-top{z-index:0;min-height:240px;grid-template-columns:minmax(0,1fr) 238px;padding:28px 34px;border-radius:10px;background:linear-gradient(90deg,rgba(1,13,20,.98) 0%,rgba(1,13,20,.91) 39%,rgba(1,13,20,.32) 75%,rgba(1,13,20,.22) 100%),radial-gradient(ellipse at 78% 15%,#d89d4e 0,transparent 30%),linear-gradient(135deg,#0b3843,#04151c 65%,#35281c)}
.live-room-hero-image{z-index:0;width:63%;opacity:.92;mask-image:linear-gradient(90deg,transparent 0%,#000 28%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 28%)}
.live-room-top>div:first-child,.live-room-countdown{z-index:2}
.live-room-top .eyebrow{font-size:13px;letter-spacing:3px;color:#00e7db}
.live-room-top h1{max-width:760px;font-size:clamp(34px,3.1vw,54px);line-height:1.02;margin:10px 0 14px;letter-spacing:-.6px}
.live-room-meta{font-size:13px;gap:8px 18px;margin-bottom:13px}
.live-room-description{font-size:14px;line-height:1.5;max-width:750px}
.live-room-countdown{min-width:220px;padding:17px 18px;align-self:start;margin-top:0}
.live-room-countdown small{font-size:11px;letter-spacing:1.2px}
.live-room-countdown strong{font-size:clamp(38px,3.5vw,54px)}
.live-room-section{padding:14px 16px;border-radius:9px}
.live-room-section-head{margin-bottom:12px}
.live-room-section-head h2{font-size:clamp(21px,2vw,29px)}
.live-room-section-head>span{font-size:12px}
.live-room-evidence{gap:16px}
.live-room-evidence-card{border-radius:9px}
.live-room-evidence-image-wrap{height:120px;overflow:hidden;background:#061a22}
.live-room-evidence-card>img,.live-room-evidence-image-wrap>img{width:100%;height:100%;object-fit:cover;display:block;border-bottom:1px solid #155568;transition:transform .25s}
.live-room-evidence-card:hover .live-room-evidence-image-wrap>img{transform:scale(1.035)}
.live-room-evidence-body{padding:11px 12px 13px}
.live-room-evidence-body h3{font-size:18px}
.live-room-evidence-body small{font-size:10px}
.live-room-evidence-body p{font-size:12px;line-height:1.5}
.live-room-suspects{gap:14px}
.live-room-suspect{min-height:90px;padding:8px;border-radius:9px;gap:16px}
.live-room-suspect>img,.live-room-suspect-avatar{width:150px;height:80px;flex:0 0 150px;border-radius:6px}
.live-room-suspect h3{font-size:20px}
.live-room-suspect small{font-size:10px}
.live-room-suspect p{font-size:12px}
.live-room-tools{gap:14px}
.live-room-hint{padding:10px 12px}
.live-room-hint b{font-size:14px}
.live-room-hint p{font-size:12px}
.live-room-unlocked,.live-room-locked{font-size:10px}
.live-room-extension label{padding:12px 14px}
.live-room-extension label b{font-size:14px}
.live-room-extension label small{font-size:12px}
.live-room-extension label strong{font-size:13px}
.live-room-submit .live-room-section-head{margin-bottom:12px}
.live-room-submit .live-room-answer-form{gap:8px;padding:0 8px}
.live-room-answer-form select{min-height:48px;font-size:15px}
.live-room-ref .btn.gold{min-height:48px;font-size:15px;border-radius:7px}
.live-room-footnote{font-size:11px}
@media(max-width:900px){.live-room-brandbar{gap:12px;flex-wrap:wrap}.live-room-brand{min-width:190px}.live-room-brand-actions{gap:7px}.live-room-brand-actions a,.live-room-brand-actions>span{padding:0 10px;font-size:11px}.live-room-top{grid-template-columns:minmax(0,1fr) 185px;padding:22px}.live-room-countdown{min-width:170px}.live-room-evidence{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.live-room-evidence-image-wrap{height:100px}.live-room-suspect>img,.live-room-suspect-avatar{width:88px;height:76px;flex-basis:88px}}
@media(max-width:680px){.page-live main.wrap{padding:0 10px 18px}.live-room-brandbar{padding:10px 2px;gap:10px}.live-room-brand{min-width:0;flex:1}.live-room-brand strong{font-size:19px}.live-room-brand-mark{width:35px;height:35px;font-size:22px}.live-room-case-pill{font-size:10px;padding:8px 10px}.live-room-brand-actions{width:100%;margin-left:0}.live-room-brand-actions a,.live-room-brand-actions>span{flex:1;min-height:38px}.live-room-top{grid-template-columns:1fr;min-height:0;padding:20px 17px}.live-room-hero-image{width:100%;opacity:.42;mask-image:linear-gradient(180deg,#000 0%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 100%)}.live-room-countdown{justify-self:start;min-width:160px}.live-room-top h1{font-size:34px}.live-room-description{font-size:13px}.live-room-evidence{grid-template-columns:1fr}.live-room-evidence-image-wrap{height:155px}.live-room-section-head{align-items:flex-start;flex-direction:column}.live-room-section-head>span{text-align:left}.live-room-tools{grid-template-columns:1fr}.live-room-suspects{grid-template-columns:1fr}.live-room-suspect>img,.live-room-suspect-avatar{width:95px;height:78px;flex-basis:95px}.live-room-section{padding:12px}.live-room-hint{align-items:center}}

/* Live contest evidence image zoom control and lightbox */
.live-room-evidence-image-wrap{position:relative}
.live-room-image-zoom{position:absolute;right:10px;top:10px;z-index:3;width:39px;height:39px;border:1px solid #00c8e8;border-radius:50%;display:grid;place-items:center;background:rgba(1,15,24,.88);color:#fff;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 2px 10px #0008;transition:background .18s,transform .18s}
.live-room-image-zoom:hover,.live-room-image-zoom:focus-visible{background:#007f9a;transform:scale(1.07);outline:2px solid #f4d45d;outline-offset:2px}
.live-room-image-lightbox[hidden]{display:none!important}
.live-room-image-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,7,12,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px 24px;backdrop-filter:blur(5px)}
.live-room-image-lightbox>img{display:block;max-width:min(94vw,1400px);max-height:82vh;width:auto;height:auto;object-fit:contain;border:1px solid #087f96;border-radius:8px;box-shadow:0 18px 70px #000b}
.live-room-image-lightbox>p{color:#c4d8df;font-size:12px;margin:14px 0 0;text-align:center}
.live-room-lightbox-close{position:absolute;top:18px;right:24px;width:46px;height:46px;border:1px solid #12c7e6;border-radius:50%;background:#061c27;color:#fff;font-size:32px;line-height:1;cursor:pointer}
.live-room-lightbox-close:hover{background:#0a6678}
body.live-room-lightbox-open{overflow:hidden}
@media(max-width:680px){.live-room-image-zoom{width:36px;height:36px;right:8px;top:8px}.live-room-image-lightbox{padding:56px 12px 18px}.live-room-lightbox-close{right:12px;top:10px}}

/* Reference-style suspect profile arrow and functional profile viewer */
.live-room-suspect{position:relative}
.live-room-suspect-copy{flex:1;min-width:0}
.live-room-suspect-profile{display:grid;place-items:center;flex:0 0 34px;width:34px;height:44px;margin-left:auto;padding:0;border:0;background:transparent;color:#f5f0e8;cursor:pointer;border-radius:5px;transition:color .15s,background .15s}
.live-room-suspect-profile span{display:block;font:400 34px/1 Arial,sans-serif;transform:translateY(-2px)}
.live-room-suspect-profile:hover,.live-room-suspect-profile:focus-visible{color:#f2c85c;background:#0c2a35;outline:1px solid #087f96}
.live-room-profile-lightbox[hidden]{display:none!important}
.live-room-profile-lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(0,7,12,.94);backdrop-filter:blur(5px)}
.live-room-profile-content{display:flex;align-items:center;gap:22px;width:min(680px,94vw);padding:22px;border:1px solid #087f96;border-radius:10px;background:linear-gradient(145deg,#08212b,#031018);box-shadow:0 18px 70px #000b}
.live-room-profile-content>img{width:180px;height:190px;flex:0 0 180px;object-fit:cover;border:1px solid #155568;border-radius:7px;background:#06151c}
.live-room-profile-content small{color:#f2c85c;font-size:10px;letter-spacing:1.5px;font-weight:800}
.live-room-profile-content h2{margin:8px 0;color:#f5f0e8;font:700 27px Georgia,serif}
.live-room-profile-content strong{color:#f2c85c;font-size:12px}
.live-room-profile-content p{margin:12px 0 0;color:#c7dadd;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:560px){.live-room-suspect-profile{flex-basis:28px;width:28px}.live-room-profile-lightbox{padding:14px}.live-room-profile-content{flex-direction:column;align-items:flex-start;gap:14px;padding:16px;max-height:85vh;overflow:auto}.live-room-profile-content>img{width:100%;height:190px;flex-basis:auto;object-position:center 35%}.live-room-profile-content h2{font-size:23px}}

/* Compact reference-matched Hints and Extend Investigation Time panels */
.page-live .live-room-tools{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:14px;align-items:stretch}
.page-live .live-room-tools>.live-room-section{min-width:0;box-sizing:border-box;padding:14px 16px}
.page-live .live-room-tools .live-room-section-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.page-live .live-room-tools .live-room-section-head h2{font-size:clamp(20px,2vw,28px);line-height:1.15}
.page-live .live-room-tools .live-room-section-head>span{max-width:48%;font-size:11px;line-height:1.45}
.page-live .live-room-hints{display:flex;flex-direction:column;gap:6px}
.page-live .live-room-hint{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;box-sizing:border-box;padding:7px 10px;border:1px solid #08677a;border-radius:8px;background:linear-gradient(100deg,#041a23,#03151d)}
.page-live .live-room-hint:before{content:"♧";display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #d9a300;border-radius:50%;background:radial-gradient(circle,#28331d,#111d19);color:#ffdb42;font-size:25px;line-height:1;box-shadow:inset 0 0 0 3px #17251c}
.page-live .live-room-hint>div{grid-column:2;grid-row:1;min-width:0}
.page-live .live-room-hint b{display:block;font-size:13px;line-height:1.25;color:#f6d44e}
.page-live .live-room-hint p{font-size:11px;line-height:1.4;margin:3px 0 0;color:#d8e6e9;overflow-wrap:anywhere}
.page-live .live-room-hint form{grid-column:3;grid-row:1;flex-shrink:0;margin:0}
.page-live .live-room-hint form button{min-width:115px;min-height:34px;padding:7px 12px;border:1px solid #d9aa1d;border-radius:5px;background:#031820;color:#ffdb42;font-weight:800;font-size:11px;white-space:nowrap}
.page-live .live-room-unlocked,.page-live .live-room-locked{grid-column:3;grid-row:1;font-size:9px;letter-spacing:.6px;font-weight:900;white-space:nowrap}
.page-live .live-room-unlocked{color:#5be9ce}.page-live .live-room-locked{color:#8ea7b0}
.page-live .live-room-extension form{display:flex;flex-direction:column;gap:7px;min-width:0}
.page-live .live-room-extension label{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-width:0;box-sizing:border-box;margin:0;padding:9px 12px;border:1px solid #08768b;border-radius:8px;background:#041820;cursor:pointer}
.page-live .live-room-extension input[type=radio]{display:block;appearance:auto;-webkit-appearance:radio;width:16px!important;height:16px!important;min-width:16px;max-width:16px;margin:0;accent-color:#00d4cb;flex:none}
.page-live .live-room-extension label>span{display:flex;flex-direction:column;gap:3px;min-width:0;width:auto;flex:initial;overflow-wrap:anywhere}
.page-live .live-room-extension label b{font-size:13px;line-height:1.25;color:#f4f7f8}
.page-live .live-room-extension label small{font-size:11px;line-height:1.4;color:#c3d6dc}
.page-live .live-room-extension label strong{display:block;min-width:max-content;font-size:12px;line-height:1.3;color:#f7d65c;text-align:right;white-space:nowrap}
.page-live .live-room-extension button{width:100%;min-height:42px;margin-top:1px;box-sizing:border-box}
@media(max-width:850px){.page-live .live-room-tools{grid-template-columns:1fr}.page-live .live-room-tools .live-room-section-head{flex-direction:row}.page-live .live-room-tools .live-room-section-head>span{max-width:48%;text-align:right}}
@media(max-width:560px){.page-live .live-room-tools .live-room-section-head{align-items:flex-start;flex-direction:column}.page-live .live-room-tools .live-room-section-head>span{max-width:none;text-align:left}.page-live .live-room-hint{grid-template-columns:36px minmax(0,1fr);gap:8px;padding:8px}.page-live .live-room-hint:before{width:32px;height:32px;font-size:22px}.page-live .live-room-hint>div{grid-column:2;grid-row:1}.page-live .live-room-hint form,.page-live .live-room-unlocked,.page-live .live-room-locked{grid-column:2;grid-row:2;justify-self:start;margin-top:2px}.page-live .live-room-extension label{grid-template-columns:18px minmax(0,1fr);align-items:center;padding:10px}.page-live .live-room-extension label strong{grid-column:2;text-align:left;min-width:0;white-space:normal}.page-live .live-room-extension input[type=radio]{grid-column:1;grid-row:1 / span 2}}


/* Live Contest Room: restore the missing Investigation Board section */
.page-live .live-room-investigation-board{margin:12px 0;}
.live-room-board-image-wrap{position:relative;overflow:hidden;border:1px solid #0a6678;border-radius:7px;background:#03151e;text-align:center;}
.live-room-board-image-wrap img{display:block;width:100%;max-height:560px;object-fit:contain;margin:0 auto;background:#03151e;}
.live-room-board-image-fallback{display:none;margin:0;padding:14px;color:#b8cbd0;font-size:12px;}
.live-room-board-image-wrap.board-image-unavailable .live-room-board-image-fallback{display:block;}
.live-room-board-collage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.live-room-board-clue{min-width:0;overflow:hidden;border:1px solid #155568;border-radius:6px;background:linear-gradient(145deg,#08232d,#03151e);}
.live-room-board-clue-image{height:110px;position:relative;background:linear-gradient(135deg,#17434d,#071a22);overflow:hidden;}
.live-room-board-clue-image img{width:100%;height:100%;display:block;object-fit:cover;}
.live-room-board-clue-image span{position:absolute;left:8px;top:8px;padding:4px 7px;background:#03151edb;border:1px solid #0a6678;border-radius:4px;color:#f4d65e;font-size:9px;font-weight:800;letter-spacing:1px;}
.live-room-board-clue>div:last-child{padding:9px 11px 11px;}
.live-room-board-clue h3{font:700 15px Georgia,serif;color:#fff;margin:0 0 5px;}
.live-room-board-clue p{font-size:11px;line-height:1.5;color:#c9dadd;margin:0;}
@media(max-width:700px){.live-room-board-collage{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.live-room-board-clue-image{height:100px}}
@media(max-width:480px){.live-room-board-collage{grid-template-columns:1fr}.live-room-board-clue-image{height:140px}}

/* Live contest countdown: keep minute and second labels aligned with their values. */
.live-room-countdown .live-room-time-values{display:flex;align-items:flex-start;justify-content:center;gap:8px;width:100%;font-variant-numeric:tabular-nums}
.live-room-countdown .live-room-time-unit{display:flex;flex-direction:column;align-items:center;min-width:54px;gap:3px}
.live-room-countdown .live-room-time-unit strong{display:block;font-size:clamp(30px,3.2vw,46px);font-weight:900;line-height:1;color:#ffd95b;letter-spacing:1px}
.live-room-countdown .live-room-time-unit small{display:block;font-size:9px;line-height:1.2;letter-spacing:.8px;color:#e6d17a;white-space:nowrap}
.live-room-countdown .live-room-time-separator{font-size:clamp(28px,3vw,42px);font-weight:900;line-height:.95;color:#ffd95b}
.live-room-countdown .live-room-time-values.expired .live-room-time-unit strong{color:#ff6470}
@media(max-width:680px){.live-room-countdown .live-room-time-unit{min-width:48px}.live-room-countdown .live-room-time-unit strong{font-size:34px}}

/* Live contest microsecond countdown display. */
.live-room-countdown .live-room-time-values{gap:5px}
.live-room-countdown .live-room-micro-unit{min-width:72px}
.live-room-countdown .live-room-micro-unit strong{font-size:clamp(13px,1.25vw,18px);letter-spacing:.4px;line-height:1.35}
.live-room-countdown .live-room-micro-unit small{font-size:7px;letter-spacing:.35px}
.live-room-countdown .live-room-micro-separator{font-size:18px;line-height:1.2}
@media(max-width:680px){.live-room-countdown .live-room-micro-unit{min-width:62px}.live-room-countdown .live-room-micro-unit strong{font-size:14px}}

/* Contest time-extension states: used free extensions are visibly locked. */
.page-live .live-room-extension label.extension-used{opacity:.58;border-color:#536970;background:#07151a;cursor:not-allowed;filter:saturate(.55)}
.page-live .live-room-extension label.extension-used strong{color:#9aabb0;letter-spacing:.45px}
.page-live .live-room-extension label.extension-used small{color:#8fa2a8}
.page-live .live-room-extension label.extension-used input{cursor:not-allowed}
.page-live .live-room-extension label.extension-locked{opacity:.48;cursor:not-allowed}
.page-live .live-room-extension label.extension-locked input{cursor:not-allowed}
.page-live .live-room-extension button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.35)}


/* Victim profile in the live contest room */
.live-room-victim-profile{border:1px solid rgba(35,205,218,.55);border-radius:10px;padding:16px;background:rgba(4,24,31,.92)}
.live-room-victim-layout{display:grid;grid-template-columns:minmax(120px,210px) minmax(0,1fr);gap:16px;align-items:start}
.live-room-victim-photo{width:100%;max-height:270px;object-fit:cover;border-radius:8px;border:1px solid rgba(255,208,84,.45)}
.live-room-victim-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.live-room-victim-field{min-width:0;padding:10px 12px;border:1px solid rgba(50,180,195,.25);border-radius:7px;background:rgba(255,255,255,.025)}
.live-room-victim-field h3{margin:0 0 5px;font-size:12px;color:#ffd45d;text-transform:uppercase;letter-spacing:.04em}
.live-room-victim-field p{margin:0;color:#e0edf0;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
@media(max-width:650px){.live-room-victim-layout{grid-template-columns:1fr}.live-room-victim-photo{width:min(100%,220px)}.live-room-victim-fields{grid-template-columns:1fr}}

/* Victim profile layout correction: when no portrait is saved, use the full section width. */
.live-room-victim-layout.no-photo{grid-template-columns:minmax(0,1fr);width:100%;}
.live-room-victim-layout.no-photo .live-room-victim-fields{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));}
.live-room-victim-layout.no-photo .live-room-victim-field{width:100%;min-width:0;box-sizing:border-box;}
@media(max-width:650px){.live-room-victim-layout.no-photo .live-room-victim-fields{grid-template-columns:minmax(0,1fr);}}


/* Victim profile: portrait on the left, full background and details alongside it. */
body .live-room-section.live-room-victim-profile { display:block !important; width:100% !important; max-width:100% !important; box-sizing:border-box !important; }
body .live-room-victim-profile .live-room-victim-layout.has-photo { display:grid !important; grid-template-columns:minmax(180px,220px) minmax(0,1fr) !important; gap:18px !important; align-items:start !important; width:100% !important; max-width:100% !important; min-width:0 !important; box-sizing:border-box !important; }
body .live-room-victim-profile .live-room-victim-layout.no-photo { display:grid !important; grid-template-columns:minmax(0,1fr) !important; width:100% !important; max-width:100% !important; min-width:0 !important; box-sizing:border-box !important; }
body .live-room-victim-profile .live-room-victim-fields { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; align-content:start !important; gap:12px !important; width:100% !important; max-width:100% !important; min-width:0 !important; box-sizing:border-box !important; }
body .live-room-victim-profile .live-room-victim-field { display:block !important; width:100% !important; min-width:0 !important; max-width:100% !important; box-sizing:border-box !important; overflow-wrap:anywhere !important; }
body .live-room-victim-profile .live-room-victim-field-background { grid-column:1 / -1 !important; }
body .live-room-victim-profile .live-room-victim-photo { display:block !important; width:100% !important; max-width:220px !important; height:auto !important; max-height:320px !important; object-fit:cover !important; grid-column:1 !important; grid-row:1 !important; }
@media(max-width:700px){body .live-room-victim-profile .live-room-victim-layout.has-photo{grid-template-columns:minmax(0,1fr) !important;}body .live-room-victim-profile .live-room-victim-photo{width:min(100%,220px) !important;}body .live-room-victim-profile .live-room-victim-fields{grid-template-columns:minmax(0,1fr) !important;}body .live-room-victim-profile .live-room-victim-field-background{grid-column:1 !important;}}

/* Evidence card summary and full-detail modal update */
.live-room-evidence-card{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.live-room-evidence-card .live-room-evidence-image-wrap{height:150px;flex:0 0 150px;overflow:hidden;background:#061a22}
.live-room-evidence-card .live-room-evidence-image-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.live-room-evidence-card .live-room-evidence-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:7px;padding:13px 15px 15px;min-width:0}
.live-room-evidence-number{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#f4d65e;text-transform:uppercase}
.live-room-evidence-card .live-room-evidence-body h3{margin:0;font-size:18px;line-height:1.3}
.live-room-evidence-card .live-room-evidence-summary{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;margin:0;color:#d1e0e3;font-size:13px;line-height:1.5;min-height:1.5em;width:100%}
.live-room-view-evidence{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-top:5px;padding:9px 14px;border:1px solid #0a9bb5;border-radius:6px;background:#06232d;color:#f5d15b;font-size:12px;font-weight:800;cursor:pointer;transition:background .15s,border-color .15s}
.live-room-view-evidence:hover{background:#0a6678;border-color:#16c8e5;color:#fff}
.live-room-evidence-modal-content{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:24px;align-items:start;width:min(1100px,94vw);max-height:78vh;overflow:auto;padding:20px;border:1px solid #087f96;border-radius:12px;background:#041923;box-shadow:0 18px 70px #000b}
.live-room-evidence-modal-content>img{display:block;width:100%;max-height:65vh;object-fit:contain;background:#021018;border-radius:7px}
.live-room-evidence-modal-copy{color:#e4eef0;padding:6px 8px 12px 0}
.live-room-evidence-modal-copy small{color:#f4d65e;font-size:11px;font-weight:800;letter-spacing:1.4px}
.live-room-evidence-modal-copy h2{margin:10px 0 14px;color:#fff;font:700 clamp(22px,3vw,32px)/1.2 Georgia,serif}
.live-room-evidence-modal-copy p{margin:0;color:#d1e0e3;font-size:15px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.live-room-lightbox-help{color:#c4d8df;font-size:12px;margin:12px 0 0;text-align:center}
@media(max-width:700px){.live-room-evidence-modal-content{grid-template-columns:1fr;gap:14px;padding:14px;max-height:82vh}.live-room-evidence-modal-content>img{max-height:38vh}.live-room-evidence-modal-copy h2{font-size:23px}}

/* Evidence detail modal interaction safety fix */
.live-room-image-lightbox[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
.live-room-image-lightbox:not([hidden]){display:flex!important;visibility:visible!important;pointer-events:auto!important}
.live-room-evidence-modal-content{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1fr);gap:24px;align-items:center;width:min(1100px,94vw);max-height:82vh;overflow:auto;padding:22px;background:#041923;border:1px solid #087f96;border-radius:12px}
.live-room-evidence-modal-content>img{display:block;width:100%;max-height:68vh;object-fit:contain;border-radius:8px}
.live-room-evidence-modal-copy{color:#eaf4f6}.live-room-evidence-modal-copy h2{font:700 clamp(22px,3vw,34px) Georgia,serif;color:#fff;margin:8px 0 14px}.live-room-evidence-modal-copy p{font-size:15px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}.live-room-lightbox-close{position:absolute;right:24px;top:16px;z-index:2;width:42px;height:42px;border:1px solid #0a9bb5;border-radius:50%;background:#041923;color:#fff;font-size:28px;cursor:pointer}
@media(max-width:700px){.live-room-evidence-modal-content{grid-template-columns:1fr;gap:14px;padding:14px;max-height:88vh}.live-room-evidence-modal-content>img{max-height:42vh}}

/* Numbered suspect cards and profile modal layout */
.live-room-suspects{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
.live-room-suspect{position:relative!important;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:14px!important;align-items:start!important;min-width:0!important;padding:14px 16px!important;border:1px solid rgba(0,190,210,.48)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(5,29,37,.98),rgba(4,19,27,.98))!important;box-sizing:border-box!important}
.live-room-suspect>img{display:block!important;width:112px!important;height:126px!important;object-fit:cover!important;border-radius:9px!important;background:#061820!important}
.live-room-suspect-copy{min-width:0!important;overflow:hidden!important}
.live-room-suspect-number{display:inline-flex!important;margin:0 0 7px!important;padding:4px 8px!important;border-radius:5px!important;background:rgba(255,199,65,.13)!important;color:#ffd15b!important;font-size:11px!important;font-weight:800!important;letter-spacing:1.2px!important}
.live-room-suspect-copy h3{margin:0 0 5px!important;font-size:clamp(18px,1.5vw,24px)!important;line-height:1.2!important;color:#fff!important}
.live-room-suspect-copy small{display:block!important;margin-bottom:7px!important;color:#ffd15b!important;font-size:12px!important}
.live-room-suspect-copy p{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;margin:0 0 12px!important;line-height:1.5!important;color:#d6e5ea!important}
.live-room-suspect-profile{display:inline-flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;grid-column:2!important;width:max-content!important;max-width:100%!important;margin:0!important;padding:9px 13px!important;border:1px solid #00bfd2!important;border-radius:8px!important;background:rgba(0,190,210,.08)!important;color:#ffd15b!important;font-weight:800!important;cursor:pointer!important}
.live-room-suspect-profile:hover{background:rgba(0,190,210,.18)!important;transform:translateY(-1px)!important}
.live-room-suspect-profile span{font-size:12px!important}.live-room-suspect-profile b{font-size:18px!important;line-height:1!important}
.live-room-profile-lightbox[hidden]{display:none!important}.live-room-profile-lightbox{position:fixed!important;inset:0!important;z-index:999999!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:22px!important;background:rgba(0,7,12,.86)!important;backdrop-filter:blur(7px)!important}
.live-room-profile-content{display:grid!important;grid-template-columns:minmax(180px,280px) minmax(0,1fr)!important;gap:24px!important;width:min(850px,96vw)!important;max-height:85vh!important;overflow:auto!important;padding:24px!important;border:1px solid #00bfd2!important;border-radius:16px!important;background:#061a22!important;box-shadow:0 24px 80px rgba(0,0,0,.55)!important;color:#eefaff!important}
.live-room-profile-content>img{width:100%!important;max-height:420px!important;object-fit:cover!important;border-radius:10px!important;background:#031219!important}
.live-room-profile-content h2{margin:8px 0!important;font-size:clamp(24px,3vw,34px)!important;color:#fff!important}.live-room-profile-content strong{display:block!important;margin-bottom:14px!important;color:#ffd15b!important}.live-room-profile-content p{white-space:pre-line!important;line-height:1.7!important;color:#dcebf0!important}
@media(max-width:760px){.live-room-suspects{grid-template-columns:minmax(0,1fr)!important}.live-room-suspect{grid-template-columns:82px minmax(0,1fr)!important;padding:11px!important;gap:11px!important}.live-room-suspect>img{width:82px!important;height:100px!important}.live-room-suspect-profile{grid-column:2!important}.live-room-profile-content{grid-template-columns:minmax(0,1fr)!important;padding:16px!important}.live-room-profile-content>img{max-height:250px!important;width:auto!important;max-width:100%!important;margin:auto!important}}

/* FINAL FIX: keep suspect profile modal content side-by-side and use full modal width */
body .live-room-profile-lightbox:not([hidden]){display:flex!important;align-items:center!important;justify-content:center!important}
body .live-room-profile-lightbox .live-room-profile-content{display:grid!important;grid-template-columns:minmax(220px,32%) minmax(0,1fr)!important;align-items:start!important;column-gap:26px!important;row-gap:18px!important;width:min(1120px,96vw)!important;max-width:1120px!important;min-width:0!important;box-sizing:border-box!important;max-height:88vh!important;overflow-y:auto!important;overflow-x:hidden!important}
body .live-room-profile-lightbox .live-room-profile-content>img{display:block!important;grid-column:1!important;grid-row:1!important;width:100%!important;height:360px!important;max-height:70vh!important;min-width:0!important;object-fit:cover!important;align-self:start!important}
body .live-room-profile-lightbox .live-room-profile-details{display:block!important;grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}
body .live-room-profile-lightbox .live-room-profile-details h2{overflow-wrap:anywhere!important}
body .live-room-profile-lightbox .live-room-profile-extra{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin-top:16px!important;align-items:start!important}
body .live-room-profile-lightbox .live-room-profile-extra>div{min-width:0!important;max-width:none!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
@media(max-width:680px){body .live-room-profile-lightbox .live-room-profile-content{grid-template-columns:minmax(0,1fr)!important;width:min(96vw,560px)!important;padding:16px!important;gap:14px!important}body .live-room-profile-lightbox .live-room-profile-content>img{grid-column:1!important;grid-row:auto!important;width:min(100%,280px)!important;height:220px!important;margin:0 auto!important}body .live-room-profile-lightbox .live-room-profile-details{grid-column:1!important;grid-row:auto!important}body .live-room-profile-lightbox .live-room-profile-extra{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){body .live-room-profile-lightbox .live-room-profile-extra{grid-template-columns:minmax(0,1fr)!important}}

/* Victim profile summary card and full-details modal */
.live-room-victim-summary{display:grid;grid-template-columns:minmax(130px,190px) minmax(0,1fr);gap:20px;align-items:center;padding:16px;border:1px solid rgba(35,205,218,.38);border-radius:10px;background:linear-gradient(135deg,rgba(9,35,43,.98),rgba(4,22,29,.98));}
.live-room-victim-summary-photo{display:block;width:100%;height:190px;object-fit:cover;object-position:center 30%;border-radius:8px;border:1px solid rgba(255,208,84,.5);}
.live-room-victim-summary-copy{min-width:0;}
.live-room-victim-summary-copy>small,.live-room-victim-modal-copy>small{display:block;color:#ffd45d;font-size:11px;font-weight:800;letter-spacing:.14em;margin-bottom:7px;}
.live-room-victim-summary-copy h3{margin:0 0 12px;font-size:clamp(22px,3vw,30px);line-height:1.15;color:#fff8e8;}
.live-room-victim-summary-meta{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;}
.live-room-victim-summary-meta span{display:flex;flex-direction:column;gap:4px;min-width:100px;padding:9px 12px;border:1px solid rgba(35,205,218,.28);border-radius:7px;background:rgba(255,255,255,.025);color:#edf6f7;font-size:13px;}
.live-room-victim-summary-meta b{font-size:10px;letter-spacing:.08em;color:#ffd45d;}
.live-room-view-victim{display:inline-flex;align-items:center;gap:12px;border:1px solid #ffd45d;border-radius:7px;padding:11px 16px;background:linear-gradient(135deg,#ffe18a,#edbb3f);color:#08232b;font-weight:800;cursor:pointer;}
.live-room-view-victim:hover{filter:brightness(1.06);transform:translateY(-1px);}
.live-room-victim-lightbox[hidden]{display:none!important;}
.live-room-victim-lightbox{position:fixed;z-index:10050;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,8,12,.88);backdrop-filter:blur(7px);overflow:auto;}
.live-room-victim-lightbox>.live-room-lightbox-close{position:fixed;top:18px;right:22px;width:44px;height:44px;border:1px solid rgba(255,212,93,.7);border-radius:50%;background:#08232b;color:#ffd45d;font-size:30px;line-height:1;cursor:pointer;z-index:2;}
.live-room-victim-modal-content{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:24px;width:min(1050px,100%);max-height:calc(100vh - 90px);overflow:auto;padding:24px;border:1px solid rgba(35,205,218,.55);border-radius:12px;background:#061a21;box-shadow:0 24px 80px rgba(0,0,0,.5);}
.live-room-victim-modal-photo{display:block;width:100%;max-height:380px;object-fit:cover;object-position:center 25%;border-radius:9px;border:1px solid rgba(255,212,93,.45);}
.live-room-victim-modal-copy{min-width:0;}
.live-room-victim-modal-copy h2{margin:0 0 18px;color:#fff8e8;font-size:clamp(26px,4vw,38px);}
.live-room-victim-modal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.live-room-victim-modal-field{min-width:0;padding:12px;border:1px solid rgba(35,205,218,.25);border-radius:8px;background:rgba(255,255,255,.025);overflow-wrap:anywhere;}
.live-room-victim-modal-field h3{margin:0 0 7px;color:#ffd45d;font-size:11px;text-transform:uppercase;letter-spacing:.06em;}
.live-room-victim-modal-field p{margin:0;color:#e0edf0;font-size:13px;line-height:1.65;white-space:normal;}
.live-room-victim-modal-field-background{grid-column:1/-1;}
.live-room-victim-lightbox .live-room-lightbox-help{grid-column:1/-1;margin:12px 0 0;text-align:center;color:#b7cbd0;font-size:12px;}
@media(max-width:700px){.live-room-victim-summary{grid-template-columns:110px minmax(0,1fr);gap:13px;padding:12px}.live-room-victim-summary-photo{height:145px}.live-room-victim-modal-content{grid-template-columns:1fr;padding:16px;max-height:calc(100vh - 70px)}.live-room-victim-modal-photo{width:min(100%,220px);max-height:250px}.live-room-victim-modal-fields{grid-template-columns:1fr}.live-room-victim-modal-field-background{grid-column:1}.live-room-victim-lightbox{padding:12px}}


/* Victim profile summary/modal layout override (2026-10-26) */
.live-room-victim-summary{display:grid!important;grid-template-columns:minmax(140px,220px) minmax(0,1fr)!important;align-items:center!important;gap:22px!important;width:100%;box-sizing:border-box;}
.live-room-victim-summary-photo{display:block!important;width:100%!important;height:210px!important;max-width:220px;object-fit:cover!important;}
.live-room-victim-summary-copy{min-width:0!important;}
.live-room-victim-summary-copy .live-room-view-victim{margin-top:8px;position:relative;z-index:1;pointer-events:auto;}
.live-room-victim-lightbox[hidden]{display:none!important;}
.live-room-victim-lightbox:not([hidden]){display:flex!important;position:fixed!important;inset:0!important;z-index:999999!important;align-items:center!important;justify-content:center!important;padding:24px!important;box-sizing:border-box;background:rgba(0,8,12,.90)!important;overflow:auto!important;}
.live-room-victim-modal-content{display:grid!important;grid-template-columns:minmax(180px,260px) minmax(0,1fr)!important;width:min(1050px,100%)!important;max-height:calc(100vh - 70px)!important;overflow:auto!important;box-sizing:border-box;}
.live-room-victim-modal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.live-room-victim-modal-field-background{grid-column:1/-1;}
@media(max-width:700px){.live-room-victim-summary{grid-template-columns:100px minmax(0,1fr)!important;gap:12px!important;padding:12px!important}.live-room-victim-summary-photo{height:145px!important}.live-room-victim-modal-content{grid-template-columns:1fr!important;padding:16px!important}.live-room-victim-modal-fields{grid-template-columns:1fr}.live-room-victim-modal-field-background{grid-column:1}}

/* Live contest answer: selectable suspect cards instead of a dropdown */
.live-room-suspect-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 8px}
.live-room-suspect-option{display:flex;align-items:center;gap:11px;min-width:0;min-height:58px;padding:12px 14px;border:1px solid #0a7184;border-radius:9px;background:linear-gradient(135deg,#071d24,#08252c);color:#eaf7f8;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.live-room-suspect-option:hover{border-color:#f2c94c;background:#0b2b32}
.live-room-suspect-option:has(input:checked){border-color:#f5d15a;background:linear-gradient(135deg,#12353a,#193a3a);box-shadow:0 0 0 1px rgba(245,209,90,.24),0 0 16px rgba(245,209,90,.08)}
.live-room-suspect-option input[type=radio]{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:#f4cd4e;cursor:pointer}
.live-room-suspect-option-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 27px;width:27px;height:27px;border:1px solid #0c8498;border-radius:50%;color:#f5d45d;font-size:12px;font-weight:800}
.live-room-suspect-option-name{min-width:0;font-size:14px;font-weight:750;overflow-wrap:anywhere}
.live-room-answer-form>.btn{margin-top:2px}
@media(max-width:640px){.live-room-suspect-options{grid-template-columns:minmax(0,1fr)}.live-room-suspect-option{min-height:52px}}

/* Profile editor refresh — screenshot-matched dark teal and antique gold layout */
.profile-reference.profile-edit-mode{max-width:1420px;gap:14px;margin:0 auto 28px}
.profile-edit-mode .profile-overview{grid-template-columns:118px minmax(260px,1fr) auto;gap:24px;padding:18px 26px;background:linear-gradient(110deg,rgba(5,29,39,.98),rgba(4,20,29,.96));border:1px solid #1d5264;border-radius:8px;min-height:134px}
.profile-edit-mode .profile-avatar-large{width:112px;height:112px;flex:0 0 112px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,#ffe6a0,#d0a54e 62%,#896324);border:2px solid #edc65e;color:#061923;font:800 35px Georgia,serif;box-shadow:0 0 0 4px #f2c85c12}
.profile-edit-mode .profile-identity h2{font-size:clamp(30px,3vw,44px);margin:0;color:#f6f2e9}
.profile-level-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#d5e0e3;font-size:13px;margin:9px 0 8px}
.profile-level-row i{height:20px;border-left:1px solid #315764}
.profile-edit-mode .profile-xp{max-width:440px;height:9px}
.profile-edit-mode .profile-identity>small{font-size:12px}
.profile-top-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.profile-top-actions .btn,.profile-form-actions .btn{min-height:48px;padding:13px 20px;font-size:13px;font-weight:800;border-radius:6px}
.profile-edit-mode .profile-mini-stats{gap:12px}
.profile-edit-mode .profile-mini-stats .panel{padding:17px 22px;border-radius:7px;background:linear-gradient(115deg,#071e28,#061923);border:1px solid #1d5264;min-height:86px}
.profile-edit-mode .profile-mini-stats span{font-size:13px;color:#c4d5da}
.profile-edit-mode .profile-mini-stats strong{font:700 28px Georgia,serif;margin-top:5px}
.profile-edit-mode .profile-tabs{border:1px solid #1d5264;border-radius:7px;grid-template-columns:repeat(5,minmax(0,1fr));background:#041720}
.profile-edit-mode .profile-tabs button{font-size:14px;padding:17px 8px;border-bottom-width:3px}
.profile-edit-mode .profile-personal-panel{padding:22px 32px 28px;background:linear-gradient(120deg,rgba(5,28,38,.98),rgba(4,21,30,.98));border:1px solid #1d5264;border-radius:8px}
.profile-edit-mode .profile-section-heading{border:0;padding:0 0 10px;margin-bottom:8px}
.profile-edit-mode .profile-section-heading h2{font:700 32px Georgia,'Times New Roman',serif;color:#f5f0e5;margin:0}
.profile-edit-mode .profile-section-heading p{margin:4px 0 0;color:#c2d2d7;font-size:14px}
.profile-edit-mode .profile-edit-form-full{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:30px;margin:0;padding:0;border:0;background:transparent}
.profile-edit-mode .profile-edit-column{display:flex;flex-direction:column;min-width:0;align-items:stretch}
.profile-edit-mode .profile-edit-form-full label{font-size:13px;font-weight:750;color:#e6edf0;margin:10px 0 8px}
.profile-edit-mode .profile-edit-form-full label span{font-weight:400;color:#a9bec5}
.profile-edit-mode .profile-edit-form-full input,.profile-edit-mode .profile-edit-form-full textarea{width:100%;box-sizing:border-box;min-height:49px;border:1px solid #286074;border-radius:6px;background:#041923;color:#f3f4f0;padding:13px 16px;font:14px Arial,sans-serif;outline:none}
.profile-edit-mode .profile-edit-form-full input:focus,.profile-edit-mode .profile-edit-form-full textarea:focus{border-color:#e9bd4e;box-shadow:0 0 0 2px #e9bd4e20}
.profile-edit-mode .profile-edit-form-full input:disabled{color:#839ba4;background:#0a202a;border-color:#244856}
.profile-private-note{display:block;color:#a9c0c7;font-size:12px;margin-top:8px}
.profile-photo-control{display:flex;align-items:center;gap:28px;min-height:92px;margin:0 0 5px}
.profile-edit-mode .profile-photo-control .profile-avatar-large{width:88px;height:88px;flex-basis:88px;font-size:28px}
.profile-photo-control>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.profile-photo-button{color:#f0c85c!important;border-color:#c49a3d!important;background:transparent!important;pointer-events:none}
.profile-photo-control small{font-size:12px;color:#a9c0c7}
.profile-edit-mode .profile-edit-form-full textarea{min-height:68px;resize:vertical;line-height:1.45}
.profile-bio-counter{text-align:right;font-size:12px;color:#a9c0c7;margin-top:5px}
.profile-form-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.profile-form-actions .btn.primary,.profile-top-actions .btn.primary{background:linear-gradient(110deg,#ffe08a,#efbd42);border:1px solid #e8b943;color:#081820}
.profile-form-actions .btn.outline,.profile-top-actions .btn.outline{background:transparent;border:1px solid #d9a936;color:#f4cb60}
@media(max-width:900px){.profile-edit-mode .profile-overview{grid-template-columns:84px minmax(0,1fr);gap:16px}.profile-edit-mode .profile-avatar-large{width:80px;height:80px;flex-basis:80px;font-size:27px}.profile-top-actions{grid-column:1/-1;justify-content:flex-start}.profile-edit-mode .profile-edit-form-full{gap:20px}.profile-edit-mode .profile-personal-panel{padding:20px}}
@media(max-width:650px){.profile-edit-mode .profile-overview{grid-template-columns:64px minmax(0,1fr);padding:14px}.profile-edit-mode .profile-avatar-large{width:60px;height:60px;flex-basis:60px;font-size:21px}.profile-edit-mode .profile-identity h2{font-size:28px}.profile-level-row{gap:8px;font-size:11px}.profile-top-actions{gap:8px}.profile-top-actions .btn{flex:1;min-width:0;padding:11px 8px;font-size:11px}.profile-edit-mode .profile-mini-stats{grid-template-columns:1fr;gap:8px}.profile-edit-mode .profile-mini-stats .panel{min-height:0;padding:12px 15px}.profile-edit-mode .profile-tabs{display:flex;overflow-x:auto}.profile-edit-mode .profile-tabs button{flex:0 0 auto;white-space:nowrap;padding:13px 14px}.profile-edit-mode .profile-edit-form-full{grid-template-columns:1fr;gap:8px}.profile-edit-mode .profile-personal-panel{padding:17px 14px}.profile-edit-mode .profile-section-heading h2{font-size:27px}.profile-form-actions{gap:8px}.profile-form-actions .btn{flex:1;padding:12px 8px;font-size:11px}.profile-photo-control{gap:16px}}

/* Functional account settings panel — CASE ROOM reference layout */
.profile-settings-panel{padding:24px 28px!important;background:linear-gradient(120deg,rgba(5,28,38,.98),rgba(4,21,30,.98));border:1px solid #1d5264;border-radius:8px}
.profile-settings-panel .profile-section-heading{margin-bottom:14px}
.profile-settings-form{border:1px solid #1d5264;border-radius:7px;overflow:hidden}
.profile-setting-control{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(220px,auto);gap:18px;align-items:center;min-height:76px;padding:13px 16px;border-bottom:1px solid #214956;cursor:pointer;background:rgba(4,22,31,.28)}
.profile-setting-control:last-child{border-bottom:0}
.profile-setting-control:hover{background:rgba(13,49,60,.5)}
.profile-setting-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #167186;border-radius:7px;color:#f2c94c;font-size:24px;font-weight:700}
.profile-setting-copy{display:block;min-width:0}
.profile-setting-copy b{display:block;color:#f2f5f4;font-size:14px;font-weight:800}
.profile-setting-copy small{display:block;margin-top:5px;color:#b4cbd2;font-size:12px;line-height:1.45;font-weight:400}
.profile-setting-copy .profile-setting-subtitle{display:block;color:#a9c4cc;font-size:12px;margin:5px 0 0}
.profile-switch{position:relative;display:inline-flex;width:62px;height:34px;justify-self:end;align-items:center}
.profile-switch input{position:absolute;opacity:0;width:1px;height:1px}
.profile-switch i{position:relative;display:block;width:62px;height:34px;border-radius:30px;background:#46545b;border:1px solid #52616a;transition:background .18s ease,border-color .18s ease;cursor:pointer}
.profile-switch i:after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#f4f5f5;box-shadow:0 1px 4px #0005;transition:transform .18s ease}
.profile-switch input:checked+i{background:linear-gradient(100deg,#f7c84d,#e8ad2f);border-color:#efbd42}
.profile-switch input:checked+i:after{transform:translateX(27px);background:#fff}
.profile-switch input:focus-visible+i{outline:2px solid #fff;outline-offset:3px}
.profile-setting-select{width:min(100%,272px);min-height:44px;justify-self:end;padding:10px 13px;border:1px solid #167186;border-radius:6px;background:#041923;color:#f5f4ee;font:14px Arial,sans-serif}
.profile-settings-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:18px}
.profile-settings-actions form{margin:0}
.profile-settings-actions .btn{min-height:48px;min-width:190px;padding:13px 20px;font-weight:800}
.profile-settings-actions .btn.primary{background:linear-gradient(110deg,#ffe08a,#efbd42);border:1px solid #e8b943;color:#081820}
.profile-settings-actions .btn.outline{background:transparent;border:1px solid #d9a936;color:#f4cb60}
.profile-theme-midnight .profile-overview,.profile-theme-midnight .profile-mini-stats .panel,.profile-theme-midnight .profile-tab-panel{background-color:#081b32}
.profile-theme-midnight .profile-settings-panel,.profile-theme-midnight .profile-personal-panel{background:linear-gradient(120deg,#071b32,#061629)}
.profile-theme-midnight .profile-setting-control{background-color:#081b32}
.profile-theme-charcoal .profile-overview,.profile-theme-charcoal .profile-mini-stats .panel,.profile-theme-charcoal .profile-tab-panel{background-color:#171b20;border-color:#4e555d}
.profile-theme-charcoal .profile-settings-panel,.profile-theme-charcoal .profile-personal-panel{background:linear-gradient(120deg,#181d22,#101419);border-color:#4e555d}
.profile-theme-charcoal .profile-tabs,.profile-theme-charcoal .profile-setting-control{background-color:#14191e;border-color:#424b53}
@media(max-width:720px){.profile-settings-panel{padding:16px 12px!important}.profile-setting-control{grid-template-columns:42px minmax(0,1fr) auto;gap:11px;padding:13px 10px}.profile-setting-icon{width:40px;height:40px;font-size:20px}.profile-setting-copy b{font-size:12px}.profile-setting-copy small{font-size:11px}.profile-setting-select{grid-column:2/-1;justify-self:stretch;width:100%;margin-top:4px}.profile-settings-actions{gap:9px}.profile-settings-actions form,.profile-settings-actions .btn{width:100%}}

/* CASE ROOM Wallet & Rewards dashboard refresh */
.wallet-dashboard{display:grid;gap:16px;color:#edf5f4}.wallet-dashboard-hero{position:relative;display:flex;justify-content:space-between;gap:24px;align-items:center;overflow:hidden;min-height:255px;padding:clamp(22px,4vw,42px);border:1px solid #17616b;border-radius:14px;background:radial-gradient(ellipse at 82% 20%,rgba(255,204,89,.16),transparent 34%),radial-gradient(ellipse at 15% 100%,rgba(0,203,184,.12),transparent 40%),linear-gradient(125deg,#092a34,#04151d 70%);box-shadow:0 14px 40px #0002;isolation:isolate}.wallet-hero-copy{position:relative;z-index:2;max-width:660px}.wallet-kicker{display:block;color:#ffd45c;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}.wallet-hero-copy h2{margin:9px 0 5px;color:#fff;font:700 clamp(30px,3.5vw,42px) Georgia,serif}.wallet-hero-copy>p{margin:0;color:#b7d0d5}.wallet-current-balance{display:flex;align-items:center;gap:15px;margin:22px 0 15px}.wallet-coin{display:grid;place-items:center;width:58px;height:58px;border:1px solid #e6bd51;border-radius:50%;background:linear-gradient(145deg,#ffe18a,#dcae38);color:#10252b;font-size:32px;font-weight:900;box-shadow:0 0 0 6px #f4c95c13}.wallet-current-balance small,.wallet-current-balance strong{display:block}.wallet-current-balance small{color:#c5d8da;font-size:13px}.wallet-current-balance strong{margin-top:2px;color:#ffd45c;font-size:clamp(30px,4vw,42px);line-height:1.1;font-weight:900}.wallet-demo-pill{display:inline-flex;padding:7px 10px;border:1px solid #23616b;border-radius:99px;background:#0a3038;color:#9fd4d5;font-size:9px;font-weight:900;letter-spacing:.1em}.wallet-hero-art{position:relative;flex:0 0 250px;height:190px;display:grid;place-items:center;opacity:.9}.wallet-art-coin{display:grid;place-items:center;width:130px;height:130px;border:2px solid #ffdf82;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff0b0,#e5b744 45%,#926b23 100%);box-shadow:0 0 0 10px #f3c34b10,0 18px 55px #0007,inset 0 0 0 7px #fff3;color:#142b31;font-size:66px;font-weight:900;transform:rotate(-12deg)}.wallet-orbit{position:absolute;border:1px solid #d4ac4d55;border-radius:50%;width:210px;height:80px;transform:rotate(-30deg)}.wallet-orbit-two{width:245px;height:115px;transform:rotate(42deg);border-color:#13c3c455}.wallet-art-spark{position:absolute;top:18px;right:20px;color:#ffdb78;font-size:32px}.wallet-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wallet-summary-card{display:flex;align-items:center;gap:14px;min-width:0;padding:18px;border:1px solid #174b56;border-radius:10px;background:linear-gradient(135deg,#082630,#061922);box-shadow:0 5px 18px #0001}.wallet-summary-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid currentColor;border-radius:12px;font-size:28px;font-weight:800}.wallet-summary-card small,.wallet-summary-card strong{display:block}.wallet-summary-card small{color:#b5cbd0;font-size:12px}.wallet-summary-card strong{margin-top:4px;color:#f7d16a;font-size:clamp(17px,2vw,23px);font-weight:900;overflow-wrap:anywhere}.wallet-green{color:#36dfa6!important}.wallet-red{color:#ff696e!important}.wallet-gold{color:#ffd45c!important}.wallet-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.wallet-action-card{display:flex;align-items:center;gap:12px;min-width:0;padding:18px 15px;border:1px solid #1b5661;border-radius:10px;background:linear-gradient(135deg,#092630,#06171f);color:#eef7f5;text-align:left;cursor:pointer;transition:transform .18s,border-color .18s,background .18s;box-shadow:0 5px 18px #0001}.wallet-action-card:hover{transform:translateY(-2px);border-color:#f1c451;background:linear-gradient(135deg,#10343b,#081c25)}.wallet-action-primary{border-color:#bd9138;background:linear-gradient(120deg,#ffe18a,#e9b83e);color:#10242a}.wallet-action-primary:hover{background:linear-gradient(120deg,#ffe9a7,#f3c751)}.wallet-action-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #bd9748;border-radius:10px;color:#ffd45c;font-size:26px;font-weight:900}.wallet-action-primary .wallet-action-icon{border-color:#132c32;background:#f7d263;color:#10252b}.wallet-action-card>span:nth-child(2){display:block;min-width:0;flex:1}.wallet-action-card b,.wallet-action-card small{display:block}.wallet-action-card b{font-size:13px;font-weight:900}.wallet-action-card small{margin-top:5px;color:#a9c3c8;font-size:10px;line-height:1.4}.wallet-action-primary small{color:#394c4c}.wallet-action-arrow{font-size:20px;color:#f3c751}.wallet-action-primary .wallet-action-arrow{color:#142a2f}.wallet-transactions{padding:clamp(16px,2.5vw,25px)!important;border:1px solid #174b56!important;border-radius:11px!important;background:linear-gradient(145deg,#071f29,#04151d)!important}.wallet-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.wallet-section-heading h2{margin:5px 0;color:#f6f3e9;font:700 clamp(22px,2.4vw,29px) Georgia,serif}.wallet-section-heading p{margin:0;color:#a9c1c7;font-size:12px}.wallet-text-button{border:0;background:transparent;color:#ffd45c;font-weight:900;white-space:nowrap;cursor:pointer}.wallet-text-button span{font-size:18px}.wallet-table-wrap{width:100%;overflow:auto;border:1px solid #173f49;border-radius:8px}.wallet-table{width:100%;min-width:720px;border-collapse:collapse;font-size:12px}.wallet-table th{padding:13px 14px;background:#0a3039;color:#f4d16b;text-align:left;font-size:10px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.wallet-table td{padding:13px 14px;border-top:1px solid #163c46;color:#d9e7e9;vertical-align:middle}.wallet-table tr:hover td{background:#0a2730}.wallet-type-pill,.wallet-status{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #24604f;border-radius:6px;background:#0a2b28;color:#49e3ab;font-size:10px;font-weight:800}.wallet-type-pill.is-debit{border-color:#743d44;background:#311b22;color:#ff777b}.wallet-amount{font-size:13px;font-weight:900;white-space:nowrap}.wallet-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;padding:22px;text-align:center;color:#c3d5d8}.wallet-empty>span{display:grid;place-items:center;width:46px;height:46px;margin-bottom:10px;border:1px solid #32636a;border-radius:12px;color:#ffd45c;font-size:24px}.wallet-empty b{color:#f3f4ee}.wallet-empty p{margin:6px 0 0;color:#9fb7bd;font-size:12px}.wallet-demo-note{display:flex;gap:12px;align-items:center;margin-top:15px;padding:13px 15px;border:1px solid #164650;border-radius:8px;background:#08242d}.wallet-demo-note>span{color:#7ecbd2;font-size:24px}.wallet-demo-note p{margin:0;color:#a9c5ca;font-size:11px;line-height:1.6}.wallet-demo-note b{color:#eaf2ee}.wallet-modal{position:relative;width:min(540px,calc(100% - 28px));max-width:540px;max-height:min(88dvh,900px);overflow:auto;padding:30px;border:1px solid #1a6973;border-radius:16px;background:radial-gradient(ellipse at 100% 0,#123b40,transparent 35%),linear-gradient(145deg,#09232c,#03131b);color:#eaf4f3;box-shadow:0 24px 100px #000b}.wallet-modal::backdrop{background:#000b;backdrop-filter:blur(7px)}.wallet-modal h2{margin:8px 0;color:#fff;font:700 30px Georgia,serif}.wallet-modal-lead{margin:0 0 18px;color:#afc7cc;font-size:13px;line-height:1.6}.wallet-modal-close{position:absolute;top:13px;right:15px;width:35px;height:35px;border:1px solid #315b63;border-radius:9px;background:#0b2b33;color:#e8f0ed;font-size:24px;cursor:pointer}.wallet-modal-balance{display:flex;flex-direction:column;gap:5px;margin:18px 0;padding:14px 16px;border:1px solid #2b5960;border-radius:10px;background:#061a22}.wallet-modal-balance small{color:#a9c4c8;font-size:11px}.wallet-modal-balance strong{color:#ffd45c;font-size:27px;font-weight:900}.wallet-modal-form{display:grid;gap:12px}.wallet-amount-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.wallet-amount-option{position:relative;cursor:pointer}.wallet-amount-option input{position:absolute;opacity:0;pointer-events:none}.wallet-amount-option span{display:grid;place-items:center;min-height:48px;padding:8px;border:1px solid #2b5861;border-radius:9px;background:#071e27;color:#dbe9e8;font-weight:900}.wallet-amount-option input:checked+span{border-color:#ffd45c;background:#3a3420;color:#ffdc73;box-shadow:inset 0 0 0 1px #ffd45c55}.wallet-field-label{display:block;margin-top:4px;color:#d9e9e7;font-size:12px;font-weight:800}.wallet-custom-amount{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.wallet-modal input:not([type=radio]){box-sizing:border-box;width:100%;min-width:0;padding:13px 14px;border:1px solid #2d5963;border-radius:9px;outline:none;background:#03171f;color:#eff8f6}.wallet-modal input:not([type=radio]):focus{border-color:#ffd45c;box-shadow:0 0 0 3px #ffd45c20}.wallet-custom-amount>label{display:flex;align-items:center;gap:7px;color:#b9d0d2;font-size:11px;white-space:nowrap}.wallet-custom-amount input[type=radio]{accent-color:#ffd45c}.wallet-submit-button{width:100%;margin-top:5px;padding:14px 16px;border:0;border-radius:10px;background:linear-gradient(110deg,#ffe18a,#eebc40);color:#12262b;font-weight:900;cursor:pointer;box-shadow:0 6px 18px #f2bd3e1c}.wallet-submit-button:hover{filter:brightness(1.05)}.wallet-modal-note{margin:14px 0 0;color:#8eafb6;font-size:11px;line-height:1.6;text-align:center}.wallet-withdraw-limits{color:#b2c9cd;font-size:11px}.wallet-login-prompt{padding:16px;border:1px solid #2b5960;border-radius:9px;color:#b9cdd0}.wallet-login-prompt a{color:#ffd45c}.wallet-history-modal{width:min(720px,calc(100% - 28px));max-width:720px}.wallet-history-list{display:grid;gap:8px;max-height:55vh;overflow:auto}.wallet-history-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #1b4751;border-radius:9px;background:#061b23}.wallet-history-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #24604f;border-radius:10px;background:#0a2b28;color:#49e3ab;font-size:20px;font-weight:900}.wallet-history-icon.is-debit{border-color:#743d44;background:#311b22;color:#ff777b}.wallet-history-copy{min-width:0}.wallet-history-copy b,.wallet-history-copy small{display:block;overflow-wrap:anywhere}.wallet-history-copy b{color:#e8f2ef;font-size:12px}.wallet-history-copy small{margin-top:4px;color:#8fadb3;font-size:10px}.wallet-history-item>strong{font-size:13px;white-space:nowrap}
@media(max-width:900px){.wallet-hero-art{flex-basis:175px;transform:scale(.82);transform-origin:center right}.wallet-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-summary-card{padding:14px}.wallet-summary-icon{flex-basis:38px;width:38px;height:38px;font-size:23px}}
@media(max-width:620px){.wallet-dashboard-hero{padding:22px;min-height:0}.wallet-hero-art{position:absolute;right:-42px;bottom:-24px;transform:scale(.6);opacity:.24}.wallet-hero-copy{max-width:100%}.wallet-summary-grid{grid-template-columns:1fr}.wallet-summary-card{padding:13px}.wallet-action-grid{grid-template-columns:1fr 1fr;gap:8px}.wallet-action-card{gap:8px;padding:12px 10px}.wallet-action-icon{flex-basis:34px;width:34px;height:34px;font-size:21px}.wallet-action-card b{font-size:11px}.wallet-action-card small{font-size:9px}.wallet-action-arrow{display:none}.wallet-section-heading{align-items:flex-start}.wallet-modal{padding:26px 18px}.wallet-amount-options{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-custom-amount{grid-template-columns:1fr}.wallet-custom-amount>label{white-space:normal}.wallet-history-item{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:9px}.wallet-history-icon{width:32px;height:32px}}

/* Wallet & Rewards layout correction: compact, side-by-side desktop layout */
@media (min-width: 900px){
  .wallet-dashboard{grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);align-items:stretch;gap:14px}
  .wallet-dashboard-hero{grid-column:1;grid-row:1;min-height:0;padding:24px 28px;align-items:flex-start}
  .wallet-hero-copy{max-width:100%;width:100%}
  .wallet-hero-copy h2{font-size:30px}
  .wallet-hero-copy>p{font-size:13px}
  .wallet-current-balance{margin:20px 0 12px}
  .wallet-hero-art{flex:0 0 110px;height:125px;align-self:center;opacity:.45;transform:scale(.78)}
  .wallet-summary-grid{grid-column:1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .wallet-summary-card{padding:12px;gap:9px}
  .wallet-summary-icon{flex-basis:34px;width:34px;height:34px;font-size:21px}
  .wallet-summary-card small{font-size:11px}
  .wallet-summary-card strong{font-size:17px}
  .wallet-action-grid{grid-column:2;grid-row:1 / span 2;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:12px;padding:18px;border:1px solid #174b56;border-radius:12px;background:linear-gradient(145deg,#071f29,#04151d)}
  .wallet-action-card{min-height:82px;padding:13px;gap:10px}
  .wallet-action-icon{flex-basis:36px;width:36px;height:36px;font-size:22px}
  .wallet-action-card b{font-size:12px}
  .wallet-action-card small{font-size:10px}
  .wallet-transactions{grid-column:1 / -1;grid-row:3}
}
@media (max-width:899px){
  .wallet-dashboard{grid-template-columns:minmax(0,1fr)}
  .wallet-dashboard-hero,.wallet-summary-grid,.wallet-action-grid,.wallet-transactions{grid-column:1}
  .wallet-dashboard-hero{min-height:0}
}

/* Profile Wallet & Rewards: use the same live database data and side-by-side layout as the wallet overview. */
.profile-wallet-tab .profile-wallet-layout{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.55fr);gap:14px;align-items:stretch}
.profile-wallet-tab .profile-wallet-summary-card{min-width:0;padding:16px;border:1px solid #214b55;border-radius:7px;background:linear-gradient(145deg,#08242d,#04171f)}
.profile-wallet-tab .profile-wallet-summary-card .profile-wallet-balance{display:flex;min-height:120px;padding:10px 8px 18px;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
.profile-wallet-tab .profile-wallet-summary-card .profile-wallet-balance small{color:#bfd0d6;font-size:11px}
.profile-wallet-tab .profile-wallet-summary-card .profile-wallet-balance strong{font:700 clamp(27px,3vw,38px) Georgia,'Times New Roman',serif;color:#f4c64e;margin:4px 0}
.profile-wallet-tab .profile-wallet-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-top:7px;border:1px solid #214b55;border-radius:6px;background:#061b23}
.profile-wallet-tab .profile-wallet-stat span{font-size:11px;color:#c0d1d7}
.profile-wallet-tab .profile-wallet-stat strong{font-size:clamp(14px,1.6vw,19px);font-weight:900;color:#f4c64e;white-space:nowrap}
.profile-wallet-tab .profile-wallet-stat .wallet-credit,.profile-wallet-tab .wallet-credit{color:#27dca3!important}
.profile-wallet-tab .profile-wallet-stat .wallet-debit,.profile-wallet-tab .wallet-debit{color:#ff646e!important}
.profile-wallet-tab .profile-wallet-disclaimer{margin:10px 0 0;color:#a9c0c8;font-size:10px;line-height:1.55}
.profile-wallet-tab .profile-wallet-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.profile-wallet-tab .profile-wallet-actions .btn{font-size:10px;padding:9px 11px}
.profile-wallet-tab .profile-wallet-recent{min-width:0;padding:14px!important;border:1px solid #214b55!important;background:#061a22!important}
.profile-wallet-tab .profile-wallet-recent .section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #29464e}
.profile-wallet-tab .profile-wallet-recent .section-head h3{font:800 18px 'Barlow Condensed',sans-serif;color:#f3f4ee}
.profile-wallet-tab .profile-wallet-recent .section-head small{font-size:10px;color:#a9c0c8;white-space:nowrap}
.profile-wallet-tab .profile-wallet-table-wrap{width:100%;overflow:auto}
.profile-wallet-tab .profile-wallet-table{width:100%;min-width:590px;border-collapse:collapse;font-size:10px}
.profile-wallet-tab .profile-wallet-table th{padding:10px 8px;background:#0a3039;color:#f4c64e;text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.profile-wallet-tab .profile-wallet-table td{padding:10px 8px;border-bottom:1px solid #21434c;color:#e0eaec;vertical-align:middle}
.profile-wallet-tab .profile-wallet-table tbody tr:last-child td{border-bottom:0}
.profile-wallet-tab .profile-wallet-table td:nth-child(2){min-width:120px;max-width:260px;overflow-wrap:anywhere}
.profile-wallet-tab .profile-wallet-table td:nth-child(3){font-weight:800;white-space:nowrap}
.profile-wallet-tab .profile-wallet-status{display:inline-block;padding:4px 6px;border:1px solid #17674d;border-radius:4px;background:#082d26;color:#42e5aa;font-size:9px;white-space:nowrap}
.profile-wallet-tab .profile-wallet-empty{padding:24px 10px;color:#afc5cb;font-size:12px;text-align:center}
@media(max-width:800px){.profile-wallet-tab .profile-wallet-layout{grid-template-columns:minmax(0,1fr)}.profile-wallet-tab .profile-wallet-summary-card .profile-wallet-balance{min-height:85px}.profile-wallet-tab .profile-wallet-actions .btn{flex:1 1 150px;text-align:center}}

/* CASE ROOM profile photo upload fix */
.profile-avatar-large{position:relative;overflow:hidden}
.profile-avatar-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;border-radius:inherit}
.profile-photo-button{pointer-events:auto!important;cursor:pointer!important}
.profile-photo-button:focus-visible{outline:2px solid #f0c85c;outline-offset:3px}
#profile-photo-input{display:none}


/* CASE ROOM global display themes: apply to every page, not just Profile & Settings. */
body.global-theme-midnight{--bg:#030b1b;--p:#07172c;--p2:#0b2340;--c:#7eb8ff;--g:#f0cb68;--gold:#f0cb68;--t:#f3f6ff;--m:#b7c7e0;--l:#24466b;background:radial-gradient(ellipse at 25% -10%,#142f58 0,transparent 43%),#030b1b;color:#f3f6ff}
body.global-theme-charcoal{--bg:#0d1014;--p:#171b20;--p2:#20262d;--c:#e8bd55;--g:#f0c65d;--gold:#f0c65d;--t:#f4f2ed;--m:#b9bdc3;--l:#414b55;background:radial-gradient(ellipse at 25% -10%,#252b32 0,transparent 43%),#0d1014;color:#f4f2ed}
body.global-theme-midnight .topbar,body.global-theme-midnight .mobile,body.global-theme-midnight .topbar nav{background-color:#06142a;border-color:#24466b}
body.global-theme-charcoal .topbar,body.global-theme-charcoal .mobile,body.global-theme-charcoal .topbar nav{background-color:#11161b;border-color:#414b55}
body.global-theme-midnight .hero{background:linear-gradient(90deg,#061329f2,#0a2140d9 55%,#07172c88),radial-gradient(circle at 75% 20%,#285b94,transparent 28%),linear-gradient(130deg,#07172c,#0c2d50 55%,#030b1b);border-color:#315d8d}
body.global-theme-charcoal .hero{background:linear-gradient(90deg,#101419f2,#1d252bd9 55%,#0d101488),radial-gradient(circle at 75% 20%,#55503e,transparent 28%),linear-gradient(130deg,#171b20,#292b2a 55%,#0d1014);border-color:#414b55}
body.global-theme-midnight .panel,body.global-theme-midnight .contest-card,body.global-theme-midnight .list-row,body.global-theme-midnight .wallet-hero,body.global-theme-midnight .live-room-section,body.global-theme-midnight .live-room-evidence-card,body.global-theme-midnight .empty-state,body.global-theme-midnight .investigation aside,body.global-theme-midnight .side-links a,body.global-theme-midnight .evidence,body.global-theme-midnight .countdown{background-color:#07172c;border-color:#24466b;color:#f3f6ff}
body.global-theme-charcoal .panel,body.global-theme-charcoal .contest-card,body.global-theme-charcoal .list-row,body.global-theme-charcoal .wallet-hero,body.global-theme-charcoal .live-room-section,body.global-theme-charcoal .live-room-evidence-card,body.global-theme-charcoal .empty-state,body.global-theme-charcoal .investigation aside,body.global-theme-charcoal .side-links a,body.global-theme-charcoal .evidence,body.global-theme-charcoal .countdown{background-color:#171b20;border-color:#414b55;color:#f4f2ed}
body.global-theme-midnight .section-head,body.global-theme-midnight .profile-reference,body.global-theme-midnight .profile-tab-panel,body.global-theme-midnight .profile-settings-panel,body.global-theme-midnight .profile-personal-panel,body.global-theme-midnight .profile-tabs,body.global-theme-midnight .profile-setting-control,body.global-theme-midnight .result-reference,body.global-theme-midnight .live-room-evidence-body{background-color:#07172c;border-color:#24466b;color:#f3f6ff}
body.global-theme-charcoal .section-head,body.global-theme-charcoal .profile-reference,body.global-theme-charcoal .profile-tab-panel,body.global-theme-charcoal .profile-settings-panel,body.global-theme-charcoal .profile-personal-panel,body.global-theme-charcoal .profile-tabs,body.global-theme-charcoal .profile-setting-control,body.global-theme-charcoal .result-reference,body.global-theme-charcoal .live-room-evidence-body{background-color:#171b20;border-color:#414b55;color:#f4f2ed}
body.global-theme-midnight .case-card,body.global-theme-midnight .detail>.panel,body.global-theme-midnight .auth,body.global-theme-midnight .investigation .panel,body.global-theme-midnight .investigation main .panel{background:#0b1d35!important;color:#f3f6ff!important;border-color:#31547c!important}
body.global-theme-charcoal .case-card,body.global-theme-charcoal .detail>.panel,body.global-theme-charcoal .auth,body.global-theme-charcoal .investigation .panel,body.global-theme-charcoal .investigation main .panel{background:#191e23!important;color:#f4f2ed!important;border-color:#414b55!important}
body.global-theme-midnight .case-body h3,body.global-theme-midnight .detail>.panel h2,body.global-theme-midnight .detail>.panel h3,body.global-theme-midnight .auth label,body.global-theme-midnight .investigation .panel h2,body.global-theme-midnight .investigation .panel h3,body.global-theme-midnight .case-description,body.global-theme-midnight .stats b{color:#f3f6ff!important}
body.global-theme-charcoal .case-body h3,body.global-theme-charcoal .detail>.panel h2,body.global-theme-charcoal .detail>.panel h3,body.global-theme-charcoal .auth label,body.global-theme-charcoal .investigation .panel h2,body.global-theme-charcoal .investigation .panel h3,body.global-theme-charcoal .case-description,body.global-theme-charcoal .stats b{color:#f4f2ed!important}
body.global-theme-midnight .case-body p,body.global-theme-midnight .detail>.panel p,body.global-theme-midnight .auth p,body.global-theme-midnight .investigation .panel p,body.global-theme-midnight .investigation .panel small{color:#b7c7e0!important}
body.global-theme-charcoal .case-body p,body.global-theme-charcoal .detail>.panel p,body.global-theme-charcoal .auth p,body.global-theme-charcoal .investigation .panel p,body.global-theme-charcoal .investigation .panel small{color:#b9bdc3!important}
body.global-theme-midnight input,body.global-theme-midnight select,body.global-theme-midnight textarea{background:#061329;color:#f3f6ff;border-color:#31547c}
body.global-theme-charcoal input,body.global-theme-charcoal select,body.global-theme-charcoal textarea{background:#101419;color:#f4f2ed;border-color:#414b55}
body.global-theme-midnight .category-chip,body.global-theme-midnight .tabs button,body.global-theme-midnight .stats>div,body.global-theme-midnight .side-links a{background:#0b2340;border-color:#31547c;color:#d9e8ff}
body.global-theme-charcoal .category-chip,body.global-theme-charcoal .tabs button,body.global-theme-charcoal .stats>div,body.global-theme-charcoal .side-links a{background:#20262d;border-color:#414b55;color:#e7e3d9}
body.global-theme-midnight .topbar nav a.active,body.global-theme-midnight .topbar nav a:hover{color:#7eb8ff;border-color:#7eb8ff}
body.global-theme-charcoal .topbar nav a.active,body.global-theme-charcoal .topbar nav a:hover{color:#f0c65d;border-color:#f0c65d}


/* CASE ROOM Competition Mode dashboard: image-reference layout */
.cr-competition-dashboard{max-width:1480px;margin:0 auto;padding:0 14px 42px;color:#eef9ff}
.cr-dashboard-hero{min-height:145px;padding:28px 16px 24px;background:linear-gradient(90deg,rgba(1,17,24,.98) 0%,rgba(1,17,24,.8) 38%,rgba(1,17,24,.12) 100%),url('../premium/premium-2.jpg') center 42%/cover;border-radius:12px;margin:0 0 16px;position:relative;overflow:hidden}
.cr-dashboard-hero .cr-breadcrumb{font-size:12px;color:#bceaf1;margin-bottom:14px}
.cr-dashboard-hero .eyebrow{font-size:11px;letter-spacing:1.7px;color:#ffd44e;font-weight:900}
.cr-dashboard-hero h1{font-size:clamp(32px,4vw,48px);line-height:1.05;margin:5px 0 8px;color:#fff}
.cr-dashboard-hero p{margin:0;font-size:14px;color:#e1f0f5}
.cr-how-panel{position:relative;padding:18px 20px 20px;margin:0 0 16px;border:1px solid #006d7a;border-radius:12px;background:linear-gradient(90deg,rgba(2,24,32,.95),rgba(2,24,32,.72)),url('../premium/premium-4.jpg') center 53%/cover}
.cr-how-panel h2{font-family:Georgia,serif;font-size:26px;margin:0 0 20px;color:#fff}
.cr-how-note{position:absolute;right:18px;top:18px;font-size:11px;color:#d6f1f5;margin:0}
.cr-how-steps{display:grid;grid-template-columns:1fr 24px 1fr 24px 1fr 24px 1fr;gap:10px;align-items:center}
.cr-how-step{display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;gap:5px 12px;align-items:center;min-width:0}
.cr-how-icon{grid-column:1;grid-row:1/3;width:58px;height:58px;border-radius:50%;border:1px solid #00c7d7;color:#27e7f2;display:grid;place-items:center;font-size:30px;background:rgba(0,18,25,.72);box-shadow:0 0 20px rgba(0,210,225,.12)}
.cr-step-num{grid-column:1;grid-row:2;z-index:1;justify-self:start;align-self:end;margin:0 0 -5px -4px;width:28px;height:28px;border:1px solid #ffd14b;border-radius:50%;background:#061820;color:#ffd14b;display:grid;place-items:center;font-weight:900}
.cr-how-step div{grid-column:2;grid-row:1/3}
.cr-how-step b{display:block;font-size:13px;color:#fff;margin-bottom:8px}
.cr-how-step small{display:block;font-size:11px;line-height:1.55;color:#d0e6eb;max-width:210px}
.cr-how-steps>i{font-size:34px;font-style:normal;color:#ffd34b;text-align:center}
.cr-dashboard-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 20px;border:1px solid #007584;border-radius:8px;overflow:hidden;background:#04151d}
.cr-dashboard-tabs a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:9px 8px;border-right:1px solid #005663;color:#eaf8fb;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.cr-dashboard-tabs a:last-child{border-right:0}
.cr-dashboard-tabs a.active,.cr-dashboard-tabs a:hover{background:linear-gradient(110deg,#ffe18a,#f2bd3f);color:#07141a}
.cr-dashboard-tabs b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#075261;color:#fff;font-size:11px}
.cr-dashboard-tabs a.active b{background:#09232a;color:#fff}
.cr-dash-section{margin:0 0 20px;scroll-margin-top:18px}
.cr-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 10px 12px}
.cr-section-heading h2{font-family:Georgia,serif;font-size:22px;line-height:1.2;color:#fff;margin:0 0 4px}
.cr-section-heading p{font-size:12px;color:#b9d5dd;margin:0}
.cr-section-heading>a{font-size:12px;font-weight:900;color:#2ce5e8;text-decoration:none;white-space:nowrap}
.cr-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.cr-dashboard-card{border:1px solid #007384;border-radius:9px;overflow:hidden;background:#041922;min-width:0;box-shadow:0 5px 16px rgba(0,0,0,.15)}
.cr-dashboard-art{height:142px;position:relative;background-position:center;background-size:cover;background-color:#08242e}
.cr-dashboard-art:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(180deg,transparent,rgba(0,12,18,.65));pointer-events:none}
.cr-dash-badge,.cr-dash-time{position:absolute;z-index:1;top:10px;padding:6px 9px;border-radius:5px;font-size:10px;font-weight:900;color:#fff;background:#f01931}
.cr-dash-badge{left:10px}
.cr-dash-badge.upcoming{background:#00b6bd}
.cr-dash-badge.completed{background:#607e8c}
.cr-dash-time{left:auto;right:10px;background:rgba(1,17,24,.88);border:1px solid #27525d}
.cr-dashboard-card-body{padding:11px 12px 12px}
.cr-dashboard-card-body h3{font-family:Georgia,serif;font-size:18px;line-height:1.2;color:#fff;margin:0 0 5px}
.cr-dash-desc{font-size:11px;line-height:1.45;color:#d0e5eb;margin:0 0 11px;min-height:16px}
.cr-dash-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px}
.cr-dash-metrics span{min-width:0;display:flex;flex-direction:column;gap:2px}
.cr-dash-metrics b{font-size:12px;color:#ffcf4e;white-space:nowrap}
.cr-dash-metrics small{font-size:10px;color:#b4d2da}
.cr-dash-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:35px;border-radius:5px;background:linear-gradient(100deg,#fa1931,#ed1a30);color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:900;border:1px solid #ff2c40}
.cr-dash-action.outline{background:transparent;border-color:#00bac8;color:#28e4e8!important}
.cr-dash-action.teal{background:linear-gradient(100deg,#00b6aa,#32dce1);border-color:#25d5d7;color:#00191e!important}
.cr-dash-action.disabled{background:#253b42;border-color:#455e65;color:#a9c0c6!important}
.cr-case-playing{font-size:11px;color:#58e6e8;margin:0 0 11px}
@media(max-width:900px){.cr-how-note{position:static;margin:-12px 0 18px}.cr-how-steps{grid-template-columns:1fr 18px 1fr;row-gap:18px}.cr-how-steps>i:nth-of-type(2){display:none}.cr-dashboard-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.cr-dashboard-tabs a{white-space:normal}.cr-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cr-competition-dashboard{padding:0 8px 28px}.cr-dashboard-hero{padding:22px 13px;min-height:130px}.cr-how-panel{padding:15px 12px}.cr-how-panel h2{font-size:22px}.cr-how-steps{grid-template-columns:1fr;gap:16px}.cr-how-steps>i{display:none}.cr-how-step{grid-template-columns:52px 1fr}.cr-how-icon{width:50px;height:50px}.cr-dashboard-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-dashboard-tabs a{font-size:11px}.cr-dashboard-grid{grid-template-columns:1fr}.cr-dashboard-art{height:165px}.cr-section-heading{margin:0 2px 10px}.cr-section-heading h2{font-size:20px}}


/* === Competition Mode: reference-layout correction (merged override) ===
   These selectors intentionally match the actual PHP markup in index.php.
   Keep this block at the end of style.css so earlier site styles cannot collapse it.
*/
.cr-competition-dashboard{
  display:block!important;width:100%;max-width:1480px!important;margin:0 auto!important;
  padding:0 20px 48px!important;box-sizing:border-box!important;color:#eef9ff;
  font-size:14px;line-height:1.5;
}
.cr-competition-dashboard *{box-sizing:border-box}
.cr-dashboard-hero{
  display:block!important;position:relative;isolation:isolate;overflow:hidden;
  min-height:210px!important;padding:28px 30px 26px!important;margin:0 0 20px!important;
  border:1px solid rgba(0,190,205,.25);border-radius:12px;
  background:
    linear-gradient(90deg,rgba(1,15,22,.97) 0%,rgba(1,15,22,.82) 37%,rgba(1,15,22,.18) 100%),
    url('../premium/premium-2.jpg') center 42%/cover no-repeat!important;
}
.cr-dashboard-hero .cr-breadcrumb{display:block;font-size:13px;line-height:1.5;color:#d2e9ee;margin:0 0 16px}
.cr-dashboard-hero .cr-breadcrumb a{color:#d2e9ee;text-decoration:none}
.cr-dashboard-hero .eyebrow{display:block;font-size:12px;line-height:1.4;letter-spacing:1.7px;color:#ffd34f;font-weight:900;margin:0 0 4px}
.cr-dashboard-hero h1{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(38px,4.2vw,54px)!important;line-height:1.08!important;margin:0 0 9px!important;color:#fff!important;font-weight:700}
.cr-dashboard-hero>p{font-size:15px!important;line-height:1.55;margin:0!important;max-width:680px;color:#e3f0f4}
.cr-how-panel{
  display:block!important;position:relative;overflow:hidden;
  padding:22px 24px 24px!important;margin:0 0 20px!important;
  border:1px solid #087c88;border-radius:12px;
  background:linear-gradient(90deg,rgba(1,20,27,.94),rgba(1,20,27,.74)),url('../premium/premium-4.jpg') center 53%/cover no-repeat!important;
}
.cr-how-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}
.cr-how-panel h2{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(23px,2.4vw,30px)!important;line-height:1.2!important;margin:0!important;color:#fff!important}
.cr-how-title>span{font-size:12px;line-height:1.5;color:#d5eaf0;text-align:right}
.cr-how-steps{display:grid!important;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr)!important;gap:12px;align-items:center}
.cr-how-step{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:0 14px!important;align-items:center;min-width:0}
.cr-how-icon{grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center;width:66px!important;height:66px!important;min-width:66px;border-radius:50%;border:2px solid #00d4e4;color:#35e8f1;font-size:30px;line-height:1;background:rgba(0,18,25,.78);box-shadow:0 0 18px rgba(0,210,225,.13)}
.cr-step-num{display:grid!important;grid-column:1!important;grid-row:1!important;align-self:end;justify-self:start;place-items:center;position:relative;z-index:2;width:29px;height:29px;margin:0 0 -8px -5px;border:2px solid #ffd34f;border-radius:50%;background:#061820;color:#ffd34f;font-size:13px;font-weight:900}
.cr-how-step>div{grid-column:2!important;grid-row:1!important;min-width:0}
.cr-how-step b{display:block;font-size:14px;line-height:1.35;color:#fff;margin:0 0 7px}
.cr-how-step p,.cr-how-step small{display:block;font-size:11px;line-height:1.55;color:#d0e6eb;margin:0;max-width:220px}
.cr-how-steps>i{display:block;font-size:34px;line-height:1;font-style:normal;color:#ffd34b;text-align:center}
.cr-dashboard-tabs{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  width:100%;margin:0 0 26px!important;padding:0!important;
  border:1px solid #087887;border-radius:9px;overflow:hidden;background:#04151d;
}
.cr-dashboard-tabs a{display:flex!important;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:50px!important;padding:10px 12px!important;border-right:1px solid #075663;color:#eaf8fb;text-decoration:none;font-size:12px!important;line-height:1.35;font-weight:800;white-space:normal!important;text-align:center}
.cr-dashboard-tabs a:last-child{border-right:0}
.cr-dashboard-tabs a.active,.cr-dashboard-tabs a:hover{background:linear-gradient(110deg,#ffe18a,#f2bd3f);color:#07141a}
.cr-dashboard-tabs b{display:inline-grid;place-items:center;flex:0 0 auto;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#075261;color:#fff;font-size:11px}
.cr-dashboard-tabs a.active b{background:#09232a;color:#fff}
.cr-dashboard-section{display:block!important;width:100%;margin:0 0 27px!important;padding:0!important;scroll-margin-top:20px}
.cr-section-heading{display:flex!important;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 10px 14px!important}
.cr-section-heading>div{min-width:0}
.cr-section-heading h2{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(22px,2.2vw,27px)!important;line-height:1.2!important;color:#fff!important;margin:0 0 5px!important}
.cr-section-heading p{font-size:13px!important;line-height:1.5;color:#b9d5dd;margin:0!important}
.cr-section-heading>a{font-size:12px;font-weight:900;color:#2ce5e8;text-decoration:none;white-space:nowrap;padding-bottom:3px}
.cr-dashboard-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch;gap:18px!important;width:100%}
.cr-dashboard-card{display:flex!important;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #087887;border-radius:10px;background:#041922;box-shadow:0 5px 16px rgba(0,0,0,.18)}
.cr-dashboard-art{display:block;position:relative;flex:0 0 auto;width:100%;height:clamp(150px,14vw,190px)!important;background-position:center;background-size:cover;background-color:#08242e}
.cr-dashboard-art:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(180deg,transparent,rgba(0,12,18,.65));pointer-events:none}
.cr-dash-badge,.cr-dash-time{position:absolute;z-index:1;top:12px;padding:7px 10px;border-radius:5px;font-size:11px;line-height:1.2;font-weight:900;color:#fff;background:#f01931}
.cr-dash-badge{left:12px}
.cr-dash-badge.upcoming{background:#00b6bd}
.cr-dash-badge.completed{background:#607e8c}
.cr-dash-badge.livecase{background:#00b6a3}
.cr-dash-time{left:auto;right:12px;background:rgba(1,17,24,.9);border:1px solid #27525d}
.cr-dashboard-card-body{display:flex!important;flex-direction:column;flex:1 1 auto;padding:15px 16px 16px!important;min-width:0}
.cr-dashboard-card-body h3{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(18px,1.7vw,21px)!important;line-height:1.25!important;color:#fff!important;margin:0 0 6px!important}
.cr-dashboard-card-body>p{font-size:12px!important;line-height:1.5!important;color:#d0e5eb;margin:0 0 14px!important;min-height:18px}
.cr-dashboard-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:auto 0 15px!important;padding:0!important}
.cr-dashboard-metrics>span{display:flex!important;flex-direction:column;gap:3px;min-width:0;font-size:12px;line-height:1.3;color:#d6eaf0}
.cr-dashboard-metrics b{font-size:13px!important;line-height:1.3;color:#ffcf4e!important;white-space:nowrap}
.cr-dashboard-metrics small{font-size:10px!important;line-height:1.35;color:#b4d2da!important}
.cr-dash-action{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:42px!important;margin-top:auto;padding:10px 12px;border-radius:6px;background:linear-gradient(100deg,#fa1931,#ed1a30);color:#fff!important;text-decoration:none!important;text-align:center;font-size:13px!important;line-height:1.35;font-weight:900;border:1px solid #ff2c40}
.cr-dash-action.outline{background:transparent;border-color:#00bac8;color:#28e4e8!important}
.cr-dash-action.teal{background:linear-gradient(100deg,#00b6aa,#32dce1);border-color:#25d5d7;color:#00191e!important}
.cr-dash-action.disabled{background:#253b42;border-color:#455e65;color:#a9c0c6!important}
.cr-case-playing{font-size:12px;color:#58e6e8;margin:0 0 12px}
.cr-dashboard-all-link{margin:20px 0 0;text-align:center}
.cr-dashboard-all-link a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 20px;border:1px solid #087887;border-radius:7px;color:#2ce5e8;text-decoration:none;font-weight:800}
@media(max-width:1000px){
 .cr-competition-dashboard{padding:0 14px 36px!important}
 .cr-how-title{align-items:flex-start;flex-direction:column;gap:5px}
 .cr-how-title>span{text-align:left}
 .cr-how-steps{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;row-gap:20px}
 .cr-how-steps>i:nth-of-type(2){display:none}
 .cr-dashboard-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .cr-dashboard-tabs a{border-bottom:1px solid #075663}
 .cr-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 .cr-competition-dashboard{padding:0 10px 28px!important}
 .cr-dashboard-hero{min-height:180px!important;padding:22px 17px!important}
 .cr-dashboard-hero h1{font-size:36px!important}
 .cr-how-panel{padding:17px 14px!important}
 .cr-how-steps{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .cr-how-steps>i{display:none!important}
 .cr-how-step{grid-template-columns:54px minmax(0,1fr)!important;gap:0 12px!important}
 .cr-how-icon{width:52px!important;height:52px!important;min-width:52px;font-size:25px}
 .cr-dashboard-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:22px!important}
 .cr-dashboard-tabs a{min-height:46px!important;font-size:11px!important}
 .cr-dashboard-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 .cr-dashboard-art{height:190px!important}
 .cr-section-heading{margin:0 2px 11px!important;align-items:flex-start}
 .cr-section-heading h2{font-size:22px!important}
 .cr-section-heading p{font-size:12px!important}
 .cr-dashboard-card-body{padding:14px!important}
 .cr-dashboard-card-body h3{font-size:20px!important}
 .cr-dashboard-card-body>p{font-size:13px!important}
 .cr-dashboard-metrics b{font-size:13px!important}
}

/* Competition card metrics: keep icon and value on one readable line. */
.cr-dashboard-metrics>span{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important}
.cr-dashboard-metrics .cr-metric-value{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;min-width:0!important;white-space:nowrap!important}
.cr-dashboard-metrics .cr-metric-value i{display:inline-flex!important;align-items:center!important;justify-content:center;font-style:normal!important;font-size:15px!important;line-height:1!important;color:#2ce5e8!important;flex:0 0 auto}
.cr-dashboard-metrics .cr-metric-value b{display:inline-block!important;font-size:13px!important;line-height:1.3!important;color:#ffcf4e!important;white-space:nowrap!important}
.cr-dashboard-metrics small{display:block!important;padding-left:22px!important;font-size:10px!important;line-height:1.35!important;color:#b4d2da!important}
@media(max-width:520px){.cr-dashboard-metrics{gap:5px!important}.cr-dashboard-metrics .cr-metric-value{gap:4px!important}.cr-dashboard-metrics .cr-metric-value i{font-size:13px!important}.cr-dashboard-metrics .cr-metric-value b{font-size:12px!important}.cr-dashboard-metrics small{padding-left:17px!important;font-size:9px!important}}


/* CASE ROOM: show category sections side by side on All Competitions */
.cr-competition-dashboard.cr-all-competition-view{display:block!important}
.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-section:not([hidden]){display:inline-block!important;vertical-align:top!important;width:calc(50% - 10px)!important;box-sizing:border-box!important;margin:0 16px 24px 0!important}
.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-section:not([hidden]):nth-of-type(even){margin-right:0!important}
.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-art{height:110px}
@media(max-width:760px){.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-section:not([hidden]){display:block!important;width:100%!important;margin:0 0 22px!important}.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-grid{grid-template-columns:1fr!important}}


/* === FINAL FIX: All Competitions shows four category sections in a real 2-column layout === */
.cr-competition-dashboard.cr-all-competition-view{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  column-gap:20px!important;
  row-gap:20px!important;
  width:100%!important;
  max-width:1480px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.cr-competition-dashboard.cr-all-competition-view > .cr-dashboard-hero,
.cr-competition-dashboard.cr-all-competition-view > .cr-how-panel,
.cr-competition-dashboard.cr-all-competition-view > .cr-dashboard-tabs{
  grid-column:1 / -1!important;
  width:100%!important;
  min-width:0!important;
}
.cr-competition-dashboard.cr-all-competition-view > .cr-dashboard-section:not([hidden]){
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  align-self:start!important;
}
.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
}
.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-card{width:100%!important;min-width:0!important}
@media(max-width:600px){
  .cr-competition-dashboard.cr-all-competition-view{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .cr-competition-dashboard.cr-all-competition-view > .cr-dashboard-hero,
  .cr-competition-dashboard.cr-all-competition-view > .cr-how-panel,
  .cr-competition-dashboard.cr-all-competition-view > .cr-dashboard-tabs{grid-column:1!important}
  .cr-competition-dashboard.cr-all-competition-view .cr-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:380px){.cr-competition-dashboard.cr-all-competition-view .cr-dashboard-grid{grid-template-columns:minmax(0,1fr)!important}}


/* FINAL OVERRIDE: All Competitions displays every competition card in one full-width side-by-side grid. */
.cr-competition-dashboard.cr-all-competition-view{display:block!important;width:100%!important;max-width:none!important;margin:0 auto!important}
.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-hero,
.cr-competition-dashboard.cr-all-competition-view>.cr-how-panel,
.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-tabs{width:100%!important}
.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-section#all-competitions:not([hidden]){display:block!important;width:100%!important;margin:0 0 24px!important}
.cr-competition-dashboard.cr-all-competition-view>.cr-dashboard-section:not(#all-competitions){display:none!important}
.cr-competition-dashboard.cr-all-competition-view #all-competitions .cr-dashboard-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;width:100%!important}
.cr-competition-dashboard.cr-all-competition-view #all-competitions .cr-dashboard-card{width:100%!important;min-width:0!important}
.cr-competition-dashboard.cr-all-competition-view #all-competitions .cr-dashboard-art{height:clamp(170px,18vw,250px)!important}
@media(max-width:650px){.cr-competition-dashboard.cr-all-competition-view #all-competitions .cr-dashboard-grid{grid-template-columns:minmax(0,1fr)!important}}


/* Homepage Competition Mode showcase — positioned above Featured Cases */
.home-competition-showcase{position:relative;margin:34px 0 30px;padding:28px 20px 24px;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 50% 0%,rgba(0,220,205,.12),transparent 48%),linear-gradient(135deg,#041820 0%,#031016 55%,#052329 100%);border:1px solid rgba(45,220,215,.2);color:#f6fbff}
.home-comp-intro{text-align:center;margin:0 auto 28px;max-width:950px}.home-comp-eyebrow{display:inline-flex;align-items:center;gap:10px;color:#20e5d5;letter-spacing:2px;font-size:13px;font-weight:800}.home-comp-eyebrow i{display:inline-block;width:56px;height:2px;background:linear-gradient(90deg,transparent,#16e4d6)}.home-comp-eyebrow i:last-child{transform:rotate(180deg)}.home-comp-intro h2{margin:12px 0 8px;font-size:clamp(27px,3.4vw,43px);line-height:1.12;color:#f7f9fb;font-weight:800}.home-comp-intro h2 em{font-style:normal;color:#1de0d1}.home-comp-intro p{margin:0;color:#c7d8e2;font-size:16px;line-height:1.55}.home-comp-steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:12px;align-items:center;margin:0 auto 28px;max-width:1200px}.home-comp-step{display:flex;align-items:center;gap:13px;min-width:0}.home-comp-step-icon{position:relative;flex:0 0 64px;width:64px;height:64px;display:grid;place-items:center;border:2px solid #12d9cf;border-radius:50%;color:#f1fbff;font-size:27px;background:rgba(2,20,27,.75);box-shadow:inset 0 0 0 5px rgba(19,219,208,.06)}.home-comp-step-icon b{position:absolute;left:-7px;top:19px;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#18e1d2;color:#00232b;font-size:14px}.home-comp-step strong{display:block;font-size:16px;margin-bottom:7px;color:#fff}.home-comp-step small{display:block;font-size:13px;line-height:1.45;color:#c7d8e2}.home-comp-arrow{color:#14e1d1;font-size:27px;text-align:center}.home-comp-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.home-comp-card{position:relative;isolation:isolate;min-width:0;min-height:455px;overflow:hidden;border:1px solid rgba(113,184,199,.35);border-radius:17px;background:#041b22;display:flex;flex-direction:column;align-items:stretch}.home-comp-card:before{content:"";position:absolute;z-index:-2;inset:0 0 auto;height:48%;background-image:linear-gradient(180deg,rgba(2,13,18,.05) 0%,rgba(2,19,25,.18) 45%,#041b22 100%),linear-gradient(135deg,#183c43,#08161e);background-position:center;background-size:cover}.home-comp-card:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,transparent 0%,rgba(3,19,25,.1) 27%,#041b22 49%)}.home-comp-tag,.home-comp-player-count{position:absolute;top:16px;padding:8px 13px;border-radius:22px;background:rgba(2,17,24,.82);border:1px solid #12d9cf;font-size:11px;font-weight:800;letter-spacing:.5px}.home-comp-tag{left:16px;color:#18e1d2}.home-comp-player-count{right:14px;color:#fff;border-color:rgba(170,212,220,.4);font-size:12px}.home-comp-card-10 .home-comp-tag{border-color:#27c7f0;color:#27c7f0}.home-comp-card-50 .home-comp-tag{border-color:#f4ce36;color:#ffdb43}.home-comp-card-content{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:auto;padding:100px 20px 20px}.home-comp-people{display:grid;place-items:center;width:82px;height:82px;border:3px solid #15e0d0;border-radius:50%;background:rgba(0,25,31,.9);color:#16e3d4;font-size:29px;margin-bottom:10px;box-shadow:0 0 25px rgba(0,225,210,.12)}.home-comp-card-10 .home-comp-people{border-color:#27c7f0;color:#27c7f0}.home-comp-card-50 .home-comp-people{border-color:#ffda36;color:#ffda36}.home-comp-card h3{font-size:clamp(23px,2.1vw,32px);line-height:1.15;margin:0 0 12px;color:#fff;font-weight:800}.home-comp-card h3 em{display:block;font-style:normal;color:#18e0d2}.home-comp-card-10 h3 em{color:#27c7f0}.home-comp-card-50 h3 em{color:#ffda36}.home-comp-card p{min-height:45px;margin:0 auto 18px;max-width:370px;color:#d1e0e7;font-size:14px;line-height:1.5}.home-comp-stats{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:0 0 18px}.home-comp-stats span{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:63px;padding:8px 5px;border:1px solid rgba(124,174,187,.2);border-radius:12px;background:rgba(140,183,194,.08)}.home-comp-stats b{font-size:12px;white-space:nowrap;color:#f7fbff}.home-comp-stats small{margin-top:6px;color:#bdd0da;font-size:11px}.home-comp-card-content>a{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;padding:10px 12px;border-radius:12px;background:linear-gradient(100deg,#1ae6d2,#14d9c8);color:#001e24!important;text-decoration:none!important;font-weight:800;font-size:15px;transition:filter .2s,transform .2s}.home-comp-card-content>a:hover{filter:brightness(1.08);transform:translateY(-1px)}.home-comp-card-10 .home-comp-card-content>a{background:linear-gradient(100deg,#28c8f2,#18b9ec)}.home-comp-card-50 .home-comp-card-content>a{background:linear-gradient(100deg,#ffe24d,#f7c72b)}
@media(max-width:1000px){.home-comp-steps{grid-template-columns:1fr 1fr;gap:20px}.home-comp-arrow{display:none}.home-comp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-comp-card-50{grid-column:1/-1}.home-comp-card-50 .home-comp-card-content{max-width:700px;width:100%;margin-left:auto;margin-right:auto}}
@media(max-width:640px){.home-competition-showcase{padding:22px 12px;margin:24px 0}.home-comp-intro p{font-size:14px}.home-comp-desktop-break{display:none}.home-comp-steps{grid-template-columns:1fr;gap:16px;margin-bottom:22px}.home-comp-step-icon{flex-basis:54px;width:54px;height:54px}.home-comp-step-icon b{top:13px}.home-comp-card-grid{grid-template-columns:1fr;gap:14px}.home-comp-card-50{grid-column:auto}.home-comp-card{min-height:430px}.home-comp-card-content{padding-left:14px;padding-right:14px}.home-comp-stats{gap:5px}.home-comp-stats b{font-size:11px}.home-comp-stats small{font-size:10px}}

/* Premium single-player room: deliberately reuse the visual system of Live Competition gameplay. */
.page-investigate .topbar{display:none!important}
.page-investigate main.wrap{max-width:1540px;padding:0 clamp(12px,3.9vw,60px) 28px;margin:0 auto}
.page-investigate .heading{position:relative;isolation:isolate;overflow:hidden;min-height:205px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:28px 32px;margin:0 0 12px;border:1px solid #087c91;border-radius:10px;background:linear-gradient(90deg,rgba(1,13,20,.98) 0%,rgba(1,13,20,.91) 48%,rgba(1,13,20,.5) 100%),radial-gradient(ellipse at 82% 15%,#d89d4e 0,transparent 30%),linear-gradient(135deg,#0b3843,#04151c 65%,#35281c);color:#f4f7f8}
.page-investigate .heading .eyebrow,.page-investigate .heading .kicker{color:#00e7db!important;letter-spacing:3px;font-weight:900}
.page-investigate .heading h1{font-size:clamp(34px,3.1vw,54px);line-height:1.02;margin:8px 0;color:#fff;max-width:900px}
.page-investigate .heading p{max-width:750px;color:#dcebee;font-size:14px;line-height:1.6}
.page-investigate .ir-mode-nav{margin:0;padding:10px;background:#03151e;border:1px solid #08748a;border-radius:9px}
.page-investigate .ir-mode-nav a{border-radius:7px;background:#041820;border-color:#08768b;color:#dcebee}
.page-investigate .ir-mode-nav a.active,.page-investigate .ir-mode-nav a:hover{background:#00d6cd;color:#042128;border-color:#00d6cd}
.page-investigate .ir-timer{margin:0;padding:17px 20px;border-radius:9px;background:linear-gradient(145deg,#061d27,#04131b);border-color:#08748a;box-shadow:none}
.page-investigate .ir-timer strong{font-size:clamp(38px,3.5vw,54px);color:#ffd95b}
.page-investigate .ir-investigation-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:14px}
.page-investigate .ir-investigation-main,.page-investigate .ir-suspect-panel{gap:14px}
.page-investigate .ir-board,.page-investigate .ir-suspect-panel,.page-investigate .ir-live-section{border:1px solid #08748a!important;border-radius:9px!important;background:linear-gradient(145deg,#061d27,#04131b)!important;box-shadow:none!important}
.page-investigate .ir-board{padding:14px!important}
.page-investigate .ir-board-head{padding-bottom:10px;border-bottom:1px solid #155563;letter-spacing:1px}
.page-investigate .ir-board-head>span{font-size:18px;font-family:Georgia,serif}
.page-investigate .ir-board-head small,.page-investigate .ir-board-head a{color:#00d6cd}
.page-investigate .ir-uploaded-investigation-board img{max-height:620px;border-radius:7px}
.page-investigate .ir-collage-tile,.page-investigate .ir-live-evidence-card,.page-investigate .ir-suspect-row-reference{border-color:#0a6678;border-radius:7px;background:#03151e}
.page-investigate .ir-live-evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.page-investigate .ir-live-evidence-card img{height:120px}
.page-investigate .ir-live-evidence-copy{padding:10px 11px}
.page-investigate .ir-live-evidence-copy h3{font:700 16px Georgia,serif}
.page-investigate .ir-victim-card{border-color:#0a6678;border-radius:7px;background:#03151e}
.page-investigate .ir-suspect-row-reference{padding:9px;border-radius:7px}
.page-investigate .ir-hint-vault{border-color:#78612b;border-radius:7px}
.page-investigate .ir-accuse-button{min-height:48px;border-radius:7px!important}
@media(max-width:900px){.page-investigate main.wrap{padding:0 12px 22px}.page-investigate .ir-investigation-layout{grid-template-columns:1fr}.page-investigate .ir-live-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.page-investigate .heading{min-height:0;padding:20px 16px}.page-investigate .heading h1{font-size:32px}.page-investigate .ir-live-evidence-grid{grid-template-columns:1fr}.page-investigate .ir-timer{align-items:flex-start;flex-direction:column}.page-investigate .ir-timer .btn{margin-left:0}}

.case-score-breakdown{margin:16px 0;padding:13px 15px;border:1px solid var(--line,#31515b);border-radius:10px;background:rgba(5,30,38,.55)}
.case-score-breakdown h4{margin:0 0 8px;color:var(--accent,#f5c84c);font-size:13px}
.case-score-breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid rgba(75,111,121,.35);font-size:12px}
.case-score-breakdown>div:last-child{border-bottom:0}
.case-score-breakdown b{color:#f2f7f8;white-space:nowrap}
.case-score-breakdown .case-score-total{margin-top:5px;padding-top:10px;border-top:1px solid #47717c;font-weight:800}


.case-score-breakdown .point-breakdown-subhead{display:block;padding:9px 0 5px;margin-top:4px;border-bottom:1px solid rgba(245,200,76,.42);color:var(--accent,#f5c84c);font-weight:900;text-transform:uppercase;letter-spacing:.35px}
.case-score-breakdown small{color:#9db5bc;font-size:10px;font-weight:600}
.point-breakdown-subhead th{padding-top:12px!important;color:#f5c84c!important;text-transform:uppercase;font-size:10px;letter-spacing:.4px}
.leaderboard-table tbody tr.point-breakdown-subhead{background:rgba(245,200,76,.055)}
.leaderboard-table tbody tr.point-breakdown-subhead th{border-bottom:1px solid rgba(245,200,76,.35)}
.leaderboard-table small{color:#9db5bc;font-size:10px}

/* Full case explanation popup */
.full-case-explanation-modal{width:min(920px,calc(100% - 32px));max-width:920px;max-height:min(88dvh,900px);padding:30px;overflow:auto}
.full-case-explanation-content{color:#dce9e8;font-size:15px;line-height:1.75}
.full-case-explanation-content h3{margin:22px 0 10px;color:#ffd45c;font:700 20px Georgia,serif}
.full-case-explanation-content .case-description{line-height:1.8}
.full-case-explanation-content ol{padding-left:22px}
.full-case-explanation-content li{padding:10px 0;border-bottom:1px solid #24444c}
.full-case-explanation-content li strong{color:#f4d16c}
.full-case-explanation-content li p{margin:4px 0 0;color:#bfd0d2}
.result-correct-answer>h3{margin-top:0}
.result-correct-answer>button{margin-top:10px;cursor:pointer}
@media(max-width:600px){.full-case-explanation-modal{padding:22px 18px}}

/* V48: readable full-explanation modal with side-by-side section tabs */
.full-case-explanation-modal{
 width:min(1120px,calc(100% - 36px))!important;max-width:1120px!important;
 max-height:min(90dvh,940px)!important;overflow:auto!important;
 padding:30px!important;background:#061a23!important;color:#f3f7f6!important;
 border:1px solid #13899a!important;box-shadow:0 28px 110px rgba(0,0,0,.88)!important
}
.full-case-explanation-modal::backdrop{background:rgba(0,0,0,.82)!important;backdrop-filter:blur(6px)}
.full-case-explanation-modal .wallet-kicker{color:#ffd45c!important;letter-spacing:.16em;font-weight:900}
.full-case-explanation-modal>h2{color:#fff!important;font-size:clamp(26px,3vw,38px)!important;margin:8px 52px 8px 0!important}
.full-case-explanation-modal .wallet-modal-lead{color:#d4e2e4!important;font-size:14px!important}
.full-explanation-layout{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}
.full-explanation-tabs{display:grid;gap:9px;position:sticky;top:0}
.full-explanation-tab{display:block;width:100%;padding:15px 16px;text-align:left;border:1px solid #24606b;border-radius:9px;background:#0b2933;color:#eaf3f3;font:700 14px/1.4 Inter,Arial,sans-serif;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.full-explanation-tab:hover{border-color:#f2c653;background:#123642;color:#fff}
.full-explanation-tab.is-active{background:#f4c957;border-color:#f4c957;color:#071923;box-shadow:0 6px 18px rgba(244,201,87,.16)}
.full-explanation-panels{min-width:0;min-height:330px;padding:22px 24px;border:1px solid #23525d;border-radius:11px;background:#09232d}
.full-explanation-panel[hidden]{display:none!important}
.full-explanation-panel h3{margin:0 0 16px!important;color:#ffd45c!important;font:700 23px/1.3 Georgia,serif!important}
.full-explanation-copy,.full-explanation-copy p,.full-explanation-copy li,
.full-explanation-panel .case-description,.full-explanation-panel .case-description p{
 color:#f0f5f4!important;font-size:15px!important;line-height:1.85!important;opacity:1!important;text-shadow:none!important
}
.full-explanation-copy p{margin:0 0 15px!important}
.full-explanation-culprit{display:flex;flex-direction:column;gap:8px;padding:17px 19px;margin:0 0 18px;border:1px solid #8d7133;border-radius:9px;background:#142d32}
.full-explanation-label{color:#ffd45c;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.full-explanation-culprit strong{color:#fff;font:700 25px Georgia,serif}
.full-explanation-muted{color:#c4d5d8!important;font-size:13px!important;line-height:1.7!important}
.full-explanation-timeline{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.full-explanation-timeline li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:13px;border:1px solid #244e58;border-radius:8px;background:#0b2a34}
.full-explanation-step{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f2c653;color:#071923;font-weight:900}
.full-explanation-timeline h4,.full-explanation-evidence h4{margin:0 0 5px;color:#fff;font-size:15px}
.full-explanation-timeline p,.full-explanation-evidence p{margin:0;color:#e0ebeb!important;font-size:14px!important;line-height:1.7!important;opacity:1!important}
.full-explanation-evidence{padding:14px 0;border-bottom:1px solid #31515a}
.full-explanation-evidence:first-of-type{padding-top:0}
.full-explanation-evidence:last-child{border-bottom:0}
.full-case-explanation-modal .wallet-modal-close{z-index:3;background:#0c2a34!important;color:#fff!important;border-color:#36717b!important}
@media(max-width:700px){
 .full-case-explanation-modal{padding:22px 16px!important;width:calc(100% - 18px)!important}
 .full-explanation-layout{grid-template-columns:1fr;gap:12px}
 .full-explanation-tabs{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .full-explanation-tab{padding:11px 10px;font-size:12px}
 .full-explanation-panels{padding:17px 14px;min-height:260px}
 .full-explanation-panel h3{font-size:20px!important}
}
