.main[data-view="room"] { max-width: none; width: 100%; padding: 14px clamp(12px, 2vw, 22px) 22px; }
.main[data-view="room"] > .view { width: 100%; }
.live-stage { position: relative; isolation: isolate; width: 100%; height: calc(100vh - 110px); min-height: 560px; border-radius: 24px; overflow: hidden; background: #06070c; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95); }
.live-stage:fullscreen { border-radius: 0; height: 100vh; }
.live-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.live-stage .office-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.live-stage .office-label { position: absolute; left: 0; top: 0; display: grid; gap: 1px; padding: 3px 8px 4px; border-radius: 6px; background: rgba(12, 14, 19, .9); border: 1px solid rgba(255, 255, 255, .08); border-left: 2px solid var(--tone, #8a92a1); white-space: nowrap; will-change: transform; }
.live-stage .office-label strong { font-size: 11px; font-weight: 600; color: #e6e8ee; }
.live-stage .office-label span { font-size: 10.5px; color: #8a92a1; }
.live-stage .office-label.is-idle { background: rgba(12, 14, 19, .6); border-left-color: rgba(255, 255, 255, .14); }
.live-stage .office-label.is-idle strong { color: #8a92a1; }
.live-stage .office-label.is-fresh { border-color: var(--tone); }
.live-stage .office-label.is-handoff span { color: #c9ced7; }
.live-stage .office-label span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.live-stage .office-label.is-working { border-color: rgba(255, 255, 255, .14); border-left-color: var(--tone); }
.live-stage .office-label.is-working strong { display: inline-flex; align-items: center; gap: 6px; }
.live-stage .office-label.is-working strong::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); animation: office-typing 1.2s ease-in-out infinite; }
.live-stage .office-label.is-working span { color: #c9ced7; }
.live-stage .office-label.is-attention { border-color: var(--tone); }
.live-stage .office-label.is-attention span { color: var(--tone); }
.live-stage .office-label.is-working.is-fresh { border-color: var(--tone); }
.live-stage .office-tag { position: absolute; left: 0; top: 0; padding: 1px 7px; border-radius: 4px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; font-weight: 500; color: #e6e8ee; background: rgba(12, 14, 19, .92); border: 1px solid rgba(255, 255, 255, .1); border-left: 2px solid var(--tone, #8a92a1); white-space: nowrap; will-change: transform; }
.live-stage .office-zone { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(200, 205, 215, .55); white-space: nowrap; will-change: transform; }
.live-stage .office-zone::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--tone); opacity: .8; }

.live-top { position: absolute; z-index: 2; top: 18px; left: 22px; right: 22px; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none; }
.live-title { display: grid; gap: 6px; pointer-events: auto; flex: 1 1 0; min-width: 0; max-width: 560px; }
.live-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(220, 226, 255, .6); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5c6c; box-shadow: 0 0 0 4px rgba(255, 92, 108, .18), 0 0 14px rgba(255, 92, 108, .9); animation: pulse 1.6s infinite; }
.live-clock { letter-spacing: .08em; color: rgba(236, 239, 255, .85); }
.live-stage[data-state="offline"] .live-dot { background: var(--ink-3); box-shadow: none; animation: none; }
.live-stage[data-state="offline"] .live-headline { color: var(--warning); }
.live-headline { margin: 0; font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; letter-spacing: -.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, .8); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.live-kpis { flex: none; display: flex; flex-wrap: wrap; gap: 10px; pointer-events: auto; }
.live-kpi { display: grid; gap: 2px; min-width: 104px; padding: 10px 14px; border-radius: 14px; background: rgba(10, 12, 20, .74); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.live-kpi b { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.live-kpi span { font-size: 11.5px; color: rgba(220, 226, 255, .62); }
.live-kpi.tone-good b { color: var(--mint); text-shadow: 0 0 18px rgba(134, 215, 191, .55); }
.live-kpi.tone-warning b { color: var(--warning); text-shadow: 0 0 18px rgba(245, 196, 107, .5); }
.live-kpi.tone-critical b { color: var(--critical); text-shadow: 0 0 18px rgba(255, 122, 122, .5); }

.live-rail { position: absolute; z-index: 2; right: 22px; top: 132px; bottom: 74px; width: min(330px, 34%); display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(165deg, rgba(16, 18, 30, .82), rgba(8, 9, 15, .7)); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.live-rail h2 { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(220, 226, 255, .6); }
.live-rail-body { display: grid; gap: 10px; align-content: start; overflow: auto; }
.live-needs { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; color: #1a1408; background: var(--warning); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 0 26px -6px rgba(245, 196, 107, .7); }
.live-job { display: grid; gap: 6px; padding: 12px 14px; border-radius: 13px; color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .2s, transform .2s var(--ease-out); }
.live-job:hover { border-color: rgba(155, 140, 255, .55); transform: translateX(-2px); color: var(--ink); }
.live-job-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: rgba(220, 226, 255, .62); }
.live-job-head b { color: var(--accent); font-weight: 600; }
.live-job strong { font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-quiet { margin: 0; font-size: 13px; color: rgba(220, 226, 255, .55); }

.live-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: linear-gradient(0deg, rgba(6, 7, 12, .92), rgba(6, 7, 12, 0)); }
.live-ticker { position: relative; flex: 1; min-width: 0; overflow: hidden; padding-left: 18px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.live-ticker-track { display: inline-flex; gap: 36px; white-space: nowrap; animation: live-marquee 60s linear infinite; }
.live-tick { display: inline-flex; gap: 10px; font-size: 13px; color: rgba(236, 239, 255, .82); }
.live-tick time { font-family: var(--font-mono); color: var(--mint); }

.live-ticker-track.is-quiet { animation: none; }
@keyframes live-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.live-actions { display: flex; gap: 8px; flex: none; }
.live-actions .btn { background: rgba(10, 12, 20, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

body.tv-mode .topbar, body.tv-mode .verify-banner, body.tv-mode .deletion-banner { display: none; }
body.tv-mode .main[data-view="room"] { padding: 0; }
body.tv-mode .live-stage { height: 100vh; border-radius: 0; border: 0; }

@media (max-width: 1180px) {
  .live-kpis { gap: 6px; }
  .live-kpi { min-width: 84px; padding: 8px 10px; }
  .live-kpi span { font-size: 10.5px; }
}
@media (max-width: 900px) {
  .live-top { flex-wrap: wrap; }
  .live-title { max-width: none; }
  .live-stage { height: auto; min-height: 0; display: grid; }
  .live-canvas { position: relative; height: 54vh; }
  .live-stage .office-labels { height: 54vh; }
  .live-top { position: absolute; }
  .live-kpis { display: none; }
  .live-rail { position: relative; inset: auto; width: auto; margin: 12px; }
  .live-bottom { position: relative; }
  body.tv-mode .live-stage { height: auto; min-height: 100vh; overflow: visible; }
  .live-stage:fullscreen, body.tv-mode .live-stage:fullscreen { overflow-y: auto; }
}
@media (max-width: 560px) {
  .live-stage .office-label.is-idle { display: none; }
  .live-stage .office-zone { font-size: 8.5px; letter-spacing: .06em; color: rgba(200, 205, 215, .4); }
}
@keyframes office-typing { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .live-ticker-track, .live-dot, .live-stage .office-label.is-working strong::after { animation: none; } }

.live-link { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: var(--ink); text-decoration: none; }
.live-link:hover { color: var(--ink); }
.live-link > .stack-xs { flex: 1; min-width: 0; }
.live-link-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff5c6c; box-shadow: 0 0 0 5px rgba(255, 92, 108, .16), 0 0 16px rgba(255, 92, 108, .85); animation: pulse 1.6s infinite; }
