:root { color-scheme: dark; --bg:#171715; --surface:#24231f; --surface-2:#302e28; --line:#4a463d; --text:#f8f4ea; --muted:#aaa69e; --clay:#f06432; --clay-deep:#a93e20; --lime:#ddf247; --lime-ink:#171812; --danger:#ff7b68; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:var(--bg); color:var(--text); }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { min-width:980px; min-height:100vh; margin:0; background:var(--bg); color:var(--text); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid var(--lime); outline-offset:3px; }
.portal-shell { min-height:100vh; display:grid; grid-template-columns:248px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:28px 18px 20px; border-right:1px solid var(--line); background:#1d1d1a; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif; font-size:1.32rem; letter-spacing:.04em; text-decoration:none; text-transform:uppercase; }
.brand-mark { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:var(--clay); font-family:system-ui; font-weight:900; }
.portal-badge { width:max-content; margin:12px 0 28px 46px; padding:5px 8px; border-radius:999px; background:var(--lime); color:var(--lime-ink); font-size:.67rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.sidebar nav { display:grid; gap:6px; }
.side-link { min-height:48px; display:grid; grid-template-columns:30px 1fr; align-items:center; padding:0 12px; border:0; border-radius:13px; background:transparent; color:var(--muted); font-weight:750; text-align:left; }
.side-link span { font-size:1.1rem; text-align:center; }
.side-link:hover { background:var(--surface); color:var(--text); }
.side-link.is-active { background:var(--surface-2); color:var(--lime); }
.sidebar-bottom { display:grid; gap:10px; margin-top:auto; }
.local-mode { display:grid; grid-template-columns:10px 1fr; gap:9px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:13px; }
.local-mode>span { width:9px; height:9px; border-radius:50%; background:var(--lime); box-shadow:0 0 0 4px rgba(221,242,71,.12); }
.local-mode p { margin:0; }
.local-mode strong,.local-mode small { display:block; }
.local-mode strong { font-size:.78rem; }
.local-mode small { margin-top:2px; color:var(--muted); font-size:.67rem; }
.player-app-link { min-height:46px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border-radius:12px; background:var(--clay); color:white; font-size:.8rem; font-weight:800; text-decoration:none; }
main { min-width:0; padding:0 34px 42px; }
.portal-header { min-height:112px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.eyebrow { margin:0 0 5px; color:var(--clay); font-size:.7rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
h1 { margin:0; font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif; font-size:2.45rem; font-weight:400; letter-spacing:.025em; line-height:1; text-transform:uppercase; }
h2,h3,p { overflow-wrap:anywhere; }
.header-actions,.dialog-actions { display:flex; gap:9px; }
.primary-button,.secondary-button { min-height:44px; padding:0 16px; border-radius:12px; font-weight:800; }
.primary-button { border:0; background:var(--clay); color:white; }
.secondary-button { border:1px solid var(--line); background:var(--surface); color:var(--text); }
.portal-view { padding-top:28px; }
.stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.stats-row article { min-height:132px; padding:18px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.stats-row span,.stats-row strong,.stats-row small { display:block; }
.stats-row span { color:var(--muted); font-size:.78rem; }
.stats-row strong { margin:12px 0 5px; font-family:Impact,sans-serif; font-size:2.2rem; font-weight:400; }
.stats-row small { color:var(--muted); font-size:.7rem; }
.stats-row .accent-stat { border-color:var(--clay); background:linear-gradient(145deg,var(--clay),var(--clay-deep)); }
.stats-row .accent-stat span,.stats-row .accent-stat small { color:rgba(255,255,255,.8); }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); gap:14px; margin-top:14px; }
.panel,.table-card,.settings-panel { border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.panel { min-height:330px; padding:20px; }
.panel-heading,.view-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.panel-heading h2,.view-toolbar h2 { margin:0; font-size:1.12rem; }
.text-button { min-height:40px; border:0; background:transparent; color:var(--lime); font-weight:800; }
.schedule-list,.compact-events { display:grid; gap:8px; margin-top:18px; }
.schedule-row { display:grid; grid-template-columns:54px 1fr auto; align-items:center; gap:12px; min-height:66px; padding:8px 10px; border-radius:14px; background:var(--surface-2); }
.time-chip { padding:8px 6px; border-radius:10px; background:var(--bg); color:var(--lime); font-size:.75rem; font-weight:850; text-align:center; }
.schedule-row strong,.schedule-row small { display:block; }
.schedule-row small { margin-top:3px; color:var(--muted); font-size:.7rem; }
.status-pill,.free-badge { padding:6px 9px; border-radius:999px; background:rgba(221,242,71,.12); color:var(--lime); font-size:.67rem; font-weight:900; text-transform:uppercase; }
.compact-event { padding:13px; border:1px solid var(--line); border-radius:14px; }
.compact-event header { display:flex; justify-content:space-between; gap:12px; }
.compact-event strong { font-size:.86rem; }
.compact-event small { color:var(--muted); }
.entry-track { height:6px; margin:11px 0 7px; overflow:hidden; border-radius:999px; background:var(--surface-2); }
.entry-track i { display:block; height:100%; background:var(--clay); }
.compact-event>span { color:var(--muted); font-size:.7rem; }
.view-toolbar { margin-bottom:16px; }
.view-toolbar p { margin:5px 0 0; color:var(--muted); font-size:.82rem; }
.view-toolbar .eyebrow { margin-bottom:6px; color:var(--clay); font-size:.7rem; }
.settings-heading { max-width:900px; display:flex; align-items:end; justify-content:space-between; gap:20px; margin:28px 0 14px; }
.settings-heading h2 { margin:0; font-size:1.12rem; }
.settings-heading p { margin:5px 0 0; color:var(--muted); font-size:.82rem; }
.saved-state { color:var(--lime); font-size:.75rem; font-weight:800; }
.table-card { overflow:hidden; }
.table-header,.table-row { display:grid; align-items:center; gap:14px; padding:0 16px; }
.table-header { min-height:46px; border-bottom:1px solid var(--line); background:var(--surface-2); color:var(--muted); font-size:.68rem; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.table-row { min-height:72px; border-bottom:1px solid var(--line); font-size:.8rem; }
.table-row:last-child { border-bottom:0; }
.tournament-columns { grid-template-columns:minmax(210px,1.4fr) 115px 150px 90px 80px 90px; }
.booking-columns { grid-template-columns:minmax(170px,1.2fr) 120px 90px minmax(160px,1fr) 90px 90px; }
.cell-title strong,.cell-title small { display:block; }
.cell-title small { margin-top:3px; color:var(--muted); font-size:.68rem; }
.row-action { min-height:36px; padding:0 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text); font-size:.72rem; font-weight:800; }
.row-action.danger { color:var(--danger); }
.empty-table { padding:54px 20px; color:var(--muted); text-align:center; }
.settings-panel { max-width:900px; overflow:hidden; }
.settings-group { padding:22px; border-bottom:1px solid var(--line); }
.settings-group h3 { margin:0 0 16px; font-size:.93rem; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid label { display:grid; gap:7px; color:var(--muted); font-size:.77rem; }
.form-grid .wide { grid-column:1/-1; }
input,select,textarea { width:100%; min-height:46px; padding:0 12px; border:1px solid var(--line); border-radius:11px; background:var(--bg); color:var(--text); color-scheme:dark; }
textarea { min-height:92px; padding:11px 12px; resize:vertical; line-height:1.45; }
input:disabled { color:var(--muted); }
.form-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 22px; }
.form-footer p { margin:0; color:var(--muted); font-size:.76rem; }
dialog { width:min(calc(100% - 40px),620px); max-height:calc(100vh - 40px); margin:auto; overflow:auto; padding:0; border:1px solid var(--line); border-radius:22px; background:var(--surface); color:var(--text); }
dialog::backdrop { background:rgba(0,0,0,.76); backdrop-filter:blur(4px); }
dialog form { position:relative; padding:24px; }
dialog h2 { margin:0 0 20px; font-size:1.5rem; }
.dialog-close { position:absolute; top:14px; right:14px; width:40px; height:40px; border:1px solid var(--line); border-radius:11px; background:var(--surface-2); color:var(--text); font-size:1.15rem; }
dialog .dialog-actions { justify-content:flex-end; margin-top:20px; }
.toast { position:fixed; z-index:10; left:50%; bottom:24px; padding:12px 16px; border-radius:12px; background:var(--lime); color:var(--lime-ink); font-weight:850; transform:translate(-50%,16px); opacity:0; pointer-events:none; transition:.2s ease; }
.toast.is-visible { transform:translate(-50%,0); opacity:1; }
.calendar-card { margin-top:18px; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.calendar-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-bottom:16px; }
.calendar-nav { display:flex; align-items:center; gap:8px; }
.cal-step { width:40px; min-height:40px; padding:0; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text); font-size:1rem; font-weight:800; line-height:1; }
.cal-step:hover { background:var(--bg); }
#cal-date-input { width:auto; min-height:40px; }
.calendar-date-label { margin-left:auto; color:var(--muted); font-size:.8rem; font-weight:750; }
.day-grid { display:grid; gap:7px; max-height:520px; overflow-y:auto; }
.day-slot { display:grid; grid-template-columns:74px 1fr auto; align-items:center; gap:14px; min-height:58px; padding:8px 12px; border-radius:13px; background:var(--surface-2); }
.day-slot .slot-label strong,.day-slot .slot-label small { display:block; }
.day-slot .slot-label small { margin-top:2px; color:var(--muted); font-size:.7rem; }
.day-slot.is-booked { background:rgba(240,100,50,.16); }
.day-slot.is-closed { background:rgba(255,123,104,.1); }
.day-slot.is-past { opacity:.55; }
.closure-columns { grid-template-columns:minmax(180px,1.3fr) 150px minmax(140px,1fr) 90px; }
.member-columns { grid-template-columns:minmax(150px,1fr) minmax(180px,1.2fr) minmax(140px,1.3fr) 90px; }
.privacy-card { max-width:900px; margin-top:18px; }
.privacy-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.privacy-row strong { display:block; font-size:.95rem; }
.privacy-row p { margin:5px 0 0; color:var(--muted); font-size:.8rem; }
.switch { position:relative; flex:none; width:52px; height:30px; }
.switch input { position:absolute; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.switch span { position:absolute; inset:0; border-radius:999px; background:var(--surface-2); border:1px solid var(--line); transition:.15s ease; }
.switch span::before { content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:var(--muted); transition:.15s ease; }
.switch input:checked + span { background:var(--clay); border-color:var(--clay); }
.switch input:checked + span::before { left:25px; background:white; }
.staff-columns { grid-template-columns:minmax(150px,1fr) minmax(180px,1.2fr) 140px 90px; }
.form-grid label.check-inline { grid-column:1/-1; grid-auto-flow:column; justify-content:start; align-items:center; gap:10px; color:var(--text); font-size:.82rem; }
.form-grid label.check-inline input { width:20px; min-height:20px; padding:0; }
.pill-tag { display:inline-block; padding:3px 9px; border-radius:999px; background:var(--surface-2); border:1px solid var(--line); font-size:.7rem; color:var(--muted); }
@media (max-width:1120px) { main{padding-inline:24px}.stats-row{grid-template-columns:repeat(2,1fr)}.overview-grid{grid-template-columns:1fr}.tournament-columns{grid-template-columns:minmax(190px,1.3fr) 110px 130px 80px 70px 80px}.booking-columns{grid-template-columns:minmax(150px,1fr) 105px 80px minmax(140px,1fr) 80px 80px}.closure-columns{grid-template-columns:minmax(150px,1fr) 120px minmax(120px,1fr) 80px}.staff-columns{grid-template-columns:minmax(120px,1fr) minmax(140px,1fr) 110px 70px} }
