*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0a0a0a;--bg-surface: #141414;--bg-elevated: #1e1e1e;--border: #2a2a2a;--text: #e0e0e0;--text-muted: #888;--accent: #00e676;--accent-hover: #00c864;--danger: #ef5350;--danger-hover: #d32f2f}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.layout{display:flex;min-height:100vh}.sidebar{width:220px;background:var(--bg-surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:1.5rem 0;flex-shrink:0}.sidebar-header{padding:0 1.25rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.5rem}.sidebar-header h1{font-size:1.125rem;font-weight:700}.sidebar-badge{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;background:var(--accent);color:#000;padding:.125rem .4rem;border-radius:4px;font-weight:600}.sidebar-nav{flex:1;display:flex;flex-direction:column;padding:1rem 0}.nav-link{display:block;padding:.6rem 1.25rem;color:var(--text-muted);font-size:.9rem;transition:color .15s,background .15s;text-decoration:none}.nav-link:hover{color:var(--text);background:var(--bg-elevated);text-decoration:none}.nav-link.active{color:var(--accent);background:var(--bg-elevated);border-left:3px solid var(--accent)}.sidebar-user{padding:.5rem 1.25rem;font-size:.8rem;color:var(--text-muted)}.logout-btn{margin:0 1.25rem;padding:.5rem;background:transparent;border:1px solid var(--border);color:var(--text-muted);border-radius:6px;cursor:pointer;font-size:.85rem}.logout-btn:hover{color:var(--text);border-color:var(--text-muted)}.main-content{flex:1;padding:2rem;overflow-x:auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem}.page-header h2{font-size:1.5rem;font-weight:600}.header-actions{display:flex;gap:.5rem;align-items:center}.back-link{font-size:.85rem;color:var(--text-muted);display:inline-block;margin-bottom:.25rem}.stats-row{display:flex;gap:1rem;margin-bottom:2rem}.stat-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:8px;padding:1.25rem 1.5rem;display:flex;flex-direction:column;min-width:120px}.stat-value{font-size:1.75rem;font-weight:700;color:var(--accent)}.stat-label{font-size:.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.detail-meta{display:flex;gap:1.5rem;flex-wrap:wrap;margin-bottom:2rem;font-size:.9rem;color:var(--text-muted)}.detail-meta strong{color:var(--text)}.table-wrapper{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:.875rem}.data-table th{text-align:left;padding:.75rem 1rem;border-bottom:2px solid var(--border);color:var(--text-muted);font-weight:500;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.data-table td{padding:.65rem 1rem;border-bottom:1px solid var(--border)}.data-table tbody tr:hover{background:var(--bg-surface)}.empty-row{text-align:center;color:var(--text-muted);padding:2rem 1rem!important}.actions-cell{display:flex;gap:.35rem;white-space:nowrap}.badge{font-size:.75rem;padding:.15rem .5rem;border-radius:4px;font-weight:500}.badge-admin{background:#1a237e;color:#7986cb}.badge-instructor{background:#1b5e20;color:#81c784}.badge-super_admin{background:#4a148c;color:#ce93d8}.badge-starter{background:#263238;color:#90a4ae}.badge-pro{background:#1a237e;color:#7986cb}.badge-unlimited{background:#e65100;color:#ffcc80}.badge-status-active{background:#1b5e20;color:#81c784}.badge-status-trialing{background:#1a237e;color:#7986cb}.badge-status-incomplete{background:#263238;color:#90a4ae}.badge-status-past_due{background:#b71c1c;color:#ef9a9a}.badge-status-canceled{background:#4a148c;color:#ce93d8}.btn{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s}.btn-primary{background:var(--accent);color:#000}.btn-primary:hover{background:var(--accent-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--bg-elevated);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{border-color:var(--text-muted)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:var(--danger-hover)}.btn-sm{padding:.3rem .6rem;font-size:.8rem;background:var(--bg-elevated);color:var(--text);border:1px solid var(--border);border-radius:4px}.btn-sm:hover{border-color:var(--text-muted)}.btn-sm.btn-danger{border-color:var(--danger)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100}.modal-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;width:100%;max-width:480px;padding:1.5rem}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem}.modal-header h2{font-size:1.125rem;font-weight:600}.modal-close{background:none;border:none;color:var(--text-muted);font-size:1.5rem;cursor:pointer;line-height:1}.modal-close:hover{color:var(--text)}.modal-body{display:flex;flex-direction:column;gap:.75rem}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}.confirm-dialog{max-width:400px;text-align:center}.confirm-dialog p{margin-bottom:1.25rem;font-size:.95rem}.confirm-actions{display:flex;justify-content:center;gap:.5rem}.form-group{display:flex;flex-direction:column;gap:.3rem}.form-group label{font-size:.8rem;color:var(--text-muted);font-weight:500}.form-row{display:flex;gap:.75rem}.form-row .form-group{flex:1}.interval-section-label{font-size:.85rem;font-weight:600;color:var(--text);margin-top:1rem;margin-bottom:.25rem}.interval-total-preview{font-size:.85rem;color:var(--accent);font-weight:600;margin-top:.75rem}input,select{background:var(--bg-elevated);border:1px solid var(--border);border-radius:6px;padding:.5rem .75rem;color:var(--text);font-size:.875rem;outline:none}input:focus,select:focus{border-color:var(--accent)}select{cursor:pointer}.error-text{color:var(--danger);font-size:.85rem}.login-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.public-header{position:fixed;top:0;left:0;right:0;padding:1rem 1.5rem;z-index:10}.public-logo{font-size:1.25rem;font-weight:800;color:var(--accent);text-decoration:none}.public-footer{padding:1.5rem;font-size:.85rem;color:var(--text-muted);display:flex;gap:1.5rem;justify-content:center}.public-footer a{color:var(--text-muted);text-decoration:none}.public-footer a:hover{color:var(--text)}.login-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:2.5rem 2rem;width:100%;max-width:380px}.login-card h1{font-size:1.5rem;margin-bottom:1.5rem;text-align:center}.login-card form{display:flex;flex-direction:column;gap:.75rem}.login-card label{font-size:.85rem;color:var(--text-muted)}.login-card .btn{margin-top:.5rem;width:100%}h3{font-size:1.1rem;font-weight:600;margin:1.5rem 0 .75rem}.landing{max-width:960px;margin:0 auto;padding:0 1.5rem}.landing-hero{text-align:center;padding:6rem 0 4rem}.landing-logo{font-size:3rem;font-weight:800;color:var(--accent)}.landing-tagline{font-size:1.5rem;font-weight:600;margin:.75rem 0 1rem}.landing-desc{color:var(--text-muted);max-width:540px;margin:0 auto 2rem;line-height:1.7}.landing-cta{font-size:1rem;padding:.75rem 2rem}.landing-section{padding:3rem 0}.landing-section-title{font-size:1.5rem;font-weight:700;text-align:center;margin-bottom:2rem}.landing-features{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.landing-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:1.5rem}.landing-card h3{font-size:1rem;font-weight:600;margin:0 0 .5rem;color:var(--accent)}.landing-card p{color:var(--text-muted);font-size:.9rem;line-height:1.6}.landing-pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}.landing-price-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:2rem 1.5rem;text-align:center}.landing-price-card.featured{border-color:var(--accent)}.landing-price-card h3{font-size:1.1rem;font-weight:600;margin:0 0 .75rem}.landing-price{font-size:2.5rem;font-weight:800;color:var(--accent);margin-bottom:1.25rem}.landing-price span{font-size:1rem;font-weight:400;color:var(--text-muted)}.landing-price-card ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}.landing-price-card li{font-size:.9rem;color:var(--text-muted)}.landing-form{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:.75rem}.landing-form textarea{background:var(--bg-elevated);border:1px solid var(--border);border-radius:6px;padding:.5rem .75rem;color:var(--text);font-size:.875rem;font-family:inherit;outline:none;resize:vertical}.landing-form textarea:focus{border-color:var(--accent)}.landing-form .btn{margin-top:.5rem}.landing-footer{display:flex;justify-content:space-between;align-items:center;padding:2rem 0;margin-top:2rem;border-top:1px solid var(--border);font-size:.85rem;color:var(--text-muted)}.success-text{color:var(--accent);font-size:.85rem}.live-class{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg);display:flex;flex-direction:column;z-index:200}.live-loading{flex:1;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:var(--text-muted)}.live-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;border-bottom:1px solid var(--border)}.live-title{font-size:1.25rem;font-weight:700}.live-segment-counter{font-size:.9rem;color:var(--text-muted)}.live-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;padding:2rem}.live-segment-name{font-size:2rem;font-weight:700;color:var(--accent)}.live-timer{font-size:8rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}.live-targets{display:flex;gap:2rem}.live-target-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:1.25rem 2rem;display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:140px}.live-target-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.live-target-value{font-size:1.75rem;font-weight:700;color:var(--accent)}.live-song{font-size:1rem;color:var(--text-muted)}.live-progress-bar{height:6px;background:var(--bg-elevated);width:100%}.live-progress-fill{height:100%;background:var(--accent);transition:width 1s linear}.live-controls{display:flex;justify-content:center;gap:1rem;padding:1.5rem 2rem;border-top:1px solid var(--border)}.live-btn{min-width:100px;font-size:1rem;padding:.75rem 1.5rem}.live-countdown-label{font-size:1.5rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.1em}.live-countdown-number{font-size:12rem;font-weight:800;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}.live-countdown-hint{font-size:1.25rem;color:var(--text-muted);margin-top:1rem}.btn-spotify{background:#1db954;color:#fff}.btn-spotify:hover{background:#1aa34a}.spotify-connect-section h3{margin-top:0}.spotify-status-row{display:flex;align-items:center;gap:1rem}.spotify-connected-label{color:#1db954;font-weight:600}.spotify-icon{color:#1db954}.spotify-input-row{display:flex;gap:.5rem}.spotify-input-row input{flex:1}.spotify-track-list{margin:.5rem 0}.spotify-track-count{font-size:.85rem;color:var(--text-muted);margin-bottom:.5rem}.spotify-track-preview{max-height:300px;overflow-y:auto;border:1px solid var(--border);border-radius:6px}.spotify-track-row{display:flex;align-items:center;padding:.5rem .75rem;gap:.75rem;border-bottom:1px solid var(--bg-elevated)}.spotify-track-row:last-child{border-bottom:none}.spotify-track-num{color:var(--text-muted);font-size:.75rem;width:1.5rem;text-align:right;flex-shrink:0}.spotify-track-info{flex:1;min-width:0}.spotify-track-name{display:block;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spotify-track-artist{display:block;font-size:.75rem;color:var(--text-muted)}.spotify-track-dur{font-size:.75rem;color:var(--text-muted);flex-shrink:0}.spotify-callback-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:1rem}.live-interval-label{font-size:2.5rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.live-interval-label.work{color:#ff9800}.live-interval-label.rest{color:#2196f3}.live-interval-timer{font-size:1.25rem;color:var(--text-muted);font-variant-numeric:tabular-nums}.live-round-counter{font-size:1.1rem;font-weight:600;color:var(--text-muted);letter-spacing:.05em}.live-spotify-indicator{font-size:.85rem;color:var(--text-muted)}.live-spotify-indicator.connected{color:#1db954}.privacy-content{max-width:680px;line-height:1.8;padding-bottom:2rem}.privacy-content h2{font-size:1.15rem;font-weight:600;margin:2rem 0 .5rem}.privacy-content p{color:var(--text-muted);margin-bottom:.75rem}.privacy-content ul{color:var(--text-muted);padding-left:1.25rem;margin-bottom:.75rem}.privacy-content li{margin-bottom:.4rem}.display-page{position:fixed;top:0;right:0;bottom:0;left:0;background:#000;display:flex;flex-direction:column;z-index:300;overflow:hidden}.display-page.hide-cursor{cursor:none}.display-loading{flex:1;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--text-muted)}.display-waiting{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}.display-waiting-title{font-size:3.5rem;font-weight:800;color:var(--accent);text-align:center}.display-waiting-hint{font-size:1.5rem;color:var(--text-muted)}.display-countdown{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}.display-countdown-label{font-size:2rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.15em}.display-countdown-number{font-size:16rem;font-weight:800;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}.display-finished{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}.display-finished-title{font-size:4rem;font-weight:800;color:var(--accent)}.display-finished-time{font-size:1.5rem;color:var(--text-muted)}.display-exit-btn{font-size:1.25rem;padding:.75rem 2.5rem;margin-top:1rem}.display-segment-bar{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 2.5rem;background:#00e6761f;border-bottom:3px solid var(--accent)}.display-segment-bar.work{background:#ff98001f;border-bottom-color:#ff9800}.display-segment-bar.rest{background:#2196f31f;border-bottom-color:#2196f3}.display-segment-name{font-size:2rem;font-weight:700;color:var(--accent)}.display-segment-bar.work .display-segment-name{color:#ff9800}.display-segment-bar.rest .display-segment-name{color:#2196f3}.display-segment-counter{font-size:1.1rem;color:var(--text-muted)}.display-metrics{flex:1;display:flex;align-items:center;justify-content:center;gap:4rem;padding:2rem}.display-metric-block{display:flex;flex-direction:column;align-items:center;gap:.5rem}.display-metric-label{font-size:1rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted)}.display-metric-value{font-size:5rem;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;line-height:1}.display-metric-timer{color:var(--accent)}.display-metric-sub{font-size:1rem;color:var(--text-muted);font-variant-numeric:tabular-nums}.display-song-bar{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.75rem 2rem;background:#ffffff0a}.display-song-title{font-size:1.1rem;color:var(--text)}.display-song-artist{font-size:1.1rem;color:var(--text-muted)}.display-song-artist:before{content:"—"}.display-progress-bar{height:8px;background:#ffffff14;width:100%}.display-progress-fill{height:100%;background:var(--accent);transition:width 1s linear}.display-controls-overlay{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:1.25rem 2rem;background:#000000d9;opacity:0;pointer-events:none;transition:opacity .3s ease}.display-controls-overlay.visible{opacity:1;pointer-events:auto}.display-ctrl-center{display:flex;gap:.75rem;align-items:center}.display-ctrl-btn{font-size:1rem;padding:.6rem 1.5rem;min-width:80px}.display-ctrl-main{min-width:100px;font-size:1.1rem;padding:.7rem 2rem}@media(max-width:640px){.landing-features,.landing-pricing{grid-template-columns:1fr}.landing-hero{padding:4rem 0 2rem}.landing-logo{font-size:2.25rem}.landing-tagline{font-size:1.2rem}}
