.signage-workspace { display:grid; gap:18px; max-width:1520px; margin:0 auto; }
.signage-workspace .page-heading { margin:0; }
.tv-controls { display:grid; min-width:0; gap:18px; margin:0; padding:0; border:0; }
.tv-overview,.tv-publish-bar,.tv-panel,.tv-empty { padding:18px; border:1px solid var(--ink-200); border-radius:16px; background:var(--surface); }
.tv-overview,.tv-publish-bar,.tv-panel > header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.tv-screen-list,.tv-actions,.tv-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.tv-screen-card { display:flex; align-items:center; text-align:left; gap:12px; min-height:64px; padding:10px 16px; border:1px solid var(--ink-200); border-radius:12px; background:var(--surface); color:inherit; cursor:pointer; }
.tv-screen-card[aria-pressed="true"] { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 9%,var(--surface)); }
.tv-screen-card strong,.tv-screen-card small,.tv-publish-bar span,.tv-library small { display:block; }
.tv-screen-card small,.tv-publish-bar span,.tv-panel p,.tv-panel small,.tv-note,.tv-schedule summary small { color:var(--ink-600); }
.tv-screen-card .tv-icon { width:22px; height:22px; }
.tv-screen-card i { display:inline-block; width:.55em; height:.55em; border-radius:50%; background:var(--ink-500); margin-right:5px; }
.tv-screen-card .tv-online { background:#169764; }
.tv-new,.tv-upload { display:flex; align-items:end; flex-wrap:wrap; gap:10px; }
.tv-new .field,.tv-upload .field { margin:0; }
.tv-tabs { border-bottom:1px solid var(--ink-200); padding-bottom:8px; }
.tv-tabs [aria-current="page"] { border-color:var(--accent); color:var(--accent-dark); }
.tv-playlist-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:16px; align-items:start; }
.tv-panel { min-width:0; display:grid; gap:14px; }
.tv-panel h2 { font-size:1.22rem; margin:0; }
.tv-panel p { margin:.2rem 0 0; }
.tv-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); gap:12px; }
.tv-toggle { display:inline-flex; min-height:36px; align-items:center; gap:7px; padding:0 7px; }
.tv-order,.tv-library { display:grid; gap:9px; list-style:none; margin:0; padding:0; }
.tv-order > li,.tv-library > li,.tv-schedule { border:1px solid var(--ink-200); border-radius:12px; padding:10px; }
.tv-item { display:grid; gap:10px; }
.tv-item-title,.tv-library > li { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tv-item-title strong,.tv-library li > div:first-of-type { flex:1; min-width:8rem; overflow-wrap:anywhere; }
.tv-library li > .tv-icon { display:block; padding:8px; width:44px; height:34px; object-fit:contain; border-radius:6px; background:var(--paper); }
.tv-count { min-width:26px; padding:3px 6px; border-radius:8px; background:color-mix(in srgb,var(--accent) 9%,var(--surface)); text-align:center; }
.tv-schedule summary { cursor:pointer; padding:6px; }
.tv-schedule summary small { display:inline-block; margin-inline-start:10px; }
.tv-schedule-body { display:grid; gap:12px; padding:10px 6px 3px; }
.tv-feedback { padding:10px 14px; border:1px solid #b84c55; border-radius:8px; color:inherit; }
.tv-dialog { width:min(760px,92vw); max-height:90vh; padding:16px; border:1px solid var(--ink-200); border-radius:14px; background:var(--surface); color:inherit; }
.tv-dialog::backdrop { background:#0008; }
.tv-dialog form { margin-bottom:10px; }
.tv-media-preview { display:block; width:100%; max-height:72vh; object-fit:contain; background:#090909; }
.tv-message-preview { aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.7em; padding:4%; overflow:hidden; color:#fff; text-align:center; background:#151312 center/cover; font-family:Georgia,serif; overflow-wrap:anywhere; }
.tv-message-preview :is(h1,h2,h3,p) { margin:.25em 0; }
.tv-preview-logo { width:min(54%,360px); max-height:6em; object-fit:contain; }
.tv-preview-qr { width:19%; background:#fff; border-radius:5px; }
.signage-workspace [hidden] { display:none !important; }
@media (max-width:970px) { .tv-playlist-grid { grid-template-columns:1fr; } }

.tv-panel > header > div { flex:1; min-width:min(100%,210px); }

.tv-mobile-icon { width:20px; height:20px; }

.tv-thumbnail { display:block; position:relative; flex:none; width:76px; aspect-ratio:16/10; border-radius:7px; overflow:hidden; background:var(--ink-100); }
.tv-thumb-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tv-thumb-fallback { position:absolute; inset:0; margin:auto; width:20px; height:20px; opacity:.7; }
.tv-grip { display:grid; place-items:center; flex:none; width:36px; min-height:44px; border-radius:8px; color:var(--ink-600); background:var(--ink-100); font-size:24px; line-height:1; cursor:grab; user-select:none; touch-action:none; }
.tv-grip:active { cursor:grabbing; }
.tv-item.tv-dragging { opacity:.55; }
.tv-item.tv-drop-target { outline:2px solid var(--accent); outline-offset:-2px; background:var(--accent-soft); }
.tv-template-bar,.tv-qr-destination { display:flex; align-items:end; flex-wrap:wrap; gap:8px; }
.tv-template-bar .field,.tv-qr-destination .field { flex:1; min-width:min(100%,150px); margin:0; }
.tv-template-bar { padding:10px; background:var(--paper); border-radius:8px; }
.tv-qr-destination .button { white-space:nowrap; }
.tv-editor-dialog > header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.tv-editor-dialog > header :is(h2,form) { margin:0; }
.tv-dialog-form,.tv-event-results { display:grid; gap:8px; }
.tv-event-results > .button { justify-content:flex-start; align-items:flex-start; flex-direction:column; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.tv-event-results small { color:var(--ink-600); }
.tv-editor-dialog [role="alert"] { color:var(--danger); }

.tv-qr-expiry { flex-basis:100%; }
