:root{--bg:#020e0b;--panel:#061c16;--panel2:#09271d;--line:#173f2c;--green:#94f72c;--mint:#00e5bb;--text:#f6f7ed;--muted:#9aafa3;--gold:#efd66b;--red:#ff655f;color-scheme:dark;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0%,#173222 0,transparent 35%),var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);padding:12px 16px;font-weight:700}button:hover,a.tile:hover{border-color:var(--green)}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--green);border-color:var(--green);color:#071203}.secondary{background:transparent;border-color:var(--green);color:var(--green)}.danger{color:#ff918b;border-color:#733b39}.small{padding:8px 10px;font-size:12px}.wide{width:100%}.muted,small{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1,h2,h3,.display{font-family:Impact,'Arial Narrow',Arial,sans-serif;letter-spacing:.5px;font-weight:500}h1{font-size:36px;line-height:1.06}h2{font-size:24px}h3{font-size:18px}p{line-height:1.6}em{color:var(--green);font-style:normal}.icon{display:inline-block;width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar{position:sticky;top:0;z-index:20;background:#03100def;backdrop-filter:blur(18px);border-bottom:1px solid var(--line);height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.brand{display:flex;gap:10px;align-items:center}.brand strong{font-family:Impact,'Arial Narrow',sans-serif;font-weight:500;color:var(--green);font-size:23px;letter-spacing:.8px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:4px}.desktopnav{display:flex;gap:24px;color:var(--muted)}.desktopnav a.active{color:var(--green)}.top-actions{display:flex;align-items:center;gap:8px}.iconbtn{border:0;background:transparent;padding:10px}.crest{position:relative;overflow:hidden;width:60px;height:72px;flex-shrink:0}.crest:before{content:'';position:absolute;background:url('reference-art.png') no-repeat;background-size:498.56px 455.62px;width:498.56px;height:455.62px;left:-20px;top:-54px}.crest.large{transform:scale(2);margin:50px auto 65px}.crest.tiny{transform:scale(.6);width:45px;margin-right:-10px}.layout{max-width:1240px;margin:auto;padding:30px 28px 110px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.pagehead h1{margin:0}.eyebrow{font-size:10px;letter-spacing:2.3px;color:var(--green);font-weight:700;margin-bottom:10px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:linear-gradient(125deg,#092219,#041510);border:1px solid var(--line);border-radius:14px;padding:22px;min-width:0}.card h2,.card h3{margin-bottom:16px}.card.edge{border-top:3px solid var(--green)}.homegrid{display:grid;grid-template-columns:1.35fr 1fr;gap:22px}.hero{min-height:430px;position:relative;overflow:hidden;border-radius:16px;border:1px solid #45662b;background:#071008}.hero-art{position:absolute;inset:0;background:url('team-poster.png') center 29%/100% auto no-repeat;opacity:.85}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#03100d 0%,transparent 70%),linear-gradient(90deg,#03100da6,transparent 60%)}.hero-copy{position:absolute;bottom:26px;left:28px;z-index:1;max-width:80%}.hero-copy h1{font-size:60px;line-height:.95;margin:0 0 16px;text-shadow:0 2px 15px #000}.hero-copy p{margin-bottom:14px;color:#ddd}.badge{display:inline-block;padding:5px 9px;border:1px solid var(--line);border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.6px;color:var(--green)}.badge.live{background:#df3932;border-color:#df3932;color:white}.badge.gold{color:var(--gold)}.nextcard{display:flex;flex-direction:column;justify-content:space-between;min-height:315px}.matchteams{display:flex;align-items:center;justify-content:space-around;gap:12px;text-align:center;padding:18px 0}.teammark{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}.teammark strong{font-size:14px}.teammark img,.team-logo{width:62px;height:62px;object-fit:contain}.shield{width:55px;height:64px;clip-path:polygon(5% 0,95% 0,95% 65%,50% 100%,5% 65%);background:linear-gradient(140deg,#ecdf8c,#a47826);display:grid;place-items:center;color:#142118;font-family:Impact,sans-serif;font-size:20px}.vs{font-family:Impact,sans-serif;font-size:22px;color:var(--muted)}.match-meta{text-align:center;font-size:12px;color:var(--muted);line-height:1.8}.countdown{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);padding:10px;border-radius:8px;margin:14px 0;text-align:center}.countdown strong{display:block;color:var(--gold);font-size:24px;font-family:Impact,sans-serif}.countdown small{font-size:9px}.quicklinks{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.tile{background:var(--panel);border:1px solid var(--line);padding:17px 8px;text-align:center;border-radius:10px;font-size:11px;display:flex;align-items:center;flex-direction:column;gap:10px}.tile .icon{color:var(--green)}.sectionhead{margin:30px 0 16px;display:flex;justify-content:space-between;align-items:center}.sectionhead h2{margin:0}.sectionhead a{font-size:12px;color:var(--green)}.quote{padding:22px;text-align:center;font-style:italic;letter-spacing:1px;color:#d8e6d3}.tabs{display:flex;gap:4px;background:#031710;border:1px solid var(--line);border-radius:11px;padding:4px;margin-bottom:20px;overflow:auto}.tabs button{white-space:nowrap;flex:1;background:none;border:0;color:var(--muted);font-size:12px;padding:10px}.tabs button.active{background:var(--green);color:#0b1705}.matchrow{display:flex;align-items:center;gap:16px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.matchrow .date{border-right:1px solid var(--line);padding-right:16px;min-width:54px;text-align:center}.date strong{font-family:Impact,sans-serif;font-size:28px;display:block}.date small{font-size:11px}.grow{flex:1;min-width:0}.matchrow h3{margin:0 0 6px;font-size:19px}.matchrow p{font-size:12px;margin:0;color:var(--muted)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack>*+*{margin-top:16px}.scorehero{padding:26px;text-align:center;background:radial-gradient(ellipse at 50% 0,#164728,transparent 75%),#03150f}.scorebig{font-family:Impact,sans-serif;font-size:68px;letter-spacing:1px;line-height:1.1}.scoreline{padding:14px;border:1px solid #24744d;color:var(--mint);text-align:center;border-radius:8px;margin:20px 0 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.metric{padding:15px 8px;text-align:center;border:1px solid var(--line);background:#03140f;border-radius:9px}.metric strong{font-family:Impact,sans-serif;font-size:28px;display:block;line-height:1.3}.metric small{font-size:10px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:var(--muted);font-weight:400;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid #173425;white-space:nowrap}td:first-child{font-weight:600}tr:last-child td{border:0}.balls{display:flex;gap:9px;flex-wrap:wrap}.ball{width:35px;height:35px;display:grid;place-items:center;border:1px solid #588449;border-radius:50%;font-weight:700;font-size:12px}.ball.boundary{background:var(--green);color:#081509}.ball.wicket{background:#d84239;color:#fff;border-color:#d84239}.comment{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.comment strong{color:var(--green);min-width:42px}.playercard{display:flex;align-items:center;gap:14px;padding:15px}.jersey{font-family:Impact,sans-serif;font-size:37px;color:var(--green);min-width:43px;text-align:center}.avatar{width:58px;height:64px;border-radius:8px;object-fit:cover;background:radial-gradient(circle at 50% 20%,#77904c,#12271b 70%);display:grid;place-items:center;font-size:20px;font-family:Impact,sans-serif;color:#cdeb99}.playercard h3{font-size:20px;margin:0 0 5px}.playercard p{margin:0;font-size:11px;color:var(--muted)}.profile-cover{height:380px;position:relative;overflow:hidden;border-radius:14px 14px 0 0;background:#152518}.profile-cover.captain{background:url('team-poster.png') center 28%/100% auto no-repeat}.profile-cover>img{width:100%;height:100%;object-fit:cover}.profile-cover .placeholder{display:grid;place-items:center;height:100%;background:radial-gradient(circle,#315226,#061910);font-family:Impact,sans-serif;font-size:170px;color:var(--green)}.profile-title{text-align:center;background:linear-gradient(#061c16,#03110d);padding:24px}.profile-title h1{margin:0 0 8px}.profile-title p{color:var(--green);margin:0}.profile-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:22px}.achievement{padding:12px 0;border-bottom:1px solid var(--line)}.achievement .icon{color:var(--gold);margin-right:10px}.gallerygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gallery-item{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.gallery-item img{width:100%;height:240px;object-fit:cover}.gallery-item video{width:100%;height:240px;background:#000}.gallery-item p{padding:12px;margin:0}.morelist a,.morelist button{width:100%;display:flex;align-items:center;gap:14px;padding:18px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;font-weight:400}.morelist .icon{color:var(--green)}.bottomnav{position:fixed;bottom:0;left:0;right:0;background:#03110df5;border-top:1px solid var(--line);display:none;z-index:30;padding:9px 8px max(10px,env(safe-area-inset-bottom))}.bottomnav a{flex:1;text-align:center;font-size:9px;color:#8da59a;display:flex;flex-direction:column;gap:5px;align-items:center}.bottomnav a.active{color:var(--green)}.empty{padding:38px 22px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px}.empty .icon{width:32px;height:32px;color:var(--green);margin-bottom:12px}.empty strong{display:block;color:var(--text);margin-bottom:8px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar select{max-width:260px}label{display:block;font-size:12px;color:var(--muted);margin-bottom:14px}input,select,textarea{display:block;width:100%;border:1px solid #355440;background:#03100c;color:var(--text);padding:12px;border-radius:8px;margin-top:7px;min-height:43px}input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:1px}textarea{min-height:90px;resize:vertical}input[type=checkbox]{display:inline;width:18px;min-height:auto;margin:0 8px 0 0;accent-color:var(--green)}.check{display:flex;align-items:center;font-size:13px;padding:8px 0;color:var(--text);margin:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.fields .full{grid-column:1/-1}.adminnav{display:flex;gap:8px;overflow:auto;padding-bottom:12px;margin-bottom:16px}.adminnav a{padding:12px 16px;background:var(--panel);border:1px solid var(--line);border-radius:8px;white-space:nowrap;font-size:12px}.adminnav a.active{color:#071203;background:var(--green);border-color:var(--green)}.notice{border-left:3px solid var(--green);background:#15301d;padding:14px 18px;font-size:12px;line-height:1.7;margin-bottom:18px}.notice.warn{border-color:var(--gold);background:#302914}.scorebuttons{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:18px 0}.scorebuttons button{font-family:Impact,sans-serif;font-size:27px;padding:18px 0;background:var(--green);color:#092009;border-color:var(--green)}.scorebuttons button:nth-last-child(-n+2){background:#e1ed68}.steps{display:flex;gap:12px;color:var(--muted);font-size:11px;margin-bottom:22px;flex-wrap:wrap}.steps span{padding:8px 10px;border:1px solid var(--line);border-radius:5px}.steps .on{color:var(--green);border-color:var(--green)}dialog{width:min(660px,94vw);max-height:90vh;background:var(--bg);border:1px solid var(--line);border-radius:15px;padding:24px;color:var(--text)}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.modalhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modalhead h2{margin:0}.error{color:#ff9c96;line-height:1.6}.login{max-width:440px;margin:30px auto}.login .crest{margin:0 auto 15px}.login h1{text-align:center;font-size:32px}#toast{position:fixed;z-index:100;bottom:92px;left:50%;transform:translateX(-50%);padding:14px 20px;max-width:90vw;border-radius:10px;background:#c3f395;color:#13200c;display:none;box-shadow:0 8px 40px #000}#toast.error{background:#f8b2a6}#splash{position:fixed;inset:0;background:radial-gradient(ellipse,#213a1a,#020b07 65%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;transition:opacity .4s}#splash h1{text-align:center;font-size:43px;transform:rotate(-4deg)}#splash p{font-size:10px;letter-spacing:3px}.loadbar{width:150px;height:6px;background:#183126;border-radius:5px;overflow:hidden;margin-top:20px}.loadbar:after{content:'';display:block;height:100%;width:65%;background:var(--green);animation:load 1s infinite alternate}@keyframes load{to{transform:translateX(55%)}}.offline{background:#473d15;color:#fff1a4;padding:10px;text-align:center;font-size:12px}.filelabel{cursor:pointer;color:var(--green)}.filelabel input{font-size:12px}.split{display:flex;gap:8px;flex-wrap:wrap}.footnote{font-size:11px;color:var(--muted);line-height:1.6;margin:18px 0}.copyright{text-align:center;font-size:10px;color:#567361;padding:30px 0 0;letter-spacing:1.5px}.print-only{display:none}@media(min-width:1000px){.layout{padding-bottom:50px}.topbar{padding-left:max(24px,calc((100vw - 1184px)/2));padding-right:max(24px,calc((100vw - 1184px)/2))}}@media(max-width:900px){.desktopnav{display:none}.bottomnav{display:flex}.homegrid,.profile-layout{grid-template-columns:1fr 1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy h1{font-size:45px}.topbar{height:65px}.brand strong{font-size:20px}.topbar .crest{display:none}.layout{padding:22px 18px 100px}.gallerygrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){body{font-size:13px}.layout{padding:18px 14px 100px}.homegrid,.profile-layout,.grid.two,.grid{grid-template-columns:1fr}.hero{min-height:340px}.hero-art{background-position:center 28%;background-size:100% auto}.hero-copy{bottom:20px;left:20px}.hero-copy h1{font-size:48px}.card{padding:17px}.homegrid{gap:14px}.nextcard{min-height:auto}.pagehead h1{font-size:29px}.metrics{gap:6px}.metric{padding:12px 4px}.metric strong{font-size:23px}.metric small{font-size:9px}.fields{gap:0 12px}.scorebuttons{gap:6px}.scorebuttons button{font-size:24px}.profile-cover{height:350px}.gallery-item img,.gallery-item video{height:200px}.brand strong{font-size:19px}.brand small{font-size:8px}.topbar{padding:0 14px}.top-actions{gap:0}.top-actions .login-label{display:none}.scorebig{font-size:54px}.matchteams{gap:8px}.matchrow{gap:12px;padding:14px}.card .tablewrap{margin:0 -6px}.toolbar select{max-width:100%}.steps{gap:5px}.steps span{padding:7px}.grid.four{grid-template-columns:repeat(2,1fr)}}@media print{*{color:#111!important;background:white!important;box-shadow:none!important;text-shadow:none!important}body{font-size:11px}.topbar,.bottomnav,.toolbar,.tabs,.noprint,#toast,#splash,dialog,.copyright{display:none!important}.layout{padding:0;max-width:none}.card{border:1px solid #bbb;break-inside:avoid;padding:12px;margin-bottom:12px}.grid.two,.profile-layout{display:block}.scorebig{font-size:35px}.tablewrap{overflow:visible}th,td{padding:7px;border-bottom:1px solid #ccc}.print-only{display:block}.hero,.profile-cover{display:none}.pagehead{margin-bottom:10px}@page{size:A4;margin:12mm}}
@font-face{font-family:KingsDisplay;src:url('kings-display.woff') format('woff');font-weight:700;font-display:swap}h1,h2,h3,.display,.brand strong,.scorebig,.metric strong,.jersey,.date strong,.countdown strong,.scorebuttons button{font-family:KingsDisplay,'Arial Narrow',Arial,sans-serif;font-weight:700}.hero-copy h1{font-size:62px;line-height:.94;max-width:470px}.brand strong{font-size:25px}.hero-copy{max-width:90%}@media(max-width:600px){.hero-copy h1{font-size:48px;max-width:285px}.brand strong{font-size:22px}.hero{min-height:305px}.hero-copy{left:18px;bottom:18px}.hero-copy .eyebrow{font-size:9px}}
.tile.primary{background:var(--green);border-color:var(--green);color:#071203}.tabs a.primary{background:var(--green);color:#071203}.topbar .brand{min-width:0}.profile-cover.captain{background-position:center 26%}.form-error:empty{display:none}
/* v7 responsive hardening */
.card,.grow,.fields>*{min-width:0}h1,h2,h3,p,.notice,.matchrow{overflow-wrap:anywhere}.tablewrap{-webkit-overflow-scrolling:touch}dialog{max-width:calc(100vw - 20px)}
@media(max-width:600px){.fields{grid-template-columns:1fr}.fields .full{grid-column:auto}.pagehead,.sectionhead{align-items:flex-start;flex-wrap:wrap}.matchrow{flex-wrap:wrap}.matchrow .date{min-width:48px}.toolbar>button,.toolbar>a{max-width:100%}.scorebuttons{grid-template-columns:repeat(3,1fr)}.scorebuttons button{min-height:54px}.metrics{grid-template-columns:repeat(2,1fr)}dialog{padding:18px}.gallerygrid{grid-template-columns:1fr}}

/* v8 visual system — supplied Punjab Kings Eleven artwork */
:root{--bg:#010a08;--panel:#031711;--panel2:#06231a;--line:#16482f;--green:#a9ff18;--mint:#a9ff18;--text:#fff;--muted:#9fb0a6;--gold:#f2d66c}
body{background:radial-gradient(circle at 50% -20%,#123123 0,transparent 34%),linear-gradient(180deg,#010c09,#020806 70%);min-height:100vh}
.topbar{background:linear-gradient(180deg,#03120ff7,#02100df2);border-bottom-color:#123a29;box-shadow:0 8px 30px #0008}
.brand strong{color:var(--green);text-shadow:0 0 18px #8dff2633}.brand small{color:#d7e1db}.card,.matchrow,.tile{box-shadow:inset 0 1px 0 #ffffff08,0 10px 28px #0002}.card{background:linear-gradient(145deg,#07241a,#03130f 72%)}
.pkxi-logo{filter:drop-shadow(0 0 10px #a9ff1830)}.opponent-logo{filter:drop-shadow(0 0 10px #d8aa4b33)}
.crest:before{display:none}.crest{background:url('pkxi-logo.png') center/contain no-repeat}.crest.tiny{transform:none;width:42px;height:50px;margin-right:0}.crest.large{transform:none;width:128px;height:150px;margin:0 auto 12px}
.home-captain-hero .hero-art{background-image:url('home-captain.png');background-position:center;background-size:cover;opacity:1}.home-captain-hero:after{background:linear-gradient(0deg,#02100daa 0%,transparent 40%)}.hero-open{position:absolute;z-index:2;left:24px;bottom:20px;background:#a9ff18;color:#061006;border-radius:7px;padding:9px 13px;font-size:10px;font-weight:900;letter-spacing:.8px;box-shadow:0 5px 25px #0008}.hero-open .icon{width:15px;height:15px}
.team-quote-banner{height:150px;margin:22px 0;border:1px solid var(--line);border-radius:14px;background:url('team-quote.png') center/cover no-repeat;box-shadow:0 16px 40px #0005}
.profile-cover.captain{background:url('captain-cover.png') center/cover no-repeat}.profile-cover.captain:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#03120f 0,transparent 40%)}
.more-visual .hero-art{background-image:url('stadium-quote.png');background-size:cover;background-position:center;opacity:1}.more-visual:after{background:linear-gradient(0deg,#02100d99,transparent 40%)}
.gallery-item{box-shadow:0 10px 30px #0005}.gallery-item img{background:#020b08}.gallery-feature{grid-column:span 2}.gallery-feature img{height:380px}
#splash{padding:0;background:#010806;overflow:hidden}#splash .splash-art{position:absolute;inset:0;background:url('splash-screen.png') center/cover no-repeat}#splash:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#000b 0,transparent 24%);pointer-events:none}#splash .loadbar{position:absolute;z-index:2;bottom:56px;width:min(190px,55vw);height:5px;border:1px solid #66834b;background:#09150f}#splash p{position:absolute;z-index:2;bottom:24px;margin:0;color:#fff;font-size:9px;letter-spacing:3px}#splash h1,#splash>.crest{display:none}
.scorehero{background:radial-gradient(circle at 50% 0,#184a2c 0,transparent 65%),linear-gradient(180deg,#041a12,#02100d);border-color:#1d5c3a}.scoreline{background:#041b13}.bottomnav{box-shadow:0 -12px 30px #0008}.bottomnav a.active .icon{filter:drop-shadow(0 0 6px #a9ff18)}
@media(max-width:600px){.layout{padding:14px 12px 92px}.topbar{height:58px}.brand strong{font-size:17px}.brand small{font-size:6.5px;letter-spacing:1.2px}.top-actions .iconbtn{padding:8px}.homegrid{display:block}.home-captain-hero{min-height:255px;border-radius:10px;margin-bottom:10px}.hero-open{left:14px;bottom:12px;padding:7px 10px;font-size:8px}.nextcard{border-radius:10px}.quicklinks{gap:7px}.quicklinks .tile{padding:12px 5px}.team-quote-banner{height:92px;margin:14px 0;border-radius:9px}.card{border-radius:10px}.matchrow{border-radius:9px}.pagehead{margin-bottom:14px}.pagehead h1{font-size:25px}.tabs{margin-bottom:14px}.profile-cover{height:270px}.profile-cover.captain{height:260px;background-position:center}.profile-title{padding:18px}.profile-title h1{font-size:26px}.gallery-feature{grid-column:auto}.gallery-feature img,.gallery-item img,.gallery-item video{height:210px}.more-visual{min-height:240px}.scorehero{padding:18px 12px}.scorebig{font-size:50px}.teammark img,.team-logo{width:54px;height:54px}.matchteams{padding:12px 0}.bottomnav{background:#02100df8}.bottomnav a{font-size:8px}.bottomnav .icon{width:19px;height:19px}}
.squad-poster{height:420px;margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:url('team-family.png') center/cover no-repeat;box-shadow:0 16px 40px #0006}@media(max-width:600px){.squad-poster{height:235px;border-radius:10px}}

/* v9 image-path + mobile UI hardening */
.crest{background-image:var(--pkxi-logo)!important}.home-captain-hero .hero-art{background-image:var(--pkxi-home)!important}.profile-cover.captain{background-image:var(--pkxi-captain)!important}.squad-poster{background-image:var(--pkxi-team)!important}.team-quote-banner{background-image:var(--pkxi-quote)!important}.more-visual .hero-art{background-image:var(--pkxi-more)!important}#splash .splash-art{background-image:var(--pkxi-splash)!important}
@media(max-width:600px){body{background:#020c09}.layout{max-width:430px;margin:0 auto;padding:12px 10px 92px}.topbar{max-width:430px;margin:0 auto;border-left:1px solid #153728;border-right:1px solid #153728}.bottomnav{left:50%;right:auto;transform:translateX(-50%);width:min(430px,100vw);border-left:1px solid #153728;border-right:1px solid #153728}.home-captain-hero{min-height:300px}.home-captain-hero .hero-art{background-position:center top}.quicklinks{grid-template-columns:repeat(4,1fr)}.quicklinks .tile{min-width:0;font-size:9px}.squad-poster{height:245px;background-position:center top}.team-quote-banner{height:110px}.profile-cover.captain{height:320px}.gallerygrid{grid-template-columns:1fr 1fr;gap:8px}.gallery-item img,.gallery-item video{height:165px}.gallery-feature{grid-column:1/-1}.gallery-feature img{height:220px}.more-visual{min-height:260px}.card{border-color:#123d2b;background:linear-gradient(180deg,#062019,#04150f)}.matchrow{background:#062019}.tabs{background:#04150f;border-radius:10px;padding:4px}.tabs button.active{background:#8cff28;color:#071306}.bottomnav a.active{color:#9cff2b}}
/* v10 reference-mobile UI */
.app-version{font-size:9px;color:#678477;letter-spacing:1px}.squad-strip{display:flex;align-items:center;gap:12px;background:#031711;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:10px}.squad-strip img{width:46px;height:46px;object-fit:contain}.squad-strip strong{display:block;font-size:15px}.squad-strip small{display:block;font-size:8px;letter-spacing:1.3px;margin-top:3px}.playercard .avatar{object-fit:cover;object-position:center 18%}.profile-cover.player-photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%}.profile-cover.player-photo{background:#061a13}.profile-cover{overflow:hidden}
@media(max-width:600px){
 body{background:#010b08}.layout{width:100%;max-width:430px;padding:10px 9px 82px}.topbar{height:58px}.brand .crest{display:none}.brand strong{font-size:18px}.pagehead{margin:6px 0 10px}.pagehead .eyebrow{display:none}.pagehead h1{font-size:21px}.pagehead .split{display:none}
 .squad-strip{margin-bottom:8px}.squad-poster{display:none}.toolbar{margin:6px 0 8px}.toolbar label{font-size:9px}.toolbar select{min-height:38px;padding:8px 10px}.tabs{height:39px;margin-bottom:8px}.tabs button,.tabs .tile{padding:7px 9px;font-size:9px}
 .grid{gap:5px}.playercard{height:55px;padding:5px 9px;gap:8px;border-radius:8px}.playercard .jersey{font-size:26px;min-width:36px}.playercard .avatar{width:42px;height:42px;border-radius:7px}.playercard h3{font-size:13px;margin:0 0 2px}.playercard p{font-size:8px;margin:0}.playercard>.icon{width:16px}.copyright{font-size:7px;padding-top:16px}
 .home-captain-hero{min-height:340px;margin:0 0 8px}.home-captain-hero .hero-art{background-size:cover;background-position:center 24%}.hero-open{display:none}.nextcard{padding:10px}.nextcard h2{font-size:15px}.quicklinks{margin-top:7px}.quicklinks .tile{padding:9px 3px;font-size:8px;gap:5px}.quicklinks .icon{width:18px;height:18px}.team-quote-banner{height:75px;margin:9px 0}
 .scorehero{padding:10px 8px}.scorebig{font-size:40px}.scorehero .team-logo{width:48px;height:48px}.scoreline{padding:8px;margin-top:8px;font-size:11px}.matchteams{padding:8px 0}.tablewrap table{font-size:10px}th,td{padding:7px 5px}.balls{gap:6px}.ball{width:30px;height:30px}
 .profile-layout{display:block}.profile-cover{height:300px;border-radius:0;margin:0 -9px}.profile-cover.captain{height:335px;background-position:center top}.profile-title{margin-top:-62px;position:relative;z-index:2;background:linear-gradient(0deg,#02110e 65%,transparent);padding:44px 10px 10px;text-align:center}.profile-title h1{font-size:22px;margin-bottom:3px}.profile-title p{font-size:10px}.profile-title .badge{font-size:8px;margin-top:5px!important}.quote{padding:9px;font-size:11px}.metrics{grid-template-columns:repeat(4,1fr);gap:5px}.metric{padding:8px 2px}.metric strong{font-size:18px}.metric small{font-size:7px}.profile-layout .card{padding:10px}.achievement{font-size:10px;padding:5px 0}
 .morelist{padding:5px 10px}.morelist a,.morelist button{min-height:42px;padding:9px 3px;font-size:11px}.more-visual{display:none}.grid.two:has(.morelist){display:block}
 .bottomnav{height:62px}.bottomnav a{font-size:7px;gap:3px}.bottomnav .icon{width:18px;height:18px}
 #splash .splash-art{background-size:cover;background-position:center center}#splash .loadbar{bottom:48px}#splash p{bottom:20px}
}

/* v12: preserve full supplied artwork without cropping */
#splash{background:#000!important}#splash .splash-art{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
.home-captain-hero{background:#020b08!important}.home-captain-hero .hero-art{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
.profile-cover.captain{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:#020b08!important}
.squad-poster{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:#020b08!important}
.team-quote-banner{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:#020b08!important}
.more-visual .hero-art{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:#020b08!important}
.gallery-item img,.gallery-item video{object-fit:contain!important;background:#020b08!important}.playercard .avatar,.profile-cover.player-photo img{object-fit:contain!important;object-position:center!important;background:#061a13!important}
@media(max-width:600px){#splash .splash-art,.home-captain-hero .hero-art,.profile-cover.captain,.squad-poster,.team-quote-banner,.more-visual .hero-art{background-size:contain!important;background-position:center!important}.home-captain-hero{min-height:285px}.profile-cover.captain{height:330px}.squad-poster{height:230px}}

/* v14 reference UI correction: artwork sizing + admin command center */
.home-captain-hero{aspect-ratio:1672/941;min-height:0!important;background:#020b08!important}
.home-captain-hero .hero-art{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.team-quote-banner{height:auto!important;aspect-ratio:2048/691;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
#splash .splash-art{background-size:cover!important;background-position:center!important}
.profile-cover.captain{background-size:cover!important;background-position:center 35%!important}
.playercard .avatar,.profile-cover.player-photo img{object-fit:cover!important;object-position:center 18%!important}

.admin-login-screen{position:relative;min-height:calc(100dvh - 150px);max-width:430px;margin:0 auto;overflow:hidden;border-radius:18px;background:#020b08;border:1px solid #20472f}
.admin-login-art{position:absolute;inset:0;background:linear-gradient(180deg,#00110c44,#00110ccc),var(--pkxi-splash) center/cover no-repeat;filter:saturate(1.08)}
.admin-login-panel{position:relative;z-index:1;width:88%;margin:0 auto;padding:38% 0 26px;text-align:center}.admin-login-panel .crest{margin:0 auto 8px;width:78px;height:86px;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}.admin-login-panel h1{font-size:24px;margin:0}.admin-login-panel>p{font-size:9px;letter-spacing:1.2px;margin:3px 0 16px}.admin-login-panel form{padding:0 8px}.admin-login-panel label{font-size:9px;text-align:left}.admin-login-panel input{min-height:40px}.admin-login-panel .primary{background:linear-gradient(90deg,#a7ff24,#61ef36);font-size:12px}.remember-line{display:flex!important;align-items:center;gap:6px;margin:6px 0 10px}.remember-line input{min-height:0;width:auto}.admin-login-panel>small{display:block;color:white;font-style:italic;font-weight:700;line-height:1.4;margin-top:18px}
.admin-dashboard-hero{height:230px;border-radius:12px;border:1px solid #1d4d34;position:relative;overflow:hidden;background:linear-gradient(0deg,#02110d33,#02110d33),var(--pkxi-home) center/cover no-repeat;margin-bottom:8px}.admin-hero-copy{position:absolute;left:14px;bottom:12px;display:flex;flex-direction:column}.admin-hero-copy strong{font-family:KingsDisplay,Impact,sans-serif;color:#a4ff27;font-size:20px}.admin-hero-copy span{font-size:8px;letter-spacing:1.6px}.admin-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}.admin-stat-row .metric{padding:8px 2px}.admin-stat-row .metric strong{font-size:20px}.admin-stat-row .metric small{font-size:7px}.admin-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.admin-action{min-height:76px;border:1px solid #174b34;border-radius:8px;background:linear-gradient(180deg,#063021,#031b14);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:8px}.admin-action .icon{color:white;width:22px;height:22px}.admin-action b{font-size:9px}.admin-motto{text-align:center;font-family:KingsDisplay,Impact,sans-serif;font-style:italic;font-size:16px;line-height:1.2;margin:18px 0 4px}

@media(max-width:600px){
 .home-captain-hero{width:100%;aspect-ratio:1672/941;min-height:0!important}.team-quote-banner{width:100%;aspect-ratio:2048/691;height:auto!important;margin:10px 0!important}
 .layout:has(.admin-dashboard-hero),.layout:has(.admin-login-screen){padding-top:6px}.layout:has(.admin-dashboard-hero) .pagehead{display:none}
 .layout:has(.admin-dashboard-hero) .copyright,.layout:has(.admin-login-screen) .copyright{display:none}
 .layout:has(.admin-dashboard-hero) .bottomnav{display:flex}
 .admin-dashboard-hero{height:220px}.admin-stat-row{gap:4px}.admin-action-grid{gap:5px}.admin-action{min-height:70px}
 #splash .splash-art{background-size:cover!important;background-position:center center!important}
}


/* v15 — screenshot-pattern admin rebuild */
@media(max-width:600px){
 .admin-app{padding-bottom:62px}.admin-app .pagehead{margin:4px 0 8px}.admin-app .pagehead h1{font-size:20px}.admin-app .pagehead .eyebrow{display:none}
 .admin-app~*{} .layout:has(.admin-app)>.copyright{display:none}.layout:has(.admin-app)+.bottomnav{display:none!important}
 .adminnav{display:none!important}
 .admin-bottomnav{position:fixed;z-index:80;left:50%;bottom:0;transform:translateX(-50%);width:min(430px,100vw);height:58px;background:#02110d;border-top:1px solid #174a34;display:grid;grid-template-columns:repeat(5,1fr)}
 .admin-bottomnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#789b8d;font-size:7px}.admin-bottomnav .icon{width:17px;height:17px}.admin-bottomnav a.active{color:#91ff20}.admin-bottomnav a.active .icon{filter:drop-shadow(0 0 5px #8cff28)}
 .admin-screen{width:100%}.admin-segment{height:36px;background:#031a13;border:1px solid #174a34;border-radius:9px;padding:3px;display:flex;align-items:center;margin-bottom:8px}.admin-segment>*{flex:1;text-align:center;font-size:9px}.admin-segment button{height:28px;border:0;border-radius:7px;background:#8cff28;color:#071207;font-weight:800}.admin-segment span{color:#d9e5df}
 .admin-search{height:36px;border:1px solid #174a34;border-radius:8px;padding:0 10px;display:flex;align-items:center;color:#789b8d;font-size:9px;margin-bottom:8px}.admin-search span{margin-left:auto;color:#fff;font-size:15px}.admin-add{width:100%;min-height:38px;margin:0 0 8px!important;font-size:10px!important}
 .admin-list{display:grid;gap:4px}.admin-player-row,.admin-team-row{min-height:54px;border:1px solid #12452f;border-radius:8px;background:linear-gradient(180deg,#05261b,#031811);display:flex;align-items:center;gap:7px;padding:5px 7px;overflow:hidden}.admin-player-row .avatar{width:38px;height:42px;object-fit:cover;border-radius:6px}.admin-number{font-family:KingsDisplay,Impact,sans-serif;color:#91ff20;font-size:22px;min-width:26px}.admin-player-row strong,.admin-team-row strong{display:block;font-size:10px;line-height:1.2}.admin-player-row small,.admin-team-row small{display:block;font-size:7px;color:#9bb0a7;margin-top:2px}.admin-team-row .crest{width:38px;height:38px;min-width:38px}.admin-icon{border:0!important;background:transparent!important;padding:5px!important;min-width:24px!important;font-size:12px!important;color:#fff!important}.admin-icon.danger{color:#ff4d52!important}
 .admin-dashboard-hero{height:190px!important;border-radius:8px}.admin-stat-row .metric{min-height:48px}.admin-action{min-height:64px!important}.admin-action b{font-size:8px!important}
 dialog.admin-modal{position:fixed!important;inset:0!important;width:min(430px,100vw)!important;height:100dvh!important;max-height:none!important;margin:0 auto!important;border:0!important;border-radius:0!important;padding:12px 10px 72px!important;background:#010b08!important;overflow:auto!important}
 dialog.admin-modal::backdrop{background:#010b08!important;backdrop-filter:none!important}.admin-modal .modalhead{position:sticky;top:-12px;z-index:3;background:#010b08;padding:9px 0 8px;margin:0 0 8px;border-bottom:1px solid #123d2b}.admin-modal .modalhead h2{font-size:18px}.admin-modal .modalhead .iconbtn{border:0;background:transparent;padding:5px}.admin-modal form{border:0!important;background:transparent!important;padding:0!important}.admin-modal label{font-size:9px;margin-bottom:8px;color:#c4d0cb}.admin-modal input,.admin-modal select,.admin-modal textarea{min-height:38px;padding:8px 10px;margin-top:4px;border-radius:7px;font-size:10px;background:#031710}.admin-modal textarea{min-height:78px}.admin-modal .fields{grid-template-columns:1fr;gap:0}.admin-modal .primary.wide,.admin-modal form>button.primary{width:100%;min-height:40px;background:#8cff28;color:#061106;font-weight:800}.admin-modal .steps{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin:0 0 12px}.admin-modal .steps span{padding:6px 2px;text-align:center;font-size:7px;border-radius:12px}.admin-modal .steps span:nth-child(n+5){display:none}
 .admin-modal .filelabel{display:block;border:1px solid #174a34;border-radius:7px;padding:8px;color:#91ff20}.admin-modal input[type=file]{border:0;padding:4px;background:transparent}.admin-modal h3{font-size:12px}
}
/* v16 reference-admin rebuild */
.ref-admin{max-width:430px;margin:auto;padding:0 10px 74px;min-height:100dvh;background:#010b08}.ref-head{height:54px;display:grid;grid-template-columns:34px 1fr 34px;align-items:center;border-bottom:1px solid #123d2b;position:sticky;top:0;background:#010b08;z-index:20}.ref-head>a{font-size:30px;color:#fff}.ref-head strong{text-align:center;font-size:18px}.admin-app>.sectionhead,.admin-app>.pagehead{margin-top:0}.admin-app .notice{display:none}.ref-newmatch,.ref-add{display:inline-flex!important;align-items:center;justify-content:center;text-decoration:none}.admin-players .ref-add{width:100%;margin:8px 0}.admin-teams .ref-add{width:100%;margin:8px 0}.admin-player-row,.admin-team-row{min-height:58px!important;padding:5px 7px!important;border-radius:8px!important}.admin-player-row .avatar{width:40px!important;height:46px!important;border-radius:6px!important}.admin-player-row strong,.admin-team-row strong{font-size:11px!important}.admin-player-row small,.admin-team-row small{font-size:8px!important}.admin-number{font-size:20px!important}.admin-ref-form{padding:10px 0}.admin-ref-form form{padding:0;border:0;background:transparent}.admin-ref-form label{font-size:10px;margin-bottom:8px}.admin-ref-form input,.admin-ref-form select,.admin-ref-form textarea{min-height:39px;padding:8px 10px;margin-top:4px;border-radius:6px;font-size:10px}.admin-ref-form textarea{min-height:68px}.admin-ref-form .filelabel{font-size:9px;border:0;padding:0;color:#8cff28}.admin-ref-form input[type=file]{padding:5px;background:#031710;border:1px solid #174a34}.upload-hero{height:70px;border:1px solid #174a34;border-radius:8px;display:flex;align-items:center;gap:14px;padding:8px;margin-bottom:10px;background:#031710}.upload-hero img,.upload-hero .avatar{width:58px;height:58px;object-fit:cover;border-radius:8px}.shield-placeholder{width:58px;height:58px;border:1px solid #91ff20;border-radius:8px;display:grid;place-items:center;font-size:30px}.upload-hero span{font-size:10px}.twofields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.match-wizard{padding:10px 0;border:0;background:transparent}.wizard-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin-bottom:14px}.wizard-steps button{background:transparent;border:0;color:#b7c8c0;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:8px}.wizard-steps b{width:26px;height:26px;border:1px solid #2e7656;border-radius:50%;display:grid;place-items:center;font-size:11px}.wizard-steps button.on{color:#8cff28}.wizard-steps button.on b{background:#8cff28;color:#071207;border-color:#8cff28}.wizard-pane{display:none}.wizard-pane.on{display:block}.match-wizard label{font-size:9px;margin-bottom:7px}.match-wizard input,.match-wizard select,.match-wizard textarea{min-height:37px;padding:7px 9px;margin-top:3px;border-radius:6px;font-size:10px}.match-wizard textarea{min-height:70px}.wizard-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:8px;margin-top:12px}.wizard-actions button,.wizard-next{min-height:40px}.inline-add{display:block;color:#8cff28;font-size:10px;margin:-3px 0 10px 62px}.xi-tabs{display:grid;grid-template-columns:1fr 1fr;background:#031a13;border-radius:8px;overflow:hidden;margin-bottom:10px}.xi-tabs>*{padding:9px;text-align:center;font-size:9px}.xi-tabs b{background:#8cff28;color:#071207}.xi-row{display:grid!important;grid-template-columns:24px 40px 1fr;align-items:center;gap:7px;border:1px solid #174a34;background:#032018;border-radius:7px;padding:4px!important;margin-bottom:4px!important}.xi-row input{min-height:auto!important;width:18px;height:18px;margin:0!important;accent-color:#8cff28}.xi-row .avatar{width:38px;height:38px;border-radius:50%;object-fit:cover}.xi-row span{display:flex;flex-direction:column}.xi-row strong{font-size:10px}.xi-row small{font-size:8px;color:#a6bbb2}.match-summary{border:1px solid #174a34;border-radius:8px;background:#031710;padding:8px}.match-summary h3{margin:0 0 6px}.match-summary p{display:grid;grid-template-columns:90px 1fr;border-bottom:1px solid #123d2b;padding:7px 3px;margin:0;font-size:9px}.match-summary p:last-child{border-bottom:0}.match-summary b{font-weight:500}.green{color:#8cff28}.ref-empty{margin:20px 0;border:1px solid #174a34;border-radius:9px;padding:16px;background:#031710}.ref-empty .primary{display:inline-flex;margin-top:8px}
@media(max-width:430px){.admin-app{font-size:12px}.admin-app .layout{padding:0}.adminnav{display:none!important}.admin-screen{padding-top:6px}.admin-search{height:34px!important;font-size:9px!important}.admin-bottomnav{height:56px!important}.admin-bottomnav a{font-size:7px!important}}


/* v17 exact reference home */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.reference-home{max-width:430px;margin:0 auto}.home-reference-hero{display:block;width:100%;aspect-ratio:1672/941;border:1px solid #174a34;border-radius:11px 11px 4px 4px;overflow:hidden;background:var(--pkxi-home) center/cover no-repeat}.home-match-card{position:relative;z-index:2;margin:-12px 7px 0;padding:9px 9px 8px;border:1px solid #174a34;border-radius:8px;background:linear-gradient(180deg,#06231a 0%,#03140f 100%);box-shadow:0 8px 20px #0008}.home-match-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:2px}.home-match-head strong{display:block;font-family:KingsDisplay,Impact,sans-serif;font-size:14px;color:#fff}.home-match-head small{display:block;margin-top:2px;color:#a8bbb2;font-size:7px}.home-match-card .matchteams{padding:5px 0 1px;gap:7px}.home-match-card .teammark{gap:2px;font-size:9px}.home-match-card .teammark img,.home-match-card .team-logo{width:45px;height:45px}.home-match-card .shield{width:43px;height:48px;font-size:17px}.home-match-card .vs{font-size:15px}.home-match-meta{text-align:center;color:#d8e3dd;font-size:8px;line-height:1.35;margin:1px 0 4px}.home-match-meta .icon{width:9px;height:9px}.home-match-card .countdown{margin:5px 0 3px}.home-match-card .countdown>*{padding:4px 2px}.home-match-link{display:block;text-align:center;color:#a0ff23;border-top:1px solid #174a34;margin-top:5px;padding-top:6px;font-size:8px;font-weight:800}.home-reference-links{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:7px 7px 0}.home-reference-links a{height:45px;border:1px solid #174a34;border-radius:7px;background:#052019;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#fff;font-size:7px}.home-reference-links .icon{width:17px;height:17px;color:#91ff20}.home-reference-quote{width:calc(100% - 14px);margin:7px 7px 0;aspect-ratio:2048/691;border:1px solid #174a34;border-radius:7px;background:var(--pkxi-quote) center/cover no-repeat}.layout:has(.reference-home)>.copyright{display:none}
@media(max-width:600px){.layout:has(.reference-home){padding:7px 5px 76px}.layout:has(.reference-home)+.bottomnav{width:min(430px,100vw)}.reference-home{width:100%}.home-reference-hero{border-radius:8px 8px 3px 3px}.home-match-card{margin-top:-10px}.home-reference-quote{min-height:0!important}}

/* v18 mobile reference lock + cache-safe UI */
@media(max-width:600px){
 body{background:#010c09;font-size:12px}.topbar{height:68px;padding:0 14px}.brand .crest{display:none}.brand strong{font-size:17px}.brand small{font-size:7px;letter-spacing:1.4px}.top-actions{gap:2px}.top-actions .login-label{display:none}.layout{padding:10px 6px 74px}.pagehead{margin:0 0 10px}.pagehead h1{font-size:24px}.pagehead .eyebrow{display:none}
 .reference-home{width:100%;max-width:none}.home-reference-hero{width:100%;aspect-ratio:1.76/1;background-image:var(--pkxi-home)!important;background-position:center!important;background-size:cover!important;border:0;border-radius:0}.home-match-card{margin:-4px 4px 0;padding:8px;border-radius:7px}.home-match-head strong{font-size:15px}.home-match-head small{font-size:8px}.home-match-card .teammark img,.home-match-card .team-logo{width:52px;height:52px}.home-match-card .shield{width:48px;height:55px}.home-match-card .teammark strong{font-size:10px}.home-match-meta{font-size:8px}.home-match-card .countdown{grid-template-columns:repeat(4,1fr);padding:3px}.home-match-card .countdown strong{font-size:16px}.home-reference-links{margin:6px 4px 0;gap:5px}.home-reference-links a{height:51px;font-size:8px}.home-reference-links .icon{width:19px;height:19px}.home-reference-quote{width:calc(100% - 8px);margin:6px 4px 0;aspect-ratio:3.05/1;background-image:var(--pkxi-quote)!important;background-size:cover!important;background-position:center!important}
 .toolbar.noprint{margin:0 0 6px}.toolbar.noprint label{display:none}.toolbar.noprint select{height:36px;padding:6px 10px;font-size:10px}.profile-layout{display:block}.profile-cover{height:auto;aspect-ratio:1.2/1;border-radius:0}.profile-cover.captain{background-image:var(--pkxi-captain)!important;background-size:cover!important;background-position:center!important}.profile-cover.player-photo>img{object-fit:cover;object-position:center top}.profile-title{padding:8px 8px 9px}.profile-title h1{font-size:21px;margin-bottom:2px}.profile-title p{font-size:9px}.profile-title .badge{margin-top:5px!important;font-size:7px;padding:4px 7px}.profile-layout .quote{padding:8px;font-size:9px}.profile-layout .card{padding:9px;margin:5px 0!important}.profile-layout .card h3,.profile-layout .card h2{font-size:12px;margin-bottom:5px}.profile-layout .card p{font-size:9px;line-height:1.4;margin:0}.profile-layout .tabs{margin:5px 0;padding:2px}.profile-layout .tabs button,.profile-layout .tabs a{min-height:31px;padding:7px 4px;font-size:8px}.profile-layout .metrics{grid-template-columns:repeat(3,1fr);gap:5px}.profile-layout .metric{padding:7px 3px}.profile-layout .metric strong{font-size:18px}.profile-layout .metric small{font-size:7px}.profile-layout+.sectionhead,.profile-layout~.matchrow,.profile-layout~.empty,.profile-layout .footnote,.profile-layout .card:last-child{display:none!important}
 .more-reference{max-width:360px;margin:0 auto}.more-team-card{display:flex;align-items:center;gap:10px;background:#061a14;border:1px solid #143d2c;border-radius:8px;padding:8px 10px;margin-bottom:7px}.more-team-card img{width:43px;height:43px;object-fit:contain}.more-team-card strong{display:block;font-size:12px}.more-team-card small{font-size:7px}.more-reference .morelist{background:#031710;border:1px solid #143d2c;border-radius:8px;padding:0 9px}.more-reference .morelist a,.more-reference .morelist button{min-height:38px;padding:7px 1px;gap:9px;font-size:10px}.more-reference .morelist .icon{width:15px;height:15px}.more-reference .morelist span{display:flex;flex-direction:column}.more-reference .morelist small{font-size:6px;color:#8cff28;margin-top:1px}.more-passion{text-align:center;font-family:cursive;font-style:italic;padding:15px 0 4px;font-size:11px;line-height:1.5}.more-passion span{color:#ff5252}.layout:has(.more-reference)>.copyright{display:none}
}
/* v19 exact mobile reference sizing */
@media(max-width:600px){
 html,body,#app{width:100%;max-width:none!important;min-height:100%;overflow-x:hidden}
 body{font-size:16px}
 .topbar{width:100%!important;max-width:none!important;margin:0!important;height:70px;padding:0 14px;border-left:0!important;border-right:0!important}
 .brand strong{font-size:20px!important}.brand small{font-size:7px!important}
 .layout{width:100%!important;max-width:none!important;margin:0!important;padding:10px 7px 88px!important}
 .bottomnav{width:100%!important;max-width:none!important;left:0!important;right:0!important;transform:none!important;height:68px;padding:5px 6px;border-left:0!important;border-right:0!important}
 .bottomnav a{font-size:10px!important;gap:4px!important}.bottomnav .icon{width:24px!important;height:24px!important}
 .pagehead h1{font-size:30px!important}
 .toolbar select,#seasonFilter{width:100%!important;height:52px!important;font-size:16px!important;padding:0 42px 0 16px!important;background-position:right 15px center!important}
 .reference-home{width:100%!important;max-width:none!important}
 .layout:has(.reference-home){padding:6px 7px 86px!important}
 .home-reference-hero{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:720/395;background-size:cover!important;background-position:center!important;border-radius:0!important}
 .home-match-card{width:calc(100% - 16px)!important;margin:-3px 8px 0!important;padding:13px 15px!important;border-radius:10px!important}
 .home-match-head strong{font-size:22px!important}.home-match-head small{font-size:13px!important}
 .home-reference-links{width:calc(100% - 16px)!important;margin:10px 8px!important;gap:8px!important}
 .home-reference-links a{min-height:70px!important;font-size:12px!important}.home-reference-links .icon{width:27px!important;height:27px!important}
 .home-reference-quote{width:calc(100% - 16px)!important;margin:10px 8px!important;aspect-ratio:1920/675!important;height:auto!important;min-height:0!important;background-size:cover!important;background-position:center!important}
 .profile-layout{display:block!important;width:100%!important;max-width:none!important}
 .profile-layout>section:first-child{width:100%!important}
 .profile-cover{height:auto!important;aspect-ratio:720/545!important;border-radius:0!important}.profile-cover>img{object-fit:cover!important;object-position:center 18%!important}
 .profile-title{padding:10px 8px 12px!important}.profile-title h1{font-size:26px!important}.profile-title p{font-size:13px!important}.profile-title .badge{margin-top:7px!important}
 .profile-layout>section:nth-child(2){width:100%!important}
 .profile-layout .tabs{margin:6px 0 8px!important;padding:3px!important}.profile-layout .tabs button,.profile-layout .tabs a{height:43px!important;min-height:43px!important;font-size:11px!important}
 .profile-layout .metrics{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}.profile-layout .metric{min-height:86px!important;padding:12px 4px!important}.profile-layout .metric strong{font-size:25px!important}.profile-layout .metric small{font-size:10px!important}
 .more-reference{width:100%!important;max-width:none!important;margin:0!important;padding:0 8px!important}.more-team-card{padding:13px!important;margin-bottom:12px!important}.more-team-card img{width:65px!important;height:65px!important}.more-team-card strong{font-size:18px!important}.more-team-card small{font-size:11px!important}
 .more-reference .morelist{padding:0 12px!important;border-radius:12px!important}.more-reference .morelist a,.more-reference .morelist button{min-height:58px!important;padding:10px 2px!important;gap:14px!important;font-size:15px!important}.more-reference .morelist .icon{width:24px!important;height:24px!important}.more-reference .morelist small{font-size:9px!important}.more-passion{font-size:17px!important;padding:26px 0 10px!important}
}
\n/* v20 reference fidelity: native-looking full-width selects, live score, promo fixture */
select,#seasonFilter{appearance:none!important;-webkit-appearance:none!important;background-color:#031710!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f4fff8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:18px!important;padding-right:46px!important;border:1px solid #1b5138!important;border-radius:9px!important;color:#fff!important}
.fixture-promo{display:block;width:calc(100% - 16px);margin:10px 8px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.fixture-promo img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}
.profile-tabs>*{flex:1!important;min-width:0!important;text-align:center!important}
@media(max-width:600px){
 .scorehero{padding:12px 8px!important}.scorehero .matchteams{padding:10px 0!important}.scorebig{font-size:44px!important}.scoreline{margin-top:10px!important;padding:9px!important;font-size:11px!important}.balls{gap:6px!important}.ball{width:30px!important;height:30px!important}
 .profile-layout .tabs.profile-tabs{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:2px!important}.profile-layout .tabs.profile-tabs>*{height:34px!important;min-height:34px!important;padding:7px 2px!important;font-size:9px!important;border-radius:7px!important}
 .fixture-promo{width:calc(100% - 16px)!important;margin:10px 8px!important}
}
/* v21 reference fidelity */
.fixture-promo{display:block;width:100%;margin:10px 0;border:1px solid #17452f;border-radius:12px;overflow:hidden;background:#020b08}.fixture-promo img{display:block;width:100%;height:auto;object-fit:contain}
.captain-reference{overflow:hidden;border:1px solid #16452f;border-radius:13px;background:#03150f}.captain-ref-cover{width:100%;aspect-ratio:0.92;background:var(--pkxi-captain) center/cover no-repeat}.captain-ref-name{text-align:center;margin-top:-58px;position:relative;padding:45px 10px 8px;background:linear-gradient(0deg,#03150f 68%,transparent)}.captain-ref-name h1{margin:0;font-size:25px}.captain-ref-name p{margin:3px 0;color:#9cff2b}.captain-ref-quote{font-style:italic;margin-top:7px;font-size:11px}.captain-ref-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px}.captain-ref-metrics div{border:1px solid #17452f;background:#062019;border-radius:8px;text-align:center;padding:8px 3px}.captain-ref-metrics small{display:block;color:#a8b9b1;font-size:8px}.captain-ref-metrics strong{font-size:21px}.captain-achievements{padding:5px 12px 9px}.captain-achievements h3{margin:3px 0 6px}.captain-achievements p{margin:4px 0;display:flex;gap:7px;align-items:center;font-size:11px}.captain-achievements .icon{color:#a0ff22;width:15px}.captain-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:7px;padding:0 8px 10px}.captain-actions a,.captain-actions button{min-height:42px;border:1px solid #78df2d;border-radius:7px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:10px}.captain-actions button{background:#8cff28;color:#061006}
@media(max-width:600px){select,#seasonFilter{background-position:right 12px center!important;background-size:15px!important;padding-right:38px!important}.captain-reference{width:100%}.captain-ref-cover{aspect-ratio:1/1.08}.captain-ref-name h1{font-size:23px}}

/* v22 public-layout fidelity fixes */
.layout:has(.more-reference),.layout:has(.squad-strip){padding-top:10px!important}
.squad-strip{margin-top:0!important}
.toolbar label{width:100%}
.toolbar select,#seasonFilter{appearance:none!important;-webkit-appearance:none!important;width:100%!important;background-color:#031710!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:18px!important;padding-right:48px!important}
.fixture-promo-main{display:block;width:100%;margin:8px 0 0!important;border:1px solid #174a34;border-radius:8px;overflow:hidden}.fixture-promo-main img{display:block;width:100%;height:auto;object-fit:contain}.fixture-promo-main+.home-match-card{margin-top:8px!important}
.more-reference{padding-top:0!important}.more-reference .morelist a[href="#captain"]{border-bottom:1px solid #174a34}
@media(max-width:600px){.layout:has(.squad-strip),.layout:has(.more-reference){padding-left:7px!important;padding-right:7px!important}.fixture-promo-main{border-radius:6px}.squad-strip{margin-top:0!important}.toolbar select,#seasonFilter{height:48px!important;font-size:15px!important}}

/* v24 exact mobile admin command center */
body.admin-mode{margin:0!important;background:#010b08!important;overflow-x:hidden}.admin-mode #app{width:100%;min-height:100dvh;background:#010b08}.admin-mode .layout,.admin-mode .topbar,.admin-mode>.bottomnav{display:none!important}
.admin-login-screen{width:100%!important;max-width:none!important;min-height:100dvh!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;background:#010b08!important;display:flex;align-items:stretch;justify-content:center}.admin-login-art{background:linear-gradient(180deg,rgba(0,10,7,.08),rgba(0,10,7,.22)),var(--pkxi-splash) center/cover no-repeat!important;filter:none!important}.admin-login-panel{width:min(88%,390px)!important;min-height:100dvh;margin:0 auto!important;padding:26vh 0 28px!important;display:flex;flex-direction:column;justify-content:center}.admin-login-brand .crest{width:92px!important;height:104px!important}.admin-login-panel h1{font-size:30px!important}.admin-login-panel>p,.admin-login-brand p{font-size:11px!important;letter-spacing:1.8px}.admin-login-panel label{font-size:12px!important}.admin-login-panel input{min-height:50px!important;border-radius:8px!important;background:rgba(0,18,13,.78)!important}.admin-login-panel .primary{min-height:50px!important;font-size:17px!important}.admin-login-panel>small{font-size:14px!important;margin-top:24px!important;text-shadow:0 2px 5px #000}
.admin-app{width:100%!important;max-width:430px!important;min-height:100dvh!important;margin:0 auto!important;padding:0 10px 72px!important;background:#010b08!important}.admin-command-head,.admin-page-head{height:58px;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;border-bottom:1px solid #164b35;background:#02110d;position:sticky;top:0;z-index:50}.admin-command-head>div{text-align:center}.admin-command-head strong{display:block;color:#a0ff21;font-family:KingsDisplay,Impact,sans-serif;font-size:18px;line-height:1}.admin-command-head small{font-size:8px;letter-spacing:.8px;color:#fff}.hamb{font-size:24px}.admin-bell .icon{width:24px;height:24px;color:#a0ff21}.admin-page-head>a{font-size:30px}.admin-page-head strong{text-align:center;font-size:18px}.admin-app>.pagehead{display:none!important}.adminnav{display:none!important}
.admin-dashboard-hero{height:245px!important;border-radius:0!important;border:0!important;margin:0 -10px 8px!important;background:linear-gradient(0deg,rgba(0,13,9,.2),rgba(0,13,9,.08)),var(--pkxi-home) center/cover no-repeat!important}.admin-hero-copy{display:none!important}.admin-stat-row{gap:6px!important;margin:0 0 10px!important}.admin-stat-row .metric{min-height:72px!important;border-radius:8px!important;background:linear-gradient(180deg,#063021,#032017)!important;border:1px solid #1b5a3e!important;display:flex;flex-direction:column;justify-content:center}.admin-stat-row .metric strong{font-size:28px!important}.admin-stat-row .metric small{font-size:9px!important}.admin-action-grid{gap:7px!important}.admin-action{min-height:92px!important;border-radius:8px!important;background:linear-gradient(180deg,#063525,#032018)!important}.admin-action .icon{width:28px!important;height:28px!important}.admin-action b{font-size:11px!important;color:#fff}.admin-motto{font-size:20px!important;margin:22px 0 10px!important}
.admin-bottomnav{width:min(430px,100vw)!important;height:64px!important;background:rgba(2,17,13,.98)!important}.admin-bottomnav a{font-size:9px!important}.admin-bottomnav .icon{width:21px!important;height:21px!important}
.ref-admin{padding:0 10px 72px!important}.ref-head{height:58px!important;margin:0 -10px;padding:0 10px}.ref-head strong{font-size:18px!important}.admin-ref-form{padding:12px 0!important}.upload-hero{height:88px!important}.upload-hero img,.upload-hero .avatar,.shield-placeholder{width:68px!important;height:68px!important}.upload-hero span{font-size:12px!important}.admin-ref-form label,.match-wizard label{font-size:12px!important}.admin-ref-form input,.admin-ref-form select,.admin-ref-form textarea,.match-wizard input,.match-wizard select,.match-wizard textarea{min-height:48px!important;font-size:13px!important;border-radius:7px!important}.admin-ref-form textarea,.match-wizard textarea{min-height:88px!important}.admin-ref-form button.primary{min-height:48px;font-size:15px;width:100%}.wizard-steps{margin:8px 0 18px!important}.wizard-steps b{width:34px!important;height:34px!important;font-size:14px!important}.wizard-steps button{font-size:10px!important}.wizard-actions button,.wizard-next{min-height:48px!important;font-size:14px!important}.xi-row{min-height:58px!important}.xi-row .avatar{width:46px!important;height:46px!important}.xi-row strong{font-size:12px!important}.xi-row small{font-size:10px!important}.opponent-note{display:block;color:#91ff20;margin:-2px 0 12px;font-size:10px}
.admin-segment{height:44px!important}.admin-segment>*{font-size:11px!important}.admin-segment button{height:36px!important}.admin-search{height:46px!important;font-size:11px!important}.admin-player-row,.admin-team-row{min-height:66px!important}.admin-player-row strong,.admin-team-row strong{font-size:12px!important}.admin-player-row small,.admin-team-row small{font-size:9px!important}
.settings-ref{padding-top:10px}.settings-tabs{margin-bottom:10px}.settings-menu{border:1px solid #174a34;border-radius:10px;overflow:hidden;background:#031710}.settings-menu a,.settings-menu button{width:100%;min-height:46px;display:grid;grid-template-columns:26px 1fr 20px;align-items:center;text-align:left;padding:0 12px;border:0;border-bottom:1px solid #123d2b;background:transparent;color:#fff;font:inherit;text-decoration:none}.settings-menu a:last-child,.settings-menu button:last-child{border-bottom:0}.settings-menu b{font-size:11px;font-weight:500}.settings-menu i{font-style:normal;font-size:22px;color:#cde4da}.logout-ref{width:100%;height:50px;margin-top:34px;border:1px solid #ff4b4b;border-radius:7px;background:#d81717;color:#fff;font-size:15px;font-weight:800}
@media(max-width:360px){.admin-command-head strong{font-size:16px}.admin-dashboard-hero{height:220px!important}.admin-stat-row .metric strong{font-size:24px!important}.admin-action{min-height:82px!important}.admin-action b{font-size:10px!important}}
/* v25 remaining admin reference screens */
.tournament-ref,.access-ref,.media-ref{padding:10px 0}.tournament-list{display:grid;gap:9px;margin-top:12px}.tournament-row{display:flex;align-items:center;gap:11px;min-height:76px;padding:9px;border:1px solid #174a34;border-radius:9px;background:#032018}.trophy-box{width:58px;height:58px;border-radius:8px;background:#063326;display:grid;place-items:center;font-size:32px}.tournament-row strong{display:block;font-size:14px}.tournament-row small{display:block;margin-top:4px;color:#b7c8c0}.tournament-row em{color:#8cff28;font-style:normal}.access-list{margin:10px 0}.access-row{display:flex;align-items:center;gap:10px;padding:10px 5px;border-bottom:1px solid #123d2b}.access-avatar{width:38px;height:38px;border:1px solid #1d7653;border-radius:50%;display:grid;place-items:center}.access-row strong,.access-row small{display:block}.access-row small{color:#91a89e;font-size:10px}.role-pill{background:#176c35;border-radius:20px;padding:5px 9px;font-size:9px}.access-add{margin-top:calc(100dvh - 430px)}.admin-segment.three{grid-template-columns:repeat(3,1fr)}.media-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin:10px 0}.media-tile{position:relative;aspect-ratio:1.45;border-radius:7px;overflow:hidden;background:#073022;border:1px solid #174a34}.media-tile img{width:100%;height:100%;object-fit:cover}.media-tile button{position:absolute;right:4px;bottom:4px;width:27px;height:27px;padding:0;border-radius:5px;background:#07100d;color:#fff}.media-placeholder{height:100%;display:grid;place-items:center;font-size:32px}.media-empty{grid-column:1/-1}.media-upload{margin-top:8px}.live-score-tabs{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #176644;border-radius:8px;overflow:hidden;margin-bottom:14px}.live-score-tabs>*{padding:9px 4px;text-align:center;font-size:10px}.live-score-tabs b{background:#83ff2b;color:#071207}.scoring-ref .scorebuttons{grid-template-columns:repeat(6,1fr)}
@media(min-width:700px){.admin-app,.ref-admin{max-width:520px!important}.media-grid{grid-template-columns:repeat(3,1fr)}.access-add{margin-top:180px}}
@media(max-width:360px){.admin-action-grid{gap:7px}.admin-action{min-height:82px}.wizard-steps button{font-size:9px!important}.tournament-row{min-height:68px}.trophy-box{width:50px;height:50px}}

/* v28 workflow + mobile reference fixes */
.login-role-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 14px}.login-role-switch button{min-height:44px;border:1px solid #165a48;background:#06241c;color:#fff;border-radius:10px;font-weight:700}.login-role-switch .active{background:#8cff18;color:#07140d}.coming-soon-card{margin:28px 14px;padding:42px 22px;border:1px solid #14513f;border-radius:18px;text-align:center;background:#032219}.coming-soon-card .coming-icon{font-size:46px}.coming-soon-card h2{font-size:30px;margin:12px 0 6px}.match-wizard{padding:0 14px 100px}.wizard-pane{display:none}.wizard-pane.on{display:block}.wizard-steps{position:sticky;top:0;z-index:4;background:#001a13;padding:12px 0 10px;display:grid;grid-template-columns:repeat(4,1fr);gap:2px}.wizard-steps button{background:none;border:0;color:#dce9e4;font-size:11px;padding:0 2px}.wizard-steps b{display:grid;place-items:center;width:34px;height:34px;margin:auto;border:2px solid #0b6c52;border-radius:50%;font-size:16px}.wizard-steps .on{color:#8cff18}.wizard-steps .on b{background:#8cff18;color:#07140d;border-color:#8cff18}.match-wizard label{font-size:14px}.match-wizard input,.match-wizard select,.match-wizard textarea{min-height:48px;font-size:16px;width:100%;box-sizing:border-box}.wizard-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.wizard-actions button{min-height:50px;border-radius:10px}.xi-row{min-height:58px}.xi-row img{width:46px;height:46px}.settings-menu svg,.admin-action svg{stroke:#fff;color:#fff}.adminnav{display:none!important}@media(max-width:480px){.admin-page-head,.ref-head{min-height:70px;padding:0 16px}.admin-page-head strong,.ref-head strong{font-size:22px}.admin-bottomnav{height:72px}.admin-app{padding-bottom:82px}.admin-stat-row{gap:8px;padding:12px}.admin-stat-row>*{min-width:0}.admin-action-grid{gap:10px;padding:10px 14px}.admin-action{min-height:128px}.match-wizard{padding-left:12px;padding-right:12px}}

/* v34: keep dropdown chevrons visibly inside the field on narrow phones. */
.match-wizard select,.admin-ref-form select{appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:calc(100% - 14px) 50%!important;background-size:16px 16px!important;padding-right:44px!important;}
@media(max-width:380px){.match-wizard select,.admin-ref-form select{background-position:calc(100% - 12px) 50%!important;padding-right:40px!important;}}

/* v39 login auth diagnostics */
.login-debug-btn{margin-top:10px}.login-debug-box{margin-top:10px;padding:10px;border:1px solid rgba(255,255,255,.14);border-radius:10px;max-width:100%;overflow:auto}.login-debug-box pre{margin:0;color:#fff}.login-debug-box small{opacity:.7}

/* v40 responsive popup diagnostics */
.auth-debug-modal{width:min(100%,680px);text-align:left}.auth-debug-modal pre{margin:0;max-height:min(55vh,520px);overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;padding:12px;border-radius:10px;background:rgba(0,0,0,.28);font-size:11px;line-height:1.5;color:#fff}.debug-error{margin:0 0 12px;padding:12px;border:1px solid rgba(255,255,255,.18);border-radius:10px;font-weight:700;line-height:1.45}.debug-actions{margin-top:12px}dialog:has(.auth-debug-modal){width:min(calc(100vw - 24px),720px);max-width:720px;max-height:88dvh;overflow:auto;padding:16px}.admin-login-screen .login-debug-box{display:none}@media(max-width:480px){dialog:has(.auth-debug-modal){width:calc(100vw - 16px);max-height:92dvh;margin:auto;padding:12px;border-radius:16px}.auth-debug-modal pre{max-height:58dvh;font-size:10px}.modalhead h2{font-size:16px}}
