:root{--bg: #f7f8fa;--panel: #ffffff;--border: #e5e7eb;--text: #111827;--muted: #6b7280;--accent: #2563eb;--danger: #dc2626;--topbar-h: 56px;--sidebar-w: 280px}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--panel);color:var(--text);padding:6px 12px;border-radius:6px;transition:background .15s;min-height:36px}button:hover:not(:disabled){background:#f3f4f6}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.primary:hover:not(:disabled){background:#1d4ed8}button:disabled{opacity:.5;cursor:not-allowed}input[type=text],input[type=password]{font:inherit;border:1px solid var(--border);border-radius:6px;padding:8px 10px;background:var(--panel);color:var(--text);width:100%;min-height:36px}input:focus{outline:2px solid var(--accent);outline-offset:-1px}.app{display:grid;grid-template-columns:var(--sidebar-w) 1fr;grid-template-rows:var(--topbar-h) 1fr;height:100vh;height:100dvh}header.topbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--panel);border-bottom:1px solid var(--border);gap:12px;min-width:0}.topbar-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}header.topbar h1{font-size:16px;font-weight:600;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header.topbar .actions{display:flex;gap:6px;align-items:center;flex:0 0 auto}.status{color:var(--muted);font-size:12px;white-space:nowrap}.icon-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;position:relative;min-height:40px}.icon-btn .badge{position:absolute;top:-2px;right:-2px;background:var(--accent);color:#fff;border-radius:999px;font-size:10px;font-weight:600;min-width:16px;height:16px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center}.sidebar-toggle{display:none}aside.sidebar{background:var(--panel);border-right:1px solid var(--border);overflow-y:auto;padding:16px;min-width:0}.sidebar-overlay{display:none}.filter-group{margin-bottom:16px}.filter-header{display:flex;align-items:center;gap:6px;width:100%;padding:8px 0;background:transparent;border:none;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);cursor:pointer;min-height:36px}.filter-header:hover{background:transparent;color:var(--text)}.filter-header .chevron{display:inline-block;font-size:10px;width:12px;text-align:center;transition:transform .15s;color:var(--muted)}.filter-header .chevron.open{transform:rotate(90deg)}.filter-header .filter-count{margin-left:auto;font-size:11px;color:var(--muted);font-weight:500}.filter-search{margin:6px 0 8px;padding:6px 8px!important;font-size:13px;min-height:32px}.filter-group .empty{color:var(--muted);font-style:italic;font-size:12px}.checkbox-list{display:flex;flex-direction:column;gap:2px}.checkbox-item{display:flex;align-items:center;gap:8px;padding:6px 0;cursor:pointer;min-height:36px}.checkbox-item input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;cursor:pointer}.checkbox-item .swatch{display:inline-block;width:12px;height:12px;border-radius:3px;flex:0 0 12px}.checkbox-item .label{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;min-width:0}main.content{padding:16px;overflow:hidden;display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0}#calendar{flex:1 1 auto;min-height:0;min-width:0}.banner{padding:10px 14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.banner.info{background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe}.banner.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.banner.hidden{display:none}.loading-bar{position:fixed;top:var(--topbar-h);left:0;right:0;height:3px;background:#2563eb26;overflow:hidden;z-index:40;pointer-events:none}.loading-bar:after{content:"";position:absolute;top:0;left:0;height:100%;width:40%;background:var(--accent);border-radius:3px;animation:loading-slide 1.1s ease-in-out infinite}@keyframes loading-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}.icon-btn.spinning svg{animation:spin .9s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.initial-loader{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--muted)}.initial-loader-text{font-size:14px}.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}.evt-card{padding:2px 4px;line-height:1.2}.evt-guide{font-weight:600;font-size:12px}.evt-city{font-size:11px;opacity:.9}.login-wrap{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px}.login-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:32px;width:100%;max-width:360px;box-shadow:0 1px 2px #0000000a}.login-card h1{margin:0 0 8px;font-size:18px}.login-card p{color:var(--muted);margin:0 0 20px}.login-card form{display:flex;flex-direction:column;gap:12px}.login-card .err{color:var(--danger);font-size:13px}@media(max-width:768px){:root{--topbar-h: 52px}.app{grid-template-columns:1fr;grid-template-rows:var(--topbar-h) 1fr}header.topbar{padding:0 10px;gap:6px}header.topbar h1{font-size:15px}.status{display:none}.sidebar-toggle{display:inline-flex}.icon-btn .btn-text{display:none}.icon-btn{padding:8px;min-width:40px;justify-content:center}aside.sidebar{position:fixed;top:var(--topbar-h);left:0;bottom:0;width:var(--sidebar-w);max-width:85vw;z-index:30;transform:translate(-100%);transition:transform .22s ease;box-shadow:2px 0 16px #0000001f}.app.sidebar-open aside.sidebar{transform:translate(0)}.sidebar-overlay{display:block;position:fixed;top:var(--topbar-h);left:0;right:0;bottom:0;background:#0006;z-index:29;animation:fadeIn .18s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}main.content{padding:10px;gap:8px}.fc .fc-toolbar.fc-header-toolbar{flex-wrap:wrap;gap:6px;margin-bottom:8px!important}.fc .fc-toolbar-title{font-size:16px!important}.fc .fc-button{padding:6px 10px!important;font-size:13px!important}.fc-list-day-cushion{padding:8px 10px!important}.fc .fc-list-event-time{width:80px}.fc-footer-toolbar .fc-button-group{display:flex;width:100%}.fc-footer-toolbar .fc-button{flex:1 1 auto}}@media(max-width:420px){header.topbar h1{font-size:14px}.icon-btn{min-width:36px;padding:6px}}
