:root{color-scheme:dark;--sidebar-width:280px;--bg:#0c1218;--surface:#121c24;--raised:#1b2933;--line:#2b3b46;--text:#f2eee6;--muted:#a8b4bf;--gold:#d9b978;--teal:#48a4ad;--good:#78baa1;--bad:#e2998e;font:14px/1.55 "Segoe UI Variable", "Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button,input,select,textarea,a{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--gold)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Bahnschrift,"Segoe UI Variable Display","Segoe UI",sans-serif;font-weight:500}h1{font-size:34px;line-height:1.2;letter-spacing:-.025em}h2{font-size:19px;line-height:1.4}h3{font-size:16px}small,.muted{color:var(--muted)}.mono{font:12px/1.5 Consolas,monospace;letter-spacing:.035em}.eyebrow{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);font-weight:600}svg{width:18px;height:18px;flex-shrink:0}button{touch-action:manipulation}.shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:100vh}.sidebar{background:#101a22;border-right:1px solid var(--line);padding:32px 18px;position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;z-index:3}.brand{padding:0 12px;flex-shrink:0;display:grid;grid-template-columns:max-content}.brand img{width:174px;display:block;margin-bottom:13px}.brand small{display:block;text-align:center;font-size:10px;letter-spacing:.18em;color:var(--muted)}.nav-label{padding:30px 13px 12px;font-size:10px;color:var(--muted);letter-spacing:.14em}.nav{display:flex;flex-direction:column;gap:6px}.nav button{display:flex;gap:13px;white-space:nowrap;align-items:center;width:100%;background:transparent;border:1px solid transparent;border-radius:7px;padding:12px;color:var(--muted);text-align:left;font-weight:500;min-height:46px}.nav button:hover:not(.active){color:var(--text);background:#1b293388}.nav button.active{background:#FFF1CB;color:#16252e;border-color:transparent;font-weight:550}.sidebar-bottom{margin-top:auto;padding:30px 12px 0}.identity{display:flex;align-items:center;gap:11px}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#d9b97818;border:1px solid #d9b97844;border-radius:50%;color:var(--gold);font-size:12px;font-weight:600}.identity strong{font-size:12px}.identity small{display:block;font-size:11px}.logout{margin:15px 0 0;width:100%;padding:8px;border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:6px}.main{grid-column:2;min-width:0}.topbar{height:74px;border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;gap:20px;background:#0f171e}.crumb{font-size:12px;color:var(--muted);white-space:nowrap}.crumb strong{color:var(--text);font-weight:500}.search{margin-left:auto;position:relative;width:340px}.search input{width:100%;padding:10px 12px 10px 36px;min-height:40px;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--text);font-size:12px}.search svg{position:absolute;left:11px;top:11px;color:var(--muted);width:16px;height:16px}.secure{font-size:11px;color:var(--good);display:flex;align-items:center;gap:7px;white-space:nowrap}.secure svg{width:15px}.preview-bar{background:#d9b9780d;border-bottom:1px solid #d9b97830;padding:9px 40px;display:flex;gap:10px;align-items:center;color:var(--gold);font-size:11px}.preview-bar span{color:var(--muted)}.preview-bar button{margin-left:auto;background:transparent;border:0;color:var(--gold);font-size:11px;padding:5px;white-space:nowrap}.content{padding:38px 40px 48px;max-width:1680px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-head .eyebrow{margin-bottom:8px}.page-head p{color:var(--muted);margin-top:9px;font-size:13px}.button{border:1px solid var(--line);background:var(--raised);color:var(--text);padding:10px 15px;min-height:42px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:600;white-space:nowrap}.button:hover{border-color:var(--gold)}.button.primary{background:var(--gold);border-color:var(--gold);color:var(--bg)}.button.primary:hover{background:#edcd8d}.button.danger{color:var(--bad);border-color:#e2998e55;background:#e2998e08}.button.quiet{background:transparent}.text-button{background:transparent;border:0;color:var(--gold);padding:9px 4px;font-size:12px;min-height:38px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-bottom:28px}.stat{padding:22px 24px;position:relative;border-right:1px solid var(--line)}.stat:last-child{border-right:0}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.stat-top svg{color:var(--teal);width:17px}.stat strong{font:500 33px/1.3 Bahnschrift,sans-serif;display:block;margin-top:7px;letter-spacing:-.03em}.stat small{display:block;font-size:11px;margin-top:4px}.stat small.warning{color:var(--gold)}.panel{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden;min-width:0}.panel-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-head p{color:var(--muted);font-size:12px;margin-top:4px}.panel-body{padding:24px}.split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.stack{display:grid;gap:24px;align-content:start}.section-gap{margin-top:28px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:4px;padding:3px 8px;white-space:nowrap;font-size:10px;border:1px solid #78baa128;background:#78baa110;color:var(--good);font-weight:600}.status:before{content:"";height:5px;width:5px;border-radius:50%;background:currentColor}.status.warn{color:var(--gold);background:#d9b9780e;border-color:#d9b9782b}.status.bad{color:var(--bad);background:#e2998e0a;border-color:#e2998e30}.status.neutral{color:var(--muted);background:#a8b4bf0a;border-color:#a8b4bf24}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;background:#16212a;color:var(--muted);font-size:10px;font-weight:500;letter-spacing:.055em;padding:13px 22px}td{padding:17px 22px;border-top:1px solid #2b3b4677}td strong{display:block;font-weight:500;color:var(--text);font-size:12px}td small{display:block;font-size:10px;margin-top:3px}tbody tr:hover{background:#1b293355}td .button{min-height:32px;padding:5px 11px;font-size:11px}td:first-child{min-width:190px}.table-toolbar{padding:15px 22px;display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line)}.table-toolbar .tabs{display:flex;gap:5px;flex-wrap:wrap}.tabs button{border:0;background:transparent;color:var(--muted);font-size:11px;padding:7px 11px;border-radius:5px}.tabs button[aria-pressed=true]{color:var(--gold);background:#d9b97812}.row-count{font-size:11px;color:var(--muted);margin-left:auto;white-space:nowrap}.variant-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}.variant-card{border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:20px 24px;display:flex;gap:16px;align-items:center;position:relative;overflow:hidden}.variant-card:after{content:"";height:2px;position:absolute;bottom:0;left:24px;right:24px;background:linear-gradient(90deg,var(--teal),#d9b97877,transparent)}.variant-mark{font:600 18px Bahnschrift,sans-serif;color:var(--gold);width:46px;height:46px;border-radius:8px;border:1px solid #d9b97833;display:grid;place-items:center;background:#d9b97808;flex-shrink:0}.variant-card h3{font-size:14px}.variant-card p{font-size:11px;color:var(--muted);margin-top:5px}.variant-card>.status{margin-left:auto}.rule-card{padding:25px;background:linear-gradient(145deg,#19323a,#121c24 72%);position:relative}.rule-card .eyebrow{margin-bottom:20px}.credit-equation{font:500 27px Bahnschrift,sans-serif;color:var(--text);display:flex;align-items:center;gap:11px}.credit-equation span{font-size:18px;color:var(--gold)}.rule-card p{color:var(--muted);font-size:12px;margin-top:15px}.rule-card .rule-line{margin-top:20px;padding-top:17px;border-top:1px solid var(--line);display:flex;gap:9px;align-items:flex-start;color:var(--gold);font-size:11px}.activity-list{list-style:none;padding:0;margin:0}.activity-list li{padding:14px 22px;border-bottom:1px solid #2b3b4677;display:flex;gap:12px;font-size:11px}.activity-list li:last-child{border:0}.activity-dot{width:7px;height:7px;border:1px solid var(--teal);border-radius:50%;margin-top:5px;flex-shrink:0}.activity-list strong{font-weight:500;display:block}.activity-list small{display:block;font-size:10px;margin-top:3px}.empty{padding:35px 24px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--text);margin-bottom:8px}.security-list{display:grid;gap:20px}.security-item{display:flex;gap:14px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}.security-item:last-child{border:0;padding-bottom:0}.security-item svg{color:var(--teal);margin-top:2px}.security-item p{font-size:12px;color:var(--muted);margin-top:6px}.info-box{border:1px solid #d9b97838;border-radius:6px;padding:14px;background:#d9b97808;color:var(--gold);font-size:12px;line-height:1.6}.info-box small{display:block;color:var(--muted);margin-top:5px}.kv{display:grid;grid-template-columns:1fr 1fr;gap:18px}.kv dt{font-size:10px;color:var(--muted);margin-bottom:6px}.kv dd{margin:0;font-size:12px;overflow-wrap:anywhere}.detail-section{margin-top:26px;padding-top:23px;border-top:1px solid var(--line)}.detail-section h3{margin-bottom:14px}.playlist{padding:16px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:13px}.playlist:first-of-type{border-top:0}.format{font-size:9px;color:var(--gold);border:1px solid var(--line);border-radius:6px;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}.playlist .grow{flex:1;min-width:0}.playlist p{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.playlist strong{font-size:12px;font-weight:500}.playlist-actions{display:flex;gap:8px}.playlist-actions button{min-height:36px;padding:6px 8px}.hash{overflow-wrap:anywhere;white-space:normal;color:var(--muted);font:10px/1.6 Consolas,monospace}dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0;width:min(490px,calc(100% - 32px));max-height:90vh;box-shadow:0 20px 90px #0009}dialog::backdrop{background:#060b10b8;backdrop-filter:blur(4px)}dialog.drawer{width:min(570px,100%);height:100vh;max-height:100vh;inset:0 0 0 auto;margin:0;border-radius:0;border-right:0;box-shadow:-20px 0 80px #0006}.dialog-head{padding:24px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.dialog-head h2{font-size:22px}.dialog-head p{color:var(--muted);font-size:12px;margin-top:6px}.close{border:0;background:transparent;color:var(--muted);padding:5px;min-width:32px;min-height:32px;display:grid;place-items:center}.dialog-body{padding:24px}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}.field{display:block;margin-top:18px}.field:first-child{margin-top:0}.field>span{display:block;font-size:12px;margin-bottom:8px;font-weight:500}.field small{display:block;font-size:11px;margin-top:7px}.field input,.field select,.field textarea{color:var(--text);border:1px solid var(--line);background:var(--bg);border-radius:6px;padding:11px 12px;width:100%;min-height:44px}.field textarea{min-height:100px;resize:vertical}.field input::placeholder{color:#8595a2}.form-error{color:var(--bad);font-size:12px;margin-top:15px;overflow-wrap:anywhere}.actions{display:flex;gap:10px;flex-wrap:wrap}.danger-zone{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.compact-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:12px}.footer{margin-top:30px;display:flex;justify-content:space-between;font-size:10px;color:#92a2af;gap:20px;padding-top:16px;border-top:1px solid var(--line)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--raised);border:1px solid var(--gold);border-radius:8px;padding:13px 20px;max-width:calc(100% - 32px);z-index:10;box-shadow:0 8px 35px #0008;font-size:12px}.loading{min-height:100vh;display:grid;place-items:center;color:var(--gold)}.error-page{max-width:540px;margin:15vh auto;padding:30px}.error-page p{color:var(--muted);margin:15px 0}.mobile-menu{display:none}.filters-empty{padding:32px;color:var(--muted);text-align:center}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
@media(min-width:1700px){.content{padding-top:46px}.split{grid-template-columns:minmax(0,1fr) 340px}}
@media(max-width:1200px){.content{padding:28px 24px}.topbar{padding:0 24px}.preview-bar{padding:9px 24px}.split{grid-template-columns:1fr}.stack{grid-template-columns:1fr 1fr}.search{width:260px}.stat{padding:20px 18px}.secure{display:none}.stats{margin-bottom:24px}}
@media(max-width:850px){.shell{--sidebar-width:240px;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}.sidebar{width:var(--sidebar-width);padding:25px 12px}.brand{padding-left:6px;padding-right:6px}.brand img{width:152px}.nav button{padding:11px 9px;gap:10px;font-size:12px}.sidebar-bottom{padding-left:7px;padding-right:7px}.stats{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.search{width:220px}.crumb{display:none}.topbar{height:62px}.search{width:100%}.variant-strip{grid-template-columns:1fr}.page-head{align-items:flex-start}.page-head .button{font-size:11px}.stack{grid-template-columns:1fr}.page-head h1{font-size:29px}.content{padding:28px 20px}.preview-bar{flex-wrap:wrap;font-size:10px;padding-left:20px}.preview-bar span{display:none}td,th{padding-left:16px;padding-right:16px}}
@media(max-width:620px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 90px #0009;width:var(--sidebar-width)}.shell.menu-open .sidebar{transform:translateX(0)}.brand img{width:174px}.main{width:100%}.mobile-menu{display:grid;place-items:center;border:0;background:none;color:var(--gold);padding:6px;min-width:32px;min-height:36px}.topbar{padding:0 16px;gap:12px}.content{padding:26px 16px 36px}.preview-bar{padding:7px 16px}.page-head{flex-wrap:wrap;margin-bottom:24px;gap:17px}.page-head h1{font-size:30px}.page-head p{font-size:12px}.stats{margin-bottom:20px}.stat{padding:17px 16px}.stat strong{font-size:29px}.stat-top{font-size:10px}.variant-card{padding:18px}.variant-strip{margin:20px 0;gap:14px}.panel-head{padding:17px 18px}.panel-head h2{font-size:17px}.panel-head p{font-size:11px}.panel-body{padding:18px}.section-gap{margin-top:20px}.split,.stack{gap:18px}.table-toolbar{padding:12px 15px;flex-wrap:wrap}.row-count{font-size:10px}.tabs button{padding:6px 8px}.footer{flex-direction:column;gap:6px}.dialog-head,.dialog-body{padding:21px}.kv{gap:18px 12px}.playlist{flex-wrap:wrap}.playlist .grow{min-width:170px}.playlist-actions{margin-left:55px}.rule-card{padding:22px}.rule-card .eyebrow{margin-bottom:15px}.credit-equation{font-size:25px}}
@media(max-width:620px){.sidebar{visibility:hidden}.shell.menu-open .sidebar{visibility:visible}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Theme colours describe their role; status text remains readable in both modes. */
:root{--muted:#b9c5ce;--good:#8bd0ae;--bad:#f0ac9f;--primary:#d9b978;--on-primary:#14212a;--control-border:#71828e}
.button.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.sidebar{padding-top:25px;padding-bottom:24px}.brand{padding-bottom:0}.nav-label{padding-top:23px}.nav{flex:1;min-height:0;overflow-y:auto;gap:0}.nav button{min-height:42px;padding-top:10px;padding-bottom:10px}.sidebar-bottom{flex-shrink:0;padding-top:20px}.logout{display:block;text-align:center;text-decoration:none}
.stat-top,.stat small,.panel-head p,.row-count,.compact-note{font-size:12px}th{font-size:11px}td{font-size:13px}td small,.activity-list small,.playlist p,.kv dt,.footer{font-size:11px}.status{font-size:11px}.preview-bar{font-size:12px}.field input,.field select,.field textarea,.search input{border-color:var(--control-border)}
.theme-toggle{min-height:36px;font-size:11px;padding:7px 11px;flex-shrink:0}.topbar{gap:16px}.search{width:300px}
html[data-theme=light]{color-scheme:light;--bg:#f2f5f5;--surface:#ffffff;--raised:#eaf0f2;--line:#ccd7dc;--text:#172c36;--muted:#50636d;--gold:#765216;--teal:#176c75;--good:#246647;--bad:#a13c30;--control-border:#748a95}
[data-theme=light] .sidebar{background:#fff}[data-theme=light] .brand img{background:#16252e;padding:8px;border-radius:5px;width:174px}
[data-theme=light] .topbar{background:#fff}[data-theme=light] .nav button:hover:not(.active){background:#edf2f3;color:var(--text)}
[data-theme=light] .avatar{background:#f7edd6;border-color:#c9ac72}[data-theme=light] .preview-bar{background:#fcf4df;border-color:#dac78e}[data-theme=light] .button{border-color:var(--control-border)}[data-theme=light] .button.primary{border-color:var(--primary)}
[data-theme=light] th{background:#edf2f3}[data-theme=light] td,[data-theme=light] .activity-list li{border-color:var(--line)}[data-theme=light] tbody tr:hover{background:#f0f5f5}
[data-theme=light] .status{background:#e8f4ed;border-color:#b3d4bf}[data-theme=light] .status.warn{background:#fbf1dc;border-color:#d5bb84}[data-theme=light] .status.bad{background:#fcece8;border-color:#d8a59b}[data-theme=light] .status.neutral{background:#eef2f3;border-color:#c8d5db}
[data-theme=light] .button.danger{background:#fff5f2;border-color:#ad655a}[data-theme=light] .tabs button[aria-pressed=true]{background:#f5eace}[data-theme=light] .variant-mark{background:#fbf2df;border-color:#d4bd8d}
[data-theme=light] .rule-card{background:linear-gradient(135deg,#eaf3f1,#ffffff 78%)}[data-theme=light] .rule-card .rule-line{color:var(--gold)}[data-theme=light] .info-box{background:#fcf4e3;border-color:#ccb27a}
[data-theme=light] .footer{color:var(--muted)}[data-theme=light] dialog::backdrop{background:#172c3666}[data-theme=light] .format{background:#faf2e1}
.analytics-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:24px}.trend-chart{display:block;width:100%;height:180px}.chart-axis{stroke:var(--line);stroke-width:1}.chart-label{fill:var(--muted);font:11px 'Segoe UI',sans-serif}.series-registrations{fill:var(--teal)}.series-activations{fill:var(--primary)}.chart-legend{display:flex;align-items:center;gap:22px;font-size:12px;color:var(--muted);margin-bottom:18px}.legend-dot{width:8px;height:8px;display:inline-block;border-radius:2px;background:var(--teal);margin-right:7px}.legend-dot.gold{background:var(--primary)}
.metrics-list{display:grid;gap:15px}.metric-row{display:grid;grid-template-columns:110px minmax(30px,1fr) 35px;align-items:center;gap:12px;font-size:12px}.metric-row strong{text-align:right;font:13px Consolas,monospace}.metric-row meter{width:100%;height:12px}meter::-webkit-meter-bar{background:var(--raised);border:0;border-radius:5px}meter::-webkit-meter-optimum-value{background:var(--teal);border-radius:5px}
.period-select{border:1px solid var(--control-border);background:var(--surface);color:var(--text);border-radius:5px;padding:7px 10px;font-size:12px;min-height:36px}.analytics-note{color:var(--muted);font-size:11px;margin-top:14px}.pool-actions{display:flex;gap:10px;flex-wrap:wrap}.pool-rule{display:flex;align-items:center;gap:12px;padding:18px 23px;background:var(--raised);color:var(--muted);font-size:12px;border-radius:8px;margin-bottom:24px}.pool-rule svg{color:var(--teal)}.pool-rule strong{color:var(--text)}.pool-tabs{margin-bottom:24px;display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px}.pool-tabs button{min-height:36px;border:1px solid transparent;padding:8px 14px;border-radius:5px;background:transparent;color:var(--muted);font-size:12px}.pool-tabs button[aria-pressed=true]{background:var(--raised);color:var(--text);border-color:var(--line)}.promotion-name strong{font-weight:600}.promotion-name small{font-family:Consolas,monospace;letter-spacing:.04em}
.payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:25px}.payment-card{border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:24px;min-width:0}.payment-card .payment-icon{height:42px;width:42px;background:var(--raised);display:grid;place-items:center;border-radius:8px;color:var(--teal);margin-bottom:18px}.payment-card h2{margin-bottom:8px}.payment-card p{color:var(--muted);font-size:12px;min-height:58px;margin-bottom:20px}.payment-card .status{margin-bottom:20px}.switch-row{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer;min-height:44px}.switch-row input{appearance:none;width:35px;height:21px;border-radius:12px;border:1px solid var(--control-border);background:var(--raised);position:relative;cursor:pointer;flex-shrink:0}.switch-row input:after{content:'';width:13px;height:13px;border-radius:50%;position:absolute;left:3px;top:3px;background:var(--muted)}.switch-row input:checked{background:var(--teal);border-color:var(--teal)}.switch-row input:checked:after{left:17px;background:#fff}.payment-basics{display:grid;grid-template-columns:1fr 1fr;gap:24px}.payment-basics .field{margin-top:0}.payment-form-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.payment-form-foot p{color:var(--muted);font-size:12px;max-width:600px}.payment-code{display:block;font:12px Consolas,monospace;margin-top:12px;color:var(--muted)}.wide-note{white-space:normal;max-width:360px}.renewal-note{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.chart-grid{stroke:var(--line);stroke-width:1}.chart-label{font-size:14px}.chart-registrations{stroke:var(--teal)}.chart-activations{stroke:var(--gold)}.chart-legend{flex-wrap:wrap;gap:12px 22px;margin-bottom:0}.chart-legend small{flex-basis:100%}.legend-registration:before,.legend-activation:before{content:'';display:inline-block;width:16px;height:3px;background:var(--teal);vertical-align:middle;margin-right:7px}.legend-activation:before{background:var(--gold)}
.period-select{display:flex;gap:12px;align-items:center;white-space:nowrap}.period-select select{background:var(--surface);color:var(--text);border:0;min-height:30px}.pool-rule{justify-content:space-between;flex-wrap:wrap}.pool-rule p{margin-top:4px}.wide-note{max-width:none}.payment-card{padding:0}.payment-card .panel-head{align-items:flex-start;flex-direction:column;gap:10px}.payment-card h2,.payment-card .status{margin:0}.payment-card p{min-height:0;margin-bottom:0}.payment-card .panel-head p{margin-top:4px}.switch-row span{flex:1}.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
@media(max-width:1200px){.analytics-grid{grid-template-columns:1fr 1fr}.payment-grid{gap:14px}.secure{display:none}.search{width:260px}}
@media(max-width:850px){.analytics-grid,.payment-grid{grid-template-columns:1fr}.search{width:100%}.brand img,[data-theme=light] .brand img{width:152px}.payment-card p{min-height:0}.topbar .theme-toggle{font-size:10px}.sidebar-bottom{padding-top:15px}.payment-form-foot{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.brand img,[data-theme=light] .brand img{width:174px}.topbar{gap:8px}.search input{font-size:11px}.theme-toggle{font-size:10px;min-width:72px}.preview-bar{font-size:10px}.analytics-grid{gap:18px}.metric-row{grid-template-columns:100px minmax(30px,1fr) 30px}.payment-basics{grid-template-columns:1fr;gap:18px}.pool-rule{align-items:flex-start;padding:16px}.pool-actions .button{font-size:11px}.sidebar .brand{flex-shrink:0}.trend-chart{height:155px}.trend-chart .chart-label{font-size:28px}.page-head .pool-actions{width:100%}}

/* Reseller workflows reuse the business shell and its existing colour roles. */
.brand{position:relative}.nav-close{display:none}.identity>div{min-width:0}.identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrap:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}.button:disabled{cursor:not-allowed}
.partner-banner{border:1px solid var(--line);border-radius:10px;padding:25px;background:var(--raised);display:flex;gap:24px;justify-content:space-between;align-items:center}.partner-banner h2{margin:8px 0}.partner-banner p:not(.eyebrow){font-size:13px;color:var(--muted);max-width:620px}.partner-banner .pool-actions{flex-shrink:0}.kv dd{overflow-wrap:anywhere}.login-shell{max-width:1080px;min-height:620px;margin:8vh auto;display:grid;grid-template-columns:1.1fr 1fr;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);box-shadow:0 18px 50px #14212a0a}
.login-story{padding:52px;background:#16252e;color:#f2eee6;display:flex;flex-direction:column;justify-content:center}.login-logo{width:210px;margin-bottom:48px}.login-story .eyebrow{color:#d9b978;margin-bottom:18px}.login-story h1{font-size:47px;line-height:1.12;margin-bottom:24px}.login-story>p:not(.eyebrow){color:#b9c5ce;font-size:15px;max-width:370px}.login-rule{border-top:1px solid #71828e;padding-top:24px;margin-top:35px}.login-rule strong{display:block;color:#d9b978;font:500 23px Bahnschrift,sans-serif}.login-rule span{display:block;color:#b9c5ce;font-size:13px;margin-top:8px}.login-story .login-footnote{font-size:12px!important;margin-top:30px}.login-card{padding:52px;display:flex;flex-direction:column;justify-content:center}.login-card h2{font-size:28px;margin:12px 0}.login-card>p:not(.eyebrow){color:var(--muted);font-size:13px}.login-card .info-box{margin:22px 0}.login-card form>.button,.login-continue{width:100%;margin-top:22px}.login-card .field select{display:block;margin-top:10px}.login-help{margin-top:34px;padding-top:24px;border-top:1px solid var(--line);font-size:13px}.login-help p{color:var(--muted);font-size:12px;margin-top:7px}.login-reset{display:inline-block;margin-top:18px;font-size:12px;color:var(--gold);text-underline-offset:4px}.login-card .form-error{margin:14px 0}
@media(max-width:1100px){.analytics-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.partner-banner{align-items:flex-start;flex-direction:column}.login-shell{margin:5vh 24px;min-height:560px}.login-story,.login-card{padding:38px}.login-story h1{font-size:40px}}
@media(max-width:620px){.nav-close{display:grid;place-items:center;position:absolute;right:0;top:62px;width:32px;height:32px;border:1px solid var(--control-border);border-radius:5px;background:var(--surface);color:var(--text)}.partner-banner{padding:20px}.partner-banner .pool-actions{width:100%;flex-wrap:wrap}.login-shell{grid-template-columns:1fr;margin:16px;border-radius:12px;min-height:0}.login-story,.login-card{padding:28px}.login-logo{width:170px;margin-bottom:28px}.login-story h1{font-size:36px}.login-story>p:not(.eyebrow){font-size:13px}.login-rule{margin-top:24px;padding-top:18px}.login-story .login-footnote{margin-top:20px}.login-card h2{font-size:25px}.login-help{margin-top:26px}}
.stat-top{gap:10px;align-items:flex-start}.stat-top span{flex:1;min-width:0}.stat-top svg{flex-shrink:0;margin-top:1px}
.activation-plans{display:grid;grid-template-columns:1fr 1fr}.activation-plan{padding:26px;border-right:1px solid var(--line)}.activation-plan:last-child{border-right:0}.activation-plan h3{font-size:19px}.activation-plan .compact-note{margin-top:12px;max-width:430px}.lifetime-plan{background:var(--raised)}.plan-price{display:block;font:500 42px/1.25 Bahnschrift,sans-serif;letter-spacing:-.03em;margin:18px 0 8px}.plan-duration{font-size:14px;color:var(--text)}.pricing-footnote{padding:17px 24px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.reseller-packs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.credit-pack{padding:22px 19px;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.credit-pack:last-child{border-right:0}.pack-title{min-height:48px}.pack-title h3{font-size:17px}.pack-title small{display:block;font-size:11px;color:var(--gold);margin-top:6px}.pack-price{font:500 32px/1.3 Bahnschrift,sans-serif;margin:8px 0}.pack-capacity{margin:20px 0;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;flex:1}.pack-capacity small{display:block;margin-top:7px;font-size:11px;line-height:1.7}.credit-pack .button{width:100%;padding:10px 6px;font-size:12px}.activation-plan .detail-head{flex-wrap:wrap}
@media(max-width:1100px){.reseller-packs{grid-template-columns:repeat(3,minmax(0,1fr))}.credit-pack{border-bottom:1px solid var(--line)}.credit-pack:nth-child(3n){border-right:0}}
@media(max-width:850px){.reseller-packs{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-pack:nth-child(3n){border-right:1px solid var(--line)}.credit-pack:nth-child(2n){border-right:0}.credit-pack:last-child{border-right:0}}
@media(max-width:620px){.activation-plans,.reseller-packs{grid-template-columns:1fr}.activation-plan{padding:22px;border-right:0;border-bottom:1px solid var(--line)}.activation-plan:last-child{border-bottom:0}.credit-pack,.credit-pack:nth-child(3n){padding:22px;border-right:0}.credit-pack:last-child{border-bottom:0}.pack-title{min-height:0}.pricing-footnote{padding:17px 20px}.pack-price{font-size:34px}.plan-price{font-size:38px}.pack-capacity{margin:16px 0}}

.activation-review{font-size:13px;margin-top:18px;padding:12px 14px;background:var(--raised);border:1px solid var(--line);border-radius:6px;color:var(--text)}.activation-review.insufficient{color:var(--bad);border-color:var(--bad)}
.ticket-subject{white-space:normal;min-width:230px;max-width:360px;overflow-wrap:anywhere}.ticket-subject strong{line-height:1.6}.ticket-device{margin:20px 0;padding:16px;border:1px solid var(--line);background:var(--raised);border-radius:6px}.ticket-device strong{font-size:12px}.ticket-device p{font-size:12px;color:var(--muted);margin:7px 0 12px}.ticket-thread{display:grid;gap:16px}.ticket-message{padding:16px;border:1px solid var(--line);border-radius:7px;background:var(--bg)}.ticket-message.support-reply{background:var(--raised);border-left:3px solid var(--teal)}.message-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:11px}.message-meta strong{font-weight:600}.message-meta time{color:var(--muted)}.ticket-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.75;margin:12px 0 0}
@media(max-width:620px){.ticket-message{padding:14px}.ticket-subject{min-width:200px}.ticket-device .button{width:100%;white-space:normal}.activation-review{font-size:12px}}

.help-body{white-space:pre-wrap;overflow-wrap:anywhere}.receipt-print{position:fixed;width:1px;height:1px;left:-9999px;border:0}.sidebar .nav{overflow-y:auto;min-height:0}.sidebar{height:100dvh}.sidebar-bottom{flex-shrink:0}.info-box .mono{overflow-wrap:anywhere}.page-head>.actions{flex-wrap:wrap}
.playlist-actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%}

/* Backup and recovery spacing stays local to this page. */
.recovery-page{display:grid;gap:24px;min-width:0}
.recovery-page .page-head{margin-bottom:0;flex-wrap:wrap;gap:20px}
.recovery-page .page-head>div{flex:1 1 420px;min-width:0}
.recovery-page .page-head>.button{flex-shrink:0}
.recovery-page .panel{margin-top:0}
.recovery-page .panel-body{display:grid;gap:20px}
.recovery-page .panel-body>.compact-note,.recovery-page .form-error{margin-top:0}
.recovery-page .recovery-latest{padding:18px 20px;min-width:0}
.recovery-backup-label{color:var(--muted);font-size:12px}
.recovery-backup-time{display:block;color:var(--text);font:500 20px/1.4 Bahnschrift,"Segoe UI",sans-serif;margin-top:4px}
.recovery-backup-key{display:block;color:var(--muted);margin-top:12px;overflow-wrap:anywhere;white-space:normal}
.recovery-retention-copy{display:grid;gap:8px}
.recovery-retention-copy .compact-note{margin-top:0}
.recovery-page .actions{gap:12px}
.recovery-page .actions>.button{max-width:100%;white-space:normal;text-align:center}
@media(max-width:620px){.recovery-page{gap:20px}.recovery-page .panel-body{gap:18px}.recovery-page .recovery-latest{padding:16px}.recovery-backup-time{font-size:18px}}
.sidebar .nav{padding-top:14px;gap:3px}.nav-group{flex-shrink:0}.nav-group+.nav-group{margin-top:6px}.nav-group-label{display:flex;white-space:nowrap;align-items:center;gap:10px;min-height:42px;padding:10px 12px;border:0;border-radius:5px;list-style:none;background:transparent;font-size:14px;font-weight:500;line-height:1.4;color:var(--text);cursor:pointer}.nav-group-label>svg{width:18px;height:18px;flex-shrink:0;color:var(--muted)}.nav-group-title{min-width:0}.nav-group-label::-webkit-details-marker{display:none}.nav-group-label::after{content:'';width:6px;height:6px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);flex-shrink:0}.nav-group[open]>.nav-group-label{background:var(--raised)}.nav-group.active-group>.nav-group-label{background:#E6C484;color:#16252e;font-weight:600}.nav-group.active-group>.nav-group-label>svg{color:#16252e}.nav-group[open]>.nav-group-label::after{transform:rotate(45deg)}.nav-group-label:hover{background:var(--raised)}.nav-group-label:active{transform:translateY(1px)}.nav-group-label:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.nav-group-links{display:flex;flex-direction:column;gap:2px;padding:4px 6px 6px}@media(max-width:850px){.nav-group-label{font-size:14px}}

.master-avatar{object-fit:cover;flex-shrink:0}.account-identity{display:flex;align-items:center;gap:12px}.account-identity .avatar{width:48px;height:48px}

.sidebar-identity{padding:22px 12px 24px;margin-bottom:18px;border-bottom:1px solid var(--line);flex-shrink:0;gap:13px}.sidebar-identity .avatar{width:44px;height:44px;flex-shrink:0}.sidebar-identity strong{font-size:14px;font-weight:650}.sidebar-identity small{margin-top:3px;font-size:12px}.sidebar-bottom{padding-top:18px}.sidebar-bottom .logout{margin-top:0;min-height:44px}.nav-group-links button{min-height:38px;border:0;border-radius:5px;padding:9px 12px 9px 20px;font-size:13px;gap:6px}.nav-group-links button>svg{width:16px;height:16px}.topbar .search{min-width:0;flex:1;max-width:300px}.credit-shortcut{margin-left:auto;flex-shrink:0;white-space:nowrap}.credit-shortcut+.search{margin-left:0}
@media(max-width:1100px){.credit-shortcut-label{display:none}.credit-shortcut{padding:10px;min-width:40px}}
@media(max-width:850px){.sidebar-identity{padding-left:6px;padding-right:6px}.sidebar-identity strong{font-size:13px}.nav-group-label{gap:10px;padding:10px}.nav-group-links button{font-size:13px;padding-left:16px}}

/* Confirmed inner page spacing corrections. */
.player-check-page,.player-check-result{display:grid;gap:24px;min-width:0}.player-check-page .page-head{margin-bottom:0}.player-check-page .panel,.player-check-page .section-gap{margin-top:0}.player-check-result:empty{display:none}.player-check-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start}.player-check-form .field{margin:0}.player-check-form>.button{margin-top:25px;min-height:44px}.player-check-overview{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}.player-check-overview>div{min-width:0}.player-check-label{display:block;color:var(--muted);font-size:12px;margin-bottom:10px}.player-check-overview strong{display:block;font-size:22px;line-height:1.4}.player-check-overview strong.player-check-id{font-size:15px;line-height:1.7}.player-check-id{white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.6}.player-check-overview p,.player-check-overview small{font-size:12px;color:var(--muted);line-height:1.7;margin-top:8px;display:block}.player-check-overview .button{margin-top:14px}.player-check-actions{padding:0 26px 24px;display:flex;gap:12px;flex-wrap:wrap}.player-check-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.player-check-grid>.panel{min-width:0}.player-check-list{list-style:none;padding:8px 26px 20px;margin:0}.player-check-list li{padding:16px 0;border-bottom:1px solid var(--line)}.player-check-list li:last-child{border-bottom:0}.player-check-list strong{font-size:13px}.player-check-list p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:7px}.player-check-help{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:20px 26px}.player-check-help summary{font-size:14px;font-weight:600;cursor:pointer;line-height:1.6}.player-check-help summary:focus-visible{outline:2px solid var(--gold);outline-offset:5px}.player-check-help p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:14px}.player-check-page .kv{gap:20px}.player-check-page .kv dd{line-height:1.7}.player-check-page .status{white-space:nowrap}.player-check-page td{white-space:normal;min-width:110px}.player-check-page td:first-child{min-width:200px}
@media(max-width:1150px){.player-check-overview{grid-template-columns:1fr 1fr}.player-check-overview>div:first-child{grid-column:1/-1}.player-check-grid{grid-template-columns:1fr}}
@media(max-width:620px){.player-check-page,.player-check-result{gap:20px}.player-check-form{grid-template-columns:1fr;gap:16px}.player-check-form>.button{margin-top:0;width:100%}.player-check-overview{grid-template-columns:1fr;gap:24px}.player-check-actions{padding:0 18px 20px}.player-check-actions>.button{width:100%;white-space:normal}.player-check-page .kv{grid-template-columns:1fr}.player-check-list{padding:4px 18px 14px}.player-check-help{padding:18px}.player-check-grid{gap:20px}}
.overview-layout{align-items:start}
.overview-variants .variant-card::after{display:none}
.licence-notice{margin:0 0 28px}
.policy-actions{margin-top:24px}
.session-actions{margin-top:18px}
.session-actions>.button{text-decoration:none}
@media(max-width:620px){.licence-notice{margin-bottom:20px}.policy-actions{margin-top:20px}}

/* Shared admin dialog spacing and responsive controls. */
.dialog-head>div{min-width:0}
.dialog-head h2,.dialog-head p{overflow-wrap:anywhere}
.dialog-head>.close{flex-shrink:0}
.dialog-foot{flex-wrap:wrap}
.dialog-body .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.dialog-body .field-group,.dialog-body form>.actions{margin-top:18px}
dialog:not(.drawer) .dialog-body>div>.section-gap:first-child{margin-top:0}
dialog:not(.drawer) .dialog-body>div>p+p{margin-top:12px}
dialog:not(.drawer) .dialog-body>div>.button{margin-top:20px}
.dialog-body .info-box{overflow-wrap:anywhere}
.dialog-body .info-box>.actions{margin-top:12px}
.dialog-body .panel-body>.actions+.info-box,.dialog-body .panel-body>.info-box+.info-box{margin-top:12px}
.dialog-body .ticket-message.support-reply{border-left:1px solid var(--line)}
/* App downloads uses the existing shell, colour roles and neutral borders. */
.download-page-head{gap:24px;align-items:center}.download-page-head h1{margin-bottom:10px}.download-body{display:grid;gap:24px;min-width:0}.download-summary{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:13px}.download-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.download-app{display:flex;align-items:center;gap:16px;text-align:left;border:1px solid var(--line);border-radius:9px;padding:18px;background:var(--surface);color:var(--text);min-width:0;cursor:pointer}.download-app[aria-pressed=true]{background:var(--raised);border-color:var(--control-border)}.download-app:hover{background:var(--raised)}.download-app strong{display:block;font-size:13px;line-height:1.6}.download-app small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.download-logo{width:56px;height:56px;object-fit:contain;border-radius:10px;flex-shrink:0}.download-logo-fallback{display:grid;place-items:center;background:var(--raised);font:600 20px Bahnschrift,sans-serif}.download-library{min-width:0}.download-filters{display:grid;grid-template-columns:minmax(140px,1fr) minmax(145px,1fr) minmax(180px,1.5fr);gap:18px;padding:22px 24px;border-bottom:1px solid var(--line)}.download-filters label{font-size:12px;color:var(--muted);display:grid;gap:8px;min-width:0}.download-filters input:not([type=checkbox]),.download-filters select{min-height:42px;width:100%;padding:9px 11px;background:var(--surface);border:1px solid var(--control-border);border-radius:5px;color:var(--text);font:inherit}.download-filters .download-history{grid-column:1/-1;display:flex;gap:10px;align-items:center;color:var(--text);cursor:pointer}.download-history input{width:16px;height:16px;accent-color:var(--teal)}.download-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,1.15fr) auto;gap:24px;align-items:center;padding:25px 24px;border-bottom:1px solid var(--line)}.download-row:last-child{border-bottom:0}.download-release strong{font-size:12px;color:var(--muted)}.download-release h2{font:500 20px/1.4 Bahnschrift,"Segoe UI",sans-serif;margin:7px 0;overflow-wrap:anywhere}.download-release small{font-size:12px;color:var(--muted)}.download-state{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}.download-state p{flex-basis:100%;font-size:12px;line-height:1.7;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.download-actions{display:flex;gap:10px;flex-direction:column;align-items:stretch}.download-actions .button{justify-content:center;white-space:nowrap}.download-actions .button:disabled{opacity:.5}.download-details{display:grid;gap:20px;min-width:0}.download-details>.field,.download-details>.compact-note{margin:0}.download-details .kv{margin:0}.download-details>p{font-size:13px;line-height:1.8}.download-details textarea{font:12px/1.7 Consolas,monospace;resize:vertical;overflow-wrap:anywhere}.download-details select{width:100%;min-height:42px}.download-link-result{display:grid;gap:18px;min-width:0}.download-link-result:empty{display:none}.download-link-result p{font-size:12px;color:var(--muted)}.download-link-result .field{margin:0}.download-link-result a{text-decoration:none}.download-empty p{color:var(--muted);font-size:13px;margin-top:12px}.download-footnote{margin-top:0;line-height:1.8}.download-app:focus-visible,.download-filters input:focus-visible,.download-filters select:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:1100px){.download-apps{grid-template-columns:repeat(2,minmax(0,1fr))}.download-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.download-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.download-actions .button{min-height:40px}}
@media(max-width:620px){.download-page-head{align-items:flex-start;flex-direction:column;gap:16px}.download-body{gap:18px}.download-apps{display:flex;overflow-x:auto;gap:10px;padding:3px 3px 12px;scroll-snap-type:x proximity}.download-app{padding:15px;flex:0 0 255px;scroll-snap-align:start}.download-logo{width:48px;height:48px}.download-summary{font-size:12px;flex-wrap:wrap}.download-filters{grid-template-columns:1fr;padding:18px;gap:16px}.download-row{grid-template-columns:1fr;padding:22px 18px;gap:16px}.download-actions{grid-column:auto;justify-content:flex-start;flex-wrap:wrap}.download-actions .button{font-size:12px}.download-details .kv{grid-template-columns:1fr}.download-page-head h1{font-size:30px}}


/* Reseller dashboard actions preserve the existing shell, palette and neutral borders. */
.reseller-tools{margin-bottom:24px}.reseller-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:22px}.reseller-tool{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:18px;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}.reseller-tool:hover{background:var(--raised)}.reseller-tool:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.reseller-tool>svg{flex-shrink:0;color:var(--teal);width:20px;height:20px}.reseller-tool>svg:last-child{width:16px;height:16px;margin-left:auto;color:var(--muted)}.reseller-tool span{min-width:0}.reseller-tool strong{display:block;font-size:14px;margin-bottom:7px}.reseller-tool small{display:block;font-size:12px;line-height:1.6;color:var(--muted)}.history-filters{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,2fr);gap:20px}.history-filters .field{margin:0}.history-filters input,.history-filters select{width:100%}
@media(max-width:1100px){.reseller-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.reseller-tool-grid{grid-template-columns:1fr;padding:16px;gap:10px}.reseller-tool{padding:16px}.history-filters{grid-template-columns:1fr;gap:14px}}

/* Players keeps the shared shell and uses a complete, horizontally scrollable register. */
.player-register .table-toolbar{flex-wrap:wrap;gap:12px 18px}.player-register .tabs{flex:1 1 auto}.player-order{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;white-space:nowrap}.player-order select{min-height:36px;padding:7px 10px;border:1px solid var(--control-border);border-radius:5px;background:var(--surface);color:var(--text);font:inherit}.player-register .row-count{margin-left:0}.player-register table{min-width:1450px}.player-register th,.player-register td{padding:15px 16px;vertical-align:top}.player-register th{font-size:11px}.player-register td{line-height:1.6}.player-register td strong{font-size:13px}.player-register td small{font-size:11px;line-height:1.6;margin-top:5px}.player-register .player-identity{min-width:170px}.player-register .player-identity strong{font-size:13px}.player-register .player-identity small,.player-register .player-build small,.player-register .player-access small,.player-register .player-expiry small,.player-register .player-manager{white-space:normal;overflow-wrap:anywhere}.player-register .player-note{min-width:180px;max-width:240px}.player-note-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}.player-register .player-note .button{margin-top:10px}.player-register .player-system{min-width:155px;max-width:190px}.player-register .player-package{white-space:normal;overflow-wrap:anywhere;font-size:10px}.player-register .player-build{min-width:120px;max-width:150px}.player-register .player-access{min-width:150px;max-width:180px}.player-register .player-expiry{min-width:155px}.player-register .player-connection{min-width:145px}.player-connection-time{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.player-connection-time strong{display:block;font-weight:500}.player-connection-time small{display:block;color:var(--muted);margin-top:5px;font-size:11px}.player-register .player-manager{min-width:130px;max-width:170px}.player-register .player-controls{min-width:100px}.player-register .player-controls .button{min-height:36px;padding:7px 12px}.player-register-detail .detail-head{margin-bottom:14px}.player-register-detail .detail-head h3{margin-bottom:0}.player-register-detail .kv{margin-bottom:0}
@media(max-width:620px){.player-register .table-toolbar{padding:14px 16px;gap:14px}.player-register .tabs{flex-basis:100%}.player-register .player-order{flex:1}.player-register .row-count{margin-left:auto}.player-register th,.player-register td{padding:14px}.player-register-detail .detail-head{align-items:flex-start}.player-register-detail .kv{grid-template-columns:1fr}}

.installation-recovery-signals{max-width:440px;white-space:normal;overflow-wrap:anywhere}

.download-change-summary{font-size:13px;line-height:1.7;margin-top:12px;overflow-wrap:anywhere}.download-changes{display:grid;gap:16px;min-width:0}.download-changes h3,.download-acceptance h3{font-size:16px;line-height:1.5}.download-changes h4{font-size:13px;line-height:1.6;margin-bottom:8px}.download-changes p,.download-changes li,.download-acceptance p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.download-changes ul{margin:0;padding-left:21px;display:grid;gap:7px}.download-acceptance{padding-top:20px;border-top:1px solid var(--line)}.download-acceptance p{margin-top:10px;color:var(--muted)}

/* Network observations and app reports retain their distinct sources. */
.player-country,.player-mac{display:flex;align-items:center;gap:8px}.player-country-flag,.player-country-unknown{width:24px;height:18px;flex:0 0 24px;border-radius:2px;overflow:hidden}.player-country-flag{display:block}.player-country-unknown{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--raised);color:var(--muted);font-size:11px;line-height:1}.player-ip-value{display:block;white-space:normal;overflow-wrap:anywhere;font-size:11px;letter-spacing:0;line-height:1.7}
.player-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.player-summary button{display:grid;grid-template-columns:1fr auto;gap:3px 8px;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text)}.player-summary button[aria-pressed=true]{background:var(--raised);border-color:var(--control-border)}.player-summary span{font-size:12px;font-weight:600}.player-summary strong{grid-column:2;grid-row:1/3;font-size:24px;align-self:center;font-variant-numeric:tabular-nums}.player-summary small{font-size:11px;white-space:normal}
.player-register table{min-width:1250px;table-layout:fixed}.player-register th,.player-register td{padding:16px 12px;white-space:normal;overflow-wrap:anywhere}.player-register th:nth-child(1){width:20%}.player-register th:nth-child(2){width:12%}.player-register th:nth-child(3){width:12%}.player-register th:nth-child(4){width:15%}.player-register th:nth-child(5){width:13%}.player-register th:nth-child(6){width:12%}.player-register th:nth-child(7){width:10%}.player-register th:nth-child(8){width:6%}.player-register .player-identity,.player-register .player-build,.player-register .player-access,.player-register .player-expiry,.player-register .player-connection,.player-register .player-manager,.player-register .player-controls{min-width:0;max-width:none}.player-register .player-controls,.player-register th:last-child{position:sticky;right:0;background:var(--surface);box-shadow:-1px 0 var(--line)}.player-register .player-controls .button{padding:7px 9px;font-size:11px}.player-register .player-identity>strong{font-size:14px;font-weight:600}.player-register .player-note-text{font-size:12px;line-height:1.5;margin-top:7px}.player-note-action{font-size:11px;margin-top:4px}.player-country{font-size:12px}.player-network .status{margin-top:8px}.player-register .status{max-width:100%;white-space:normal;line-height:1.5}.installed-tag{display:inline-block;margin-top:7px;padding:2px 7px;border-radius:4px;background:var(--raised);color:var(--teal);font-size:10px;font-weight:600}.expiry-counter small{display:block;margin-top:6px;white-space:normal}.expiry-counter .status{font-weight:600;font-variant-numeric:tabular-nums}.contact-summary>strong{display:block;font-size:13px}.contact-recent{color:var(--good)}.contact-summary .player-connection-time{margin-top:5px}.contact-summary .player-connection-time strong,.contact-summary .player-connection-time small{font-size:10px;font-weight:400;color:var(--muted);line-height:1.5}.contact-summary .player-connection-time small{margin-top:0}.register-legend{padding:13px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.player-reference-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}.player-reference-line .installed-tag{margin-top:5px}.player-register .player-note-action{margin-top:5px}
@media(max-width:620px){.player-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:8px}.player-summary button{padding:10px}.player-summary strong{font-size:21px}.player-summary small{font-size:10px}.register-legend{padding:12px 16px}}

/* History filters retain readable widths across owner and wallet views. */
.history-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}

/* Partner branding uses the shared panels, forms and neutral border system. */
.portal-brand-logo{display:block;width:96px;height:96px;object-fit:contain;margin:0 0 22px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.field input[type=file]{width:100%;min-width:0;max-width:100%;padding:10px;font-size:12px;color:var(--text)}
.field input[type=file]::file-selector-button{margin-right:10px;padding:8px 12px;border:1px solid var(--control-border);border-radius:5px;background:var(--raised);color:var(--text);font:inherit}
@media(max-width:620px){.portal-brand-logo{width:80px;height:80px}.field input[type=file]{padding:8px;font-size:11px}}
