:root{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#dfecfc;background:#07111d;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}.hidden{display:none!important}.muted{color:#8299b3;font-weight:400}.small{font-size:12px}.subtle{color:#8da4bd}.shell{display:flex;min-height:100vh}.sidebar{width:239px;min-width:239px;background:#0b1726;border-right:1px solid #21364b;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:24px 14px}.identity{display:flex;align-items:center;gap:9px;padding:5px 9px 38px}.brand-icon,.mark{display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#0ec6ec,#1454a5);color:white;box-shadow:0 0 25px #05b9ee33;border-radius:10px;width:39px;height:39px;font-size:25px}.brand{font-size:24px;font-weight:850;letter-spacing:-.8px;color:#fff}.brand span,.auth-card h1 span{color:#25d7ee}.brand-caption{font-size:7px;letter-spacing:1.8px;color:#83a5c2;font-weight:800}.sidebar-label{color:#657d98;font-size:10px;letter-spacing:1.8px;font-weight:800;padding:0 17px 14px}.nav-button{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:transparent;color:#9db4cc;padding:14px 15px;border-radius:9px;margin:1px 0;font-weight:600}.nav-button span{width:19px;font-size:19px}.nav-button.selected{color:#eafdff;background:linear-gradient(90deg,#104964,#123049);box-shadow:inset 3px 0 #29d4f0}.nav-button:hover{background:#14283a;color:white}.side-bottom{margin-top:auto;padding:14px 7px 5px}.mini-status{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1px;color:#8aabc3}.pulse-dot{height:8px;width:8px;background:#23e1ad;border-radius:50%;box-shadow:0 0 12px #23e1ad}.fine{color:#748da7;font-size:11px;line-height:1.7;margin:14px 0}.ghost,.quiet{background:#122238;border:1px solid #284058;color:#b5cce1;border-radius:8px;padding:9px 12px}.ghost:hover,.quiet:hover{background:#1a344c}.wide{width:100%}.main{min-width:0;flex:1;background:radial-gradient(ellipse 1000px 420px at 70% 0%,#10283b 0%,transparent 75%),#08121f}.topbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #1b3146;padding:22px 32px;gap:18px}.eyebrow{font-size:10px;font-weight:850;color:#36a7d1;letter-spacing:2.1px}.topbar h1{font-size:24px;letter-spacing:-.6px;margin:5px 0 0}.top-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.today-clock{color:#a7bfd3;font-size:13px;white-space:nowrap}.pill{border:1px solid #25614f;background:#0e312e;border-radius:30px;color:#55e0b6;padding:9px 13px;font-size:10px;letter-spacing:.6px;font-weight:750}.primary{background:linear-gradient(125deg,#0aa9d5,#257ce1);color:#fff;border-radius:9px;padding:12px 17px;font-weight:750;box-shadow:0 7px 22px #0261be2d}.primary:hover{filter:brightness(1.14)}.bodypad{max-width:1600px;margin:auto;padding:24px 30px 42px}.stationbar{display:flex;gap:8px;margin-bottom:27px}.tab-scroll{display:flex;gap:8px;flex:1;min-width:0;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}.station-tab,.tab-add{flex-shrink:0;color:#98adc8;border:1px solid #24405a;background:#0d1d2d;padding:13px 17px;border-radius:10px;white-space:nowrap;font-weight:750}.station-tab:before{content:'▂▅▇';font-size:15px;margin-right:9px;color:#5d8aab}.station-tab.active{border-color:#1d7e9e;background:#102d40;color:#effdff;box-shadow:inset 0 -3px #1bd5f0}.station-tab.active:before{color:#2ee2bc}.tab-add{font-size:18px;padding:10px 18px}.section-header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:9px 0 20px}.section-header h2{font-size:21px;margin:0 0 5px}.help{color:#7892aa;font-size:12px;margin:7px 0}.filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}input,select{background:#122236;color:#dcecff;border:1px solid #2a435e;border-radius:8px;padding:10px 12px;outline:none;min-width:0}input:focus,select:focus{border-color:#2bd5e8;box-shadow:0 0 0 3px #1bcde421}input[type=date]{color-scheme:dark}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 21px}.stat{display:flex;gap:14px;align-items:center;background:linear-gradient(150deg,#122438,#0d1b2b);border:1px solid #213952;border-radius:14px;padding:21px 16px;min-width:0}.stat-icon{width:49px;height:49px;flex-shrink:0;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:26px}.blue{color:#24ccf7;background:#123a52}.purple{color:#bc8cff;background:#2b2550}.amber{color:#ffb93d;background:#43301d}.green{color:#2be2b3;background:#113b34}.stat-label{color:#a8bfd3;font-size:12px}.stat-value{color:#e5f8ff;font-size:34px;letter-spacing:-1.5px;font-weight:850;margin:4px 0}.stat-note{font-size:11px;color:#7d9bb0;line-height:1.45}.stat-state{font-size:19px;color:#27dba4;font-weight:850;margin:11px 0 10px;max-width:190px;overflow:hidden;text-overflow:ellipsis}.panel{border:1px solid #1e384f;background:linear-gradient(155deg,#101f2e,#0a1827);border-radius:14px;overflow:hidden}.panel.pad{padding:20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 22px 17px;gap:15px;flex-wrap:wrap}.panel h3{margin:0;font-size:17px}.right-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.segmented{display:flex;background:#081727;padding:4px;border-radius:8px;border:1px solid #294056}.segmented button{color:#8fa9c1;border-radius:6px;background:none;padding:9px 13px}.segmented button.on{background:#173b59;color:#5ce5ff}.search-mini{width:200px}.table-scroll{max-width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{background:#12283c;color:#92abc2;font-weight:700;letter-spacing:.2px;font-size:11px;padding:15px 17px;white-space:nowrap}td{padding:15px 17px;border-bottom:1px solid #1e3347;color:#cbdff0}tbody tr:hover{background:#132b40}td.num{font-weight:800;color:#7698b8;width:55px}td.artist{font-weight:700;color:#f1f7ff}td.title{color:#c7deed}.spin-btn{background:#103b54;color:#45e0ff;border:1px solid #1b667e;border-radius:8px;min-width:44px;padding:8px 12px;font-weight:850}.spin-btn:hover{background:#0a5976}.day-text{color:#f4bb6d}.night-text{color:#a6a0e9}.table-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#718eaa;padding:14px 22px;font-size:11px}.empty-row{text-align:center;color:#7f9bb2;padding:45px}.notice{background:#0c2533;border:1px solid #1f4d63;border-radius:10px;padding:14px 17px;color:#a7becf;line-height:1.6;font-size:12px;margin-top:16px}.analytics-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.hour-bars{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));align-items:end;gap:4px;height:185px;margin-top:18px;border-bottom:1px solid #3a4c5b}.hour-col{position:relative;min-height:2px;border-radius:4px 4px 0 0;background:linear-gradient(#39daf4,#1551a0)}.hour-col span{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);font-size:10px;color:#7795af}.legend{font-size:12px;color:#85a4bb;margin-top:32px}.daynight{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.ratio-card{flex:1;background:#122d41;padding:17px;border-radius:10px}.ratio-card strong{display:block;font-size:29px;margin:5px 0}.ratio-card small{color:#a4bfd6}.artist-row{margin-top:15px}.artist-row-line{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:7px}.bar-track{background:#193247;height:8px;border-radius:10px;overflow:hidden}.bar-fill{background:linear-gradient(90deg,#1679bd,#2fd8df);height:100%}.checks{max-height:240px;overflow:auto}.check-row{display:flex;gap:12px;border-bottom:1px solid #243951;padding:10px 0;font-size:11px;color:#9ab4c8}.check-row .tag{color:#51dfae}.check-row .tag.bad{color:#ff9b7d}.station-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.station-card{background:#102235;border:1px solid #28415b;border-radius:12px;padding:20px;min-width:0}.station-name{font-size:18px;font-weight:800}.station-meta{color:#799bb9;font-size:11px;margin-top:9px;overflow-wrap:anywhere}.station-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.station-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.station-actions button{border:1px solid #2b5370;background:#17354a;border-radius:8px;color:#b5d9ef;padding:9px 12px}.station-actions button.warn{border-color:#704b54;color:#ffaeb3}.status-badge{display:inline-block;padding:7px 9px;border-radius:20px;font-size:10px;font-weight:750;white-space:nowrap;background:#2b3547;color:#9caec7}.status-badge.listening{background:#134638;color:#53e9ad}.status-badge.failed,.status-badge.stream_error,.status-badge.recognition_error{background:#54302c;color:#ffc09b}.status-badge.connecting,.status-badge.buffering{background:#4b421d;color:#ffd27c}.overlay{position:fixed;inset:0;background:#01060bca;display:flex;justify-content:flex-end;z-index:10}.drawer{position:relative;width:min(440px,100%);background:#0b1c2c;border-left:1px solid #2e4e64;padding:38px 28px;overflow:auto;box-shadow:-20px 0 70px #0008}.close{position:absolute;right:18px;top:18px;font-size:26px;background:none;color:#9bb0c4}.drawer h2{font-size:22px;margin:14px 0}.drawer-total{font-size:20px;color:#30d4f6;font-weight:800;margin:25px 0}.time-list{display:grid;gap:8px}.time-item{display:flex;justify-content:space-between;border:1px solid #23455b;background:#13293c;padding:14px;border-radius:8px;color:#d6f2fe}.time-item span{color:#91bbd0}.modal{position:relative;background:#0f2234;border:1px solid #285270;border-radius:16px;margin:auto;padding:35px;width:min(500px,calc(100% - 24px));max-height:95vh;overflow:auto}.modal h2{margin:10px 0 22px}.modal label,.auth-card label{display:block;color:#bdd4e5;font-size:12px;font-weight:700;margin:15px 0}.modal input,.modal select,.auth-card input{display:block;width:100%;margin-top:8px}.modal small{display:block;color:#7894ab;font-weight:400;margin-top:6px}.modal .primary{margin-top:12px}.auth-layer{position:fixed;inset:0;background:radial-gradient(circle at center,#123450,#070e1a 72%);display:flex;align-items:center;justify-content:center;padding:20px}.auth-card{width:min(430px,100%);padding:36px;background:#0d1f31;border:1px solid #29465f;border-radius:18px;box-shadow:0 16px 90px #0006}.auth-card .mark{height:50px;width:50px}.auth-card h1{font-size:36px;margin:12px 0 0}.auth-card .eyebrow{margin:0 0 32px}.auth-card h2{margin:0 0 9px}.auth-card p{color:#99aec5;line-height:1.5}.auth-card .primary{margin:14px 0}.toast{position:fixed;bottom:22px;right:22px;z-index:25;background:#11344d;border:1px solid #22add4;color:#ecfaff;padding:15px 20px;border-radius:9px;max-width:min(470px,90vw);box-shadow:0 15px 40px #0009}
@media(max-width:1120px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:205px;min-width:205px}.topbar{padding:18px}.bodypad{padding:18px}.today-clock{display:none}.analytics-grid{grid-template-columns:1fr}}
@media(max-width:720px){.shell{flex-direction:column}.sidebar{width:100%;height:auto;position:relative;padding:11px}.identity{padding:0 8px 12px}.sidebar-label,.side-bottom{display:none}#nav{display:flex;overflow-x:auto}.nav-button{font-size:12px;white-space:nowrap;justify-content:center;gap:5px;padding:9px}.nav-button span{font-size:14px;width:auto}.topbar{padding:15px;align-items:flex-start}.topbar h1{font-size:19px}.top-actions{justify-content:flex-end}.pill{display:none}.stats{gap:8px}.stat{padding:14px 11px;gap:9px}.stat-icon{width:34px;height:34px;font-size:18px}.stat-value{font-size:26px}.stat-label{font-size:10px}.stat-note{font-size:10px}.station-list{grid-template-columns:1fr}.panel-heading,.section-header{align-items:flex-start;flex-direction:column}.filters{width:100%}.search-filters{grid-template-columns:1fr!important}.hour-bars{gap:2px}}
.search-filters{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr auto;gap:12px;padding:0 22px 24px;align-items:end}.search-filters label{font-weight:650;color:#9bb5cb;font-size:11px}.search-filters input,.search-filters select{width:100%;margin-top:8px}.search-filters .primary{margin-bottom:0;height:40px}

.table-sort{background:transparent;color:inherit;border:0;font-weight:800;font-size:11px;letter-spacing:.2px;padding:0;text-align:left}.table-sort.active{color:#4be1ff}.edit-title{background:transparent;color:#6285a0;padding:2px 4px;font-size:11px}.edit-title:hover{color:#4be1ff}.review-panel{border-color:#514629}.review-actions{white-space:nowrap}.review-actions button{border:1px solid #36576b;color:#9ee6ef;background:#103045;border-radius:6px;padding:7px;margin:2px}.review-actions button:last-child{border-color:#684350;color:#ffb0b0;background:#2b1b2a}.review-panel .table-scroll{max-height:420px;overflow:auto}

/* -----------------------------------------------------------------
   PowerSPIN v0.6 — bright broadcast dashboard, inspired by classic
   airplay reporting interfaces; independent visual design.
   ----------------------------------------------------------------- */

/* AirPlay 0.9.6: themes scoped; both include all panels and forms */

html[data-theme="light"]{color:#1a2d43;background:#f5f6f8;color-scheme:light}
html[data-theme="light"] body{color:#1a2d43;background:#f5f6f8}
html[data-theme="light"] .main{background:#f5f6f8}
html[data-theme="light"] .sidebar{background:#fff;border-right:1px solid #e0e4ec;box-shadow:2px 0 16px #18304608}
html[data-theme="light"] .brand, html[data-theme="light"] .topbar h1, html[data-theme="light"] .section-header h2, html[data-theme="light"] .panel h3, html[data-theme="light"] .station-name, html[data-theme="light"] .stat-value, html[data-theme="light"] .auth-card h1, html[data-theme="light"] .drawer h2{color:#142946}
html[data-theme="light"] .brand span, html[data-theme="light"] .auth-card h1 span{color:#c4430c}
html[data-theme="light"] .brand-caption{color:#667f98}
html[data-theme="light"] .sidebar-label{color:#97a4b3}
html[data-theme="light"] .nav-button{color:#51647b}
html[data-theme="light"] .nav-button.selected{color:#10294c;background:#f4e8e0;box-shadow:inset 4px 0 #dc5816}
html[data-theme="light"] .nav-button:hover{background:#f5ede7;color:#a33c0e}
html[data-theme="light"] .mini-status, html[data-theme="light"] .fine{color:#6d7c8b}
html[data-theme="light"] .ghost, html[data-theme="light"] .quiet{background:#fff;color:#243950;border:1px solid #d8dfe8}
html[data-theme="light"] .ghost:hover, html[data-theme="light"] .quiet:hover{background:#f5e6d9}
html[data-theme="light"] .topbar{background:#fff;border-bottom:3px solid #c5470f;box-shadow:0 3px 12px #20354a09}
html[data-theme="light"] .eyebrow{color:#c04a17}
html[data-theme="light"] .today-clock{color:#556f84}
html[data-theme="light"] .pill{color:#137551;background:#e9f8ef;border-color:#bce6ce}
html[data-theme="light"] .primary{background:linear-gradient(135deg,#d94f0b,#af3408);box-shadow:0 5px 14px #d35c231c}
html[data-theme="light"] .station-tab, html[data-theme="light"] .tab-add{color:#38526c;background:#fff;border:1px solid #d8dfe8}
html[data-theme="light"] .station-tab:before{color:#7b98b1}
html[data-theme="light"] .station-tab.active{color:#fff;background:#17365b;border-color:#17365b;box-shadow:inset 0 -3px #e56a25}
html[data-theme="light"] .station-tab.active:before{color:#ffad69}
html[data-theme="light"] .help, html[data-theme="light"] .subtle, html[data-theme="light"] .muted{color:#6c7e91}
html[data-theme="light"] input, html[data-theme="light"] select{background:#fff;color:#1b2e43;border-color:#d0d7df}
html[data-theme="light"] input:focus, html[data-theme="light"] select:focus{border-color:#dd632d;box-shadow:0 0 0 3px #f4b99c66}
html[data-theme="light"] input[type=date]{color-scheme:light}
html[data-theme="light"] .stat{background:#fff;border-color:#e1e5eb;box-shadow:0 3px 16px #182a3b08}
html[data-theme="light"] .stat-label{color:#52677f}
html[data-theme="light"] .stat-note{color:#76869a}
html[data-theme="light"] .stat-value{color:#152e4a}
html[data-theme="light"] .stat-state{color:#14815a}
html[data-theme="light"] .blue{background:#e8f2fb;color:#145c94}
html[data-theme="light"] .purple{background:#f1eafa;color:#7444aa}
html[data-theme="light"] .amber{background:#fff2df;color:#c16e0b}
html[data-theme="light"] .green{background:#e8f8ee;color:#14865d}
html[data-theme="light"] .panel{background:#fff;border:1px solid #e0e5ec;box-shadow:0 3px 12px #233a520a}
html[data-theme="light"] .panel-heading{background:#fff}
html[data-theme="light"] .segmented{background:#f3f5f8;border-color:#d8dfe7}
html[data-theme="light"] .segmented button{color:#64768a}
html[data-theme="light"] .segmented button.on{background:#143256;color:#fff}
html[data-theme="light"] th{background:#bd4510;color:#fff;font-size:11px;letter-spacing:.4px}
html[data-theme="light"] td{color:#253d56;border-bottom:1px solid #e4e7eb}
html[data-theme="light"] tbody tr:nth-child(even){background:#faf9f8}
html[data-theme="light"] tbody tr:hover{background:#fff2e9}
html[data-theme="light"] td.artist, html[data-theme="light"] td.title{color:#183452}
html[data-theme="light"] td.num{color:#294264}
html[data-theme="light"] .table-sort.active{color:#fff2a1}
html[data-theme="light"] .spin-btn{color:#fff;background:#193d66;border-color:#17385c}
html[data-theme="light"] .spin-btn:hover{background:#ca4d17}
html[data-theme="light"] .day-text{color:#ba6213}
html[data-theme="light"] .night-text{color:#526398}
html[data-theme="light"] .table-footer, html[data-theme="light"] .empty-row{color:#708296}
html[data-theme="light"] .notice{background:#f4f8fb;border-color:#d8e3ec;color:#4c6178}
html[data-theme="light"] .ratio-card, html[data-theme="light"] .station-card{background:#fff;border:1px solid #e0e5ed}
html[data-theme="light"] .ratio-card small, html[data-theme="light"] .station-meta{color:#637b92}
html[data-theme="light"] .bar-track{background:#e9edf3}
html[data-theme="light"] .bar-fill{background:linear-gradient(90deg,#c7460d,#f3a061)}
html[data-theme="light"] .hour-col{background:linear-gradient(#e8752c,#b93d0b)}
html[data-theme="light"] .hour-bars{border-bottom-color:#d9e0e8}
html[data-theme="light"] .hour-col span, html[data-theme="light"] .legend{color:#77879a}
html[data-theme="light"] .check-row{color:#51667c;border-bottom-color:#e5e9ef}
html[data-theme="light"] .check-row .tag{color:#137953}
html[data-theme="light"] .check-row .tag.bad{color:#a72d1a}
html[data-theme="light"] .station-actions button{background:#f5f8fa;color:#23415e;border-color:#cfdce8}
html[data-theme="light"] .station-actions button.warn{color:#a83232;border-color:#f0ced0}
html[data-theme="light"] .status-badge{background:#f0f2f6;color:#5f6c7c}
html[data-theme="light"] .status-badge.listening{background:#dff8eb;color:#12764b}
html[data-theme="light"] .status-badge.failed, html[data-theme="light"] .status-badge.stream_error, html[data-theme="light"] .status-badge.recognition_error{background:#ffedeb;color:#ad3d24}
html[data-theme="light"] .status-badge.connecting, html[data-theme="light"] .status-badge.buffering{background:#fff3d9;color:#94620a}
html[data-theme="light"] .overlay{background:#101b2b9c}
html[data-theme="light"] .drawer{background:#fff;border-left:2px solid #c94b13;box-shadow:-15px 0 45px #14243c30}
html[data-theme="light"] .close{color:#495f75}
html[data-theme="light"] .drawer-total{color:#bf4815}
html[data-theme="light"] .time-item{background:#f8fafc;border-color:#e1e6ef;color:#1e3a56}
html[data-theme="light"] .time-item span{color:#61768d}
html[data-theme="light"] .modal{background:#fff;border-color:#e0e5eb;box-shadow:0 16px 60px #14253d2c}
html[data-theme="light"] .modal label, html[data-theme="light"] .auth-card label{color:#40566e}
html[data-theme="light"] .modal small{color:#6a8198}
html[data-theme="light"] .auth-layer{background:linear-gradient(150deg,#f2f4f7,#f5e8df)}
html[data-theme="light"] .auth-card{background:#fff;border-color:#e3e6ed;box-shadow:0 18px 55px #26436324}
html[data-theme="light"] .auth-card p{color:#64778d}
html[data-theme="light"] .toast{background:#153353;color:#fff;border-color:#c34d17}
html[data-theme="light"] .search-filters label{color:#526983}
html[data-theme="light"] .edit-title{color:#537491}
html[data-theme="light"] .edit-title:hover{color:#be4913}
html[data-theme="light"] .review-panel{border-color:#ead6c8}
html[data-theme="light"] .review-actions button{background:#e8f3f7;color:#215a75;border-color:#bfd7e4}
html[data-theme="light"] .review-actions button:last-child{background:#fff0ef;color:#b43d3f;border-color:#eac6ca}

/* v0.8 Unrecognized Audio panels */
html[data-theme="light"] .gap-summary{margin:17px 0 10px;color:#30435b;font-size:13px;line-height:1.5}
html[data-theme="light"] .gap-summary strong{color:#b34416;font-size:20px}
html[data-theme="light"] .gap-list{max-height:280px;overflow:auto}
html[data-theme="light"] .gap-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #e6d4ca;background:#fff7f1;border-radius:8px;padding:12px;margin-top:8px;color:#2d4056;font-size:12px}
html[data-theme="light"] .gap-row strong{color:#b34416}

/* 0.9.5 DEV1: new-entry marker; other graphics unchanged pending review. */
html[data-theme="light"] .ne-marker{display:inline-block;border-radius:5px;font-size:10px;font-weight:800;letter-spacing:.07em;padding:3px 5px;background:#ddf8e6;color:#137442;margin-left:4px;vertical-align:middle}

/* Shared appearance controls */
.theme-toggle{font-size:12px;font-weight:750;border-radius:9px;padding:10px 14px;min-width:91px;white-space:nowrap;transition:background .15s,color .15s;cursor:pointer}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] .theme-toggle{color:#ffe0c4;border:1px solid #955333;background:#2a1d1b}
html[data-theme="dark"] .theme-toggle:hover{background:#4a2d23}
html[data-theme="light"] .theme-toggle{color:#23415c;background:#f5f7fa;border:1px solid #c9d4e0}
html[data-theme="light"] .theme-toggle:hover{background:#fff0e7}
.auth-theme-toggle{position:absolute;right:18px;top:18px}
/* Broadcast-inspired rust accent on the dark palette */
html[data-theme="dark"] .primary{background:linear-gradient(125deg,#db5718,#a7350d);box-shadow:0 7px 22px #db57152c}
html[data-theme="dark"] .nav-button.selected{background:#3c271e;color:#fff1e8;box-shadow:inset 3px 0 #ef783c}
html[data-theme="dark"] .station-tab.active{border-color:#dd662e;box-shadow:inset 0 -3px #ec7439}
html[data-theme="dark"] .brand span,html[data-theme="dark"] .auth-card h1 span{color:#ff9a68}
html[data-theme="dark"] .eyebrow{color:#ffa473}
html[data-theme="dark"] .panel th{background:#182d41;color:#dceaf9}
html[data-theme="dark"] .segmented button.on{background:#6c371f;color:#fff2e9}
html[data-theme="dark"] .ne-marker{background:#214c39;color:#81edbc}
html[data-theme="dark"] input[type=date]{color-scheme:dark}
html[data-theme="light"] input[type=date]{color-scheme:light}
@media(max-width:720px){.theme-toggle{padding:8px 10px;font-size:11px}.auth-theme-toggle{right:12px;top:12px}}

/* MediaInspector screenshot palette (sampled: orange #D6450B, slate #4C5E7F, page #F5F3F3). */
html[data-theme="light"] { background:#F5F3F3; color:#26344d }
html[data-theme="light"] .main{background:#F5F3F3}
html[data-theme="light"] .topbar{border-top:8px solid #D6450B;background:#fff}
html[data-theme="light"] .sidebar{background:#fff;border-right:1px solid #d7d9dd}
html[data-theme="light"] .sidebar-label{color:#4C5E7F}
html[data-theme="light"] .nav-button{color:#4C5E7F}
html[data-theme="light"] .nav-button.selected{background:#4C5E7F;color:#fff;box-shadow:inset 4px 0 #D6450B}
html[data-theme="light"] .nav-button:hover{background:#e6e9f0;color:#2b3b56}
html[data-theme="light"] .nav-button.selected:hover{background:#445472;color:#fff}
html[data-theme="light"] .brand,html[data-theme="light"] .auth-card h1{color:#26344d}
html[data-theme="light"] .brand span,html[data-theme="light"] .auth-card h1 span{color:#D6450B}
html[data-theme="light"] .brand-icon,html[data-theme="light"] .mark{background:#4C5E7F;box-shadow:none}
html[data-theme="light"] .eyebrow{color:#D6450B}
html[data-theme="light"] .primary{background:linear-gradient(180deg,#4C5E7F,#192336);box-shadow:0 4px 10px #26344d26}
html[data-theme="light"] .station-tab.active{background:#4C5E7F;color:#fff;border-color:#4C5E7F;box-shadow:inset 0 -3px #D6450B}
html[data-theme="light"] .station-tab.active:before{color:#fff}
html[data-theme="light"] .stat{background:#fff;border-color:#e0e0e5}
html[data-theme="light"] .panel{background:#fff;border-color:#e1e1e5}
html[data-theme="light"] .panel-heading{background:#fff}
html[data-theme="light"] .section-header h2,html[data-theme="light"] .panel h3{color:#D6450B}
html[data-theme="light"] th{background:#D6450B;color:#fff}
html[data-theme="light"] .segmented button.on{background:#4C5E7F;color:#fff}
html[data-theme="light"] .spin-btn{background:#26344D;border-color:#26344D;color:#fff}
html[data-theme="light"] .stat-icon.blue{background:#edf0f6;color:#4C5E7F}
html[data-theme="light"] .stat-icon.amber{background:#fff0e6;color:#D6450B}
html[data-theme="light"] .today-clock{color:#4C5E7F}
html[data-theme="light"] input:focus,html[data-theme="light"] select:focus{border-color:#D6450B;box-shadow:0 0 0 3px #d6450b1a}
html[data-theme="light"] .notice{background:#f5f3f3;border-color:#dce0e6}
/* Dark remains a real whole-page theme using the same orange/slate branding. */
html[data-theme="dark"] .brand-icon,html[data-theme="dark"] .mark{background:#4C5E7F;box-shadow:none}
html[data-theme="dark"] .primary{background:linear-gradient(180deg,#D6450B,#993007)}
html[data-theme="dark"] .nav-button.selected{background:#253957;color:#fff;box-shadow:inset 4px 0 #D6450B}
html[data-theme="dark"] .station-tab.active{border-color:#D6450B;box-shadow:inset 0 -3px #D6450B}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .brand span,html[data-theme="dark"] .auth-card h1 span{color:#ef8759}
html[data-theme="dark"] .panel th{background:#4C5E7F;color:#fff}
html[data-theme="dark"] .segmented button.on{background:#4C5E7F;color:#fff}
/* Station program comparison */
.compare-filters{padding:20px;margin-bottom:18px}
.compare-form{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr)) minmax(145px,1fr) minmax(150px,1fr) auto;align-items:end;gap:12px}
.compare-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700;min-width:0}
.compare-form label select,.compare-form label input{width:100%}
.compare-form button{white-space:nowrap;min-height:41px}
.compare-help{margin-top:13px;font-size:11px;line-height:1.5;color:#879bb3}
.compare-stat-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
.compare-stat{border:1px solid #2b4159;background:#122437;border-radius:10px;min-height:90px;padding:15px;overflow-wrap:anywhere}
.compare-stat small{display:block;font-size:11px;color:#91a9c4;margin-bottom:8px}
.compare-stat strong{display:block;font-size:20px;font-weight:850}
.compare-table th:nth-child(2){min-width:240px}
.compare-track{font-size:12px;opacity:.8;margin-top:6px}
.compare-artist{font-weight:750}
.compare-daypart{font-size:10px;margin-top:5px;white-space:nowrap;color:#9cb3ca}
.compare-diff{font-weight:800}
.compare-label{font-size:10px;font-weight:850;white-space:nowrap;padding:5px 7px;border-radius:6px;background:#364d68;color:#deebfa}
.compare-label.only_a{background:#3d3455;color:#d8c8f5}
.compare-label.only_b{background:#20473d;color:#b8efde}
html[data-theme="light"] .compare-filters{background:#4C5E7F;color:#fff;border-color:#4C5E7F}
html[data-theme="light"] .compare-form label{color:#fff}
html[data-theme="light"] .compare-form input,html[data-theme="light"] .compare-form select{background:#fff;color:#26344d;border-color:#d7dae3}
html[data-theme="light"] .compare-help{color:#f2f3f7}
html[data-theme="light"] .compare-stat{background:#fff;border-color:#e1e1e5}
html[data-theme="light"] .compare-stat small{color:#4C5E7F}
html[data-theme="light"] .compare-stat strong{color:#26344d}
html[data-theme="light"] .compare-label.common{background:#e9eef8;color:#26344d}
html[data-theme="light"] .compare-label.only_a{background:#efe8f8;color:#65387e}
html[data-theme="light"] .compare-label.only_b{background:#e4f4ec;color:#247653}
html[data-theme="light"] .compare-daypart{color:#637591}
@media(max-width:1230px){.compare-form{grid-template-columns:repeat(2,minmax(160px,1fr))}.compare-stat-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.compare-form{grid-template-columns:1fr}.compare-stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-filters{padding:14px}}

/* AirPlay 0.9.8: uncertain Greeklish is a warning, not an NE success badge. */
.greek-review-marker{display:inline-block;margin-left:5px;border-radius:5px;padding:3px 6px;font-size:10px;font-weight:850;letter-spacing:.04em;vertical-align:middle;background:#643c13;color:#ffe0a9;border:1px solid #ad773c}
html[data-theme="light"] .greek-review-marker{background:#fff0d5;color:#854900;border-color:#ecb65b}
#greek-review-button.on{border-color:#ecad4a;box-shadow:inset 0 0 0 1px #eac07a;color:#f6c980}
html[data-theme="light"] #greek-review-button.on{background:#fff0d5;color:#904e00}
