/* TOAC Premium: shared identity; keep all existing navigation and controls. */
:root{--ink:#133b31;--muted:#667d70;--green:#1b6b50;--line:#dfe8e1;--bg:#f3f6f3;--lime:#dcf097;--white:#fff;color-scheme:light}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}
a{color:var(--green)}
/* Keep transient messages readable in both color schemes. */
.toast{background:#ecf5ef;color:#133b31}
.sidebar{background:linear-gradient(180deg,#fff,#f7faf6);border-color:var(--line)}
.sidebar .premium-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);margin-bottom:22px;letter-spacing:.02em;font-size:15px;font-weight:800;line-height:1.3}
.premium-brand .brand-icon{width:42px;height:42px;line-height:42px;font-size:25px;background:#133b31;color:#dcf097;border-radius:12px;flex:0 0 42px}
.premium-brand small{display:block;color:var(--muted);font-size:8px;font-weight:600;letter-spacing:.11em;margin-top:4px;line-height:1.6}
.v2-side-nav{display:grid;gap:6px}.sidebar .side-item{min-height:44px;font-size:13px;border-radius:12px;align-items:center;line-height:1.5}
.sidebar .side-item:hover,.sidebar .side-item:focus-visible{background:#eaf2e6;color:#133b31}.sidebar .side-item.selected{background:var(--lime);color:#133b31}
:focus-visible{outline:3px solid #79a77d;outline-offset:3px}
.topbar{min-height:60px;height:auto;padding:14px 0;letter-spacing:.08em}.topbar>div{flex-wrap:wrap;gap:12px}
.heading h1,.v2-heading h1{letter-spacing:-.04em;line-height:1.15}.heading .muted,.v2-heading .muted{line-height:1.65}
.account-card,.form-card,.log-card,.events-card,.v2-card,.v2-email{border:1px solid var(--line);border-radius:20px;box-shadow:0 4px 20px #103c3506;background:var(--white)}
.events-card h2,.events-detail strong,.v2-card h2{color:var(--ink)}.events-type{background:#eaf2e8;color:#26533c}.events-subtitle,.events-info p{color:#426457}
.button{border-radius:12px;min-height:44px;font-size:13px;line-height:1.4;box-shadow:none;padding:12px 16px}.button.primary{background:#164f3e;color:#fff;border-color:#164f3e}.button.secondary{background:#f4f7f3;color:#164f3e;border:1px solid var(--line)}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:48px;border-radius:12px;background:#f7f9f6;border:1px solid #dce5df;font-size:16px;color:var(--ink);padding:12px;max-width:100%}
input[type=checkbox],input[type=radio]{accent-color:var(--green)}
.v2-dialog{border-radius:22px;background:var(--white);color:var(--ink)}.v2-modal-actions{flex-wrap:wrap;gap:10px}.v2-actions button{min-height:44px;border-radius:11px}.v2-filterbar{flex-wrap:wrap}.v2-filters{max-width:100%;background:#e8eee8}.v2-filters button{min-height:44px}.v2-filters button.active{color:#164f3e}
.login-card{border:1px solid var(--line);border-radius:24px;background:var(--white);box-shadow:0 12px 40px #133b310a}.login-card h1{letter-spacing:-.04em}.login-card .brand-icon{background:#133b31;color:#dcf097}
body>main:not(.login-card){max-width:1100px;margin:0 auto;width:100%;padding:28px}.pwa-update{bottom:max(1rem,env(safe-area-inset-bottom));z-index:1000}
@media(max-width:820px){
 .sidebar{padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));gap:6px;align-items:stretch}
 .sidebar .premium-brand{flex-basis:100%;margin:0 0 8px}.sidebar .side-item{display:flex;min-height:44px;font-size:12px;padding:10px;flex:1 1 135px;justify-content:flex-start}
 .v2-side-nav{width:100%;grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
 main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:max(28px,env(safe-area-inset-bottom))}
 .heading,.v2-heading{gap:16px}.heading h1,.v2-heading h1{font-size:clamp(28px,7vw,38px)}
 .v2-heading{flex-wrap:wrap}.v2-cards{grid-template-columns:minmax(0,1fr)}.v2-card{padding:20px}.v2-dialog{padding:20px;max-height:calc(100dvh - 32px);overflow:auto}
 .events-card{padding:20px}.topbar .text-button{min-height:44px;display:inline-flex;align-items:center}.topbar>div{justify-content:space-between;width:100%}
 body>main:not(.login-card){padding:20px 16px}
}
@media(prefers-color-scheme:dark){
 :root{color-scheme:dark;--ink:#ecf5ef;--muted:#b8c8bd;--green:#b2daaa;--line:#345346;--bg:#10251f;--white:#16332c}
 .sidebar{background:#16332c}.sidebar .side-item:hover,.sidebar .side-item:focus-visible{background:#274638;color:#ecf5ef}.sidebar .side-item.selected{background:#dcf097;color:#133b31}
 .account-card,.form-card,.log-card,.events-card,.v2-card,.v2-email,.login-card,.v2-dialog,.info-card,.v2-empty,.option,.user-row{background:var(--white);color:var(--ink);border-color:var(--line)}
 input:not([type=checkbox]):not([type=radio]),select,textarea{background:#203e34;color:var(--ink);border-color:#547063}
 .button.secondary,.v2-filters,.v2-launch,.v2-close,.v2-actions button{background:#203e34;color:#ecf5ef;border-color:#547063}
 .button.secondary:hover{background:#eaf2e6;color:#133b31}
 .v2-filters button{color:#b8c8bd}.v2-filters button.active{background:#34543c;color:#ecf5ef}
 .events-subtitle,.events-info p,.events-detail small,.events-status>small,.events-info>small,.v2-slot,.v2-countdown,.v2-launch p,.v2-empty p{color:#d0e1d4}
 .v2-players,.v2-owner,.v2-readonly,.v2-launch small{color:#b8c8bd}.events-status{background:#203e34;color:var(--ink)}
 .login-card .brand-icon{color:#dcf097;background:#133b31}#mobile-status{background:#203e34;color:#dcf097}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms;transition-duration:.01ms}}
