:root { color-scheme: light; --ink:#142033; --muted:#718096; --line:#e4e9f0; --paper:#fff; --bg:#f4f6f9; --nav:#111b2d; --accent:#ff7657; --mint:#5ad9ae; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 30% 20%,#25395f,#0e1727 62%); }
.login-card { width:min(420px,100%); padding:42px; border-radius:24px; background:#fff; box-shadow:0 30px 90px #060b1488; }
.brand-mark { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; color:#fff; font-size:24px; font-weight:900; background:linear-gradient(135deg,var(--accent),#ffb052); }
.brand-mark.small { width:38px; height:38px; border-radius:12px; font-size:18px; flex:none; }
.eyebrow,.section-label { margin:18px 0 4px; color:#9aa7b9; font-size:11px; font-weight:800; letter-spacing:.14em; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:8px; font-size:30px; letter-spacing:-.03em; }
h2 { margin-bottom:0; font-size:20px; }
.muted, small { color:var(--muted); }
label { display:grid; gap:7px; color:#526176; font-size:12px; font-weight:700; }
input,textarea,select { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 12px; background:#fff; color:var(--ink); outline:none; }
input:focus,textarea:focus,select:focus { border-color:#7c91ae; box-shadow:0 0 0 3px #7c91ae22; }
.login-card label { margin:24px 0 18px; }
button { border:0; border-radius:10px; padding:10px 15px; font-weight:750; }
.primary { background:var(--accent); color:white; box-shadow:0 7px 18px #ff765733; }
.secondary { background:#edf2f7; color:#314058; }
.ghost { background:transparent; color:#adbacd; }
.danger { background:#fff0ed; color:#c24632; }
.full { width:100%; }
.error { min-height:20px; color:#c33d2e; margin:12px 0 0; }
.app { min-height:100vh; grid-template-columns:260px 1fr; }
.app:not([hidden]) { display:grid; }
aside { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:24px 18px; background:var(--nav); color:#fff; }
.brand { display:flex; align-items:center; gap:12px; margin:0 6px 28px; }
.brand div { display:grid; }
.brand span:last-child { color:#8492a7; font-size:11px; }
.section-label { margin:28px 10px 8px; }
#game-list { display:grid; gap:5px; overflow:auto; }
.game-item { width:100%; display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:10px; text-align:left; background:transparent; color:#b4c0d1; }
.game-item:hover,.game-item.active { background:#1d2b43; color:#fff; }
.dot { width:7px; height:7px; border-radius:50%; background:#58667b; }
.dot.on { background:var(--mint); box-shadow:0 0 0 4px #5ad9ae20; }
.count { color:#718097; font-size:11px; }
.bottom { margin-top:auto; }
main { padding:36px clamp(24px,5vw,72px) 80px; }
header,.panel-head,.section-head,.actions { display:flex; align-items:center; justify-content:space-between; gap:20px; }
header .eyebrow,.panel-head .eyebrow,.section-head .eyebrow { margin:0 0 4px; }
.status { min-height:24px; color:#2d8c6e; font-weight:700; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:28px 0; }
.stats article { padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.stats span { display:block; color:var(--muted); font-size:12px; }
.stats strong { display:block; margin-top:5px; font-size:27px; }
.panel { padding:28px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:0 10px 30px #1b2d4910; }
.panel-head { padding-bottom:22px; border-bottom:1px solid var(--line); }
.grid { display:grid; gap:16px; margin:22px 0; }
.grid.two { grid-template-columns:1fr 1fr; }
.switch { display:flex; align-items:center; gap:9px; }
.switch input { width:auto; }
.section-head { margin:34px 0 14px; }
.placements { display:grid; gap:14px; }
.placement { padding:20px; border:1px solid var(--line); border-radius:14px; background:#fafbfd; }
.placement-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; }
.placement-grid { display:grid; grid-template-columns:1.2fr .8fr .7fr .7fr; gap:12px; }
.creative-grid { display:grid; grid-template-columns:.7fr 1fr 1fr; gap:12px; margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); }
.wide { grid-column:span 2; }
.upload-row { display:grid; grid-template-columns:1fr auto; gap:8px; }
.actions { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); }
.empty { padding:90px 20px; text-align:center; color:var(--muted); }
.empty-icon { font-size:54px; color:#c7d0dc; }
@media (max-width:900px) { .app:not([hidden]){grid-template-columns:1fr} aside{position:static;height:auto}.bottom{margin-top:15px}.stats{grid-template-columns:1fr 1fr}.placement-grid,.creative-grid{grid-template-columns:1fr 1fr} }
@media (max-width:560px) { main{padding:24px 14px}.grid.two,.placement-grid,.creative-grid{grid-template-columns:1fr}.wide{grid-column:auto}.stats{grid-template-columns:1fr 1fr}.panel{padding:18px} }
