:root{--brand: #2563eb;--brand-2: #0ea5e9;--accent: #f59e0b;--radius: 12px;--font: "Segoe UI", system-ui, -apple-system, sans-serif}:root[data-theme=dark]{--bg: #0b1120;--bg-elev: #111a2e;--surface: #16203a;--surface-2: #1e293b;--border: #243049;--text: #e6ecf5;--text-dim: #94a3b8;--shadow: 0 8px 30px rgba(0, 0, 0, .45)}:root[data-theme=light]{--bg: #f1f5f9;--bg-elev: #ffffff;--surface: #ffffff;--surface-2: #f8fafc;--border: #e2e8f0;--text: #0f172a;--text-dim: #64748b;--shadow: 0 6px 24px rgba(15, 23, 42, .08)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--brand-2);text-decoration:none}button{font-family:inherit;cursor:pointer}.app-shell{display:grid;grid-template-columns:248px 1fr;height:100vh}.sidebar{background:var(--bg-elev);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:18px 14px}.brand{display:flex;align-items:center;gap:10px;padding:6px 8px 18px}.brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand-2));display:grid;place-items:center;color:#fff;font-weight:800}.brand-name{font-weight:700;font-size:15px;line-height:1.1}.brand-sub{font-size:11px;color:var(--text-dim)}.nav{display:flex;flex-direction:column;gap:2px;margin-top:8px}.nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:var(--text-dim);font-size:14px;font-weight:500}.nav a:hover{background:var(--surface-2);color:var(--text)}.nav a.active{background:var(--brand);color:#fff}.sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px}.main{display:flex;flex-direction:column;overflow:hidden}.topbar{height:60px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:var(--bg-elev)}.topbar h1{font-size:18px;margin:0}.content{padding:24px;overflow:auto}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(4,1fr)}.cols-2{grid-template-columns:2fr 1fr}@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.cols-2{grid-template-columns:1fr}}.kpi .label{color:var(--text-dim);font-size:13px}.kpi .value{font-size:28px;font-weight:700;margin-top:6px}.kpi .trend{font-size:12px;color:var(--accent);margin-top:4px}.btn{border:1px solid var(--border);background:var(--surface-2);color:var(--text);padding:9px 14px;border-radius:10px;font-weight:600;font-size:13px}.btn:hover{border-color:var(--brand)}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn-icon{padding:8px;display:grid;place-items:center}.input,.select,textarea.input{width:100%;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:14px;font-family:inherit}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label{font-size:13px;color:var(--text-dim)}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;color:var(--text-dim);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--border)}.table td{padding:12px;border-bottom:1px solid var(--border)}.table tr:hover td{background:var(--surface-2)}.badge{display:inline-flex;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge.scheduled{background:#2563eb26;color:#60a5fa}.badge.confirmed{background:#10b98126;color:#34d399}.badge.completed{background:#94a3b82e;color:#cbd5e1}.badge.cancelled{background:#ef444426;color:#f87171}.badge.follow_up{background:#f59e0b26;color:#fbbf24}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.muted{color:var(--text-dim)}.section-title{font-size:15px;font-weight:700;margin:0 0 14px}.auth-wrap{height:100vh;display:grid;place-items:center;background:radial-gradient(1200px 600px at 70% -10%,rgba(37,99,235,.25),transparent),var(--bg)}.auth-card{width:380px}.auth-logo{display:flex;align-items:center;gap:12px;margin-bottom:20px}.error-text{color:#f87171;font-size:13px;margin-top:8px}.empty{text-align:center;color:var(--text-dim);padding:48px 16px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#02061799;display:grid;place-items:center;z-index:50;padding:24px}.modal{width:720px;max-width:100%;max-height:90vh;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);display:flex;flex-direction:column}.modal-head,.modal-foot{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-foot{border-bottom:none;border-top:1px solid var(--border)}.modal-head h3{margin:0;font-size:17px}.modal-body{padding:18px 20px;overflow:auto}.modal-body .field{margin-bottom:12px}.cal-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}.cal-title{font-size:18px;font-weight:700;min-width:220px}.cal-nav{display:flex;gap:6px;align-items:center}.view-switch{display:flex;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;overflow:hidden}.view-switch button{background:transparent;border:none;color:var(--text-dim);padding:8px 14px;font-weight:600;font-size:13px}.view-switch button.active{background:var(--brand);color:#fff}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}.cal-dow{padding:10px;text-align:center;font-size:12px;font-weight:700;color:var(--text-dim);border-bottom:1px solid var(--border);background:var(--bg-elev)}.cal-cell{min-height:116px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:6px;cursor:pointer;position:relative}.cal-cell:nth-child(7n){border-right:none}.cal-cell.dim{background:var(--bg)}.cal-cell.dim .cal-daynum{color:var(--text-dim);opacity:.5}.cal-cell:hover{background:var(--surface-2)}.cal-daynum{font-size:13px;font-weight:600;margin-bottom:4px;display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%}.cal-cell.today .cal-daynum{background:var(--brand);color:#fff}.cal-event{font-size:11px;padding:3px 6px;border-radius:6px;margin-bottom:3px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.cal-more{font-size:11px;color:var(--text-dim)}.ev-STEM_STRATEGY{background:#2563eb}.ev-TEACHER_PD{background:#0ea5e9}.ev-MAKERSPACE{background:#f59e0b}.ev-CURRICULUM{background:#8b5cf6}.ev-LEADERSHIP_COACHING{background:#10b981}.ev-ENGINEERING_WORKSHOP{background:#ef4444}.ev-cancelled{opacity:.45;text-decoration:line-through}.timegrid{display:grid;grid-template-columns:64px 1fr;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);max-height:70vh;overflow-y:auto}.tg-hour{height:52px;border-bottom:1px solid var(--border);font-size:11px;color:var(--text-dim);padding:4px 8px;text-align:right}.tg-col{border-bottom:1px solid var(--border);height:52px;position:relative}.tg-daycols{display:grid}.tg-head{padding:8px;text-align:center;font-size:12px;font-weight:700;border-bottom:1px solid var(--border);border-left:1px solid var(--border);background:var(--bg-elev);position:sticky;top:0}.tg-head.today{color:var(--brand-2)}.tg-event{position:absolute;left:3px;right:3px;border-radius:6px;color:#fff;font-size:11px;padding:3px 6px;overflow:hidden;cursor:pointer;z-index:2}.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:var(--text-dim)}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:12px;height:12px;border-radius:3px;display:inline-block}.pay-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(1200px 600px at 50% -10%,rgba(37,99,235,.22),transparent),var(--bg)}.pay-card{width:460px;max-width:100%;text-align:center;padding:40px 32px;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow)}.pay-badge{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px}.pay-badge.ok{background:#10b98124;color:#10b981}.pay-badge.cancel{background:#f59e0b24;color:#f59e0b}.pay-badge.pending{background:#2563eb24;color:#2563eb}.pay-card h1{font-size:24px;margin:0 0 8px}.pay-card p{color:var(--text-dim);font-size:14px;line-height:1.6;margin:0 0 8px}.pay-summary{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:16px;margin:20px 0;text-align:left}.pay-summary .row{display:flex;justify-content:space-between;padding:5px 0;font-size:14px}.pay-summary .row .k{color:var(--text-dim)}.pay-summary .row .v{font-weight:600}.pay-amount{font-size:30px;font-weight:800;color:var(--text);margin:6px 0 2px}.pay-actions{display:flex;gap:10px;justify-content:center;margin-top:24px}.pay-brand{margin-top:26px;font-size:12px;color:var(--text-dim)}.pay-spinner{width:40px;height:40px;border:4px solid var(--border);border-top-color:var(--brand);border-radius:50%;margin:0 auto 16px;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
