:root{font-family:system-ui,-apple-system,'Segoe UI','Yu Gothic UI','Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:#253d4c;background:#f4f8fa;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;background:white;border:1px solid #dce7ec;border-radius:7px;color:inherit;padding:9px 14px}button:hover{border-color:#22b8cd;color:#009db8}button:disabled{opacity:.5;cursor:wait}header{height:84px;background:white;border-bottom:1px solid #e4edf0;display:flex;align-items:center;justify-content:space-between;padding:0 max(30px,calc((100vw - 1400px)/2))}.brand{font-size:26px;font-weight:800;letter-spacing:1px;color:#19afc4;display:flex;align-items:center;gap:10px}.brand small{font-size:9px;letter-spacing:2px;color:#8ca5b1;margin-left:10px}.mark{background:#22bbcd;color:white;border-radius:12px;padding:5px 10px;font-size:22px}main{max-width:1400px;padding:0 30px;margin:auto}.intro{padding:42px 0 30px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#10aabe;font-weight:700}h1{font-size:29px;letter-spacing:1px;margin:10px 0}p{color:#7d929e;line-height:1.9}.intro p{margin:0}.toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce7ec;padding-bottom:16px;gap:15px}.tabs{display:flex;gap:7px}.tabs button{border:0;background:transparent;color:#81949e}.tabs .active{background:#20b6c9;color:white;font-weight:700}#updated{color:#92a3ad;font-size:11px;margin-right:8px}.layout{display:grid;grid-template-columns:220px 1fr;gap:30px;padding:28px 0 50px}aside{background:white;border:1px solid #e3ebef;border-radius:10px;padding:16px;height:fit-content}.sidehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}h2{font-size:16px;margin:0}.sidehead h2{font-size:10px;letter-spacing:1px}.sidehead span{color:#1bb0c6;margin-left:8px}.sidehead button{padding:2px 8px;font-size:20px;border:0}.channel{display:flex;align-items:center;gap:9px;width:100%;border:0;font-size:12px;padding:12px 8px;text-align:left}.channel.active{background:#e9f9fb;color:#069eb4}.avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;background:#def3f6;display:grid;place-items:center;flex-shrink:0}.channel .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove{font-size:15px;color:#aab9c0;cursor:pointer}.addchannel{border:1px dashed #b9dce3;color:#19a4ba;font-size:11px;width:100%;margin-top:20px;padding:12px 0}.sidenote{font-size:10px;line-height:2;color:#a0afb7;margin-top:26px}.schedulehead{display:flex;justify-content:space-between;align-items:center;margin:2px 0 25px}.search{display:flex;gap:8px;align-items:center;background:white;border:1px solid #e0e9ed;border-radius:7px;padding:8px 12px;color:#8ba4b0}.search input{width:180px;border:0;outline:none;background:transparent;font-size:11px}.date{font-size:16px;border-left:4px solid #20b6c9;padding-left:12px;margin:28px 0 18px;display:flex;align-items:center;gap:12px}.date small{font-size:10px;color:#8da3ae;font-weight:400}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:white;border:1px solid #e2eaee;border-radius:9px;overflow:hidden;display:block;text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #244d6214}.card.live{border:2px solid #f46a79}.thumb{aspect-ratio:16/9;position:relative;background:#dcecf1;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.thumb .sample{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(135deg,var(--tone),#22365a);color:white;font-size:22px;font-weight:800;letter-spacing:2px}.sample small{font-size:11px;letter-spacing:4px;opacity:.7;margin-top:12px}.cardbody{padding:14px}.cardtitle{font-size:12px;line-height:1.7;height:41px;overflow:hidden;font-weight:700;margin-bottom:13px}.creator{display:flex;gap:7px;align-items:center;color:#8196a2;font-size:10px}.creator .avatar{width:22px;height:22px}.empty{padding:65px 20px;text-align:center;background:white;border:1px dashed #ccdee5;border-radius:12px;color:#7e96a3;line-height:2}.empty strong{display:block;color:#3e6374;font-size:18px;margin-bottom:10px}#notice:not(:empty){background:#e8f7fa;border:1px solid #cbeaf0;color:#448394;border-radius:7px;padding:12px 15px;font-size:11px;line-height:1.8;margin-bottom:24px}footer{border-top:1px solid #dce7ec;padding:24px 0 30px;font-size:13px;color:#40a7b8}footer span{font-size:10px;color:#96a8b2;margin-left:15px}footer small{float:right;color:#a1afb7;font-size:9px}dialog{border:0;border-radius:15px;padding:28px;width:460px;max-width:92vw;box-shadow:0 20px 80px #19364b33}dialog::backdrop{background:#14344770;backdrop-filter:blur(4px)}.dialoghead{display:flex;align-items:center;justify-content:space-between}.close{border:0}dialog label{display:block;font-size:12px;line-height:2}dialog input{display:block;width:100%;padding:12px;border:1px solid #cbdde4;border-radius:6px;margin:8px 0 16px}dialog .help{font-size:11px}dialog a{font-size:11px;color:#139db4}.primary{display:block;width:100%;background:#20b6c9;color:white;border:0;margin:20px 0 10px}.primary:hover{color:white;background:#119db0}#demo{width:100%}#adderror{color:#dd5367;font-size:12px}@media(min-width:1500px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:950px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:180px 1fr;gap:18px}.brand small{display:none}.toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:620px){header{height:70px;padding:0 18px}.brand{font-size:20px}main{padding:0 16px}.intro{padding-top:28px}h1{font-size:22px}.layout{display:block}aside{margin-bottom:24px}.sidenote{display:none}.channel{padding:7px}.schedulehead{gap:10px}.schedulehead h2{font-size:13px}.search input{width:120px}.grid{gap:12px}.cardbody{padding:10px}.cardtitle{font-size:11px}.tabs{gap:0}.tabs button{padding:9px 10px;font-size:12px}footer small{float:none;display:block;margin-top:10px}}
#register{width:840px;max-width:94vw}#register>form>p{font-size:12px}#profilestatus{font-size:12px;color:#78919d;min-height:24px;margin:4px 0 14px}#profilestatus.loading{color:#159fb5}#profilestatus.loading:before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #bde8ed;border-top-color:#1aaabe;border-radius:50%;animation:spin .8s linear infinite;margin-right:8px;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}.channel-preview{display:flex;gap:23px;align-items:center;padding:24px;background:#0f0f0f;border:1px solid #242424;border-radius:12px;color:#f1f1f1}.channel-preview[hidden]{display:none}.profile-avatar{width:132px;height:132px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#29323a}.profile-copy{min-width:0;flex:1}.profile-name{font-size:21px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}.profile-verified{display:inline-grid;place-items:center;border-radius:50%;width:15px;height:15px;font-size:10px;background:#aaa;color:#181818;vertical-align:middle;margin-left:7px}.profile-meta{font-size:12px;color:#aaa;margin-top:9px;display:flex;gap:5px 9px;flex-wrap:wrap}.profile-description{margin:10px 0 0;color:#b5b5b5;font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}.profile-empty{font-size:12px;color:#999}.profile-avatar-fallback{display:grid;place-items:center;font-size:40px}@media(max-width:620px){#register{padding:20px}.channel-preview{gap:14px;padding:18px;align-items:flex-start}.profile-avatar{width:72px;height:72px}.profile-name{font-size:16px}.profile-meta{font-size:11px}.profile-description{font-size:11px;-webkit-line-clamp:4}.profile-verified{width:13px;height:13px;font-size:9px}}
.profile-name{margin:0}
.channel-preview{background:transparent;border-color:transparent;color:#253d4c}.profile-meta{color:#71828c}.profile-description{color:#5f707b}.profile-empty{color:#71828c}
.range{font-size:11px;color:#75909e;margin:-10px 0 22px}

.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;min-height:57px}.start-time{font-size:25px;font-weight:500;line-height:1;letter-spacing:.3px;flex-shrink:0;font-variant-numeric:tabular-nums}.card-channel{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;color:#8196a2;font-size:11px}.card-channel .avatar{width:29px;height:29px}.card-channel>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card .thumb{margin:0 12px;border-radius:3px}.stream-state{position:absolute;right:7px;bottom:7px;background:#151515df;color:white;border-radius:3px;font-size:12px;font-weight:700;line-height:1.3;padding:3px 5px;font-variant-numeric:tabular-nums}.stream-state.is-live{background:#e51b32}.cardtitle{height:auto;min-height:42px;max-height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0}.cardbody{padding:14px 14px 18px}@media(max-width:620px){.card-header{padding:10px;gap:7px;min-height:48px}.start-time{font-size:20px}.card-channel{font-size:10px;gap:5px}.card-channel .avatar{width:24px;height:24px}.card .thumb{margin:0 9px}.stream-state{font-size:10px;right:5px;bottom:5px}.cardbody{padding:12px 10px 15px}.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}}

.start-time{font-size:18px}@media(max-width:620px){.start-time{font-size:16px}}.day-empty{font-size:12px;color:#8ba0ac;padding:15px 14px;margin:0 0 26px;border:1px dashed #dce7ec;border-radius:7px}

main{max-width:1920px;padding:0 24px}.layout{gap:22px}.grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.card{border-radius:6px}.card-header{padding:7px 8px;gap:6px;min-height:40px}.start-time{font-size:15px}.card-channel{font-size:9px;gap:5px}.card-channel .avatar{width:24px;height:24px}.card .thumb{margin:0 7px}.cardbody{padding:8px 8px 10px}.cardtitle{font-size:10.5px;line-height:1.5;min-height:32px;max-height:32px}.stream-state{font-size:10px;right:4px;bottom:4px;padding:2px 4px}.thumb .sample{font-size:13px}.sample small{font-size:8px;letter-spacing:1px}.channel-avatar{display:inline-flex;position:relative;flex-shrink:0;align-items:center;justify-content:center;vertical-align:middle}.channel{min-height:48px}.group-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#93a6b0;margin:18px 0 8px}.group-heading button{border:0;font-size:10px;padding:3px 5px;color:#1a9fb4}.group-filter{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;padding:8px;font-size:11px;text-align:left;gap:6px}.group-filter span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group-filter small{color:#9aabb3}.group-filter.active{background:#e9f9fb;color:#069eb4}.group-filter:last-child{margin-bottom:14px}#groupmanager{width:680px}#groupmanager p{font-size:12px}select{font:inherit;color:#365362;border:1px solid #d3e1e7;border-radius:6px;background:white;padding:9px;min-width:0}#registergroup{display:block;width:100%;margin:8px 0 14px}.newgroup{display:flex;gap:10px;align-items:center;margin:18px 0}.newgroup input{margin:0;flex:1;min-width:0}.newgroup button{white-space:nowrap}.group-edit{display:flex;align-items:center;gap:9px;margin:8px 0}.group-edit input{margin:0;flex:1;min-width:0;padding:9px}.group-edit button{font-size:11px;color:#b6757c}.membership-heading{font-size:13px;margin-top:26px}.group-member{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #edf2f4}.group-member>span:not(.channel-avatar){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.group-member select{max-width:180px;font-size:12px}.group-help{font-size:11px!important;color:#95a5ae}#grouperror{color:#d3546b;font-size:12px}@media(max-width:1100px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:800px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.layout{grid-template-columns:170px 1fr;gap:14px}}@media(max-width:620px){main{padding:0 14px}.layout{display:block}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.group-member select{max-width:120px}.start-time{font-size:15px}}@media(max-width:380px){.grid{grid-template-columns:1fr}}

.site-clock{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:12px;text-align:right;min-width:180px}.site-clock>span{font-size:12px;color:#7893a0}.site-clock time{font-size:25px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:1px;color:#2c5263}.site-clock small{grid-column:1/-1;color:#16a5b7;font-size:10px;line-height:1.5}.site-clock small.unsynced{color:#a28a62}.refresh-controls{display:flex;align-items:center;gap:4px}.schedulehead{margin-bottom:24px}.group-channels{padding-left:8px;border-left:1px solid #e7f0f3;margin:0 0 12px 9px}.group-channels .channel{padding:8px 4px;min-height:43px}.sidebar-group .group-filter{margin-bottom:3px}.group-channels:empty{display:none}.layout{border-top:1px solid #dce7ec;padding-top:24px}@media(max-width:620px){.site-clock{min-width:0;column-gap:6px}.site-clock>span{font-size:10px}.site-clock time{font-size:20px}.site-clock small{font-size:9px}.brand{gap:6px;font-size:18px}.mark{font-size:18px;padding:5px 8px}.schedulehead{margin-bottom:18px}.refresh-controls button{padding:7px 10px}}

header{position:sticky;top:0;z-index:40;box-shadow:0 1px 0 #dce7ec}html{scroll-padding-top:100px}.schedule-title{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.schedule-title h2{white-space:nowrap;flex-shrink:0}#selectionname{font-size:12px;color:#73909e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidehead h2{font-size:12px;letter-spacing:0}.menu-live{display:inline-flex;align-items:center;justify-content:center;color:#f50043;flex-shrink:0;margin-left:3px}.menu-live svg{display:block}.channel .name{min-width:0}#groupmanager{width:920px}.group-drag-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:22px}.group-drop-panel{border:1px solid #dbe7ec;border-radius:9px;padding:11px;margin-bottom:12px}.group-drop-panel .group-edit{margin:0 0 9px}.group-edit h4{font-size:12px;margin:0;padding:7px}.group-dropzone{min-height:65px;border:1px dashed #c8dce4;border-radius:7px;padding:8px;background:#fafcfd;transition:background .15s,border-color .15s}.group-dropzone.drag-over{border:2px solid #16b3c6;background:#e4f9fc}.drop-placeholder{font-size:11px;color:#9aafb9;display:block;text-align:center;padding:16px 0}.draggable-channel{display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border-radius:6px;background:white;cursor:grab;user-select:none;border:1px solid #edf2f5;touch-action:pan-y}.draggable-channel>span:not(.channel-avatar):not(.drag-grip){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;font-size:11px}.drag-grip{color:#a0b1ba;font-size:19px;flex-shrink:0}.draggable-channel.dragging{opacity:.4}.group-dropzone .draggable-channel+.draggable-channel{margin-top:7px}.group-member{display:block;padding:9px 0}.group-member>.draggable-channel{margin-bottom:6px}.group-member select{width:100%;max-width:none;font-size:11px;padding:6px}.drag-instruction{font-size:10px!important;color:#91a5af;margin:4px 0 12px}.group-drag-layout .membership-heading{margin-top:12px}@media(max-width:620px){.schedulehead{align-items:flex-start;gap:8px}.schedule-title{flex-wrap:wrap;gap:4px 10px}.schedule-title h2{font-size:13px}#selectionname{font-size:11px;max-width:200px}.refresh-controls{flex-shrink:0}.group-drag-layout{grid-template-columns:1fr}.site-clock{flex-shrink:0}}

.sidehead button{font-size:11px;padding:5px 7px;color:#159fb5}#channelmanager{width:680px}.managed-channel{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e6eef2}.managed-channel>span:not(.channel-avatar){flex:1;min-width:0;font-size:12px}.managed-channel button{font-size:11px;color:#b35161;flex-shrink:0}#channelmanagerstatus{font-size:12px}.create-group-title{font-size:14px;margin:24px 0 8px}.newgroup{margin-top:8px}#grouplist{margin-top:24px}.group-delete-note{font-size:10px!important;margin:0 0 10px;color:#8198a4}.group-dropzone .draggable-channel select{max-width:150px;font-size:10px;padding:5px}.group-edit button{color:#718c99}.group-drop-panel{break-inside:avoid}#groupmanager{width:800px}@media(max-width:620px){.group-dropzone .draggable-channel{flex-wrap:wrap}.group-dropzone .draggable-channel select{max-width:100%;width:100%;order:5}.group-edit button{padding:8px;font-size:10px}}

:root{--header-height:84px}.schedule{min-width:0}.schedule-day{position:relative;padding-bottom:12px;display:flow-root}.schedule-day .date{position:sticky;top:var(--header-height);z-index:25;background:#f4f8fa;margin:0;padding:13px 12px;border-bottom:1px solid #dce7ec;box-shadow:0 5px 10px #f4f8fa;margin-bottom:16px;min-height:49px}.today-badge{font-size:11px;background:#18b3c7;color:white;padding:3px 9px;border-radius:5px;font-weight:600}.view-switch{display:flex;gap:5px;margin:0 0 20px}.view-switch button{font-size:12px}.view-switch [aria-pressed=true]{background:#20b6c9;border-color:#20b6c9;color:white}#timetablehelp{font-size:11px;margin-top:-8px}@media(max-width:620px){:root{--header-height:70px}.schedule-day .date{font-size:14px}.schedule-day{padding-bottom:8px}}
.timetable-scroll{overflow:auto;max-height:650px;height:65vh;min-height:360px;border:1px solid #d7e4eb;border-radius:8px;background:white;margin-bottom:22px;isolation:isolate;overscroll-behavior:contain;scroll-padding-top:65px}.timetable{position:relative;min-width:100%}.tt-axis{height:64px;display:flex;background:#e9f3f6;border-bottom:1px solid #d7e4eb;position:sticky;top:0;z-index:15}.tt-axis-label{width:64px;position:sticky;left:0;flex-shrink:0;background:#e9f3f6;font-size:11px;padding:22px 12px;z-index:16}.tt-channel{flex-shrink:0;border-right:1px solid #d7e4eb;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px;font-size:11px;color:#365767}.tt-channel>span:last-child{line-height:1.6;max-width:165px}.tt-body{display:flex;position:relative;height:2880px}.tt-hours{position:sticky;left:0;width:64px;flex-shrink:0;z-index:10;background:#f0f6f8;border-right:1px solid #d7e4eb}.tt-hours span{position:absolute;font-size:11px;color:#74909e;left:8px;padding-top:4px;font-variant-numeric:tabular-nums}.tt-track{flex-shrink:0;position:relative;border-right:1px solid #d7e4eb;background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#eef3f6 59px,#eef3f6 60px,transparent 60px,transparent 119px,#dce7ed 119px,#dce7ed 120px)}.tt-event{position:absolute;background:#e6f3f7;border-top:3px solid #66aabd;border-radius:4px;text-decoration:none;color:#2b5062;z-index:2;box-shadow:inset 0 0 0 1px #cee4eb}.tt-event-copy{position:relative;padding:8px;background:#e6f3f7;border-radius:4px;min-height:190px;box-shadow:0 2px 5px #244d6210;font-size:10px}.tt-meta{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:7px}.tt-meta b{font-size:14px;font-variant-numeric:tabular-nums}.tt-meta span{font-size:10px}.tt-thumbnail{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:3px;background:#dbeaf0}.tt-event strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6;margin-top:7px;font-weight:600;font-size:11px}.tt-event small{font-size:9px}.tt-event:hover,.tt-event:focus-visible{z-index:9;outline:2px solid #1fb2c7}.tt-live{background:#fff0f3;border-color:#f34d70;color:#b8284b}.tt-live .tt-event-copy{background:#fff0f3}.tt-point{background:transparent;border:0;box-shadow:none}.tt-point:before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:#1eb1c6;z-index:3}.tt-point:after{content:'';position:absolute;left:-3px;top:-3px;width:9px;height:9px;background:#1eb1c6;border-radius:50%;z-index:4}.tt-point .tt-event-copy{background:#f1fafc;border:1px dashed #a8dae3;top:7px}.tt-now{position:absolute;left:64px;right:0;border-top:2px solid #f34d70;pointer-events:none;z-index:11}.tt-now>span{position:absolute;top:-17px;left:0;color:white;background:#f34d70;font-size:9px;padding:2px 5px;white-space:nowrap}@media(max-width:620px){.timetable-scroll{height:62vh;min-height:350px}.tt-channel{font-size:10px}}

.timetable-shell{position:relative}.tt-horizontal{position:absolute;top:48%;z-index:20;border:0;border-radius:50%;width:42px;height:42px;padding:0;background:#3b697bd9;color:white;font-size:32px;box-shadow:0 3px 10px #244d6220}.tt-horizontal:hover{background:#159fb4;color:white}.tt-left{left:36px}.tt-right{right:10px}.tt-day-controls{display:flex;justify-content:center;align-items:center;gap:18px;margin:0 0 12px}.tt-day-controls button,.tt-day-bottom button{border-radius:22px;background:#587d8d;color:white;font-size:11px;padding:7px 15px}.tt-day-controls span{font-size:12px;color:#73909e}.tt-day-bottom{text-align:center;margin:8px 0}.timetable-scroll{height:calc(100vh - 280px);max-height:none;min-height:420px;margin-bottom:0}.tt-axis{height:44px}.tt-axis-label{width:32px;padding:14px 5px;font-size:9px}.tt-channel{gap:5px;padding:5px;font-size:9px;justify-content:flex-start}.tt-channel .avatar{width:22px;height:22px}.tt-channel>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:118px;line-height:1.4}.tt-hours{width:32px;background:#e5f0f4}.tt-hours span{left:0;width:32px;height:120px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;border-bottom:1px solid #cbdde5;padding:0}.tt-event-copy{min-height:0;padding:5px;background:transparent;box-shadow:none}.tt-event:not(.tt-point){overflow:hidden}.tt-event .tt-meta{gap:3px;margin-bottom:4px}.tt-meta b{font-size:11px}.tt-meta span{font-size:8px}.tt-event strong{font-size:10px;line-height:1.45;margin-top:5px}.tt-known-end{border-bottom:4px solid #66aabd;border-radius:4px 4px 2px 2px}.tt-short .tt-meta{margin-bottom:1px}.tt-short strong{margin-top:1px}.tt-point .tt-event-copy{background:#f1fafc;min-height:150px}.tt-now{left:32px}@media(max-width:620px){.tt-day-controls{gap:7px}.tt-day-controls button{font-size:10px;padding:7px 10px}.tt-day-controls span{font-size:10px}.timetable-scroll{height:65vh;min-height:350px}.tt-horizontal{width:34px;height:34px;font-size:26px}}

/* A full-height timetable workspace; only the channel list and time grid scroll. */
.tt-body{height:5040px}.tt-hours span{height:210px}.tt-track{background:repeating-linear-gradient(to bottom,transparent 0,transparent 104px,#eef3f6 104px,#eef3f6 105px,transparent 105px,transparent 209px,#dce7ed 209px,#dce7ed 210px)}.tt-continued{border-top:1px solid #cee4eb;border-top-left-radius:0;border-top-right-radius:0}
body.workspace-mode{overflow:hidden;--header-height:60px}.workspace-mode header{height:60px;padding:0 20px}.workspace-mode .brand{font-size:22px}.workspace-mode .mark{font-size:18px}.workspace-mode .site-clock time{font-size:21px}.workspace-mode main{position:fixed;inset:60px 0 0;max-width:none;padding:0;margin:0}.workspace-mode .intro,.workspace-mode footer,.workspace-mode #timetablehelp{display:none}.workspace-mode .layout{position:absolute;inset:0;margin:0;padding:0;border:0;display:grid;grid-template-columns:190px minmax(0,1fr);gap:0}.workspace-mode aside{height:100%;overflow-y:auto;border:0;border-right:1px solid #dce7ec;border-radius:0;padding:16px 10px}.workspace-mode .schedule{position:relative;display:grid;grid-template-rows:48px minmax(0,1fr);height:100%;min-height:0;padding:0 0 0 0}.workspace-mode .schedulehead{grid-row:1;margin:0;padding:0 230px 0 20px;gap:8px;border-bottom:1px solid #dce7ec}.workspace-mode .schedule-title{gap:10px}.workspace-mode #heading{font-size:18px}.workspace-mode #selectionname{max-width:200px}.workspace-mode .refresh-controls{display:none}.workspace-mode .view-switch{position:absolute;right:12px;top:8px;margin:0;gap:3px}.workspace-mode .view-switch button{font-size:11px;padding:6px 10px}.workspace-mode #notice{position:absolute;left:10px;bottom:38px;z-index:24;max-width:calc(100% - 90px);margin:0;padding:4px 7px;font-size:9px;background:#e8f7faed;max-height:45px;overflow:auto;pointer-events:none}.workspace-mode #notice:empty{display:none}.workspace-mode #feed{grid-row:2;min-height:0;height:100%;overflow:hidden}.workspace-mode .schedule-day{height:100%;display:grid;grid-template-rows:36px minmax(0,1fr) 30px;min-height:0;padding:0}.workspace-mode .schedule-day>.date{position:absolute;left:16px;top:0;margin:0;padding:8px 0;border:0;box-shadow:none;min-height:0;font-size:12px;line-height:20px;z-index:4;background:transparent;gap:7px}.workspace-mode .today-badge{font-size:9px;padding:0 5px}.workspace-mode .tt-day-controls{grid-row:1;margin:0;gap:12px;border-bottom:1px solid #dce7ec;padding:0 10px;justify-content:flex-end}.workspace-mode .tt-day-controls span{display:none}.workspace-mode .tt-day-controls button{padding:3px 10px;font-size:10px}.workspace-mode .timetable-shell{grid-row:2;min-height:0;height:100%}.workspace-mode .timetable-scroll{height:100%;min-height:0;max-height:none;border-radius:0;border:0}.workspace-mode .tt-day-bottom{grid-row:3;margin:0;display:flex;align-items:center;justify-content:center;border-top:1px solid #dce7ec;background:#eff5f7}.workspace-mode .tt-day-bottom button{font-size:10px;padding:3px 12px}.workspace-mode .empty{grid-row:2;padding:30px}.workspace-mode .day-empty{grid-row:2;margin:10px}.workspace-mode .tt-horizontal{z-index:20}
@media(max-width:850px){.workspace-mode .layout{grid-template-columns:150px minmax(0,1fr)}.workspace-mode #selectionname{max-width:110px}.workspace-mode #heading{font-size:14px}.workspace-mode .schedulehead{padding-left:10px}}@media(max-width:620px){.workspace-mode .layout{grid-template-columns:115px minmax(0,1fr)}.workspace-mode aside{padding:10px 5px}.workspace-mode .sidehead{flex-wrap:wrap;gap:5px}.workspace-mode .sidehead h2{font-size:10px}.workspace-mode .channel{gap:4px;font-size:10px}.workspace-mode .channel .avatar{width:22px;height:22px}.workspace-mode .group-channels{padding-left:2px;margin-left:2px}.workspace-mode .schedulehead{padding-right:0;align-items:flex-start;padding-top:7px}.workspace-mode #selectionname{display:none}.workspace-mode .view-switch{top:25px;right:5px}.workspace-mode .view-switch button{font-size:9px;padding:2px 5px}.workspace-mode .schedule-day>.date{left:5px;font-size:10px;gap:3px}.workspace-mode .tt-day-controls{gap:3px;padding:0 4px}.workspace-mode .tt-day-controls button{font-size:0;padding:4px 7px}.workspace-mode [data-tt-day="-1"]:before{content:'⌃ 前日';font-size:10px}.workspace-mode [data-tt-day="1"]:before{content:'⌄ 翌日';font-size:10px}.workspace-mode .tt-day-bottom button{font-size:0}}

.tt-channel{justify-content:center;text-align:center}.tt-channel>span:last-child{text-align:center}.tt-body{height:3744px}.tt-hours span{height:156px}.tt-track{background:repeating-linear-gradient(to bottom,transparent 0,transparent 77px,#eef3f6 77px,#eef3f6 78px,transparent 78px,transparent 155px,#dce7ed 155px,#dce7ed 156px)}#timetabledate{font:inherit;font-size:12px;padding:5px 22px 5px 8px;max-width:190px;background:#fff;border-color:#d3e3e9;flex-shrink:0}#timetabledate[hidden]{display:none}.workspace-mode .schedule-day{grid-template-rows:minmax(0,1fr) 30px}.workspace-mode .timetable-shell{grid-row:1;min-width:0;overflow:hidden}.workspace-mode .tt-day-bottom{grid-row:2}.tt-horizontal{display:grid!important;place-items:center;position:absolute;z-index:35;top:50%;transform:translateY(-50%);line-height:1;opacity:1;visibility:visible;pointer-events:auto}.tt-right{right:18px!important;left:auto!important}.tt-left{left:36px;right:auto}.workspace-mode .schedulehead{padding-right:225px}.workspace-mode .schedule-title{gap:12px}.workspace-mode #selectionname{font-size:10px;max-width:160px}@media(max-width:850px){.workspace-mode .schedule-title{gap:6px}.workspace-mode #selectionname{display:none}.workspace-mode #timetabledate{font-size:11px;max-width:150px}.workspace-mode #heading{font-size:13px}}@media(max-width:620px){.workspace-mode .schedulehead{padding-right:0;padding-top:4px}.workspace-mode .schedule-title{align-items:flex-start;gap:3px}.workspace-mode #heading{font-size:10px;line-height:20px}.workspace-mode #timetabledate{font-size:10px;padding:2px;max-width:119px}.workspace-mode .view-switch{top:27px}.tt-right{right:15px!important}}

/* Both views share the same fixed workspace and compact header. */
.workspace-mode .schedule-day{grid-template-rows:minmax(0,1fr)}.workspace-mode .tt-day-bottom{display:none}.workspace-mode .schedule-title{min-width:0;gap:9px}.workspace-mode .schedule-title select{font-size:11px;padding:5px;max-width:165px;min-width:0}.workspace-mode #selectionname{max-width:100px}.workspace-mode .schedulehead{padding-right:218px}.workspace-mode .view-switch{right:10px}.workspace-mode .view-switch button{white-space:nowrap}.workspace-mode .schedule-title select[hidden]{display:none}.site-clock{display:flex;align-items:center;gap:10px;min-width:0}.site-clock #clockstatus{display:inline-block;flex-shrink:0;width:9px;height:9px;border-radius:50%;background:#1bb3c5;grid-column:auto;font-size:0;line-height:0}.site-clock #clockstatus[data-state=synced]{animation:syncPulse 2s ease-in-out infinite}.site-clock #clockstatus[data-state=syncing]{width:11px;height:11px;background:transparent;border:2px solid #bee8ed;border-top-color:#159fb5;animation:spin .8s linear infinite}.site-clock #clockstatus[data-state=unsynced]{background:#b89860;animation:none}@keyframes syncPulse{0%,100%{box-shadow:0 0 0 0 #1bb3c530;opacity:1}50%{box-shadow:0 0 0 4px #1bb3c510;opacity:.6}}@media(prefers-reduced-motion:reduce){.site-clock #clockstatus{animation:none!important}}
.cards-mode #feed{overflow-y:auto;padding:16px 20px 30px}.cards-mode .schedule-day{display:block;height:auto;padding-bottom:20px}.cards-mode .schedule-day>.date{position:sticky;top:0;left:auto;background:#f4f8fa;padding:10px 12px;margin:0 0 14px;box-shadow:0 3px 7px #f4f8fa;min-height:40px;border-left:4px solid #20b6c9;font-size:15px;z-index:20}.cards-mode .grid{grid-template-columns:repeat(6,minmax(0,1fr))}.cards-mode #notice{bottom:8px}.workspace-mode .timetable-shell{position:relative;height:100%;min-height:0}.tt-edge{position:absolute;left:50%;transform:translateX(-50%);z-index:36;border:0;border-radius:22px;background:#587d8dea;color:white;font-size:11px;padding:7px 15px;box-shadow:0 2px 8px #244d6220}.tt-previous{top:54px}.tt-next{bottom:14px}.tt-return-now{position:absolute;bottom:14px;right:20px;z-index:36;border:0;border-radius:22px;background:#587d8dea;color:white;font-size:11px;padding:7px 13px}.tt-edge[hidden]{display:none!important}.tt-edge:hover,.tt-return-now:hover{background:#159fb5;color:white}.workspace-mode .tt-horizontal{z-index:35}.workspace-mode #notice{max-width:40%;bottom:8px}.managed-channel[draggable],.group-channels [draggable]{cursor:grab}.managed-channel.dragging,.channel.dragging{opacity:.4}.order-target{box-shadow:inset 0 3px 0 #1bb3c5;background:#e7f8fa!important}.managed-channel .order-up,.managed-channel .order-down{padding:4px 6px;border:0;color:#8099a6;font-size:14px}.workspace-mode .schedule-title #tablechannel{max-width:190px}
@media(max-width:1100px){.workspace-mode #selectionname{display:none}.workspace-mode .schedule-title{gap:5px}.workspace-mode .schedule-title select{max-width:135px;font-size:10px}.workspace-mode #heading{font-size:14px}.cards-mode .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:850px){.workspace-mode .schedule{grid-template-rows:74px minmax(0,1fr)}.workspace-mode .view-switch{top:43px;right:10px}.workspace-mode .schedulehead{padding-right:8px;align-items:flex-start;padding-top:7px}.workspace-mode .schedule-title{flex-wrap:wrap;align-items:center}.workspace-mode .schedule-title #tablechannel{max-width:160px}.workspace-mode .schedule-title select{font-size:10px}.cards-mode .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-mode .schedule-title #heading{font-size:12px}}
@media(max-width:620px){.workspace-mode header{padding:0 10px}.brand small{display:none}.workspace-mode .brand{font-size:16px}.site-clock{gap:5px}.site-clock #clockdate{font-size:9px}.workspace-mode .site-clock time{font-size:17px}.workspace-mode .schedule{grid-template-rows:98px minmax(0,1fr)}.workspace-mode .view-switch{top:72px;right:5px}.workspace-mode .view-switch button{font-size:9px;padding:4px 6px}.workspace-mode .schedule-title{gap:4px;align-content:flex-start}.workspace-mode .schedule-title select{max-width:130px}.workspace-mode .schedule-title #tablechannel{max-width:190px}.cards-mode #feed{padding:10px 8px}.cards-mode .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-return-now{font-size:10px;right:8px;padding:7px 8px}.tt-edge{font-size:10px;padding:6px 9px}.managed-channel{gap:7px}.managed-channel .order-up,.managed-channel .order-down{padding:3px}.workspace-mode #notice{max-width:75%;font-size:8px}}

.managed-channel[draggable],.group-channels [draggable]{user-select:none;-webkit-user-select:none}.managed-channel[draggable] .avatar,.group-channels [draggable] .avatar{-webkit-user-drag:none}

:root{--sidebar-width:190px}.workspace-mode .layout{grid-template-columns:var(--sidebar-width) 7px minmax(0,1fr)}#sidebarresize{height:100%;cursor:col-resize;touch-action:none;background:#e5eef2;border-left:1px solid #d1e0e7;border-right:1px solid #d1e0e7;position:relative;z-index:45;outline:none}#sidebarresize:after{content:'';position:absolute;top:45%;left:1px;width:3px;height:40px;border-radius:3px;background:#a5beca}#sidebarresize:hover,#sidebarresize.resizing,#sidebarresize:focus-visible{background:#b6e4eb}.workspace-mode .schedule-title #selectionname[hidden]{display:none}.workspace-mode .schedule-title{gap:8px;flex-wrap:nowrap}.workspace-mode #selectionicon{display:flex;align-items:center;flex-shrink:0}.workspace-mode #selectionicon[hidden]{display:none}.workspace-mode #selectionicon .avatar{width:25px;height:25px}.workspace-mode .schedule-title #tablechannel{font-size:11px;max-width:230px;width:auto}.workspace-mode .schedule-title select{max-width:150px}.workspace-mode .schedule-title #tablelayout{max-width:105px}.tt-date-column>span:last-child{font-size:14px;font-weight:700;max-width:127px;line-height:1.5}.tt-date-column small{display:block;font-size:9px;line-height:1.3;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:122px}.tt-date-column .channel-avatar{display:none}.status-date-section{padding:0 0 18px}.status-date{font-size:14px;font-weight:600;color:#527586;padding:8px 10px;margin:4px 0 10px;border-bottom:1px solid #d5e4eb;background:#ebf4f7;border-radius:4px}.members-label{display:inline-block;font-size:9px;color:#27864c;background:#e0f2e4;border-radius:3px;padding:1px 4px;margin-bottom:4px}.card.members-only{background:#edf8ef;border-color:#8ac69a}.card.members-only .card-header{background:#e0f2e5}.card.members-only .cardtitle{color:#28623b}.card.live.members-only{border-color:#4cad6b}.card.members-only .stream-state.is-live{background:#338953}.tt-event.members-only,.tt-event.members-only .tt-event-copy,.tt-event.tt-point.members-only .tt-event-copy{background:#e5f5e9;color:#28623b;border-color:#72b78a}.tt-event.members-only{border-top-color:#56a875;box-shadow:inset 0 0 0 1px #b2d9bd}.tt-event.tt-known-end.members-only{border-bottom-color:#56a875}.tt-event.tt-point.members-only:before,.tt-event.tt-point.members-only:after{background:#56a875}.tt-event.tt-continued.members-only{border-top:1px solid #b2d9bd}.tt-event.members-only:hover,.tt-event.members-only:focus-visible{outline-color:#56a875}.workspace-mode #tablechannel{min-width:120px}.workspace-mode .schedulehead{min-width:0}
@media(max-width:1200px){.workspace-mode #tablechannel{max-width:190px}.workspace-mode .schedule-title{gap:5px}.workspace-mode .schedule-title select{font-size:10px}.workspace-mode #heading{font-size:14px}}@media(max-width:850px){:root{--sidebar-width:150px}.workspace-mode .layout{grid-template-columns:var(--sidebar-width) 7px minmax(0,1fr)}.workspace-mode .schedule-title{flex-wrap:wrap}.workspace-mode .schedule-title #tablechannel{max-width:175px}.workspace-mode .schedulehead{padding-right:7px}.workspace-mode #tablechannel{min-width:100px}}@media(max-width:620px){:root{--sidebar-width:115px}.workspace-mode .layout{grid-template-columns:var(--sidebar-width) 7px minmax(0,1fr)}.workspace-mode .schedule-title #tablechannel{max-width:150px;font-size:10px}.workspace-mode .schedule-title #tablelayout{max-width:85px}.workspace-mode #selectionicon .avatar{width:20px;height:20px}.tt-date-column>span:last-child{font-size:14px}}

.workspace-mode .schedule-title>select#timetabledate,.workspace-mode .schedule-title>select#tablelayout,.workspace-mode .schedule-title>select#tablechannel,.workspace-mode #selectionicon{display:none!important}.header-picker{position:relative;flex-shrink:0;max-width:270px}.header-picker[hidden]{display:none!important}.header-picker>button{display:flex;align-items:center;gap:7px;padding:5px 8px;font-size:12px;font-weight:600;border:0;background:transparent;border-radius:3px;max-width:270px;white-space:nowrap}.header-picker>button:hover,.header-picker>button[aria-expanded=true]{background:#e5f1f5;color:#139bb1}.header-picker>button>span:not(.picker-caret):not(.channel-avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.header-picker .avatar{width:23px;height:23px}.picker-caret{font-size:10px;color:#839eaa}.header-menu{position:absolute;left:0;top:calc(100% + 5px);width:260px;max-height:min(65vh,560px);overflow-y:auto;background:#fff;border:1px solid #ccdee7;box-shadow:0 7px 24px #244d6230;border-radius:5px;padding:5px;z-index:100}.header-menu[hidden]{display:none!important}.header-menu button{display:flex;gap:9px;align-items:center;width:100%;border:0;background:transparent;text-align:left;padding:10px;font-size:12px;line-height:1.5;border-radius:3px}.header-menu button:hover,.header-menu button[aria-checked=true]{background:#e5f6f9;color:#079bb3}.menu-caption{font-size:10px;color:#8aa3af;padding:10px 10px 3px;border-top:1px solid #e6eef2;margin-top:4px}.header-menu .menu-divider{border-top:1px solid #e1ebf0;margin-top:4px}.workspace-mode .schedulehead{z-index:50;position:relative}.workspace-mode .view-switch{z-index:51}.workspace-mode .schedule-title{overflow:visible}.workspace-mode .header-picker#scopepicker{max-width:260px}.workspace-mode .header-picker#scopepicker>button{max-width:260px}.workspace-mode .schedulehead{padding-right:220px}.archive .stream-state{background:#40515ddd;color:white}.card.members-only .stream-state.is-live{background:#e51b32}.tt-ended{background:#edf2f5;color:#405867;border-top-color:#8babb9}.tt-ended .tt-state-label{font-weight:700;color:#526773;background:#dfe8ed;border-radius:3px;padding:2px 4px}.tt-event.members-only.tt-ended,.tt-event.members-only.tt-ended .tt-event-copy{background:#edf6ef;color:#365f43}.tt-event.members-only.tt-ended .tt-state-label{background:#dcebe1;color:#42674e}.tt-event.tt-live .tt-state-label{background:#e51b32;color:white;border-radius:3px;padding:2px 4px;font-weight:700}.tt-event .tt-meta{align-items:flex-start;flex-wrap:wrap}.tt-event .tt-meta>span{font-size:9px;line-height:1.5}.tt-event .members-label{font-size:8px;margin:3px 0 0;padding:0 3px}.tt-end-label{position:absolute;bottom:0;right:0;left:0;background:#dfe9ee;color:#47606e;font-size:9px;text-align:right;padding:2px 5px;line-height:13px;font-weight:600}.tt-event.members-only .tt-end-label{background:#dcebe1;color:#42674e}.tt-event.tt-short .tt-end-label{display:none}.tt-known-end .tt-event-copy{padding-bottom:20px}@media(max-width:1100px){.header-picker>button{font-size:11px}.workspace-mode .header-picker#scopepicker>button{max-width:205px}}@media(max-width:850px){.workspace-mode .schedulehead{padding-right:8px}.workspace-mode .header-picker#scopepicker>button{max-width:200px}.header-menu{width:230px;max-height:55vh}}@media(max-width:620px){.header-picker>button{font-size:10px;padding:3px 4px;gap:4px}.header-picker .avatar{width:19px;height:19px}.workspace-mode .header-picker#scopepicker>button{max-width:160px}.header-menu{width:min(245px,65vw)}.header-menu button{font-size:11px}.workspace-mode .schedule-title{flex-wrap:wrap}}

.card.live{background:#fff0f3;border-color:#ef6a83}.card.live .card-header{background:#ffe1e8}.card.live.members-only{background:#daf0df;border-color:#4cad6b}.card.live.members-only .card-header{background:#c5e7ce}

/* Background colour indicates an ongoing stream, never membership alone. */
.card:not(.live),.card:not(.live).members-only,.card:not(.live) .card-header,.card:not(.live).members-only .card-header{background:#fff}.card:not(.live).members-only{border-color:#d5e4eb}.tt-event:not(.tt-live),.tt-event:not(.tt-live) .tt-event-copy,.tt-event.members-only:not(.tt-live),.tt-event.members-only:not(.tt-live) .tt-event-copy,.tt-event.tt-point.members-only:not(.tt-live) .tt-event-copy{background:#fff}.tt-event.tt-ended.members-only{box-shadow:inset 0 0 0 1px #dbe7ec}.tt-event.tt-ended .tt-state-label,.tt-event.tt-ended.members-only .tt-state-label{background:transparent;color:#718490;font-weight:400;padding:0}.tt-event.tt-ended .tt-end-label,.tt-event.tt-ended.members-only .tt-end-label{background:#f1f5f7;color:#718490}.tt-event.tt-live:not(.members-only),.tt-event.tt-live:not(.members-only) .tt-event-copy{background:#fff0f3}.tt-event.tt-live.members-only,.tt-event.tt-live.members-only .tt-event-copy{background:#daf0df}

/* Neutral cards until YouTube reports an active broadcast or Premiere. */
.card:not(.live),.card:not(.live).members-only,.card:not(.live) .card-header,.card:not(.live).members-only .card-header{background:#eef1f3}
.tt-event:not(.tt-live),.tt-event:not(.tt-live) .tt-event-copy,.tt-event.members-only:not(.tt-live),.tt-event.members-only:not(.tt-live) .tt-event-copy{background:#eef1f3}
.card.live:not(.members-only),.tt-event.tt-live:not(.members-only),.tt-event.tt-live:not(.members-only) .tt-event-copy{background:#fff0f3}
.card.live:not(.members-only) .card-header{background:#ffe1e8}
.card.live.members-only,.tt-event.tt-live.members-only,.tt-event.tt-live.members-only .tt-event-copy{background:#daf0df}
.card.live.members-only .card-header{background:#c5e7ce}
.premiere-label{display:inline-block;font-size:10px;margin:0 4px 3px 0;color:#536b7a}

.tt-event:not(.tt-live).members-only{border-color:#ccd7de;border-top-color:#8da5b3;border-bottom-color:#8da5b3}
.workspace-mode .view-switch{z-index:49}
.workspace-mode .schedulehead{z-index:auto}.workspace-mode .view-switch{z-index:51}

/* Timetable headings navigate through the same scope/date actions as the menus. */
.tt-channel{border:0;border-right:1px solid #d7e4eb;border-radius:0;background:#e9f3f6;font:inherit;font-size:9px;color:#365767;cursor:pointer;margin:0}
.tt-channel:hover,.tt-channel:focus-visible{background:#d6eef3;outline:2px solid #1bb3c5;outline-offset:-2px}
.tt-point:before,.tt-point:after{display:none}
.tt-point .tt-event-copy{top:0;border-style:solid;border-top:3px solid #8da5b3}
.tt-event.tt-ended,.tt-event.tt-ended .tt-event-copy,.tt-event.tt-ended .tt-end-label,.tt-event.tt-ended.members-only,.tt-event.tt-ended.members-only .tt-event-copy,.tt-event.tt-ended.members-only .tt-end-label{background:#f1f5f7}
.tt-hours .tt-current-hour{background:#20b6c9;color:#fff;border-bottom-color:#13a0b4;box-shadow:inset 3px 0 0 #0a94a9}
/* Animate the event's actual bottom edge down to reveal compact content. */
.tt-short{transition:height .25s ease,box-shadow .25s ease}
.tt-short .tt-thumbnail{max-height:0;opacity:0;margin:0;transition:max-height .25s ease,opacity .2s ease}
.tt-short:hover,.tt-short:focus-visible{height:max(var(--tt-height),190px)!important;z-index:14;box-shadow:0 4px 12px #244d6230;border-bottom:4px solid #66aabd}
.tt-short.tt-live:hover,.tt-short.tt-live:focus-visible{border-bottom-color:#f34d70}
.tt-short.tt-live.members-only:hover,.tt-short.tt-live.members-only:focus-visible{border-bottom-color:#56a875}
.tt-short:hover .tt-thumbnail,.tt-short:focus-visible .tt-thumbnail{max-height:90px;opacity:1}
.tt-short:hover .tt-event-copy,.tt-short:focus-visible .tt-event-copy{padding-bottom:20px}
.tt-short:hover .tt-end-label,.tt-short:focus-visible .tt-end-label{display:block}
@media(prefers-reduced-motion:reduce){.tt-short,.tt-short .tt-thumbnail{transition:none}}
/* Keep long-event details readable until the actual interval leaves the viewport.
   clip preserves clipping without creating a nested scroll container for sticky. */
.tt-event:not(.tt-point):not(.tt-short){overflow:clip}
.tt-event:not(.tt-point):not(.tt-short) .tt-event-copy{position:sticky;top:44px}
.tt-event.tt-live:not(.members-only):hover,.tt-event.tt-live:not(.members-only):focus-visible{outline-color:#f34d70}
.tt-event.tt-live.members-only:hover,.tt-event.tt-live.members-only:focus-visible{outline-color:#56a875}

/* Date scopes, quiet splitter, and compact preview surfaces. */
.tt-hours .tt-current-hour{box-shadow:none}
#sidebarresize,#sidebarresize:hover,#sidebarresize.resizing,#sidebarresize:focus-visible{background:transparent;border:0;outline:none}
#sidebarresize:after{display:none}
.tt-short{interpolate-size:allow-keywords}
.tt-short:hover,.tt-short:focus-visible{height:auto!important;min-height:var(--tt-height)}
.tt-short:hover .tt-event-copy,.tt-short:focus-visible .tt-event-copy{padding-bottom:5px}
.tt-short:hover .tt-end-label,.tt-short:focus-visible .tt-end-label{position:static;display:block;margin:0;padding-top:0}
.tt-event{--tt-hover-color:#1fb2c7}
.tt-event.tt-live:not(.members-only){--tt-hover-color:#f34d70}
.tt-event.tt-live.members-only{--tt-hover-color:#56a875}
.tt-event.tt-point:hover,.tt-event.tt-point:focus-visible{outline:none}
.tt-event.tt-point:hover .tt-event-copy,.tt-event.tt-point:focus-visible .tt-event-copy{outline:2px solid var(--tt-hover-color)}
.card:not(.live),.card:not(.live).members-only,.card:not(.live) .card-header,.card:not(.live).members-only .card-header{background:#fff}

/* The time label follows the visible left edge; its line still spans the grid. */
.tt-now>span{transform:translateX(var(--tt-scroll-left,0px))}
#cardlayout{display:none!important}
.view-switch .card-view-picker{position:relative}
.view-switch .card-view-picker>#viewcards{border:1px solid #d5e4eb;border-radius:7px;padding:7px 10px;font-size:12px;font-weight:400;background:#fff}
.view-switch .card-view-picker>#viewcards[aria-pressed=true]{background:#20b6c9;border-color:#20b6c9;color:#fff}
.view-switch .card-view-picker .header-menu{left:auto;right:0;width:170px}
.view-switch .card-view-picker .header-menu button{font-size:12px}
.view-switch .card-view-picker .header-menu [aria-checked=true]{background:#e5f6f9;color:#079bb3}
@media(max-width:620px){.view-switch .card-view-picker>#viewcards{font-size:9px;padding:4px 6px}}


button{display:inline-flex;align-items:center;vertical-align:middle;gap:5px}
.ui-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:1;width:1em;height:1em}
button svg{display:block;flex:0 0 auto}
.tt-horizontal{display:flex!important;align-items:center;justify-content:center;gap:0;line-height:1}
.tt-horizontal svg{width:22px;height:22px}
.tt-edge,.tt-return-now{align-items:center;justify-content:center}
.tt-known-end{border-bottom-width:3px;border-radius:4px}
.tt-known-end .tt-end-label{border-radius:0 0 3px 3px}
.tt-now{left:calc(32px + var(--tt-scroll-left,0px))}
.tt-now>span{transform:none}
.card-view-picker:after{content:"";position:absolute;top:100%;left:0;right:0;height:6px}

.header-actions{display:flex;align-items:center;gap:14px;min-width:0}
.icon-button{border:0;background:transparent;color:#527586;display:inline-flex;align-items:center;justify-content:center;padding:6px;border-radius:6px;flex:0 0 auto}
.icon-button:hover,.icon-button:focus-visible{background:#e5f6f9;color:#119db2}
.brand{display:flex;align-items:center;gap:7px}
.workspace-mode .layout{transition:grid-template-columns .25s ease;overflow:hidden}
.workspace-mode .layout>aside{width:var(--sidebar-width);min-width:0;transition:transform .25s ease,opacity .25s ease;transform:translateX(0)}
.workspace-mode.sidebar-collapsed .layout{grid-template-columns:0 0 minmax(0,1fr)}
.workspace-mode.sidebar-collapsed .layout>aside{transform:translateX(-100%);opacity:0;pointer-events:none;visibility:hidden;transition:transform .25s ease,opacity .25s ease,visibility 0s .25s}
.sidebar-collapsed #sidebarresize{pointer-events:none;overflow:hidden}
.channel-disabled .channel-avatar,.channel-disabled .name,.channel-disabled .channel-label{opacity:.38}
.pinned-channels{border-bottom:1px solid #d7e4eb;padding-bottom:9px;margin-bottom:10px}
.pinned-channels h3{font-size:10px;color:#7a99a8;margin:12px 8px 5px}
.channel-action-menu{position:fixed;width:220px;padding:7px;background:#fff;border:1px solid #ccdee7;border-radius:8px;box-shadow:0 6px 24px #244d6230;z-index:150}
.channel-action-menu[hidden]{display:none}
.channel-action-menu strong{display:block;font-size:11px;color:#527586;padding:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.channel-action-menu button{width:100%;padding:10px 8px;border:0;background:transparent;text-align:left;font-size:12px;border-radius:4px;justify-content:flex-start}
.channel-action-menu button:hover,.channel-action-menu button:focus-visible{background:#e5f6f9;color:#079bb3}
#settingsdialog{width:480px}
#settingsdialog h3{font-size:13px;color:#527586;margin:22px 0 9px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #e3edf1;font-size:13px}
.setting-row input{width:18px;height:18px;accent-color:#1bb3c5;margin:0}
.settings-management{display:flex;gap:10px;flex-wrap:wrap}
.managed-columns{display:flex;justify-content:space-between;font-size:10px;color:#7896a5;padding:14px 0 4px}
.managed-columns span:first-child{flex:1}
.managed-columns span+span{width:105px;text-align:center}
.visibility-toggle{flex-shrink:0;color:#5b8293;padding:7px;background:#f3f8fa;border:1px solid #d5e4eb}
.visibility-toggle svg{display:block}
.tt-channel[draggable=true]{cursor:grab}.tt-channel[draggable=true]:active{cursor:grabbing}

@media(max-width:620px){.header-actions{gap:4px}.brand{gap:3px}.brand small{display:none}.icon-button{padding:4px}.managed-channel{flex-wrap:wrap}.managed-columns span+span{width:85px}}
@media(prefers-reduced-motion:reduce){.workspace-mode .layout,.workspace-mode .layout>aside{transition:none!important}}

.tt-known-end.tt-continued{border-top-left-radius:0;border-top-right-radius:0}
@media(max-width:480px){.brand .mark{display:none}.header-actions{gap:3px}}

.tt-event.tt-live,.tt-event.tt-live .tt-event-copy{border-bottom-left-radius:0;border-bottom-right-radius:0}

/* Draw insertion guides between complete rows/columns, never across their text. */
.order-target{position:relative;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
.order-target.order-before:after,.order-target.order-after:after{content:"";position:absolute;left:0;right:0;height:3px;background:#1bb3c5;pointer-events:none;z-index:40;border-radius:0}
.order-target.order-before:after{top:-2px;bottom:auto}
.order-target.order-after:after{bottom:-2px;top:auto}
#feed .tt-channel.order-target:after{top:0;bottom:0;right:auto;height:auto;width:3px}
#feed .tt-channel.order-before:after{left:-2px}
#feed .tt-channel.order-after:after{left:auto;right:-2px}
.tt-track{background-image:none}

.visibility-toggle,.visibility-toggle:hover,.visibility-toggle:focus-visible{color:#111}
.order-grip{color:#7896a5;background:transparent;border:0;font-size:21px;padding:5px 9px;cursor:grab}
.order-grip:active{cursor:grabbing}
#add2{justify-content:center;text-align:center}
.tt-channel:hover{outline:none}
.tt-event{border-top-color:#56a875}
.tt-event.tt-known-end,.tt-event.tt-ended.members-only{border-top-color:#56a875;border-bottom-color:#56a875}
.tt-event.tt-point .tt-event-copy{border-top-color:#56a875}
.tt-event.tt-continued,.tt-event.tt-continued.members-only,.tt-event.tt-known-end.tt-continued{border-top:0;border-top-left-radius:0;border-top-right-radius:0}
.settings-button{font-size:12px;padding:5px 9px;color:#527586;background:transparent;border:0;border-radius:5px}
.settings-button:hover{background:#e5f6f9;color:#119db2}
.managed-channel .visibility-toggle,.managed-channel .visibility-toggle:hover,.managed-channel .visibility-toggle:focus-visible{color:#111}
/* Keep the sidebar scrollable without a permanently visible scrollbar. */
#registeredsidebar{scrollbar-gutter:stable;scrollbar-color:transparent transparent}
#registeredsidebar:hover{scrollbar-color:#91a6b1 transparent}
#registeredsidebar::-webkit-scrollbar{width:10px;background:transparent}
#registeredsidebar::-webkit-scrollbar-track{background:transparent}
#registeredsidebar::-webkit-scrollbar-thumb{background:transparent;border-radius:8px;border:2px solid transparent;background-clip:padding-box}
#registeredsidebar:hover::-webkit-scrollbar-thumb{background-color:#91a6b1}
#registeredsidebar::-webkit-scrollbar-button{background:transparent;color:transparent;display:none}
/* Boundary colors reflect membership and the current broadcast state. */
.tt-event{--tt-boundary:#8babb9}
.tt-event.tt-live:not(.members-only){--tt-boundary:#f34d70}
.tt-event.members-only{--tt-boundary:#56a875}
.tt-event:not(.tt-continued){border-top-color:var(--tt-boundary)}
.tt-event.tt-known-end{border-bottom-color:var(--tt-boundary)}
.tt-event.tt-point:not(.tt-continued) .tt-event-copy{border-top-color:var(--tt-boundary)}
.tt-channel:hover{border-right-color:#d7e4eb;outline:none;box-shadow:none}
.card.live:not(.members-only),.card.live.members-only,.card.live:not(.members-only) .card-header,.card.live.members-only .card-header{background:#fff}
/* Hover emphasizes only the sides; real start/end boundaries keep their color. */
.tt-event:hover,.tt-event:focus-visible{outline:none;box-shadow:inset 2px 0 0 var(--tt-boundary),inset -2px 0 0 var(--tt-boundary)}
.tt-event:not(.tt-known-end):hover,.tt-event:not(.tt-known-end):focus-visible{border-bottom:0}
.tt-event.tt-point:hover,.tt-event.tt-point:focus-visible{box-shadow:none}
.tt-event.tt-point:hover .tt-event-copy,.tt-event.tt-point:focus-visible .tt-event-copy{outline:none;box-shadow:inset 2px 0 0 var(--tt-boundary),inset -2px 0 0 var(--tt-boundary)}
/* Draw the side emphasis above sticky event content, which has its own background. */
.tt-event:not(.tt-point):hover:after,.tt-event:not(.tt-point):focus-visible:after{content:"";display:block;position:absolute;inset:0;border-left:2px solid var(--tt-boundary);border-right:2px solid var(--tt-boundary);border-radius:inherit;pointer-events:none;z-index:5}
.hover-video-preview{position:fixed;z-index:120;background:#111;border-radius:4px;overflow:hidden;box-shadow:0 5px 22px #18374440;pointer-events:none}
.hover-video-preview>img,.hover-video-preview>iframe{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.hover-video-preview>iframe{opacity:0}.hover-video-preview.preview-playing>iframe{opacity:1}

/* Keep playback clipped to the actual thumbnail, with no enlarged hover panel. */
.hover-video-preview{background:transparent;box-shadow:none;border-radius:3px;opacity:0}
.hover-video-preview.preview-playing{opacity:1}
.hover-video-preview>iframe{transform-origin:top left;max-width:none;max-height:none}

/* Keep channel headings outside the body scrollbar and sync horizontal movement. */
.workspace-mode .timetable-shell{display:flex;flex-direction:column}
.tt-header-scroll{flex:0 0 44px;height:44px;min-width:0;overflow:hidden;background:#e9f3f6}
.tt-header-scroll .tt-axis{position:relative;top:auto;min-width:100%;height:44px}
.workspace-mode .timetable-shell>.timetable-scroll{flex:1 1 auto;height:auto;min-height:0;scroll-padding-top:0}
.tt-event:not(.tt-point):not(.tt-short) .tt-event-copy{top:0}
/* Compact mobile controls without duplicate day labels or a fixed empty header row. */
@media(max-width:620px){
 .workspace-mode [data-tt-day]:before{content:none}
}
@media(max-width:850px){
 .workspace-mode .schedule{grid-template-rows:auto minmax(0,1fr)}
 .workspace-mode .schedulehead{grid-column:1;padding:7px 8px 36px 10px;min-height:64px}
 .workspace-mode .view-switch{position:relative;grid-row:1;grid-column:1;align-self:end;justify-self:end;top:auto;right:auto;margin:0 6px 5px}
}
/* Keep swipe scrolling while hiding schedule scrollbars on phones. */
@media(max-width:620px){
 .workspace-mode #feed,.workspace-mode .timetable-scroll{scrollbar-width:none;scrollbar-gutter:auto}
 .workspace-mode #feed::-webkit-scrollbar,.workspace-mode .timetable-scroll::-webkit-scrollbar{display:none;width:0;height:0}
}

/* Keep the current-time label centered on its line and above event cards. */
.tt-now{z-index:40}
.tt-now>span{top:-1px;transform:translateY(-50%);z-index:1;line-height:14px}

.managed-channel .order-grip,.managed-channel .order-grip:hover{color:#000;font-size:18px;white-space:nowrap}

.timetable-scroll{overflow-anchor:none}
.tt-now,.tt-now>span{transition:none;animation:none}
/* Phone headings emphasize selection while keeping section labels compact. */
@media(max-width:620px){
 .workspace-mode .schedule-title #heading{font-size:14px;line-height:24px}
 .workspace-mode #scopepicker>button{font-size:12px;line-height:20px}
 .workspace-mode #datepicker>button{font-size:11px;line-height:20px}
 .cards-mode .schedule-day>.date{min-height:28px;padding:3px 10px;margin-bottom:8px;line-height:22px;font-size:14px}
 .cards-mode .schedule-day{padding-bottom:12px}
 .cards-mode .status-date{font-size:12px;line-height:20px;padding:3px 9px;margin:2px 0 8px}
 .cards-mode .status-date-section{padding-bottom:10px}
 .cards-mode .today-badge{font-size:9px;padding:0 5px;line-height:18px}
 .tt-header-scroll,.tt-header-scroll .tt-axis{height:44px}
 .tt-header-scroll{flex-basis:44px}
 .tt-channel.tt-date-column{height:44px;padding:5px}
 .tt-channel.tt-date-column>span:last-child{font-size:11px;line-height:1.4}
}

.header-menu{max-width:calc(100vw - 16px);box-sizing:border-box}
.header-menu button{min-width:0;overflow-wrap:anywhere}

#datepicker:after,#scopepicker:after{content:"";position:absolute;top:100%;left:0;right:0;height:6px}
.channel-row{display:flex;align-items:center;min-width:0}.channel-row>.channel{flex:1;min-width:0}.channel-more{flex:0 0 26px;padding:5px 2px;border:0;background:transparent;font-size:20px;color:#345869}.channel-more:focus-visible{outline:2px solid #19afc4}.channel-freshness{display:block;font-size:10px;line-height:1.6;font-weight:400;color:#728b98;margin-top:4px;white-space:normal}.error-badge{position:absolute;left:10px;bottom:8px;z-index:46;max-width:calc(100% - 20px);font-size:10px;padding:6px 10px;background:#fff4ed;color:#925027;border-color:#f0cdb7;box-shadow:0 2px 8px #244d6210}.error-badge[hidden]{display:none}.settings-help{font-size:11px;line-height:1.8;color:#607e8d}.update-row{padding:14px 0;border-bottom:1px solid #dce7ec;font-size:12px}.update-row p{font-size:11px;margin:5px 0}.update-row button{font-size:11px;padding:5px 8px}.update-error{color:#a54750;overflow-wrap:anywhere}#updatedialog{width:650px}.header-picker:focus-within>.header-menu{z-index:100}#importsummary{font-size:12px;line-height:1.8}#backupstatus{font-size:12px;color:#426d7f}#importpreview button{font-size:12px;margin:5px 5px 0 0}.setting-row input[type=checkbox]{width:18px;height:18px;margin:0;flex-shrink:0}
@media(max-width:620px){.channel-more{flex-basis:22px}.workspace-mode .view-switch{gap:3px}.workspace-mode .schedulehead{padding-bottom:38px}.settings-management{flex-wrap:wrap}.managed-channel .channel-label{min-width:80px}.error-badge{font-size:9px;padding:5px 7px}}
.start-notice{position:fixed;right:12px;top:66px;z-index:200;max-width:min(400px,calc(100vw - 24px));padding:12px;background:#e9faf5;border:1px solid #7dc8ab;color:#28654f;border-radius:8px;font-size:12px;box-shadow:0 4px 20px #244d6220}.start-notice[hidden]{display:none}
/* Keep added controls clear of the title and let filtered timetables fill remaining space. */
@media(min-width:851px){.workspace-mode .schedulehead{padding-right:220px}}
input[hidden]{display:none!important}
.timetable-mode #feed{display:flex;flex-direction:column}
.timetable-mode #feed>.schedule-day{flex:1 1 auto;height:auto;min-height:0}
/* Large hit areas keep compact mobile text easy to operate. */
.help-steps{padding-left:24px}.help-steps li{margin:16px 0}.help-steps p{font-size:12px;margin:5px 0;line-height:1.8}.setting-row select{padding:7px;border:1px solid #cbdde4;border-radius:6px;max-width:145px}#helpdialog{width:520px}
@media(pointer:coarse){
 .header-actions>button,.channel-more,.visibility-toggle,.order-grip,.close,.header-menu button,.channel-action-menu button{min-width:44px;min-height:44px}
 .workspace-mode .header-picker>button{min-height:44px}
 .workspace-mode .view-switch button{min-height:36px}
 .tt-horizontal{min-width:44px;min-height:44px}
}
@media(max-width:620px){
 .header-actions{gap:2px}.header-actions .settings-button{font-size:10px;padding:5px 4px;min-height:40px}.header-actions #openhelp{min-width:30px}.workspace-mode .site-clock{gap:3px}.workspace-mode .site-clock time{font-size:16px}.site-clock #clockdate{display:none}.channel-more{min-width:36px;min-height:40px}.header-menu button{min-height:40px}.managed-channel .visibility-toggle,.managed-channel .order-grip{min-height:40px;min-width:36px}
 .workspace-mode .header-picker>button{min-height:32px}.workspace-mode .view-switch button{min-height:32px}.workspace-mode .schedulehead{padding-bottom:40px}.header-actions .settings-button:focus-visible,.header-menu button:focus-visible{outline:2px solid #18b3c7;outline-offset:1px}
}
.tt-empty-status{position:absolute;left:48px;right:18px;top:50px;z-index:20;margin:0 auto;padding:8px 12px;max-width:500px;text-align:center;font-size:11px;color:#547483;background:#f4f8faed;border:1px solid #dce7ec;border-radius:6px;pointer-events:none}.channel-action-menu{max-width:calc(100vw - 16px)}.channel-action-menu>strong{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.7}#lastbackup{padding:7px 10px;background:#eff7f9;border-radius:5px}
@media(max-width:620px){.workspace-mode .schedulehead{padding-top:5px;padding-bottom:40px}}
.group-row{display:flex;align-items:center;gap:2px}.group-row>.group-filter{flex:1;min-width:0}.group-collapse{border:0;background:transparent;color:#527586;padding:6px;min-width:30px;min-height:32px}.group-channels[hidden]{display:none!important}.channel-notification{display:flex!important;align-items:center;gap:4px;font-size:10px;white-space:nowrap;line-height:1.5}.channel-notification input[type=checkbox]{display:inline-block;width:16px;height:16px;margin:0;accent-color:#18b3c7}.undo-notice{position:fixed;left:12px;bottom:12px;z-index:150;max-width:calc(100vw - 24px);display:flex;align-items:center;gap:8px;padding:8px 12px;background:#edf9f6;color:#275f50;border:1px solid #9fd8c5;border-radius:8px;font-size:12px;box-shadow:0 4px 15px #244d6220}.undo-notice[hidden],#undochannel[hidden]{display:none!important}.undo-notice button,#undochannel{font-size:12px;padding:5px 9px;color:#128b9e;border-color:#9acdd7}#undochannel{margin-top:5px}#themechoice{min-width:130px}
html[data-theme=dark]{color-scheme:dark;background:#111923;color:#d8e5ee}
html[data-theme=dark] body{background:#111923;color:#d8e5ee}
html[data-theme=dark] header,html[data-theme=dark] .workspace-mode aside,html[data-theme=dark] dialog,html[data-theme=dark] .header-menu,html[data-theme=dark] .channel-action-menu{background:#1a2633;color:#d8e5ee;border-color:#35495b}
html[data-theme=dark] .workspace-mode .schedule,html[data-theme=dark] .cards-mode .schedule-day>.date,html[data-theme=dark] .schedule-day .date{background:#14202c;color:#d8e5ee;border-color:#345264;box-shadow:none}
html[data-theme=dark] button,html[data-theme=dark] input,html[data-theme=dark] select{background:#202f3e;color:#d8e5ee;border-color:#42596c}
html[data-theme=dark] button:hover{color:#70ddec;border-color:#45bdcf}
html[data-theme=dark] .settings-button,html[data-theme=dark] .icon-button,html[data-theme=dark] .channel-more,html[data-theme=dark] .group-filter,html[data-theme=dark] .group-collapse,html[data-theme=dark] .channel,html[data-theme=dark] .header-picker>button,html[data-theme=dark] .header-menu button{background:transparent;color:#b9cfdc}
html[data-theme=dark] .channel.active,html[data-theme=dark] .group-filter.active,html[data-theme=dark] .header-menu button:hover,html[data-theme=dark] .header-menu button[aria-checked=true]{background:#183f4b;color:#67d8e9}
html[data-theme=dark] .card{background:#1c2a38;color:#dbe8ef;border-color:#405669}
html[data-theme=dark] .card.live{border-color:#ff5379}
html[data-theme=dark] .card.live.members-only{border-color:#57b781}
html[data-theme=dark] .card.members-only .card-header{background:#203e33}
html[data-theme=dark] .card.members-only .cardtitle{color:#b9e5c7}
html[data-theme=dark] .status-date,html[data-theme=dark] .tt-header-scroll,html[data-theme=dark] .tt-axis,html[data-theme=dark] .tt-axis-label{background:#233846;color:#cfdee9;border-color:#405668}
html[data-theme=dark] .timetable-scroll{background:#14212d}
html[data-theme=dark] .tt-hours{background:#203340;border-color:#3b5264}
html[data-theme=dark] .tt-track,html[data-theme=dark] .tt-channel{border-color:#334b5d}
html[data-theme=dark] .tt-channel{background:#233846;color:#cfdee9}
html[data-theme=dark] .tt-hours span{color:#b2c9d6;border-color:#3b5264}
html[data-theme=dark] .tt-hours .tt-current-hour{background:#147e91;color:#fff}
html[data-theme=dark] .tt-event,html[data-theme=dark] .tt-event .tt-event-copy{background:#253746;color:#d4e6ef}
html[data-theme=dark] .tt-event.tt-live,html[data-theme=dark] .tt-live .tt-event-copy{background:#422534;color:#ffc3d0}
html[data-theme=dark] .tt-event.members-only,html[data-theme=dark] .tt-event.members-only .tt-event-copy{background:#213d31;color:#bee9cd}
html[data-theme=dark] .tt-end-label{background:#2b4151;color:#bdd1de}
html[data-theme=dark] .settings-help,html[data-theme=dark] p,html[data-theme=dark] .channel-freshness,html[data-theme=dark] .card-channel,html[data-theme=dark] .site-clock #clockdate{color:#adc4d2}
html[data-theme=dark] .managed-channel,html[data-theme=dark] .setting-row,html[data-theme=dark] .update-row{border-color:#344b5e}
html[data-theme=dark] .group-drop-panel,html[data-theme=dark] .group-dropzone,html[data-theme=dark] #lastbackup,html[data-theme=dark] .tt-empty-status,html[data-theme=dark] .empty{background:#20313f;color:#ccdee9;border-color:#41596b}
html[data-theme=dark] .primary,html[data-theme=dark] .view-switch [aria-pressed=true]{background:#148b9f;color:#fff;border-color:#219fb3}
html[data-theme=dark] .error-badge{background:#49382a;color:#ffe0b5;border-color:#8e6944}
html[data-theme=dark] .update-error{color:#ffacb7}
html[data-theme=dark] #notice:not(:empty),html[data-theme=dark] .undo-notice,html[data-theme=dark] .start-notice{background:#1c3b3b;color:#c7e9e6;border-color:#3e797a}
html[data-theme=dark] .managed-channel .order-grip,html[data-theme=dark] .visibility-toggle{color:#d8e5ee}
@media(max-width:620px){.group-collapse{min-width:36px;min-height:40px}.channel-notification{min-height:40px}.undo-notice{font-size:11px;align-items:flex-start;max-height:120px;overflow:auto}.channel-notification input[type=checkbox]{width:18px;height:18px}}
html[data-theme=dark] .site-clock time{color:#d5e9f3}
html[data-theme=dark] .view-switch .card-view-picker>#viewcards{background:#20313f;color:#caddE8;border-color:#425c70}
html[data-theme=dark] .view-switch .card-view-picker>#viewcards[aria-pressed=true]{background:#148b9f;color:#fff;border-color:#219fb3}
html[data-theme=dark] .group-channels{border-left-color:#3c5668}
html[data-theme=dark] .menu-caption{color:#a7c0cf;border-color:#3b5365}
/* Each dark card/broadcast has a single surface, including its header and footer. */
html[data-theme=dark] .card{--card-surface:#1c2a38;background:var(--card-surface)!important}
html[data-theme=dark] .card.members-only{--card-surface:#213d31}
html[data-theme=dark] .card .card-header,html[data-theme=dark] .card .cardbody{background:var(--card-surface)!important}
html[data-theme=dark] .tt-event{--tt-surface:#253746;background:var(--tt-surface)!important;box-shadow:none}
html[data-theme=dark] .tt-event.tt-live{--tt-surface:#422534}
html[data-theme=dark] .tt-event.members-only{--tt-surface:#213d31}
html[data-theme=dark] .tt-event .tt-event-copy,html[data-theme=dark] .tt-event .tt-end-label{background:var(--tt-surface)!important}
html[data-theme=dark] .tt-event .tt-end-label{color:inherit}
.group-row>.group-collapse{flex:0 0 28px;padding:4px;min-width:28px;margin:0;text-align:center}
.group-row>.group-filter{text-align:left;padding-left:4px}
.group-row:has(.group-filter.active){background:#e7f7fa;border-radius:5px}
html[data-theme=dark] .group-row:has(.group-filter.active){background:#183f4b}
@media(pointer:coarse){.group-row>.group-collapse{flex-basis:36px;min-width:36px;min-height:40px}}
.settings-section{border:1px solid #d9e6ed;border-radius:7px;margin:10px 0;overflow:hidden}.settings-section>summary{padding:13px 14px;font-size:13px;font-weight:600;cursor:pointer;background:#f2f7f9;min-height:44px}.settings-section-body{padding:0 13px 13px}.settings-section summary:focus-visible{outline:2px solid #19afc4;outline-offset:-2px}.managed-channel-info{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.managed-channel-info .channel-label{min-width:0;overflow-wrap:anywhere}.managed-channel-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.managed-channel-danger{margin-left:10px;padding-left:12px;border-left:1px solid #e1e9ed}.managed-channel-danger button{font-size:11px;color:#ad4a57;border-color:#e0c4c9;padding:7px 9px}.group-bulk-controls{display:flex;justify-content:flex-end;gap:5px;margin:0 0 5px}.group-bulk-controls button{border:0;background:transparent;font-size:10px;color:#648391;padding:5px 3px}.stream-card{display:flex;flex-direction:column;min-width:0}.stream-card>.card{flex:1}
html[data-theme=dark] .settings-section{border-color:#3b5264}html[data-theme=dark] .settings-section>summary{background:#233846;color:#d8e5ee}html[data-theme=dark] .managed-channel-danger{border-color:#405666}html[data-theme=dark] .managed-channel-danger button{color:#ffadbb;background:#342731;border-color:#835764}html[data-theme=dark] .group-bulk-controls button{color:#adc8d8}
@media(max-width:620px){.managed-channel{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 0}.managed-channel-info{width:100%;align-items:flex-start}.managed-channel-info .avatar{width:32px;height:32px}.managed-channel-info .channel-label{font-size:12px}.managed-channel-actions{width:100%;justify-content:flex-start;gap:12px;padding-left:42px}.managed-channel-actions>button,.managed-channel-actions .channel-notification{min-width:40px;min-height:40px}.managed-channel-danger{width:100%;margin:0;padding:8px 0 0 42px;border-left:0;border-top:1px dashed #e0e9ed}.managed-channel-danger button{min-height:36px}.group-bulk-controls{justify-content:space-between}.group-bulk-controls button{min-height:36px}.settings-section>summary{min-height:44px}.settings-section-body{padding:0 10px 10px}html[data-theme=dark] .managed-channel-danger{border-color:#405666}}


/* Keyboard navigation and motion preferences. */
:where(button,a,input,select,summary,[tabindex]):focus-visible{outline:3px solid #087d91;outline-offset:3px}
html[data-theme=dark] :where(button,a,input,select,summary,[tabindex]):focus-visible{outline-color:#70e0ee}
.skip-link{position:fixed;top:8px;left:8px;z-index:1000;padding:12px 16px;background:#fff;color:#164c60;border:2px solid #087d91;border-radius:6px;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.empty-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px;font-size:12px}.empty-actions button{padding:8px 12px}.empty>.primary{margin:12px 8px 0 0}.timetable-mode .empty-actions{flex:0 0 auto}

.refresh-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#e9f6f8;border-radius:6px;font-size:12px}.refresh-progress[hidden]{display:none}html[data-theme=dark] .refresh-progress{background:#203c48;color:#cce8ed}

.connection-status{padding:8px 12px;font-size:11px;background:#fff4dd;color:#73501d;flex:0 0 auto}.connection-status[hidden]{display:none}html[data-theme=dark] .connection-status{background:#463922;color:#ffe4af}

.thumbnail-unavailable{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;padding:8px;font-size:11px;text-align:center;background:#e8eff3;color:#567382}html[data-theme=dark] .thumbnail-unavailable{background:#2a4050;color:#c4d9e5}.thumb>img[hidden],.tt-thumbnail>img[hidden]{display:none!important}

.group-order-controls{display:flex;gap:4px;flex-shrink:0}.group-order-controls button{min-width:36px;min-height:36px;padding:5px}.group-edit{flex-wrap:wrap}.group-edit>input{flex:1;min-width:120px}.group-order-controls button:disabled{opacity:.4}

/* Hover does not recolor the channel separator. Keyboard focus remains visible. */
html[data-theme=dark] .tt-channel:hover{border-right-color:#334b5d;outline:none;box-shadow:none}
.group-bulk-controls{justify-content:flex-end}
.group-bulk-controls #togglegroups{padding:6px 3px}

.group-bulk-controls #togglegroups{background:transparent;border:0;box-shadow:none;color:#758d99;font-weight:400;font-size:10px;padding:4px 2px}
.group-bulk-controls #togglegroups:hover{background:transparent;color:#466c7e;text-decoration:underline}
html[data-theme=dark] .group-bulk-controls #togglegroups{background:transparent;color:#94a9b7}
html[data-theme=dark] .group-bulk-controls #togglegroups:hover{background:transparent;color:#c4d7e2}
.error-badge{white-space:normal;text-align:left;overflow-wrap:anywhere;max-height:min(140px,25vh);overflow:auto}

.tt-horizontal[hidden]{display:none!important;pointer-events:none}

#accountdialog{width:520px}#accountname{font-size:13px;overflow-wrap:anywhere}#accountstatus{font-size:12px;color:#557c8e}#accountlegacy{border-top:1px solid #c9dce5;margin-top:18px;padding-top:10px}#accountdialog button{font-size:12px}#accountconflict{padding:10px;border:1px solid #e4be8d;border-radius:6px;margin-top:12px}#accountconflict p{font-size:12px}.account-connection-error{position:fixed;z-index:500;inset:70px 12px auto;padding:20px;background:#fff4dd;border:1px solid #d5b375;border-radius:8px}.account-connection-error[hidden]{display:none}html[data-theme=dark] #accountstatus{color:#b0ccd9}html[data-theme=dark] #accountlegacy{border-color:#456071}
@media(max-width:620px){.header-actions #openaccount{max-width:65px;white-space:nowrap;font-size:10px;padding:5px 3px}.workspace-mode .header-actions{gap:1px}.workspace-mode .brand{font-size:16px}}

@media(max-width:620px){.workspace-mode header{height:auto;min-height:64px;gap:6px;padding-top:6px;padding-bottom:6px}.workspace-mode .header-actions{flex-wrap:wrap;justify-content:flex-end;max-width:62%}.workspace-mode .header-actions .site-clock{flex-basis:100%;justify-content:flex-end;order:-1}.workspace-mode .header-actions>.settings-button{min-height:28px}.workspace-mode .brand{flex-shrink:0}}

/* Card density is independent of timetable density. */
.cards-mode[data-card-density=compact] .grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.cards-mode[data-card-density=comfortable] .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.cards-mode[data-card-density=comfortable] .cardtitle{font-size:13px;line-height:1.6;min-height:42px;max-height:42px}
.cards-mode[data-card-density=compact] .stream-card,.cards-mode[data-card-density=compact] .card{min-width:0}
@media(max-width:1100px){.cards-mode[data-card-density=compact] .grid{grid-template-columns:repeat(6,minmax(0,1fr))}.cards-mode[data-card-density=comfortable] .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.cards-mode[data-card-density=compact] .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cards-mode[data-card-density=comfortable] .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
 .cards-mode[data-card-density=compact] .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .cards-mode[data-card-density=compact] .card-header{padding:5px 4px;gap:3px;flex-wrap:wrap;min-height:0}
 .cards-mode[data-card-density=compact] .start-time{font-size:12px}
 .cards-mode[data-card-density=compact] .card-channel{width:100%;min-width:0;font-size:8px;gap:3px}
 .cards-mode[data-card-density=compact] .card-channel .avatar{width:16px;height:16px}
 .cards-mode[data-card-density=compact] .thumb{margin:0 3px}
 .cards-mode[data-card-density=compact] .stream-state{font-size:8px;padding:1px 2px}
 .cards-mode[data-card-density=compact] .cardbody{padding:5px 4px}
 .cards-mode[data-card-density=compact] .cardtitle{font-size:9px;line-height:1.4;min-height:26px;max-height:26px}
 .cards-mode[data-card-density=comfortable] .grid{grid-template-columns:minmax(0,1fr)}
}

/* Membership labels stay green; card outlines indicate active broadcasts only. */
.cards-mode .card.members-only,.cards-mode .card.members-only .card-header,.cards-mode .card.members-only .cardbody{background:#fff;color:#28623b}
.cards-mode .card.live.members-only{border-color:#56a875}
.cards-mode .card.members-only:not(.live),html[data-theme=dark] .cards-mode .card.members-only:not(.live){border-color:transparent}
.timetable-shell .tt-event.members-only,.timetable-shell .tt-event.members-only .tt-event-copy,.timetable-shell .tt-event.members-only .tt-end-label{background:#e5f5e9;color:#28623b}
.cards-mode .card.members-only .stream-state.is-live,.timetable-shell .tt-event.members-only .tt-state-label{background:#27864c;color:#fff}
.timetable-shell .tt-event.members-only.tt-ended .tt-state-label{background:transparent;color:#718490;font-weight:400;padding:0}
.timetable-shell .tt-event.members-only.tt-upcoming .tt-state-label{background:transparent;color:inherit;font-weight:400;padding:0}
html[data-theme=dark] .cards-mode .card.members-only{--card-surface:#1c2a38}
html[data-theme=dark] .timetable-shell .tt-event.members-only{--tt-surface:#213d31;color:#bee9cd}
html[data-theme=dark] .timetable-shell .tt-event.members-only .tt-event-copy,html[data-theme=dark] .timetable-shell .tt-event.members-only .tt-end-label{color:#bee9cd}
/* Keep a real end time visible when the collapsed band has room for it. */
.tt-event.tt-short.tt-end-fits .tt-end-label{display:block}
.tt-event.tt-short.tt-end-fits:not(:hover):not(:focus-visible) .tt-event-copy{max-height:calc(var(--tt-height) - 19px);overflow:hidden;padding-bottom:0}

.channel-search-results{display:grid;gap:5px;max-height:280px;overflow-y:auto;margin:10px 0 16px}
.channel-search-results[hidden]{display:none}
.channel-search-result{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;background:transparent}
.channel-search-result>span:last-child{min-width:0;flex:1}.channel-search-result strong{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.channel-search-result small{display:block;font-size:10px;line-height:1.5;color:#718b99}
.channel-search-result:hover,.channel-search-result:focus-visible{background:#e5f6f9;border-color:#1bb3c5}
html[data-theme=dark] .channel-search-result:hover,html[data-theme=dark] .channel-search-result:focus-visible{background:#183f4b}
html[data-theme=dark] .channel-search-result small{color:#adc4d2}
#accountdialog [hidden]{display:none!important}

.account-migration-prompt{margin:10px 0;padding:9px;border:1px solid #83c7d2;border-radius:6px;background:#eaf7fa;font-size:11px}
.account-migration-prompt[hidden]{display:none!important}.account-migration-prompt p{margin:0 0 7px;line-height:1.6;color:inherit}.account-migration-prompt button{width:100%;white-space:normal;padding:7px;font-size:11px}
html[data-theme=dark] .account-migration-prompt{background:#183b46;border-color:#487c88;color:#d1e9ef}

.site-info-links{display:flex;flex-wrap:wrap;gap:6px 12px;margin:18px 0 8px;font-size:11px}.site-info-links a{color:#527586;text-underline-offset:3px}.site-info-links a:focus-visible{outline:2px solid #19afc4;outline-offset:3px}html[data-theme=dark] .site-info-links a{color:#adc4d2}

.brand .brand-icon{display:block;width:38px;height:38px;flex-shrink:0}#openaccount{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:180px}#accountusername{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-avatar{display:inline-grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;overflow:hidden;background:#d9f1f5;color:#126878;font-size:12px;font-weight:700}.account-avatar img{width:100%;height:100%;object-fit:cover}.account-avatar[hidden],.account-avatar [hidden]{display:none!important}html[data-theme=dark] .account-avatar{background:#254d58;color:#d6f2f6}@media(max-width:620px){.brand .brand-icon{width:25px;height:25px}.header-actions #openaccount{max-width:100px}.account-avatar{flex-basis:22px;width:22px;height:22px}#openaccount{gap:4px}}

/* First visit: readable HTML and lightweight, local-only sample artwork. */
#welcome[hidden],#demobar[hidden],#feed[hidden],#sidebardismiss[hidden]{display:none!important}
.workspace-mode.welcome-mode .schedule{display:block;overflow-y:auto;overscroll-behavior:contain}.welcome-mode .schedulehead,.welcome-mode .view-switch{display:none!important}
.welcome{max-width:1100px;margin:0 auto;padding:clamp(24px,5vw,64px) clamp(18px,4vw,48px);display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center;color:#253d4c}
.welcome-kicker{font-size:13px;font-weight:700;color:#087d90;margin:0 0 14px}.welcome h1{font-size:clamp(29px,3.5vw,44px);line-height:1.45;letter-spacing:.02em;margin:0 0 20px}.welcome-lead{font-size:15px;color:#476474;line-height:1.9;margin:0}.welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.welcome-actions button{text-align:center;min-height:48px;padding:12px 18px;font-size:14px;font-weight:650}.welcome-actions .primary{width:auto;display:inline-block;margin:0;background:#07869b}.welcome-actions .primary:hover{background:#066a7c}.welcome-note{font-size:12px;color:#527080;line-height:1.8;margin:14px 0 0}
.welcome-preview{padding:20px;background:#e5f3f6;border:1px solid #c6e0e7;border-radius:18px;transform:rotate(-1deg)}.preview-caption{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:700;margin-bottom:18px;color:#386575}.preview-caption span:last-child{font-size:10px;font-weight:400}.preview-program{display:flex;gap:10px;align-items:center;padding:14px 10px;background:#fff;border:1px solid #d5e5eb;border-radius:10px;margin:10px 0}.preview-avatar{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#c9edf0;color:#226875;font-weight:700}.preview-avatar.purple{background:#e4def5;color:#6a4b9c}.preview-avatar.pink{background:#f6dfe9;color:#9d496b}.preview-program div{min-width:0;flex:1}.preview-program strong,.preview-program div span{display:block;font-size:12px;line-height:1.7}.preview-program div span{font-size:11px;color:#607c8b}.preview-program>b{font-size:12px;white-space:nowrap}.preview-program .preview-live{color:#c31f49;background:#fff0f3;border-radius:5px;padding:3px 5px;font-size:10px}.welcome-preview>p{font-size:10px;margin:12px 0 0;color:#587583}
.welcome-features{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-top:1px solid #d5e4eb;padding-top:28px;margin-top:8px}.welcome-features article>span{font-size:12px;color:#087d90;font-weight:700}.welcome-features h2{font-size:15px;margin:8px 0}.welcome-features p{font-size:13px;line-height:1.8;color:#527080;margin:0}
.demo-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px;background:#e4f4f7;color:#355f70;font-size:12px}.demo-bar button{min-height:40px;font-size:12px}.demo-bar strong{margin-right:8px}.workspace-mode.demo-mode .schedule{grid-template-rows:74px auto minmax(0,1fr)}.demo-mode #demobar{grid-row:2}.demo-mode #feed{grid-row:3}
html[data-theme=dark] .welcome{color:#d7e6ee}html[data-theme=dark] .welcome :is(.welcome-lead,.welcome-note,.welcome-features p){color:#b6cbd7}html[data-theme=dark] .welcome-kicker,html[data-theme=dark] .welcome-features article>span{color:#75d6df}html[data-theme=dark] .welcome-preview{background:#1a3540;border-color:#3f616f}html[data-theme=dark] .preview-program{background:#213644;border-color:#42606e}html[data-theme=dark] :is(.preview-caption,.preview-program div span,.welcome-preview>p){color:#bed2de}html[data-theme=dark] .demo-bar{background:#1b3d49;color:#d0e7f1}
@media(max-width:850px){.welcome{grid-template-columns:1fr;gap:25px;max-width:680px}.welcome-preview{transform:none}.welcome-features{gap:18px}.welcome h1 br{display:none}}
@media(max-width:620px){
 .workspace-mode header{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:8px 12px;height:89px;min-height:89px;flex-shrink:0}.workspace-mode .brand{font-size:19px;min-height:32px;gap:6px;padding-right:85px}.workspace-mode .brand .brand-icon{width:28px;height:28px}.workspace-mode .header-actions{max-width:none;width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:5px}.workspace-mode .header-actions .site-clock{position:absolute;top:16px;right:12px;flex-basis:auto;gap:4px}.workspace-mode .site-clock time{font-size:15px}.workspace-mode .header-actions>.settings-button{min-height:44px;min-width:44px;padding:9px 8px;font-size:12px}.workspace-mode .header-actions #openaccount{min-width:44px;max-width:115px;font-size:12px}
 .workspace-mode main{inset:89px 0 0}.workspace-mode .layout,.workspace-mode.sidebar-collapsed .layout{position:absolute;grid-template-columns:0 0 minmax(0,1fr)}.workspace-mode .layout>.schedule{grid-column:3;grid-row:1;height:100%;min-height:0}.workspace-mode .layout>aside{position:absolute;inset:0 auto 0 0;width:min(280px,85vw);height:100%;z-index:85;box-shadow:6px 0 24px #17344526;background:#fff;font-size:14px}.workspace-mode #sidebarresize{display:none}#sidebardismiss{position:absolute;inset:0;z-index:80;background:#17344555;border:0;border-radius:0;width:100%;height:100%;padding:0}html[data-theme=dark].workspace-mode .layout>aside{background:#1b2b38}
 .workspace-mode .schedule{min-width:0;grid-template-rows:90px minmax(0,1fr)}.workspace-mode.demo-mode .schedule{grid-template-rows:90px auto minmax(0,1fr)}.workspace-mode .view-switch{top:auto;right:auto;margin:0 8px 5px}.workspace-mode .view-switch .card-view-picker>#viewcards{font-size:12px;padding:8px 10px}.workspace-mode .view-switch button,.workspace-mode .header-picker>button{min-height:44px;font-size:12px;padding:8px 10px}.workspace-mode .schedulehead{padding-bottom:48px}.workspace-mode .schedule-title #heading{font-size:14px}.workspace-mode .header-menu button{min-height:44px;font-size:13px}.workspace-mode .schedule-title{gap:6px}
 .welcome{padding:26px 18px;gap:26px}.welcome h1{font-size:30px}.welcome-lead{font-size:15px}.welcome-actions{display:grid;grid-template-columns:1fr;margin-top:20px}.welcome-actions button{width:100%;min-height:48px;font-size:15px}.welcome-features{grid-template-columns:1fr;gap:20px;padding-top:22px}.welcome-features h2{font-size:16px}.welcome-features p{font-size:14px}.welcome-preview{padding:15px}.preview-program div span{font-size:12px}.welcome-note{font-size:13px}
 .demo-bar{font-size:11px;padding:8px 10px}.demo-bar span{line-height:1.6}.demo-bar strong{display:block}.demo-bar button{min-height:44px;flex-shrink:0}
 dialog{max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px 18px}dialog label,.settings-help,.help-steps p{font-size:14px}dialog input:not([type=checkbox]),dialog select{font-size:16px}dialog button,.channel-action-menu button,.channel,.group-filter,.group-collapse,.channel-more,.managed-channel .visibility-toggle,.managed-channel .order-grip,.addchannel{min-height:44px}.channel{font-size:13px}.cards-mode:not([data-card-density=compact]) .cardtitle{font-size:12px;line-height:1.65}.cards-mode:not([data-card-density=compact]) .card-channel{font-size:10px}.site-info-links{font-size:13px}.site-info-links a{display:inline-flex;align-items:center;min-height:44px}
}
@media(hover:none){.card:hover{transform:none;box-shadow:none}}

.tt-demo-thumbnail{display:grid;place-items:center;aspect-ratio:16/9;height:auto;min-height:65px;text-align:center;background:linear-gradient(135deg,var(--tone),#22365a);color:#fff;font-size:11px;font-weight:700;padding:8px}

/* Welcome examples use the same card and timetable markup as the schedule. */
#welcometablepanel[hidden],#welcomecardspanel[hidden]{display:none!important}
.welcome-preview{transform:none;min-width:0}.welcome-preview-tabs{display:flex;gap:8px;margin-bottom:14px}.welcome-preview-tabs button{flex:1;min-height:40px;padding:8px;font-size:13px;font-weight:600}.welcome-preview-tabs [aria-selected=true]{background:#087f94;color:#fff;border-color:#087f94}.welcome-preview .preview-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.welcome-preview .stream-card{min-width:0}.welcome-preview .card{pointer-events:none}.welcome-preview .sample{font-size:12px}.welcome-preview .sample small{font-size:8px;letter-spacing:1px}.welcome-preview .cardtitle{font-size:11px;line-height:1.65}.welcome-preview .start-time{font-size:13px}.welcome-preview .card-channel{font-size:9px}.welcome-preview .avatar{width:22px;height:22px}.welcome-preview>p{line-height:1.8;font-size:11px}
.welcome-table-preview{height:400px;overflow:hidden;border:1px solid #c8dce5;border-radius:8px;background:#fff}.welcome-table-preview .timetable-shell{height:400px;overflow:hidden}.welcome-table-preview .example-table-scroll{height:352px;background:#fff;isolation:isolate;min-height:0;overflow:hidden;max-height:none}.welcome-table-preview .timetable{margin-top:calc(-1 * var(--example-offset,1998px))}.welcome-table-preview .tt-header-scroll{overflow:hidden}.welcome-table-preview .tt-edge,.welcome-table-preview .tt-horizontal,.welcome-table-preview .tt-return-now{display:none!important}.welcome-preview .tt-demo-thumbnail{font-size:11px}.welcome-preview .tt-channel{height:48px}
#emptydemo{text-align:center;justify-content:center}
@media(max-width:620px){
 .workspace-mode .header-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:0 8px}.workspace-mode .header-actions>.settings-button{width:100%;max-width:none!important;justify-content:center;text-align:center;padding:8px 4px}.workspace-mode .header-actions #openaccount{max-width:none;font-size:12px}.workspace-mode .header-actions .site-clock{width:auto}
 .workspace-mode .view-switch button,.workspace-mode .view-switch .card-view-picker>#viewcards{min-height:36px;height:36px;padding:5px 10px;font-size:12px}
 .workspace-mode #registeredsidebar{padding:16px 14px}.workspace-mode #registeredsidebar .sidehead h2{font-size:14px;letter-spacing:0}.workspace-mode #registeredsidebar .sidehead button,.workspace-mode #registeredsidebar .group-heading button{font-size:14px;min-height:44px;padding:7px 10px}.workspace-mode #registeredsidebar .group-heading{font-size:14px;margin-top:18px}.workspace-mode #registeredsidebar .group-filter,.workspace-mode #registeredsidebar .channel,.workspace-mode #registeredsidebar .channel .name{font-size:14px}.workspace-mode #registeredsidebar .group-count,.workspace-mode #registeredsidebar .group-bulk-controls button{font-size:12px}.workspace-mode #registeredsidebar .group-bulk-controls button{min-height:40px;padding:7px 4px}.workspace-mode #registeredsidebar .channel{padding:10px 6px;min-height:52px;gap:8px}.workspace-mode #registeredsidebar .channel .avatar{width:32px;height:32px}.workspace-mode #registeredsidebar .channel-more{min-width:36px;min-height:44px;font-size:22px}.workspace-mode #registeredsidebar .group-collapse{font-size:14px;min-width:32px}.workspace-mode #registeredsidebar .addchannel{font-size:14px;padding:12px 6px}
 .welcome-preview-tabs button{font-size:14px;min-height:44px}.welcome-table-preview,.welcome-table-preview .timetable-shell{height:400px}.welcome-table-preview .example-table-scroll{height:352px}
}
html[data-theme=dark] .welcome-preview-tabs button{background:#213644;color:#d7e6ee;border-color:#42606e}html[data-theme=dark] .welcome-preview-tabs [aria-selected=true]{background:#148b9f;color:white}html[data-theme=dark] .welcome-table-preview{background:#253746;border-color:#42606e}

@media(max-width:620px){.workspace-mode #registeredsidebar .group-filter small{font-size:12px}}
html[data-theme=dark] .welcome-table-preview .example-table-scroll{background:#14212d}

@media(max-width:620px){
 .workspace-mode .header-actions>.settings-button{min-height:36px;height:36px;padding-top:5px;padding-bottom:5px}
 .workspace-mode #feed .tt-horizontal{display:none!important}
 .cards-mode #feed .cardbody{height:auto;max-height:none}
}

/* Reserve exactly two text lines at every viewport and card density. */
.cards-mode .card .cardtitle{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.65;height:3.3em;min-height:3.3em;max-height:3.3em;overflow:hidden;overflow-wrap:anywhere;word-break:normal}

/* Keep scrolling cards from showing above the sticky date heading. */
.cards-mode #feed{padding-top:0}

/* Touch opens the short band in place, like the desktop hover expansion. */
.tt-event.tt-short.tt-tap-open{height:auto!important;min-height:var(--tt-height);z-index:14;box-shadow:0 4px 12px #244d6230;border-bottom:4px solid var(--tt-hover-color)}
.tt-short.tt-tap-open .tt-thumbnail{max-height:90px;opacity:1}
.tt-event.tt-short.tt-tap-open .tt-event-copy{max-height:none;overflow:visible;padding-bottom:5px}
.tt-short.tt-tap-open .tt-end-label{position:static;display:block;margin:0;padding-top:0}
.channel-more{display:inline-flex;align-items:center;justify-content:center}
.channel-more svg{display:block;flex-shrink:0}
#welcomecardspanel .preview-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0}
#welcomecardspanel .stream-card,#welcomecardspanel .card{width:100%;min-width:0}
/* Compact confirmation stays visible while the registration dialog scrolls. */
.register-success{display:flex;align-items:flex-start;gap:7px;position:sticky;top:0;z-index:2;margin:10px 0;padding:6px 0;background:#fff;color:#32734e;min-width:0}
.register-success[hidden]{display:none}
.register-success-icon{flex:0 0 16px;font-size:14px;line-height:1.7;font-weight:600}
.register-success #registersuccessname{display:block;min-width:0;font-size:13px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}
html[data-theme=dark] .register-success{background:#1a2633;color:#91caa4}
.group-row>.group-collapse{display:inline-flex;align-items:center;justify-content:center}
.group-collapse svg{display:block;flex-shrink:0;width:18px;height:18px}
#googleloginbutton{display:flex;justify-content:center;min-width:0;width:100%;margin:18px auto 4px}
#accountretrylogin{display:block;margin:14px auto 0}
#accountretrylogin[hidden],#accountname[hidden],#accountstatus[hidden]{display:none}
.managed-channel .order-step,.managed-channel-danger .delete-icon{display:none}
.view-switch .view-mode-icon{display:block;flex:0 0 18px;width:18px;height:18px}
.view-switch #viewcards,.view-switch #viewtimetable{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.stream-card.has-watch-plan{position:relative}
.stream-card.has-watch-plan .card-header{padding-right:35px}
.watch-plan-button{display:grid;place-items:center;position:absolute;top:6px;right:5px;z-index:16;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:5px;background:#fff;color:#6b8390;cursor:pointer}
.watch-plan-button[aria-pressed=true]{color:#e3aa19;background:#fff5d7}
.watch-plan-button:focus-visible{outline:2px solid #07869b;outline-offset:2px}
.tt-event.has-watch-plan .tt-meta{padding-right:22px}
.tt-watch-plan{right:auto;width:26px;height:26px;min-height:26px;background:#ffffffeb}
.tt-event.has-watch-plan .tt-state-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.view-switch #watchonly{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 6px;font-size:11px;white-space:nowrap}
#watchonly>span[aria-hidden]{font-size:17px;line-height:1}
html[data-theme=dark] .watch-plan-button{background:#1c2a38;color:#bdd2df}
html[data-theme=dark] .watch-plan-button[aria-pressed=true]{color:#ffd34f;background:#4d3d20}
@media(min-width:851px){.workspace-mode .schedulehead{padding-right:330px}}
@media(max-width:620px){
 .workspace-mode.timetable-mode .schedule{grid-template-rows:122px minmax(0,1fr)}
 .workspace-mode.demo-mode.timetable-mode .schedule{grid-template-rows:122px auto minmax(0,1fr)}
 .workspace-mode.timetable-mode .schedulehead{padding-bottom:44px}
 .workspace-mode.timetable-mode .schedule-title{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 6px;width:100%;align-content:start;align-items:center}
 .workspace-mode.timetable-mode .schedule-title #heading{grid-column:1;grid-row:1;white-space:nowrap;font-size:12px}
 .workspace-mode.timetable-mode #datepicker{grid-column:2;grid-row:1}
 .workspace-mode.timetable-mode #scopepicker{grid-column:1/-1;grid-row:2}
 .workspace-mode.timetable-mode .schedule-title .header-picker>button{min-height:32px;height:32px;padding:4px 6px}
}
#refreshprogresstext{min-width:0;overflow-wrap:anywhere;line-height:1.6}
#cancelrefresh{flex-shrink:0;white-space:nowrap}
#cancelrefresh[hidden]{display:none}
.update-actions{display:flex;justify-content:flex-end;margin:12px 0}
.update-actions button{min-height:44px;font-size:12px}
@media(max-width:620px){.update-actions button{width:100%;justify-content:center}}
@media(max-width:1024px){
 #channelmanager .managed-channel{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:3px;min-height:56px;padding:6px 0}
 #channelmanager .managed-channel-info{width:auto;align-items:center;gap:6px;min-width:0}
 #channelmanager .managed-channel-info .avatar{width:28px;height:28px}
 #channelmanager .channel-label{display:block;flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #channelmanager .channel-freshness{display:none}
 #channelmanager .managed-channel-actions{width:auto;gap:0;padding:0;justify-content:flex-end}
 #channelmanager .managed-channel-actions .channel-notification{display:flex;justify-content:center;width:30px;min-width:30px;min-height:44px;margin:0}
 #channelmanager .channel-notification span{display:none}
 #channelmanager .channel-notification input{margin:0;width:17px;height:17px}
 #channelmanager .managed-channel-actions>button{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:44px;min-height:44px;padding:0;border:0;background:transparent}
 #channelmanager .managed-channel-actions .order-grip{display:none}
 #channelmanager .order-step{font-size:19px;color:#345869}
 #channelmanager .order-step:disabled{opacity:.25;cursor:default}
 #channelmanager .managed-channel-danger{width:auto;margin:0;padding:0;border:0}
 #channelmanager .managed-channel-danger button{display:grid;place-items:center;width:30px;min-width:30px;height:44px;min-height:44px;padding:0;border:0;background:transparent}
 #channelmanager .delete-label{display:none}
 #channelmanager .managed-channel-danger .delete-icon{display:block}
 html[data-theme=dark] #channelmanager .order-step{color:#c8dce7}
}
@media(hover:none),(pointer:coarse),(max-width:1024px){
 .cards-mode #feed .stream-card,.cards-mode #feed .card[data-preview-video]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
}

/* Timetable stars share the metadata row; only their invisible touch target grows. */
.tt-track{--tt-watch-width:28px;--tt-watch-height:28px}
.tt-event.has-watch-plan .tt-meta{padding-right:24px;flex-wrap:nowrap;align-items:center;min-height:20px}
.tt-event.has-watch-plan .tt-meta b{flex-shrink:0}
.tt-watch-plan,.tt-watch-plan:hover,.tt-watch-plan:active,.tt-watch-plan[aria-pressed=true],html[data-theme=dark] .tt-watch-plan,html[data-theme=dark] .tt-watch-plan[aria-pressed=true]{width:var(--tt-watch-width);height:var(--tt-watch-height);min-height:var(--tt-watch-height);right:auto;padding:0;align-items:start;border:0;border-radius:0;background:transparent;box-shadow:none;color:#718895}
.tt-watch-plan svg{width:17px;height:17px;margin-top:1.5px}
.tt-watch-plan svg path{stroke-width:1.4}
.tt-watch-plan[aria-pressed=true],html[data-theme=dark] .tt-watch-plan[aria-pressed=true]{color:#e3aa19}
html[data-theme=dark] .tt-watch-plan{color:#adc0cd}
@media(pointer:coarse){
 .tt-track{--tt-watch-width:44px;--tt-watch-height:44px}
 .tt-event.has-watch-plan .tt-meta{padding-right:40px}
 .tt-watch-plan,.tt-watch-plan:hover,.tt-watch-plan:active,.tt-watch-plan[aria-pressed=true]{height:44px;min-height:44px}
}

/* Match the proposed, more readable timetable header proportions. */
.tt-event .tt-meta{min-height:20px;align-items:center;gap:4px;margin-bottom:2px}
.tt-event .tt-meta b{font-size:12px;line-height:18px}
.tt-event .tt-meta>.tt-state-label{font-size:10px;line-height:16px}
.tt-event.tt-short .tt-meta{margin-bottom:1px}

/* Move the entire card, including its sibling watch button, as one surface. */
@media(hover:hover){
 .stream-card.has-watch-plan{transition:transform .2s}
 .stream-card.has-watch-plan:hover{transform:translateY(-3px)}
 .stream-card.has-watch-plan>.card:hover{transform:none}
 .stream-card.has-watch-plan:hover>.card{box-shadow:0 8px 25px #244d6214}
}
@media(prefers-reduced-motion:reduce){.stream-card.has-watch-plan{transition:none}}

/* Keep the watch filter visually separate from the two display modes. */
.view-switch{align-items:center}
.view-switch .view-modes{display:flex;align-items:center;gap:3px;margin-left:12px;padding-left:12px;border-left:1px solid #d5e2e8}
.view-switch #watchonly{border-color:transparent;background:transparent;color:#64808e;border-radius:5px}
.view-switch #watchonly:hover{background:#eaf2f5;color:#345a6b}
.view-switch #watchonly[aria-pressed=true]{background:#fff5d7;border-color:transparent;color:#8c650c}
html[data-theme=dark] .view-switch .view-modes{border-left-color:#425665}
html[data-theme=dark] .view-switch #watchonly{background:transparent;border-color:transparent;color:#b9cedb}
html[data-theme=dark] .view-switch #watchonly[aria-pressed=true]{background:#493b21;color:#ffd34f}
@media(max-width:620px){.view-switch .view-modes{margin-left:7px;padding-left:9px}}

.saved-backup-panel{padding-top:12px}
.saved-backup-panel>label{font-size:12px;font-weight:600}
.saved-backup-panel>input,.saved-backup-panel>select{box-sizing:border-box;width:100%;min-height:40px;margin:7px 0 12px;padding:8px 10px;border:1px solid #cbdde4;border-radius:6px;background:#fff;color:inherit;font:inherit;font-size:12px}
.saved-backup-panel button{min-height:40px;font-size:12px}
.saved-backup-confirm{margin:12px 0;padding:12px;border:1px solid #cbdde4;border-radius:6px;background:#f3f8fa}
.saved-backup-confirm[hidden]{display:none}
.saved-backup-confirm p{margin:0 0 10px;font-size:12px;color:inherit;line-height:1.7}
.backup-file-heading{font-size:12px;margin:18px 0 8px;padding-top:16px;border-top:1px solid #dce7ec}
#savedbackupstatus:not(:empty){color:#087f94}
html[data-theme=dark] .saved-backup-panel>input,html[data-theme=dark] .saved-backup-panel>select{background:#20313f;border-color:#425c70}
html[data-theme=dark] .saved-backup-confirm{background:#20313f;border-color:#425c70}
html[data-theme=dark] #savedbackupstatus:not(:empty){color:#77d6e2}
@media(max-width:620px){.saved-backup-panel button,.saved-backup-panel>input,.saved-backup-panel>select{min-height:44px}}

/* A separate viewing link keeps the existing card preview and YouTube taps available. */
.stream-card.has-site-watch>.card{border-bottom-left-radius:0;border-bottom-right-radius:0}
.site-watch-link{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 8px;border:1px solid #dce7ec;border-top:0;border-radius:0 0 6px 6px;background:#f3f8fa;color:#527b8c;font-size:11px;text-decoration:none;line-height:1.5}
.site-watch-link:hover{background:#e5f5f8;color:#087f94}
.site-watch-link:focus-visible{outline:2px solid #07869b;outline-offset:2px}
html[data-theme=dark] .site-watch-link{background:#20313f;color:#a8cedc;border-color:#425c70}
@media(max-width:1024px),(pointer:coarse){.site-watch-link{min-height:44px}}

/* The central watching surface is independent of schedule re-rendering. */
#multiwatch[hidden],#watchpicker[hidden],#watchonly[hidden]{display:none!important}
#multiwatch{grid-row:2;min-height:0;overflow:auto;padding:12px;overscroll-behavior:contain;scrollbar-gutter:stable}
.demo-mode #multiwatch{grid-row:3}
.watch-mode :is(#allchannels,.group-heading,.group-bulk-controls,#groupfilters,#add2),.watch-mode :is(#datepicker,#scopepicker,#errorbadge){display:none!important}
.watch-mode #heading{font-size:16px}
.watch-mode #registeredsidebar{overflow-y:auto}
#watchpicker h3{font-size:12px;margin:12px 0 8px;color:#52798b}
#watchpickersearch{width:100%;min-height:40px;border:1px solid #cbdde4;border-radius:5px;padding:8px;font:inherit;font-size:12px;margin:4px 0 8px}
.watch-channel-picker{border-bottom:1px solid #e1ebef;padding:4px 0}
.watch-channel-picker>summary{display:flex;align-items:center;gap:6px;cursor:pointer;min-height:42px;font-size:12px;list-style:none}
.watch-channel-picker>summary:before{content:'▸';color:#6c8997;flex-shrink:0}
.watch-channel-picker[open]>summary:before{content:'▾'}
.watch-channel-picker>summary::-webkit-details-marker{display:none}
.watch-channel-picker>summary .avatar{width:23px;height:23px}
.watch-channel-picker>summary>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.watch-channel-picker>summary>small{font-size:10px;color:#8299a4}
.watch-stream-choice{display:flex;align-items:flex-start;gap:7px;padding:9px 3px;cursor:pointer;font-size:12px;border-radius:4px;min-height:44px}
.watch-stream-choice:not([aria-pressed=true]):hover{background:#f1f3f4}
.watch-stream-choice>input{flex-shrink:0;width:17px;height:17px;margin:5px 0 0;accent-color:#16aabf}
.watch-stream-choice>span{min-width:0;line-height:1.6;overflow-wrap:anywhere}
.watch-stream-choice small{display:block;font-size:10px;color:#77929e}
.watch-stream-choice>span>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.watch-picker-empty{font-size:11px;padding:0 4px;line-height:1.7}
#watchpickerdone{display:none}
.multi-watch-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 6px;font-size:12px}
.multi-watch-toolbar>label{display:flex;align-items:center;gap:6px;margin-left:auto}
.multi-watch-toolbar select,.multi-watch-toolbar button{min-height:36px;font-size:12px;padding:5px 9px;border:1px solid #cbdde4;border-radius:5px;background:#fff;color:inherit}
.multi-watch-hint{font-size:11px;margin:0 0 12px;line-height:1.7;color:#72909e}
.multi-watch-grid{display:grid;grid-template-columns:repeat(var(--watch-columns,1),minmax(0,1fr));align-items:start;gap:12px;min-width:0}
.multi-watch-tile{min-width:0;overflow:hidden;border:1px solid #ccdee7;border-radius:7px;background:#fff}
.multi-watch-tile-head{display:flex;align-items:center;gap:8px;padding:7px 10px;min-height:44px}
.multi-watch-tile-head strong{flex:1;min-width:0;font-size:12px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.multi-watch-tile-head button{border:0;background:transparent;padding:2px;width:30px;min-height:30px;font-size:22px;flex-shrink:0;color:#668592}
.multi-watch-frame{position:relative;aspect-ratio:16/9;min-height:200px;background:#101820;color:#e7f2f6}
.multi-watch-frame>iframe,.multi-watch-frame>div{position:absolute;inset:0;width:100%;height:100%;border:0}
.multi-watch-demo{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#197e97,#61569b);font-size:clamp(20px,3vw,36px);font-weight:600}
.multi-watch-tile-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 10px;font-size:11px;line-height:1.6;color:#658391}
.multi-watch-tile-foot>span{flex:1;min-width:0}
.multi-watch-tile-foot>a{color:#087e94;text-decoration:none;white-space:nowrap}
.multi-watch-tile-foot>button{padding:4px 7px;font-size:11px}
.multi-watch-empty{padding:60px 20px;text-align:center;color:#73909e;font-size:13px}
.multi-watch-empty[hidden]{display:none}
#viewwatch{display:inline-flex;align-items:center;justify-content:center;gap:5px}
@media(min-width:851px){.workspace-mode .schedulehead{padding-right:400px}}
html[data-theme=dark] :is(.multi-watch-tile,.multi-watch-toolbar select,.multi-watch-toolbar button,#watchpickersearch){background:#20313f;border-color:#425c70;color:#c8dce7}
html[data-theme=dark] .watch-channel-picker{border-color:#425665}
html[data-theme=dark] .watch-stream-choice:not([aria-pressed=true]):hover{background:#353b40}
html[data-theme=dark] .multi-watch-tile-foot>a{color:#7bd8e5}
@media(max-width:620px){
 #viewwatch .watch-mode-label{display:none}
 .workspace-mode .view-switch #viewwatch{padding:5px 6px;min-width:32px}
 .workspace-mode .view-switch .view-modes{gap:2px;margin-left:4px;padding-left:7px}
 .workspace-mode .view-switch #viewcards,.workspace-mode .view-switch #viewtimetable{padding-left:7px;padding-right:7px}
 .watch-mode .schedulehead{padding-bottom:38px}
 .watch-mode #multiwatch{padding:8px}
 .multi-watch-toolbar{gap:6px;font-size:11px}
 .multi-watch-toolbar select,.multi-watch-toolbar button{min-height:40px;font-size:11px;padding:5px 7px}
 #watchpickerdone{display:block;position:sticky;bottom:0;min-height:44px;width:100%;margin-top:12px;background:#159fb4;color:#fff;border:0}
 .watch-mode:not(.sidebar-collapsed) .multi-watch-grid{visibility:hidden}
}

.multi-watch-tile [hidden]{display:none!important}
.multi-watch-frame{height:var(--watch-frame-height,auto)}

/* Keep each viewer centered at the actual video width. */
.multi-watch-tile{width:100%;max-width:var(--watch-tile-width,100%);justify-self:center}
.multi-watch-frame{width:100%;margin-inline:auto}
.multi-watch-tile-head :is(strong,a){flex:1;min-width:0;font-size:12px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:inherit;text-decoration:none}
.multi-watch-tile-head a:hover{text-decoration:underline;text-underline-offset:3px}
.multi-watch-tile-head a:focus-visible{outline:2px solid #16aabf;outline-offset:2px}
.watch-choice-thumb{width:64px;height:36px;object-fit:cover;flex:none;border-radius:3px;margin-top:3px}
.watch-choice-demo{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#197e97,#61569b);color:white;font-size:9px;text-align:center;overflow:hidden}
.watch-stream-choice>.watch-choice-copy{flex:1;min-width:0}
.watch-stream-choice>.watch-choice-thumb{line-height:1.2;overflow-wrap:normal}
.multi-watch-volume{display:flex;align-items:center;gap:6px;min-height:32px;margin-left:auto;cursor:ns-resize;white-space:nowrap}
.multi-watch-volume input{width:76px;min-width:0;accent-color:#16aabf;cursor:pointer}
.multi-watch-volume output{min-width:30px;text-align:right;font-variant-numeric:tabular-nums}

.watch-stream-choice{display:grid;grid-template-columns:17px minmax(0,1fr);align-items:start;column-gap:7px;row-gap:4px}
.watch-stream-choice>input{grid-column:1;grid-row:1 / span 2}
.watch-stream-choice>.watch-choice-thumb{grid-column:2;width:100%;height:auto;aspect-ratio:16/9;margin-top:0}
.watch-stream-choice>.watch-choice-copy{grid-column:2}

.multi-watch-url-form{margin:8px 0 12px;font-size:12px}
.multi-watch-url-form>label{display:block;margin-bottom:6px}
.multi-watch-url-form>div{display:flex;gap:8px;max-width:720px}
.multi-watch-url-form input{flex:1;min-width:0;min-height:40px;border:1px solid #cbdde4;border-radius:5px;padding:8px 10px;background:#fff;color:inherit;font-size:14px}
.multi-watch-url-form button{min-height:40px;padding:8px 12px;background:#159fb4;border:0;border-radius:5px;color:#fff;white-space:nowrap;font-size:12px}
.multi-watch-url-form p{margin:5px 0;color:#668592;line-height:1.6}
html[data-theme=dark] .multi-watch-url-form input{background:#20313f;border-color:#425c70}
@media(max-width:400px){.multi-watch-url-form>div{flex-wrap:wrap}.multi-watch-url-form input{flex-basis:100%}}

#multiwatchcount[hidden],#multiwatchhint[hidden]{display:none!important}

#watchpicker .multi-watch-url-form{margin:12px 0 18px;padding-bottom:14px;border-bottom:1px solid #dce8ed}
#watchpicker .multi-watch-url-form>div{flex-direction:column;gap:7px}
#watchpicker .multi-watch-url-form input{width:100%;box-sizing:border-box;min-height:44px}
#watchpicker .multi-watch-url-form button{width:100%;min-height:40px}
#watchpicker .multi-watch-url-form p{font-size:11px;overflow-wrap:anywhere}
html[data-theme=dark] #watchpicker .multi-watch-url-form{border-color:#425665}

#multiwatchtoolbar[hidden]{display:none!important}
.view-switch .multi-watch-toolbar{flex-wrap:nowrap;margin:0;gap:6px}
.view-switch .multi-watch-toolbar>label{margin:0;white-space:nowrap}
.view-switch .multi-watch-toolbar select{min-height:36px}
.watch-mode .view-switch{max-width:calc(100% - 16px)}
.watch-mode #selectionname{display:none}
.workspace-mode.watch-mode .schedulehead{padding-right:650px}
#multiwatchclear:not(:disabled):hover,#multiwatchclear:not(:disabled):focus-visible{color:#d52e42;border-color:#d52e42;background:transparent}
@media(max-width:1100px){.workspace-mode.watch-mode .schedulehead{padding-right:8px;align-items:flex-start;padding-top:7px}.workspace-mode.watch-mode .schedule{grid-template-rows:88px minmax(0,1fr)}.workspace-mode.watch-mode .view-switch{position:relative;grid-row:1;grid-column:1;align-self:end;justify-self:end;top:auto;right:auto;margin:0 8px 6px}.workspace-mode.watch-mode .schedulehead{grid-row:1;grid-column:1;padding-bottom:44px}}
@media(max-width:620px){.workspace-mode.watch-mode .schedule{grid-template-rows:126px minmax(0,1fr)}.workspace-mode.watch-mode .schedulehead{padding-bottom:86px;min-height:126px}.workspace-mode.watch-mode .view-switch{flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:calc(100% - 12px)}.view-switch .multi-watch-toolbar{flex:1 1 100%;justify-content:flex-end;font-size:11px;gap:5px}.view-switch .multi-watch-toolbar button{padding:5px 7px;font-size:11px}.view-switch .multi-watch-toolbar select{font-size:11px;min-width:52px}}

.multi-watch-grid{min-width:var(--watch-grid-min-width,0px)}
.watch-available-filter{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:1.6;margin:12px 0;cursor:pointer;text-align:left}
.watch-available-filter input{flex:none;width:17px;height:17px;margin:2px 0;accent-color:#16aabf}
.watch-empty-browser{padding:4px 4px 20px;min-width:0;text-align:left}
.watch-empty-browser>h3{font-size:16px;margin:6px 0 16px}
.watch-bulk-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:-12px;background:#f4f8fa;padding:8px 0;z-index:1}
.watch-bulk-actions .watch-available-filter{margin:0}
#watchbulkadd{min-height:40px;font-size:12px;padding:8px 12px;background:#159fb4;color:#fff;border:1px solid #159fb4;border-radius:5px}
#watchbulkadd:disabled{opacity:.45;cursor:default}
#watchbulklist h3{font-size:12px;color:#77929e;margin:18px 0 8px}
.watch-bulk-channel{margin-bottom:18px;padding:12px;background:#fff;border:1px solid #d5e4eb;border-radius:7px}
.watch-bulk-channel h4{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px}
.watch-bulk-channel h4 .avatar{width:28px;height:28px}
.watch-bulk-channel h4 small{color:#77929e;font-weight:400}
.watch-bulk-streams{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));gap:12px}
.watch-bulk-streams .watch-stream-choice{padding:6px;align-content:start;border:1px solid #e0ebef}
.watch-bulk-streams .watch-stream-choice:has(input:checked){background:#e7f7fa;border-color:#17aabe}
html[data-theme=dark] .watch-bulk-actions{background:#172632}
html[data-theme=dark] .watch-bulk-channel{background:#20313f;border-color:#425c70}
html[data-theme=dark] .watch-bulk-streams .watch-stream-choice:has(input:checked){background:#24414c}

.watch-video-details{padding:8px 10px;border-top:1px solid #deeaef;font-size:11px;line-height:1.7;min-width:0;color:#658391}
.watch-video-channel{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:12px;color:#34586a}
.watch-video-channel img{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
.watch-video-channel span{min-width:0;overflow-wrap:anywhere}
.watch-video-progress,.watch-broadcast-time{font-variant-numeric:tabular-nums}
.watch-video-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.watch-video-actions button{padding:5px 7px;font-size:11px;min-height:34px;border:1px solid #ccdee7;background:transparent;color:inherit;border-radius:4px}
.watch-video-actions button[aria-pressed=true]{color:#087e94;border-color:#13a9bd;background:#e9f8fa}
.watch-chat-panel{position:relative;margin:7px -2px 0;padding:4px 6px;border-radius:4px;background:#edf5f7;min-height:64px;overflow:hidden}
.watch-chat-panel[hidden]{display:none!important}
.watch-chat-note{font-size:10px;display:block}
.watch-chat-messages{position:relative;min-height:36px;overflow:hidden}
html[data-theme=dark] .watch-video-details{border-color:#425665;color:#b9cedb}
html[data-theme=dark] .watch-chat-panel{background:#182c38}

.watch-channel-initial{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#d8f1f5;color:#168294;font-size:12px}
.watch-channel-initial[hidden]{display:none!important}

/* Header identity and one compact playback/control row below each video. */
.multi-watch-tile-head .watch-video-channel{margin:0 0 0 auto;justify-content:flex-end;text-align:right;max-width:45%;flex:0 1 auto;min-width:0;font-size:11px;line-height:1.4}
.multi-watch-tile-head .watch-video-channel>span:not(.watch-channel-initial){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.multi-watch-tile-head .watch-video-channel img,.multi-watch-tile-head .watch-channel-initial{width:22px;height:22px;min-width:22px}
.multi-watch-tile-foot{gap:6px 10px;align-items:center}
.multi-watch-tile-foot>span[role=status]{flex:0 0 auto}
.multi-watch-tile-foot .watch-video-progress{font-size:11px;line-height:1.6;min-width:0;overflow-wrap:anywhere}
.multi-watch-tile-foot .watch-viewers{font-size:11px;line-height:1.6;white-space:nowrap}
.multi-watch-tile-foot .watch-video-actions{margin:0;gap:5px;align-items:center}
.multi-watch-tile-foot .watch-video-actions button{min-height:30px;padding:3px 6px;font-size:10px}
.watch-video-details{border-top:0;padding:0 10px;font-size:11px}
.watch-video-details:has(.watch-chat-panel[hidden]){display:none}
.watch-video-details .watch-chat-panel{margin:0 0 8px}
.multi-watch-tile-foot .multi-watch-volume{margin-left:auto}
@media(max-width:620px){.multi-watch-tile-head .watch-video-channel{font-size:10px;max-width:43%;gap:4px}.multi-watch-tile-foot{gap:5px 7px}.multi-watch-tile-foot .watch-video-progress{font-size:10px}}

.watch-chat-panel{position:static;overflow:visible;min-height:0;padding:8px;background:#f3f8fa}
.watch-chat-note{font-size:11px;color:#72909e;line-height:1.6}
.watch-chat-note:empty{display:none}
.watch-chat-messages{position:static;min-height:100px;max-height:240px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;outline-offset:2px}
.watch-chat-message{padding:7px 5px;border-bottom:1px solid #e0ebef;line-height:1.6;font-size:12px;overflow-wrap:anywhere}
.watch-chat-message:last-child{border-bottom:0}
.watch-chat-message-heading{display:flex;align-items:baseline;gap:8px;font-size:11px}
.watch-chat-message-heading strong{min-width:0;overflow-wrap:anywhere;color:#34586a}
.watch-chat-message-heading time{flex:none;font-size:10px;color:#8199a4;font-variant-numeric:tabular-nums}
.watch-chat-message-body{white-space:pre-wrap;color:#34586a}
html[data-theme=dark] .watch-chat-message{border-color:#425665}
html[data-theme=dark] .watch-chat-message-heading strong,html[data-theme=dark] .watch-chat-message-body,html[data-theme=dark] .watch-video-channel{color:#d4e6ed}

.watch-status-group>h3{position:sticky;top:0;z-index:1;background:#f0f6f8;border-left:3px solid #86a9b9;padding:7px 6px;margin:14px 0 6px;font-size:12px;font-weight:600;color:#34586a}
.watch-status-group[data-watch-status=live]>h3{border-left-color:#ed5472}
.watch-status-group[data-watch-status=upcoming]>h3{border-left-color:#16aabf}
.watch-choice-channel{display:flex;align-items:center;gap:4px;font-size:10px;line-height:1.4;margin:3px 0}
.watch-choice-channel img{width:19px;height:19px;border-radius:50%;flex:none}
.watch-choice-channel>span{min-width:0;overflow-wrap:anywhere}
.watch-limit-note{font-size:11px;line-height:1.6;padding:7px 9px;margin:7px 0;background:#fff5df;border:1px solid #ead1a1;border-radius:4px;color:#795c2e}
.watch-limit-note[hidden]{display:none!important}
.watch-stream-choice:has(input:disabled){opacity:.55;cursor:default}
.watch-stream-choice:has(input:checked){background:#e8f7fa}
html[data-theme=dark] .watch-status-group>h3{background:#243b49;color:#d4e6ed}
html[data-theme=dark] .watch-limit-note{background:#3c3323;color:#edd9ab;border-color:#6b593a}
html[data-theme=dark] .watch-stream-choice:has(input:checked){background:#24414c}

.watch-stream-choice .watch-choice-channel{display:flex;-webkit-line-clamp:unset;-webkit-box-orient:initial}

.watch-mode #registeredsidebar>.sidehead{display:none}
#watchpickertitle{font-size:15px;margin:4px 0 14px;color:inherit}
#watchpicker{container-type:inline-size;container-name:watch-picker}
#watchpicker .multi-watch-url-form>div{flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:6px}
#watchpicker .multi-watch-url-form input{flex:1 1 0;width:auto;min-width:0}
#watchpicker .multi-watch-url-form button{flex:0 0 auto;width:auto;min-height:44px;margin-left:auto;padding:7px 10px}
.multi-watch-url-form p:empty{display:none}
.watch-status-tabs{display:flex;position:sticky;top:0;z-index:3;gap:2px;padding:10px 0 5px;background:#f4f8fa;border-bottom:1px solid #dce7ec;margin:4px 0 9px}
.watch-status-tabs button{flex:1 1 0;min-width:0;min-height:40px;padding:5px 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:#72909e;font-size:10px;line-height:1.4;cursor:pointer;white-space:normal}
.watch-status-tabs button[aria-selected=true]{color:#078ca3;border-bottom-color:#16aabf;background:#e6f6f9;font-weight:600}
.watch-status-tabs button:focus-visible{outline:2px solid #16aabf;outline-offset:-2px}
.watch-status-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.watch-status-cards .watch-stream-choice{margin:0;align-content:start;border:1px solid #dce8ed;padding:7px 4px}
.watch-bulk-actions{justify-content:flex-end}
@container watch-picker (min-width:340px){.watch-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.watch-status-tabs button{font-size:12px;padding:7px 4px}}
html[data-theme=dark] .watch-status-tabs{background:#20313f;border-color:#425c70}
html[data-theme=dark] .watch-status-tabs button[aria-selected=true]{background:#24414c;color:#7bd8e5}
html[data-theme=dark] .watch-status-cards .watch-stream-choice{border-color:#425c70}

.watch-picker-search{position:relative;min-width:0}
.watch-picker-search>svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);pointer-events:none;color:#7796a4}
#watchpicker .watch-picker-search>#watchpickersearch{padding-left:33px;box-sizing:border-box;width:100%}

/* Compact URL controls and one shared status-tab frame. */
.multi-watch-url-form input,#watchpicker .multi-watch-url-form input{box-sizing:border-box;height:36px;min-height:36px;padding:6px 9px}
.multi-watch-url-form button,#watchpicker .multi-watch-url-form button{min-height:36px;padding:6px 10px}
.watch-status-tabs{gap:0;padding:3px;border:1px solid #dce7ec;border-radius:6px;background:#f4f8fa}
.watch-status-tabs button{display:flex;align-items:center;justify-content:center;text-align:center;border:0;border-radius:3px}
.watch-status-tabs button[aria-selected=true]{border:0;background:#e6f6f9}
.watch-status-cards .watch-stream-choice>input{grid-row:1;margin-top:3px}
.watch-status-cards .watch-choice-heading{grid-column:2;grid-row:1;font-size:13px;line-height:1.6;font-weight:600;color:#34586a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.watch-status-cards .watch-stream-choice>.watch-choice-thumb{grid-row:2}
.watch-status-cards .watch-stream-choice>.watch-choice-copy{grid-row:3}
html[data-theme=dark] .watch-status-cards .watch-choice-heading{color:#d4e6ed}

/* Preserve the video ratio while multi-column cards fill their grid cells. */
.multi-watch-frame{height:auto;min-height:0;aspect-ratio:16/9}

#multiwatch:fullscreen,#multiwatch.watch-fullscreen-fallback{display:block!important;box-sizing:border-box;width:100%;height:100%;padding:48px 12px 12px;background:#f4f8fa;overflow:auto}
#multiwatch.watch-fullscreen-fallback{position:fixed;inset:0;z-index:10000;height:100dvh}
.watch-fullscreen-exit{position:fixed;top:8px;right:12px;z-index:2;min-height:32px;padding:5px 12px;border:1px solid #bdd6e0;border-radius:5px;background:#fff;color:#34586a;cursor:pointer}
html[data-theme=dark] #multiwatch:fullscreen,html[data-theme=dark] #multiwatch.watch-fullscreen-fallback{background:#162733}
html[data-theme=dark] .watch-fullscreen-exit{background:#20313f;color:#d4e6ed;border-color:#425c70}

#multiwatch:fullscreen .multi-watch-grid,#multiwatch.watch-fullscreen-fallback .multi-watch-grid{visibility:visible}

/* Keep viewer chrome on one line; long text remains available on hover. */
.multi-watch-tile-head{flex-wrap:nowrap;min-height:34px;padding:5px 8px}
.multi-watch-tile-head :is(strong,a){display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:unset}
.multi-watch-tile-head .watch-video-channel{flex:0 1 38%;white-space:nowrap}
.multi-watch-tile-foot{flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;padding:5px 8px;min-width:0}
.multi-watch-tile-foot>*{flex-shrink:0}
.multi-watch-tile-foot .watch-video-progress{white-space:nowrap;overflow-wrap:normal}
.multi-watch-tile-foot .multi-watch-volume{flex:none;margin-left:auto}
#multiwatchfeedback{display:none!important}

/* Compact single-line player controls without a per-card scrollbar. */
.multi-watch-tile{container-type:inline-size}
.multi-watch-tile-foot{overflow:hidden;gap:5px;padding:5px 6px}
.multi-watch-tile-foot>span[role=status]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.multi-watch-tile-foot .watch-video-progress{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.multi-watch-tile-foot .watch-viewers{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.multi-watch-volume{gap:4px;min-width:0}
.multi-watch-volume input{width:44px;flex-shrink:1}
.multi-watch-volume output{min-width:25px}
@container (max-width:460px){.multi-watch-tile-foot,.multi-watch-tile-foot .watch-video-progress,.multi-watch-tile-foot .watch-viewers{font-size:10px}.multi-watch-volume>span{display:none}.multi-watch-tile-foot .watch-video-actions button{padding:3px 4px}.multi-watch-volume input{width:34px}}
#multiwatch:fullscreen,#multiwatch.watch-fullscreen-fallback{padding:12px}
.watch-fullscreen-exit{opacity:0;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);transition:opacity .15s ease;box-shadow:0 2px 8px #1232}
.watch-fullscreen-exit:hover,.watch-fullscreen-exit:focus-visible{opacity:.85}
html[data-theme=dark] .watch-fullscreen-exit{background:rgba(32,49,63,.78)}
@media(hover:none){.watch-fullscreen-exit{opacity:.7}}

/* Group readouts left and player actions right. */
.multi-watch-tile-foot .watch-video-progress{flex:0 1 auto}
.multi-watch-tile-foot .watch-video-actions{margin-left:auto;flex:0 0 auto}
.multi-watch-tile-foot .multi-watch-volume{margin-left:0}
.multi-watch-tile-foot .multi-watch-volume input{width:76px}
#multiwatch:fullscreen,#multiwatch.watch-fullscreen-fallback{overflow:hidden;scrollbar-gutter:auto}

.multi-watch-tile-foot .multi-watch-volume{order:4;margin-left:auto}
.multi-watch-tile-foot .watch-video-actions{order:5;margin-left:0}
.multi-watch-tile-head .watch-window-drag{width:22px;min-height:28px;padding:0;font-size:20px;cursor:grab;touch-action:none;color:#7796a4}
.watch-window-drag:active{cursor:grabbing}
.watch-reordering .multi-watch-frame{pointer-events:none}
.watch-reordering .multi-watch-tile{outline:1px dashed #8dbac8;outline-offset:-1px}

.multi-watch-tile.watch-drop-target{outline:2px solid #16aabf;outline-offset:-2px;background:#eaf8fa}
.watch-window-drag{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}

.watch-order-menu{position:relative;font-size:12px}
.watch-order-menu>summary{list-style:none;cursor:pointer;white-space:nowrap;padding:8px 10px;border:1px solid #ccdee7;border-radius:5px;background:#fff;color:#34586a}
.watch-order-menu>summary::-webkit-details-marker{display:none}
.watch-order-panel{position:absolute;right:0;top:calc(100% + 5px);z-index:60;width:min(380px,85vw);padding:12px;border:1px solid #ccdee7;border-radius:7px;background:#fff;box-shadow:0 5px 20px #1232}
.watch-order-panel>label{display:flex;align-items:center;justify-content:space-between;gap:12px}
#watchorderlist{list-style:none;margin:10px 0 0;padding:0;max-height:55vh;overflow:auto;touch-action:none}
#watchorderlist li{display:flex;align-items:center;gap:7px;padding:7px 3px;border-bottom:1px solid #e2edf1;cursor:grab;user-select:none}
#watchorderlist li>span{flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#watchorderlist small{white-space:nowrap;color:#72909e}
#watchorderlist .watch-order-grip{padding:0;width:25px;min-height:30px;border:0;background:transparent;font-size:20px;cursor:grab;touch-action:none}
#watchorderlist .watch-order-target{background:#e6f6f9;outline:1px solid #16aabf;outline-offset:-1px}
html[data-theme=dark] :is(.watch-order-menu>summary,.watch-order-panel){background:#20313f;color:#d4e6ed;border-color:#425c70}

#watchorderlist{touch-action:pan-y}

.watch-choice-live{display:inline-block;background:#e51b32;color:#fff;padding:1px 4px;border-radius:3px;font-size:11px;line-height:1.4;font-weight:700}
.watch-choice-live.members-only{background:#27864c}
.watch-column-picker .header-menu{left:0;right:auto;width:110px;min-width:0}
.multi-watch-toolbar .watch-column-picker>button{border:1px solid #ccdee7;background:#fff;border-radius:5px;padding:8px 10px;font-weight:400}
.multi-watch-toolbar .watch-column-picker .header-menu button{display:block;text-align:left;width:100%;border:0}
#multiwatchlayout[hidden]{display:none!important}

.multi-watch-tile-head,.multi-watch-tile-foot{zoom:var(--watch-chrome-scale,1)}

.multi-watch-tile-foot button.watch-viewers{border:0;background:transparent;color:inherit;padding:0;font:inherit;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.watch-chart-plot{aspect-ratio:16/9;width:100%;display:flex;align-items:center;justify-content:center;color:#658391;background:#f8fbfc}
.watch-chart-plot svg{width:100%;height:100%;font:12px sans-serif}
.watch-chart-tile .multi-watch-tile-head strong{font-weight:600}
html[data-theme=dark] .watch-chart-plot{background:#1b2e3b;color:#c0d5df}

.multi-watch-grid{grid-auto-rows:var(--watch-row-height,auto)}
.watch-empty-slot{min-width:0;align-self:stretch;border-radius:7px;pointer-events:auto}
.watch-reordering .watch-empty-slot{outline:1px dashed #b6d2dd;outline-offset:-2px;background:#eaf5f833}
.watch-reordering .watch-empty-slot.watch-drop-target{outline:2px solid #16aabf;background:#dff4f8}

.multi-watch-tile{box-sizing:border-box;height:var(--watch-card-height,auto);display:flex;flex-direction:column}
.multi-watch-tile-head{box-sizing:border-box;flex:none;height:var(--watch-header-height,auto)}
.multi-watch-tile-foot{box-sizing:border-box;flex:none;height:var(--watch-footer-height,auto)}
.multi-watch-frame,.watch-chart-plot{flex:none}
.watch-chart-tile .watch-chart-plot{aspect-ratio:16/9}
.watch-grid-menu.header-menu{width:230px;padding:10px}
.watch-grid-options{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.multi-watch-toolbar .watch-grid-menu .watch-grid-options button{width:100%;height:24px;min-height:24px;padding:0;border:1px solid #bdd3dd;border-radius:3px;background:#f3f8fa}
.multi-watch-toolbar .watch-grid-menu .watch-grid-options button[data-highlight=true]{background:#bdeaf0;border-color:#16aabf}
.multi-watch-toolbar .watch-grid-menu .watch-grid-options button:hover,.multi-watch-toolbar .watch-grid-menu .watch-grid-options button:focus-visible{background:#16aabf;outline:2px solid #078ca3;outline-offset:1px}
.watch-grid-menu output{display:block;text-align:center;margin-top:9px;font-size:12px;color:#527b8c}

.watch-video-details:empty{display:none}

.multi-watch-tile-foot button.watch-viewers{text-decoration:none}
.multi-watch-tile-foot button.watch-viewers:hover,.multi-watch-tile-foot button.watch-viewers:focus-visible{text-decoration:underline solid;text-underline-offset:3px}
.multi-watch-frame,.watch-chart-plot{box-sizing:border-box;height:var(--watch-media-height,auto)}
.watch-chart-tile .multi-watch-tile-head>strong{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.watch-chart-tile .multi-watch-tile-head>.watch-video-channel{margin-left:auto;flex:0 1 45%}

.watch-grid-options{grid-template-columns:repeat(8,minmax(0,1fr))}
.watch-grid-menu.header-menu{width:280px}
.multi-watch-tile-head{align-items:center;gap:5px}
.multi-watch-tile-head :is(a,strong){flex:1 1 auto;min-width:0;max-width:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.multi-watch-tile-head .watch-video-channel,.watch-chart-tile .multi-watch-tile-head>.watch-video-channel{flex:0 1 auto;max-width:50%;width:auto;margin-left:auto;white-space:nowrap}
.multi-watch-tile-head .watch-close-button{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:24px;height:28px;min-height:28px;padding:0;line-height:1;flex:0 0 24px}
.multi-watch-tile-head .watch-tile-size{width:auto;min-width:28px;min-height:26px;padding:2px;font-size:10px;color:#668592;flex:none}
.viewer-live-dot{transform-box:fill-box;transform-origin:center;animation:viewerDotPulse 2.5s ease-in-out infinite}
@keyframes viewerDotPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.78;transform:scale(1.2)}}
@media(prefers-reduced-motion:reduce){.viewer-live-dot{animation:none}}
.live-ticker{flex:1 1 0;min-width:0;overflow:hidden;margin:0 16px;text-align:right}
.live-ticker[hidden]{display:none}
.ticker-track{display:flex;justify-content:flex-end;width:max-content;min-width:100%;gap:0}
.ticker-copy{display:flex;align-items:center;gap:28px;padding-right:28px;flex:none;white-space:nowrap}
.ticker-copy[aria-hidden=true]{display:none}
.ticker-item{display:inline-flex;gap:6px;align-items:center;color:#e51b32;text-decoration:none;font-size:12px;white-space:nowrap}
.ticker-item.members-only{color:#27864c}
.ticker-item img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.ticker-item:hover{text-decoration:underline}
.live-ticker[data-overflow=true] .ticker-track{justify-content:flex-start;animation:liveTickerScroll var(--ticker-duration,25s) linear infinite}
.live-ticker[data-overflow=true] .ticker-copy[aria-hidden=true]{display:flex}
.live-ticker:hover .ticker-track,.live-ticker:focus-within .ticker-track{animation-play-state:paused}
@keyframes liveTickerScroll{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.live-ticker[data-overflow=true] .ticker-track{animation:none}.live-ticker{overflow:auto}}
@media(max-width:620px){.workspace-mode header:has(.live-ticker:not([hidden])){height:114px;min-height:114px}.workspace-mode .live-ticker{order:2;flex:0 0 22px;width:100%;margin:0}.ticker-item{font-size:11px}.ticker-item img{width:20px;height:20px}}

@media(max-width:620px){.workspace-mode:has(.live-ticker:not([hidden])) main{inset:114px 0 0}}

#multiwatchfullscreenexit[hidden]{display:none!important}
@container (max-width:240px){
 .multi-watch-tile-head{padding:3px 4px;gap:3px}
 .multi-watch-tile-head .watch-window-drag{width:18px;min-width:18px;flex:0 0 18px;font-size:16px}
 .multi-watch-tile-head .watch-tile-size{width:24px;min-width:24px;flex:0 0 24px;font-size:9px}
 .multi-watch-tile-head .watch-close-button{width:20px;min-width:20px;flex:0 0 20px;font-size:18px}
 .multi-watch-tile-head .watch-video-channel{flex:0 0 20px;min-width:20px;max-width:20px;gap:0}
 .multi-watch-tile-head .watch-video-channel img,.multi-watch-tile-head .watch-channel-initial{width:20px;height:20px;min-width:20px}
 .multi-watch-tile-head .watch-video-channel>span:not(.watch-channel-initial){display:none}
 .multi-watch-tile-head :is(a,strong){font-size:10px;flex:1 1 0}
}

.watch-chart-plot[data-stale=true] .viewer-live-dot{animation:none}

.watch-status-cards .watch-stream-choice{grid-template-columns:minmax(0,1fr);cursor:pointer}
.watch-status-cards .watch-stream-choice>:is(.watch-choice-heading,.watch-choice-thumb,.watch-choice-copy){grid-column:1}
.watch-status-cards .watch-stream-choice[aria-pressed=true]{background:#e8f7fa}
.watch-status-cards .watch-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.watch-choice-when{min-width:0}
.watch-choice-heading .watch-choice-plan{position:static;flex:0 0 28px;min-width:28px;width:28px;height:28px;min-height:28px;margin:0;padding:3px;background:transparent;box-shadow:none}
.watch-status-cards .watch-stream-choice:focus-visible{outline:2px solid #16aabf;outline-offset:1px}
.watch-auto-note{font-size:12px;line-height:1.7;color:#72909e;margin:18px 0 8px}
.watch-chart-plot svg{fill:currentColor}
html[data-theme=dark] .watch-chart-plot,html[data-theme=dark] .watch-chart-tile .multi-watch-tile-head,html[data-theme=dark] .watch-chart-tile .multi-watch-tile-foot,html[data-theme=dark] .watch-chart-tile .watch-video-channel{color:#fff}
html[data-theme=dark] .watch-status-cards .watch-stream-choice[aria-pressed=true]{background:#24414c}

.watch-status-tabs{padding:0;overflow:hidden}
.watch-status-tabs button{border-radius:0}
.watch-status-tabs button:first-child{border-radius:5px 0 0 5px}
.watch-status-tabs button:last-child{border-radius:0 5px 5px 0}
.multi-watch-tile-head :is(.watch-window-drag,.watch-tile-size){opacity:0;pointer-events:none;transition:opacity .12s ease}
.multi-watch-tile-head:hover :is(.watch-window-drag,.watch-tile-size),.multi-watch-tile-head:focus-within :is(.watch-window-drag,.watch-tile-size),.multi-watch-tile-head.watch-controls-open :is(.watch-window-drag,.watch-tile-size),.watch-reordering .multi-watch-tile-head :is(.watch-window-drag,.watch-tile-size){opacity:1;pointer-events:auto}
.multi-watch-tile-head select.watch-tile-size{width:45px;min-width:45px;height:26px;min-height:26px;padding:1px;border:0;background:transparent;font-size:10px;color:inherit;cursor:pointer}
.multi-watch-tile-head select.watch-tile-size option{background:#fff;color:#34586a}
html[data-theme=dark] .multi-watch-tile-head select.watch-tile-size option{background:#20313f;color:#fff}
.multi-watch-grid{position:relative}
.watch-drag-grid{position:absolute;inset:0 0 auto;display:grid;gap:12px;z-index:5;pointer-events:none}
.watch-drag-grid i{display:block;min-width:0;min-height:0;border:1px dashed #4ba8bd;border-radius:6px;background:#16aabf08}
.watch-reordering .watch-empty-slot{outline:0;background:transparent}
.watch-reordering .watch-empty-slot.watch-drop-target{outline:2px solid #16aabf;background:#dff4f8}
.live-ticker{flex:0 1 30vw;max-width:320px;margin-left:auto;margin-right:12px}
@media(max-width:620px){.workspace-mode .live-ticker{flex:0 0 22px;width:92%;max-width:none;margin-left:auto;margin-right:0}}
@container (max-width:240px){.multi-watch-tile-head select.watch-tile-size{width:36px;min-width:36px;flex:0 0 36px;font-size:9px;padding:0}}

.watch-reordering .multi-watch-tile{outline:none}
.watch-reordering .multi-watch-tile.watch-drop-target{outline:2px solid #16aabf;outline-offset:-2px}

.multi-watch-tile-head :is(.watch-window-drag,.watch-tile-size){display:none}
.multi-watch-tile-head:is(:hover,:focus-within) .watch-window-drag,.multi-watch-tile-head.watch-controls-open .watch-window-drag,.watch-reordering .multi-watch-tile-head .watch-window-drag{display:inline-flex;align-items:center;justify-content:center}
.multi-watch-tile-head:is(:hover,:focus-within) .watch-tile-size,.multi-watch-tile-head.watch-controls-open .watch-tile-size,.watch-reordering .multi-watch-tile-head .watch-tile-size{display:inline-block}

/* Keep viewer metrics distinct and ticker titles compact. */
.multi-watch-tile-foot .watch-viewers{margin-left:8px}
.ticker-item>span{display:block;max-width:200px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.ticker-item>span{max-width:150px}}

/* Distinguish available choices from streams already open. */
.watch-stream-choice[aria-pressed=true]{background:#def3ee;border-color:#65afa0}
html[data-theme=dark] .watch-stream-choice[aria-pressed=true]{background:#193f36;border-color:#539782}
.watch-selection-grid{position:absolute;inset:0 0 auto;display:grid;gap:12px;z-index:5;pointer-events:none}
.watch-selection-grid i{display:block;min-width:0;min-height:0;border:1px dashed #4ba8bd70;border-radius:6px}

/* Compact shared card chrome leaves more room for video and viewer charts. */
.multi-watch-tile-head{min-height:0;padding:3px 6px;height:var(--watch-header-height,36px)}
.multi-watch-tile-foot{padding:2px 6px;height:var(--watch-footer-height,34px)}
.multi-watch-tile-foot .multi-watch-volume{min-height:28px}
.multi-watch-tile-foot .watch-video-actions button{min-height:28px;padding-block:2px}

/* Phone controls: one timetable filter row, then view modes and watch tools. */
@media(max-width:620px){
 .workspace-mode.timetable-mode .schedule{grid-template-rows:90px minmax(0,1fr)}
 .workspace-mode.demo-mode.timetable-mode .schedule{grid-template-rows:90px auto minmax(0,1fr)}
 .workspace-mode.timetable-mode .schedule-title{grid-template-columns:auto auto minmax(0,1fr);gap:0 3px}
 .workspace-mode.timetable-mode #scopepicker{grid-column:3;grid-row:1;min-width:0}
 .workspace-mode.timetable-mode #datepicker{min-width:0}
 .workspace-mode.timetable-mode .header-picker#scopepicker>button{width:100%;max-width:100%;min-width:0;padding-inline:3px}
 .workspace-mode.timetable-mode #scopebutton>span:not(.picker-caret){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .workspace-mode.timetable-mode #scopebutton :is(.avatar,.picker-caret){flex-shrink:0}
 #viewwatch .watch-mode-label{display:inline}
 .workspace-mode .view-switch #viewwatch{gap:5px;padding-inline:7px}
 .workspace-mode.watch-mode .view-switch{width:calc(100% - 16px);max-width:none;row-gap:6px}
 .workspace-mode.watch-mode .view-switch .view-modes{order:1;flex:1 1 100%;justify-content:flex-end;margin-left:0;padding-left:0;border-left:0}
 .workspace-mode.watch-mode .view-switch .multi-watch-toolbar{order:2;flex:1 1 100%;width:100%;gap:3px;justify-content:flex-end}
 .workspace-mode.watch-mode .multi-watch-toolbar>:is(button,.header-picker){flex:1 1 auto;min-width:0}
 .workspace-mode.watch-mode .multi-watch-toolbar>button,.workspace-mode.watch-mode .multi-watch-toolbar>.header-picker>button{white-space:nowrap;min-height:34px;height:34px;padding:4px 3px;font-size:11px}
 .workspace-mode.watch-mode .multi-watch-toolbar>.header-picker>button{width:100%;justify-content:center}
}

/* On phones the watch title shares the view-mode row; tools occupy the next row. */
@media(max-width:620px){
 .workspace-mode.watch-mode .schedule{grid-template-rows:90px minmax(0,1fr)}
 .workspace-mode.demo-mode.watch-mode .schedule{grid-template-rows:90px auto minmax(0,1fr)}
 .workspace-mode.watch-mode .schedulehead{min-height:90px;padding-bottom:44px}
 .workspace-mode.watch-mode .schedule-title #heading{height:36px;line-height:36px;font-size:12px}
 .workspace-mode.watch-mode .view-switch .view-modes{box-sizing:border-box;padding-left:76px;min-width:0}
 .workspace-mode.watch-mode .view-switch .view-modes #viewcards,.workspace-mode.watch-mode .view-switch .view-modes #viewtimetable,.workspace-mode.watch-mode .view-switch .view-modes #viewwatch{padding-inline:5px;gap:4px}
 .workspace-mode.watch-mode .view-switch .multi-watch-toolbar{position:relative}
 .workspace-mode.watch-mode .multi-watch-toolbar>:is(button,.header-picker,.watch-order-menu){flex:1 1 auto;min-width:0;text-align:center}
 .workspace-mode.watch-mode .multi-watch-toolbar>button{display:flex;align-items:center;justify-content:center}
 .workspace-mode.watch-mode .watch-order-menu{position:static}
 .workspace-mode.watch-mode .watch-order-menu>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:4px;height:34px;min-height:34px;padding:4px 3px;font-size:11px;text-align:center}
 .workspace-mode.watch-mode .watch-order-panel{left:0;right:auto;box-sizing:border-box;width:min(380px,calc(100vw - 16px));max-width:100%}
}

/* Phone cards reserve a smaller shared header/footer for more media space. */
@media(max-width:620px){
 .multi-watch-tile-head{height:var(--watch-header-height,28px);padding:2px 5px;gap:4px}
 .multi-watch-tile-foot{height:var(--watch-footer-height,28px);padding:2px 5px}
 .multi-watch-tile-head .watch-video-channel img,.multi-watch-tile-head .watch-channel-initial{width:20px;height:20px;min-width:20px}
 .multi-watch-tile-head .watch-close-button,.multi-watch-tile-head .watch-window-drag{height:24px;min-height:24px}
 .multi-watch-tile-head select.watch-tile-size{height:24px;min-height:24px}
 .multi-watch-tile-foot .multi-watch-volume{min-height:24px}
 .multi-watch-tile-foot .watch-video-actions button{height:24px;min-height:24px;padding-block:1px}
}

/* Compact phone toolbars, retaining the top navigation text positions. */
@media(max-width:620px){
 .workspace-mode .view-switch .view-modes #viewcards,.workspace-mode .view-switch .view-modes #viewtimetable,.workspace-mode .view-switch .view-modes #viewwatch{height:32px;min-height:32px;padding-block:3px}
 .workspace-mode.watch-mode .multi-watch-toolbar>button,.workspace-mode.watch-mode .multi-watch-toolbar>.header-picker>button,.workspace-mode.watch-mode .watch-order-menu>summary{height:30px;min-height:30px;padding-block:2px}
 .workspace-mode.watch-mode .schedule{grid-template-rows:82px minmax(0,1fr)}
 .workspace-mode.demo-mode.watch-mode .schedule{grid-template-rows:82px auto minmax(0,1fr)}
 .workspace-mode.watch-mode .schedulehead{min-height:82px;padding-bottom:40px}
 .workspace-mode.watch-mode .schedule-title #heading{height:32px;line-height:32px}
 .workspace-mode .header-actions>.settings-button{position:relative;overflow:visible}
 .workspace-mode .header-actions>.settings-button::before{content:"";position:absolute;inset:-4px -2px;cursor:pointer}
 .workspace-mode .header-actions>#openaccount::before{left:-20px}
 .workspace-mode .header-actions>#opensettings::before{right:-20px}
}

/* Compact the left-side stream picker without changing player cards. */
#watchpicker .watch-status-tabs button{min-height:32px;padding:4px 2px}
.watch-status-cards .watch-stream-choice{padding-block:4px;row-gap:3px}
.watch-status-cards .watch-choice-heading{min-height:24px;font-size:12px;line-height:1.4}
.watch-status-cards .watch-choice-when{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.watch-status-cards .watch-choice-heading .watch-choice-plan{flex-basis:24px;width:24px;min-width:24px;height:24px;min-height:24px;padding:2px}
.watch-status-cards .watch-choice-copy{line-height:1.4}
.watch-status-cards .watch-choice-copy>.watch-choice-channel{display:flex;align-items:center;line-height:1.3;margin:1px 0}
.watch-status-cards .watch-choice-channel img{width:16px;height:16px}
.watch-status-cards .watch-choice-channel>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.watch-status-cards .watch-choice-copy>.watch-choice-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4;-webkit-line-clamp:unset}

/* On phones, schedule view controls sit above the title and channel filters. */
@media(max-width:620px){
 .workspace-mode:not(.watch-mode) .view-switch{position:absolute;top:4px;right:8px;left:8px;bottom:auto;height:32px;margin:0;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:3px}
 .workspace-mode:not(.watch-mode) .view-switch .view-modes{margin-left:4px;padding-left:5px;gap:2px}
 .workspace-mode:not(.watch-mode) .view-switch .view-modes #viewcards,.workspace-mode:not(.watch-mode) .view-switch .view-modes #viewtimetable,.workspace-mode:not(.watch-mode) .view-switch .view-modes #viewwatch{font-size:11px;padding-inline:5px;gap:4px}
 .workspace-mode:not(.watch-mode) .schedulehead{box-sizing:border-box;min-height:90px;padding:42px 8px 6px 10px;align-items:flex-start}
 .workspace-mode:not(.watch-mode) .schedule-title{align-items:center}
 .workspace-mode:not(.watch-mode) .schedule-title #heading{line-height:32px}
 .workspace-mode:not(.watch-mode) .schedule-title .header-picker>button{height:32px;min-height:32px;padding-block:4px}
}

/* Audio controls use compact icons with accessible names and visible active state. */
.multi-watch-tile-foot .watch-video-actions .watch-pickup-button{display:inline-flex;align-items:center;justify-content:center;width:26px;min-width:26px;padding:0}
.watch-pickup-button svg,.watch-volume-icon svg{display:block;flex:none}
.multi-watch-tile-foot .watch-pickup-button[aria-pressed=true]{background:#d9f2f6;border-color:#16aabf;color:#087f94}
html[data-theme=dark] .multi-watch-tile-foot .watch-pickup-button[aria-pressed=true]{background:#1a4d58;border-color:#48c5d7;color:#a9f1fc}
.multi-watch-tile-foot .multi-watch-volume>.watch-volume-icon{display:inline-flex;align-items:center}
@media(max-width:620px){
 .workspace-mode.watch-mode .view-switch{position:absolute;top:4px;right:8px;left:8px;bottom:auto;width:auto;max-width:none;height:auto;margin:0;row-gap:6px}
 .workspace-mode.watch-mode .view-switch .view-modes{padding-left:5px;margin-left:4px;gap:2px}
 .workspace-mode.watch-mode .view-switch .view-modes #viewcards,.workspace-mode.watch-mode .view-switch .view-modes #viewtimetable,.workspace-mode.watch-mode .view-switch .view-modes #viewwatch{height:32px;min-height:32px;font-size:11px;padding-inline:5px;gap:4px}
 .workspace-mode.watch-mode .schedulehead{padding-top:4px}
}

/* Immersive fallback must also remove the app shell on mobile Safari. */
body.workspace-mode.watch-immersive>header{display:none!important}
body.workspace-mode.watch-immersive main{inset:0!important}
body.workspace-mode.watch-immersive .layout{grid-template-columns:0 minmax(0,1fr)}
body.workspace-mode.watch-immersive .schedulehead,body.workspace-mode.watch-immersive .view-switch,body.workspace-mode.watch-immersive #registeredsidebar{visibility:hidden}
body.workspace-mode.watch-immersive .schedule{grid-template-rows:0 minmax(0,1fr)}
#multiwatch.watch-fullscreen-fallback{width:100dvw;height:100dvh;max-width:none;max-height:none}
#multiwatchlandscape{display:none}
@media(pointer:coarse) and (max-width:1100px){
 .workspace-mode.watch-mode .multi-watch-toolbar>#multiwatchlandscape{display:flex;align-items:center;justify-content:center;flex:0 0 30px;padding:3px}
 .watch-immersive .watch-fullscreen-exit{opacity:.85;z-index:10002;top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}
}
@media(orientation:portrait){
 #multiwatch.watch-fullscreen-fallback.watch-landscape{width:100dvh;height:100dvw;inset:0 auto auto 0;transform-origin:0 0;transform:translateX(100dvw) rotate(90deg)}
}

.watch-landscape-exit{position:absolute;bottom:8px;right:8px;z-index:10002;display:flex;align-items:center;justify-content:center;width:34px;height:30px;padding:3px;border:1px solid #bdd6e0;border-radius:5px;background:#ffffffe0;color:#34586a}
#multiwatchlandscapeexit[hidden]{display:none!important}
.watch-landscape .multi-watch-tile-head,.watch-landscape .multi-watch-tile-foot{padding:2px 5px}
.watch-landscape .multi-watch-tile-head :is(.watch-close-button,.watch-window-drag,select.watch-tile-size){height:24px;min-height:24px}
.watch-landscape .multi-watch-tile-foot .multi-watch-volume{min-height:24px}
.watch-landscape .multi-watch-tile-foot .watch-video-actions button{height:24px;min-height:24px;padding-block:1px}

/* Keep one fullscreen exit and a portrait/landscape toggle together at bottom right. */
.watch-immersive-controls{position:absolute;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));z-index:10003;display:flex;align-items:center;gap:6px}
.watch-immersive-controls .watch-fullscreen-exit,.watch-immersive-controls .watch-landscape-exit{position:static;inset:auto;opacity:.85;min-height:30px;height:30px;margin:0}
.watch-immersive-controls .watch-landscape-exit{width:34px;flex:none}
.multi-watch-grid,.watch-drag-grid,.watch-selection-grid{gap:var(--watch-gap,12px)}

/* Icon-first watch controls retain accessible text and state descriptions. */
.multi-watch-toolbar #watchcolumnbutton,.multi-watch-toolbar .watch-order-menu>summary,.multi-watch-toolbar #multiwatchfullscreen{display:flex;align-items:center;justify-content:center;min-width:32px;padding-inline:7px}
.watch-immersive-controls .watch-fullscreen-exit{display:flex;align-items:center;justify-content:center;width:34px;padding:3px}
.multi-watch-tile-foot>span[role=status][data-playback-status]{font-size:0;flex:0 0 16px;width:16px;overflow:visible}
.multi-watch-tile-foot>span[role=status][data-playback-status]::before{content:"";display:block;width:15px;height:15px;background:currentColor;mask:var(--watch-status-icon) center/contain no-repeat}
[data-playback-status=ready]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%204%2012%208-12%208Z%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=playing]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%204%2012%208-12%208Z%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=live]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%225%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=paused]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204v16M16%204v16%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=ended]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=loading]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2012a8%208%200%201%201-8-8%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=error]{--watch-status-icon:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%2010%2018H2L12%203Zm0%205v6m0%203v1%22%2F%3E%3C%2Fsvg%3E")}
[data-playback-status=live]{color:#e51b32}
[data-playback-status=loading]::before{animation:spin 1.2s linear infinite}
@media(prefers-reduced-motion:reduce){[data-playback-status=loading]::before{animation:none}}
.multi-watch-tile-foot button.watch-viewers{display:inline-flex;align-items:center;gap:4px}
.multi-watch-tile-foot button.watch-viewers::before{content:"";display:inline-block;flex:none;width:13px;height:13px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20height%3D%2218%22%20aria-hidden%3D%22true%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021v-3a8%208%200%200%201%2016%200v3%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
@media(max-width:620px){.multi-watch-tile-foot .multi-watch-volume input{width:48px}}
.live-ticker{text-align:left}
.live-ticker .ticker-track{justify-content:flex-start}
.live-ticker[data-overflow=true] .ticker-track{animation-name:liveTickerScrollRight}
@keyframes liveTickerScrollRight{0%,8%{transform:translateX(-50%)}100%{transform:translateX(0)}}

/* Wide desktop announcements; full-width third header row on phones. */
.live-ticker{flex:1 1 0;max-width:none;margin-left:12px;margin-right:16px;text-align:left}
@media(max-width:620px){
 .workspace-mode header:has(.live-ticker:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:32px 36px 22px;column-gap:0;row-gap:4px;height:114px;min-height:114px}
 .workspace-mode header:has(.live-ticker:not([hidden])) .brand{grid-column:1;grid-row:1;padding-right:85px;font-size:19px;gap:6px}
 .workspace-mode header:has(.live-ticker:not([hidden])) .live-ticker{grid-column:1/-1;grid-row:3;order:0;align-self:center;width:100%;max-width:none;margin:0;min-width:0}
 .workspace-mode header:has(.live-ticker:not([hidden])) .header-actions{grid-column:1/-1;grid-row:2}
 .workspace-mode:has(.live-ticker:not([hidden])) main{inset:114px 0 0}
}
