@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --navy-950: #0b1326;
    --navy-900: #111d36;
    --navy-800: #182742;
    --navy-700: #263a5b;
    --ink: #1a2437;
    --muted: #6c7789;
    --line: #dfe4eb;
    --soft-line: #edf0f4;
    --canvas: #f5f6f8;
    --white: #fff;
    --orange: #f26b38;
    --orange-dark: #d94d1e;
    --orange-soft: #fff1ea;
    --cyan: #4bd2c5;
    --green: #1c9a65;
    --green-soft: #e8f7f0;
    --yellow: #aa7514;
    --yellow-soft: #fff6d9;
    --red: #c53d43;
    --red-soft: #fff0f0;
    --shadow: 0 8px 30px rgba(15, 28, 50, .07);
    --radius: 14px;
    --header-height: 104px;
    --sidebar-width: 248px;
    --planner-width: 280px;
}

* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; overflow: hidden; background: var(--canvas); }
body { height: 100%; margin: 0; overflow: hidden; color: var(--ink); background: var(--canvas); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; line-height: 1.15; }
h1 { letter-spacing: -.04em; }
h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.015em; }
.muted { color: var(--muted); }
.optional { color: #929ba9; font-weight: 400; }
.mobile-only { display: none !important; }

.app-shell { display: flex; min-height: 100%; }
.sidebar { position: fixed; inset: var(--header-height) auto 0 0; z-index: 20; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 18px 16px; color: #dbe4f1; background: var(--navy-950); transition: width .2s ease, padding .2s ease; }
.sidebar::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 18% 0%, rgba(75,210,197,.1), transparent 30%), linear-gradient(165deg, transparent 70%, rgba(242,107,56,.06)); content: ''; }
.sidebar-collapse-toggle { position: absolute; top: 18px; right: -14px; z-index: 2; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: #52627b; border: 1px solid #d9e0e8; border-radius: 50%; background: white; box-shadow: 0 4px 12px rgba(8,18,36,.14); cursor: pointer; font-size: 18px; line-height: 1; transition: color .18s ease, transform .2s ease, box-shadow .18s ease; }
.sidebar-collapse-toggle:hover { color: var(--orange); box-shadow: 0 6px 16px rgba(8,18,36,.2); }
.sidebar-collapse-toggle:focus-visible { outline: 3px solid rgba(75,210,197,.35); outline-offset: 2px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.brand-light { color: #fff; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; color: white; border-radius: 10px; background: var(--orange); font-size: 10px; letter-spacing: -.08em; box-shadow: 0 6px 15px rgba(242,107,56,.25); }
.station-chip { display: flex; align-items: center; gap: 10px; margin: 8px 2px 20px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.04); }
.station-chip strong { display: block; overflow: hidden; color: white; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.station-chip small { display: block; overflow: hidden; color: #8290a8; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(75,210,197,.1); }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 12px; color: #9daac0; border-radius: 9px; font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.06); }
.nav-link.active { color: white; background: var(--navy-800); box-shadow: inset 3px 0 var(--orange); }
.nav-icon { display: inline-grid; width: 20px; place-items: center; color: #74839d; font-size: 18px; font-weight: 400; }
.nav-link.active .nav-icon { color: var(--orange); }
.avatar { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; color: #fff; border-radius: 50%; background: var(--navy-700); font-size: 12px; font-weight: 700; }
.workspace { width: calc(100% - var(--sidebar-width) - var(--planner-width)); min-width: 0; height: calc(100dvh - var(--header-height)); margin-top: var(--header-height); margin-left: var(--sidebar-width); overflow-x: hidden; overflow-y: auto; scrollbar-color: #aeb7c4 transparent; scrollbar-gutter: stable; scrollbar-width: thin; overscroll-behavior: contain; transition: width .2s ease, margin-left .2s ease; }
.workspace::-webkit-scrollbar { width: 10px; }
.workspace::-webkit-scrollbar-track { background: transparent; }
.workspace::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: #aeb7c4; background-clip: padding-box; }
.workspace::-webkit-scrollbar-thumb:hover { background: #8793a3; background-clip: padding-box; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); height: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 3px 15px rgba(15,28,50,.04); backdrop-filter: blur(12px); }
.topbar-brand { display: flex; min-width: 0; align-items: center; padding: 0 24px; background: var(--navy-950); transition: padding .2s ease; }
.topbar-brand .brand { gap: 8px; font-size: 16px; white-space: nowrap; }
.topbar-main { display: flex; min-width: 0; align-items: center; gap: 18px; padding: 20px clamp(20px, 3vw, 42px); }
.topbar-title { min-width: 0; }
.topbar h1 { margin: 0 0 3px; font-size: 28px; }
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; min-width: 0; align-items: center; gap: 16px; margin-left: auto; }
.weather-menu { position: relative; flex: 0 0 auto; }
.weather-menu > summary { cursor: pointer; list-style: none; }
.weather-menu > summary::-webkit-details-marker { display: none; }
.weather-chip { display: inline-flex; min-width: 210px; align-items: center; gap: 10px; padding: 8px 13px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; transition: .18s ease; }
.weather-chip:hover { border-color: #bdc7d3; background: white; box-shadow: 0 4px 12px rgba(20,33,61,.05); transform: translateY(-1px); }
.weather-menu[open] .weather-chip { border-color: #bdc7d3; background: white; box-shadow: 0 4px 12px rgba(20,33,61,.08); }
.weather-menu > summary:focus-visible { outline: 3px solid rgba(75,210,197,.42); outline-offset: 3px; }
.weather-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; color: #ba7411; border-radius: 9px; background: #fff5d9; font-size: 21px; }
.weather-temp-wrap { display: inline-flex; align-items: center; gap: 5px; }
.weather-temp { color: var(--navy-800); font-family: 'Manrope', sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.weather-alert-indicator { display: grid; width: 22px; height: 22px; place-items: center; color: #9c4c0d; border: 1px solid #f1bb72; border-radius: 7px; background: #fff1cf; font-size: 13px; line-height: 1; box-shadow: 0 0 0 3px rgba(241,187,114,.14); }
.weather-detail { min-width: 0; }
.weather-detail b, .weather-detail small, .weather-setup b, .weather-setup small, .weather-unavailable b, .weather-unavailable small { display: block; overflow: hidden; max-width: 128px; white-space: nowrap; text-overflow: ellipsis; }
.weather-detail b, .weather-setup b, .weather-unavailable b { color: #3d4859; font-size: 13px; }
.weather-detail small, .weather-setup small, .weather-unavailable small { color: #6f7b8c; font-size: 11px; }
.weather-setup .weather-icon { color: #267d78; background: #e5f8f5; }
.weather-unavailable .weather-icon { color: #7e8998; background: #edf0f4; }
.weather-popover { position: absolute; top: calc(100% + 13px); right: 0; z-index: 60; width: 390px; overflow: hidden; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 48px rgba(11,19,38,.2); }
.weather-popover::before { position: absolute; top: -6px; right: 28px; width: 11px; height: 11px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; content: ''; transform: rotate(45deg); }
.weather-popover-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 17px 12px; border-bottom: 1px solid var(--soft-line); background: #fafbfc; }
.weather-popover-header strong, .weather-popover-header span { display: block; }
.weather-popover-header strong { max-width: 220px; overflow: hidden; color: var(--navy-900); font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.weather-popover-header > span { margin-top: 2px; color: #6f7b8c; font-size: 11px; white-space: nowrap; }
.weather-popover-kicker { margin-bottom: 2px; color: var(--orange) !important; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.weather-alert-list { display: flex; flex-direction: column; gap: 7px; padding: 12px 17px 0; }
.weather-alert-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 10px 11px; color: #6f3d12; border: 1px solid #efc47f; border-radius: 10px; background: #fff7e5; }
.weather-alert-card > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #ffe8b7; font-size: 16px; }
.weather-alert-card small, .weather-alert-card strong, .weather-alert-card p, .weather-alert-card time { display: block; }
.weather-alert-card small { color: #9a6223; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.weather-alert-card strong { margin-top: 2px; color: #71390e; font-size: 12px; }
.weather-alert-card p { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #77512f; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.weather-alert-card time { margin-top: 5px; color: #96622c; font-size: 9px; font-weight: 700; }
.weather-current { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 17px; }
.weather-current-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 15px; background: #fff5d9; font-size: 30px; }
.weather-current-reading strong, .weather-current-reading span, .weather-current-details span { display: block; }
.weather-current-reading strong { color: var(--navy-900); font-family: 'Manrope', sans-serif; font-size: 34px; line-height: 1; letter-spacing: -.06em; }
.weather-current-reading span { margin-top: 5px; color: #4d596b; font-size: 14px; font-weight: 700; }
.weather-current-details { padding-left: 12px; border-left: 1px solid var(--soft-line); color: var(--muted); font-size: 12px; line-height: 1.7; white-space: nowrap; }
.weather-current-details b { color: var(--navy-700); }
.weather-forecast { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 17px 14px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 10px; background: #fafbfc; }
.weather-forecast-day { display: grid; gap: 4px; justify-items: center; padding: 10px 4px; border-right: 1px solid var(--soft-line); }
.weather-forecast-day:last-child { border-right: 0; }
.weather-day-name { color: #657184; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.weather-day-icon { min-height: 27px; font-size: 21px; }
.weather-day-temps { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
.weather-day-temps b { color: var(--navy-800); }
.weather-day-temps small { color: #788495; font-size: 12px; }
.weather-settings-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 17px; color: #657184; border-top: 1px solid var(--soft-line); font-size: 13px; font-weight: 700; }
.weather-settings-link span, .weather-settings-link small { display: block; }
.weather-settings-link small { margin-top: 2px; color: #929ba8; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.weather-settings-link b { font-size: 15px; }
.weather-settings-link:hover { color: var(--orange); background: #fafbfc; }
.clock { padding-right: 22px; border-right: 1px solid var(--line); color: var(--navy-700); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu > summary { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 50%; cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary .avatar { width: 38px; height: 38px; background: var(--navy-700); box-shadow: 0 0 0 3px white, 0 0 0 4px #d9dfe7; transition: .18s ease; }
.account-menu > summary:hover .avatar, .account-menu[open] > summary .avatar { background: var(--navy-900); box-shadow: 0 0 0 3px white, 0 0 0 5px rgba(242,107,56,.35); }
.account-menu > summary:focus-visible { outline: 3px solid rgba(75,210,197,.42); outline-offset: 3px; }
.account-popover { position: absolute; top: calc(100% + 13px); right: 0; z-index: 60; width: 250px; overflow: hidden; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 48px rgba(11,19,38,.2); }
.account-popover::before { position: absolute; top: -6px; right: 14px; width: 11px; height: 11px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; content: ''; transform: rotate(45deg); }
.account-identity { padding: 16px; border-bottom: 1px solid var(--soft-line); background: #fafbfc; }
.account-identity strong, .account-identity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-identity strong { font-size: 13px; }
.account-identity small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.account-popover nav { padding: 7px; }
.account-menu-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; color: #4d596b; border-radius: 8px; font-size: 12px; font-weight: 700; }
.account-menu-link:hover, .account-menu-link.active { color: var(--navy-900); background: #f1f4f7; }
.account-menu-icon { display: grid; width: 22px; place-items: center; color: #7f8b9c; font-size: 14px; }
.account-menu-link.active .account-menu-icon { color: var(--orange); }
.account-signout { margin-top: 5px; color: var(--red); border-top: 1px solid var(--soft-line); border-radius: 0 0 8px 8px; }
.sidebar-mobile-close { margin: 0 0 8px auto; }
.content { width: min(1600px, 100%); margin: 0 auto; padding: 32px clamp(20px, 3vw, 42px) 60px; }
.page-with-rundown { display: block; }
.page-primary { min-width: 0; container-type: inline-size; }
.rundown-toggle, .rundown-close, .rundown-scrim, .topbar-actions .rundown-toggle, .rundown-rail .rundown-close { display: none; }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 700; line-height: 1; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; border-color: var(--orange); background: var(--orange); box-shadow: 0 5px 12px rgba(242,107,56,.17); }
.button-primary:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.button-secondary { color: var(--navy-700); border-color: var(--line); background: white; }
.button-secondary:hover { border-color: #b8c1ce; box-shadow: 0 4px 12px rgba(20,33,61,.05); }
.button-quiet { color: var(--muted); background: transparent; }
.button-large { min-height: 49px; padding: 0 22px; }
.full-width { width: 100%; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--navy-700); border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--orange); }
.danger { color: var(--red) !important; }
.icon-button { display: inline-grid; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; font-weight: 700; }
.icon-button:hover { color: var(--ink); border-color: #b8c1ce; }

.alert { position: relative; margin-bottom: 20px; padding: 13px 44px 13px 16px; border: 1px solid; border-radius: 9px; font-weight: 600; }
.alert button { position: absolute; top: 5px; right: 7px; padding: 5px 8px; color: inherit; border: 0; background: none; cursor: pointer; font-size: 18px; }
.alert-success { color: #146747; border-color: #b9e6d2; background: var(--green-soft); }
.alert-error { color: #9f2e35; border-color: #f0c3c5; background: var(--red-soft); }

.hero-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 91px; margin-bottom: 34px; padding: 20px 26px; color: white; border-radius: var(--radius); background: linear-gradient(115deg, var(--navy-900), #1e3454); box-shadow: var(--shadow); }
.hero-strip::after { width: 90px; height: 50px; background: radial-gradient(circle, rgba(75,210,197,.4) 1px, transparent 1.5px); background-size: 9px 9px; content: ''; opacity: .45; }
.hero-strip > div:first-child { display: flex; flex-direction: column; }
.hero-greeting { color: #aebace; font-size: 14px; font-weight: 600; }
.hero-strip strong { font-family: 'Manrope', sans-serif; font-size: 20px; }
.hero-stats { display: flex; gap: 24px; margin-left: auto; }
.hero-stats span { display: flex; flex-direction: column; min-width: 66px; color: #a9b5c7; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hero-stats b { color: white; font-family: 'Manrope', sans-serif; font-size: 16px; text-transform: none; letter-spacing: 0; }

/* Break-by-break show builder */
.show-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 21px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 15px rgba(15,28,50,.03); }
.show-identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.show-identity > div { min-width: 0; }
.show-identity strong, .show-identity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.show-identity strong { font-family: 'Manrope', sans-serif; font-size: 17px; }
.show-identity small { color: var(--muted); font-size: 12px; }
.on-air-mark { padding: 5px 7px; color: white; border-radius: 5px; background: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 0 0 4px var(--red-soft); }
.show-selector { display: flex; align-items: end; gap: 8px; }
.show-selector label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.show-selector input, .show-selector select { width: 145px; height: 39px; margin-top: 3px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.show-selector select { width: 185px; }
.show-selector .button { min-height: 39px; font-size: 13px; }

/* Cached daily prep */
.daily-today { margin: 0 0 21px; }
.daily-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 2px 12px; }
.daily-heading h2 { margin: 0 0 2px; font-size: 21px; }
.daily-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.daily-ready { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 2px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.daily-ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.daily-ready.is-empty { color: var(--muted); }
.daily-ready.is-empty i { background: #aab2be; box-shadow: 0 0 0 4px #edf0f4; }
.daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.daily-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 3px 14px rgba(15,28,50,.035); }
.daily-card > header { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 65px; padding: 11px 12px; border-bottom: 1px solid var(--soft-line); background: #fbfbfc; }
.daily-icon { display: grid; width: 31px; height: 31px; place-items: center; color: #267d78; border-radius: 8px; background: #e5f8f5; font-size: 14px; font-weight: 800; }
.daily-on_this_day .daily-icon { color: #84610e; background: #fff6d9; }
.daily-birthday .daily-icon { color: #b14c27; background: var(--orange-soft); }
.daily-music_history .daily-icon { color: #7552a8; background: #f1eafb; }
.daily-trivia .daily-icon { color: #52658c; background: #eaf0fa; }
.daily-card > header h3, .daily-card > header p { overflow: hidden; margin: 0; white-space: nowrap; text-overflow: ellipsis; }
.daily-card > header h3 { font-size: 15px; }
.daily-card > header p { color: var(--muted); font-size: 11px; }
.daily-card > header b { display: grid; min-width: 24px; height: 24px; padding: 0 6px; place-items: center; color: #6f7a8a; border-radius: 99px; background: #edf0f4; font-size: 11px; }
.daily-list { max-height: none; overflow: visible; padding: 2px 10px 7px; }
.daily-item { border-bottom: 1px solid var(--soft-line); }
.daily-item:last-child { border-bottom: 0; }
.daily-item summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 7px; align-items: center; min-height: 48px; padding: 9px 2px; cursor: pointer; color: #374255; font-size: 13px; font-weight: 700; line-height: 1.4; list-style: none; }
.daily-item summary::-webkit-details-marker { display: none; }
.daily-item summary i { color: #8f99a7; font-size: 13px; font-style: normal; text-align: center; }
.daily-item[open] summary i { transform: rotate(45deg); }
.daily-item > div { margin: 0 0 8px; padding: 9px; border-radius: 7px; background: #f6f7f9; }
.daily-item > div p { margin: 0 0 8px; color: #596475; font-size: 13px; line-height: 1.6; }
.daily-item > div .daily-credit { margin: 0 0 4px; color: #7c6755; font-size: 11px; line-height: 1.45; }
.daily-item > div .daily-credit a { display: inline; }
.daily-item > div a, .daily-item > div small { display: block; font-size: 11px; }
.daily-item > div a { color: var(--orange-dark); font-weight: 800; }
.daily-item > div small { margin-top: 2px; color: #98a0ac; }
.daily-empty { display: flex; min-height: 82px; align-items: center; justify-content: center; flex-direction: column; color: #98a0ac; text-align: center; }
.daily-empty span { font-size: 18px; }
.daily-empty p { max-width: 190px; margin: 3px 0 0; font-size: 12px; }
.show-workbench { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.prep-browser, .rundown-board { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 18px rgba(15,28,50,.04); }
.rundown-rail { position: fixed; z-index: 20; inset: var(--header-height) 0 0 auto; display: flex; width: var(--planner-width); min-width: 0; height: calc(100dvh - var(--header-height)); max-height: none; overflow-x: hidden; overflow-y: auto; flex-direction: column; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: white; box-shadow: -8px 0 24px rgba(15,28,50,.06); scrollbar-color: #c0c8d2 transparent; scrollbar-width: thin; }
.rundown-rail-header { display: flex; min-height: 86px; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--soft-line); }
.rundown-rail-header h2 { margin: 0; font-size: 18px; }
.rail-show-selector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: end; padding: 10px 12px; border-bottom: 1px solid var(--soft-line); background: #fafbfc; }
.rail-show-selector label { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.rail-show-selector input, .rail-show-selector select { width: 100%; height: 36px; margin-top: 3px; padding: 0 7px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.rail-show-selector .button { min-height: 36px; padding: 0 9px; font-size: 11px; }
.rundown-shared { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--soft-line); }
.rundown-shared small { color: var(--muted); font-size: 10px; }
.rundown-rail .break-list { flex: 1 1 auto; min-height: 90px; max-height: none; overflow-y: auto; }
.rundown-rail .show-notes { padding-block: 9px; }
.rundown-status { min-height: 20px; margin: 0; padding: 0 13px 8px; color: var(--green); font-size: 11px; font-weight: 700; }
.planner-hint { margin: 0; padding: 11px 14px; color: var(--muted); border-bottom: 1px solid var(--soft-line); background: #fafbfc; font-size: 11px; line-height: 1.5; }
.planner-break-list { display: flex; overflow-y: auto; flex-direction: column; gap: 5px; padding: 10px; background: #f6f7f9; }
.planner-break { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 48px; padding: 8px 10px; color: var(--navy-700); border: 1px solid #dce1e8; border-radius: 9px; background: white; transition: .16s ease; }
.planner-break:hover { border-color: #bfc8d4; box-shadow: 0 4px 12px rgba(15,28,50,.06); transform: translateY(-1px); }
.planner-break.is-active { color: white; border-color: var(--navy-700); background: var(--navy-700); }
.planner-break-icon { display: grid; width: 31px; height: 31px; place-items: center; color: #267d78; border-radius: 8px; background: #e5f8f5; font-size: 14px; }
.planner-break.is-active .planner-break-icon { color: white; background: rgba(255,255,255,.13); }
.planner-break-name { overflow: hidden; font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.planner-break-count { display: grid; min-width: 25px; height: 25px; padding: 0 6px; place-items: center; color: white; border-radius: 6px; background: var(--navy-900); font-size: 11px; font-weight: 800; }
.planner-break.is-active .planner-break-count { color: var(--navy-900); background: white; }
.planner-break.is-drag-over { border-color: var(--cyan); background: #eaf8f6; box-shadow: inset 0 0 0 2px var(--cyan); }
.planner-break.is-active.is-drag-over { color: var(--navy-700); }
.workbench-heading { display: flex; min-height: 71px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--soft-line); }
.workbench-heading h2 { margin: 0; font-size: 20px; }
.workbench-actions { display: flex; align-items: center; gap: 8px; }
.item-total { padding: 4px 9px; color: var(--muted); border-radius: 99px; background: #f0f2f5; font-size: 12px; font-weight: 700; }
.rundown-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.rundown-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.prep-search { display: grid; grid-template-columns: 1fr 118px 40px; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--soft-line); background: #fafbfc; }
.prep-search input, .prep-search select { height: 40px; margin: 0; font-size: 13px; }
.prep-search .search-field span { top: 4px; }
.prep-search .search-field input { padding-left: 37px; }
.prep-search .icon-button { width: 40px; height: 40px; }
.prep-stream { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: none; min-height: 0; overflow: visible; padding: 14px; }
.stream-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; min-width: 0; padding: 14px 15px 14px 19px; border: 1px solid var(--soft-line); border-radius: 10px; background: white; }
.stream-item::before { position: absolute; top: 17px; bottom: 17px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); content: ''; }
.stream-item.is-promo::before { background: var(--orange); }
.stream-item-visual { display: grid; width: 64px; height: 64px; overflow: hidden; place-items: center; align-self: start; border-radius: 8px; background: #f1f3f6; }
.stream-item-visual img { width: 100%; height: 100%; object-fit: cover; }
.stream-item-visual .type-glyph { width: 42px; height: 42px; font-size: 20px; }
.stream-item-main { min-width: 0; }
.stream-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: #758092; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.stream-item h3 { margin-bottom: 7px; padding-right: 5px; font-size: 18px; }
.stream-item-main > p { margin-bottom: 13px; padding-right: 8px; color: #596576; font-size: 14px; line-height: 1.65; }
.stream-item .story-open-button { margin-bottom: 0; }
.prep-stream[data-view="one"] { grid-template-columns: minmax(0, 1fr); }
.prep-stream[data-view="one"] .stream-item { padding-block: 15px; }
.prep-stream[data-view="one"] .stream-item-visual { width: 72px; height: 72px; }
.prep-stream[data-view="one"] .stream-item-main > p { margin-bottom: 8px; }
.prep-stream[data-view="one"] .story-open-button { margin-bottom: 0; }
.prep-stream[data-view="two"] .stream-item { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 12px 12px 12px 17px; }
.prep-stream[data-view="two"] .stream-item-visual { width: 56px; height: 56px; }
.prep-stream[data-view="two"] .stream-item h3 { overflow: hidden; margin-bottom: 10px; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.prep-stream[data-view="two"] .stream-item-main > p { display: none; }
.prep-stream[data-view="two"] .story-open-button { font-size: 11px; }
.prep-stream[data-view="cards"] .stream-item { grid-template-columns: 86px minmax(0, 1fr); min-height: 245px; }
.prep-stream[data-view="cards"] .stream-item-visual { width: 86px; height: 86px; }
.entry-editor summary, .custom-bit summary { width: max-content; cursor: pointer; font-weight: 700; list-style: none; }
.entry-editor summary::-webkit-details-marker, .custom-bit summary::-webkit-details-marker, .entry-menu summary::-webkit-details-marker { display: none; }
.story-open-button { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 13px; padding: 0; color: var(--navy-700); border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.story-open-button span { color: var(--orange); transition: transform .16s ease; }
.story-open-button:hover { color: var(--orange-dark); }
.story-open-button:hover span { transform: translateX(3px); }
.story-dialog { width: min(960px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 32px); overflow: hidden; padding: 0; color: var(--ink); border: 0; border-radius: 13px; background: transparent; box-shadow: 0 24px 90px rgba(5,15,32,.34); }
.story-dialog::backdrop { background: rgba(7,16,31,.62); backdrop-filter: blur(3px); }
.story-dialog-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 13px; background: white; }
.story-dialog-header, .story-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; }
.story-dialog-header { min-height: 64px; border-bottom: 1px solid var(--soft-line); }
.story-dialog-header .eyebrow { margin-bottom: 3px; }
.story-dialog-header strong { font-family: 'Manrope', sans-serif; font-size: 14px; }
.story-dialog-content { max-height: calc(100dvh - 156px); overflow-y: auto; padding: 0; overscroll-behavior: contain; }
.story-dialog-footer { min-height: 52px; padding-block: 8px; border-top: 1px solid var(--soft-line); background: #fafbfc; }
.story-dialog-footer > span { color: var(--muted); font-size: 10px; }
.story-reader { min-height: 520px; }
.story-reader.has-media { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.story-reader-main { min-width: 0; padding: 29px 34px 36px; }
.story-reader-media { min-height: 100%; padding: 20px; color: #d4d9e0; background: #202327; }
.story-reader-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: #30343a; }
.story-reader-media > div { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.story-reader-media strong, .story-reader-media time { display: block; }
.story-reader-media strong { color: white; font-size: 12px; line-height: 1.45; }
.story-reader-media time { margin-top: 6px; color: #9ba3ad; font-size: 10px; }
.story-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #8791a0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.story-reader h2 { margin: 12px 0 17px; font-size: clamp(22px, 3vw, 29px); line-height: 1.2; outline: none; }
.story-reader-copy { color: #4f5b6d; font-size: 14px; line-height: 1.72; white-space: normal; }
.story-reader-copy p { margin: 0; }
.story-reader-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.story-reader-links:empty { display: none; }
.starter-feed-callout { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 0 18px; padding: 13px 15px; color: #31405a; border: 1px solid #cddfe9; border-radius: 11px; background: linear-gradient(105deg, #f4fbfc, #f8fafc); }
.starter-feed-icon { display: grid; width: 38px; height: 38px; place-items: center; color: white; border-radius: 10px; background: #267d78; font-size: 19px; }
.starter-feed-callout strong { display: block; margin-bottom: 2px; font-size: 14px; }
.starter-feed-callout p { margin: 0; color: #5b6879; font-size: 12px; line-height: 1.55; }
.starter-feed-callout .button { min-height: 38px; padding-inline: 13px; font-size: 12px; }
.starter-feed-connected { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.starter-feed-connected i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.break-detail { min-width: 0; }
.break-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 15px rgba(15,28,50,.03); }
.break-detail-header h2, .break-detail-header p { margin: 0; }
.break-detail-header h2 { font-size: 22px; }
.break-detail-header div > p:last-child { margin-top: 3px; color: var(--muted); font-size: 10px; }
.break-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.break-story { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 11px; background: white; box-shadow: 0 4px 16px rgba(15,28,50,.04); }
.break-story.is-used { opacity: .68; border-left-color: var(--green); background: #f8fbf9; }
.break-story-top { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 7px; align-items: start; }
.break-story-top h3 { margin: 7px 0 0; font-size: 16px; line-height: 1.35; }
.break-story > p { max-height: none; overflow: visible; margin: 14px 0; color: #5d6879; font-size: 11px; line-height: 1.65; }
.break-story .talent-note { margin-left: 22px; }
.break-story-editor { margin: 14px 0 0 22px; }
.break-story-editor form { grid-template-columns: minmax(0, 1fr); }
.break-story-remove { margin: 11px 0 0 22px; }
.break-story-remove .text-button { font-size: 9px; }
.break-detail-custom { margin: 15px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.show-notes { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--soft-line); background: #fafbfc; }
.show-notes label { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.show-notes textarea { min-height: 57px; margin-top: 4px; padding: 8px 76px 8px 10px; background: white; font-size: 10px; text-transform: none; letter-spacing: 0; }
.show-notes .text-button { position: absolute; right: 24px; bottom: 23px; color: var(--orange-dark); font-size: 9px; }
.break-list { max-height: calc(100vh - 300px); min-height: 540px; overflow-y: auto; padding: 14px; background: #f6f7f9; scrollbar-color: #c9d0d9 transparent; scrollbar-width: thin; }
.page-primary .break-list { max-height: none; min-height: 0; overflow: visible; }
.show-break { overflow: hidden; margin-bottom: 11px; border: 1px solid #dce1e8; border-radius: 10px; background: white; }
.show-break > header { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 8px 11px; border-bottom: 1px solid var(--soft-line); background: #fbfbfc; }
.show-break > header > div { display: flex; align-items: center; gap: 8px; }
.show-break > header h3 { margin: 0; font-size: 12px; }
.show-break > header > span { color: #98a0ab; font-size: 9px; }
.break-number { display: grid; width: 25px; height: 25px; place-items: center; color: #fff; border-radius: 6px; background: var(--navy-700); font-size: 8px; font-weight: 800; }
.break-empty { margin: 10px; padding: 13px; color: #9aa2ad; border: 1px dashed #d7dce3; border-radius: 7px; text-align: center; font-size: 9px; }
.drag-source { cursor: grab; }
.drag-source:active { cursor: grabbing; }
.drag-source.is-dragging { opacity: .48; }
.break-entries { min-height: 48px; transition: background .14s ease, box-shadow .14s ease; }
.break-entries.is-drag-over { background: #eaf8f6; box-shadow: inset 0 0 0 2px var(--cyan); }
.break-empty { pointer-events: none; }
.rundown-entry { position: relative; margin: 9px; padding: 10px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; background: white; }
.rundown-entry.is-used { opacity: .62; border-left-color: var(--green); background: #f8fbf9; }
.rundown-entry.is-used .entry-top strong { text-decoration: line-through; }
.entry-top { display: grid; grid-template-columns: 15px 1fr auto; gap: 7px; align-items: start; }
.drag-handle { color: #aeb5bf; font-size: 11px; letter-spacing: -3px; }
.entry-top strong, .entry-top small { display: block; }
.entry-top strong { font-family: 'Manrope', sans-serif; font-size: 11px; }
.entry-top small { color: #9aa2ad; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.entry-menu { position: relative; }
.entry-menu summary { cursor: pointer; color: #8d96a3; font-size: 10px; list-style: none; }
.entry-menu form { position: absolute; top: 18px; right: 0; z-index: 2; width: 135px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: var(--shadow); }
.entry-menu button { width: 100%; padding: 7px; color: var(--red); border: 0; background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; text-align: left; }
.rundown-entry > p { margin: 7px 0 8px 22px; color: #6e7887; font-size: 9px; line-height: 1.5; }
.entry-editor { margin-left: 22px; color: var(--navy-700); font-size: 9px; }
.entry-editor[open] summary { margin-bottom: 8px; }
.entry-editor form { display: grid; grid-template-columns: 1fr 120px; gap: 8px; padding: 9px; border-radius: 7px; background: #f6f7f9; }
.entry-editor label { font-size: 8px; }
.entry-editor textarea, .entry-editor select { margin-top: 3px; font-size: 9px; }
.entry-editor textarea { min-height: 51px; padding: 7px; }
.entry-editor select { height: 31px; }
.entry-editor .used-check { display: flex; align-items: center; gap: 5px; }
.entry-editor .used-check input { width: 13px; height: 13px; margin: 0; accent-color: var(--green); }
.entry-editor .button { min-height: 30px; font-size: 9px; }
.talent-note { margin: 8px 0 0 22px; padding: 8px 9px; color: #5f5128; border-radius: 6px; background: #fff8df; font-size: 9px; line-height: 1.55; }
.talent-note b { display: block; color: #a27416; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.custom-bit { margin: 8px 10px 10px; color: var(--orange-dark); font-size: 9px; }
.break-setup, .planner-setup { flex: 0 0 auto; max-height: 62dvh; overflow-y: auto; padding: 11px 13px; border-top: 1px solid var(--soft-line); color: var(--navy-700); background: white; font-size: 10px; }
.break-setup > summary, .planner-setup > summary { display: flex; cursor: pointer; flex-direction: column; font-weight: 800; list-style: none; }
.break-setup > summary::-webkit-details-marker, .planner-setup > summary::-webkit-details-marker { display: none; }
.break-setup > summary::before, .planner-setup > summary::before { float: right; margin-left: auto; content: '＋'; }
.break-setup[open] > summary::before, .planner-setup[open] > summary::before { content: '−'; }
.break-setup > summary span, .planner-setup > summary span { color: var(--muted); font-size: 8px; font-weight: 500; }
.break-setup[open] > summary, .planner-setup[open] > summary { margin-bottom: 10px; }
.break-label-row { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; align-items: center; }
.break-label-row > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; background: var(--navy-700); color: white; font-size: 8px; }
.break-label-row input { height: 34px; margin: 0; font-size: 10px; }
.break-custom-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.break-custom-number { display: grid; width: 20px; height: 20px; place-items: center; color: white; border-radius: 5px; background: var(--navy-700); font-size: 8px; font-weight: 800; }
.break-custom-row > input { min-width: 0; height: 34px; margin: 0; padding: 0 8px; font-size: 9px; }
.break-remove-check { display: inline-flex !important; align-items: center; gap: 3px; color: var(--red); cursor: pointer; font-size: 8px !important; white-space: nowrap; }
.break-remove-check input { width: 13px; height: 13px; margin: 0; accent-color: var(--red); }
.break-remove-note { color: var(--muted); font-size: 8px; white-space: nowrap; }
.break-setup .form-stack { gap: 7px; }
.break-setup .form-stack > .button { width: 100%; min-height: 34px; font-size: 9px; }
.delete-break-form { margin-top: 7px; }
.delete-break-form .text-button { font-size: 9px; }
.rundown-rail .add-break-form { padding: 9px 13px; }
.planner-setup .form-stack { gap: 8px; }
.planner-setup .form-stack input { font-size: 10px; }
.planner-setup .form-stack > .button { width: 100%; min-height: 34px; font-size: 9px; }
.planner-members { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 7px; border: 1px solid var(--soft-line); border-radius: 7px; }
.planner-members legend { padding: 0 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.planner-members label { display: flex; align-items: center; gap: 7px; padding: 5px; border-radius: 5px; background: #f7f8fa; text-transform: none; letter-spacing: 0; }
.planner-members input { width: 14px; height: 14px; margin: 0; accent-color: var(--green); }
.planner-members span, .planner-members small { display: block; min-width: 0; }
.planner-members b { font-size: 9px; }
.planner-members small, .planner-empty-members { color: var(--muted); font-size: 8px; line-height: 1.45; }
.planner-empty-members { margin: 6px 0 10px; }
.add-planner-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--soft-line); }
.add-planner-form input { min-width: 0; height: 34px; margin: 0; font-size: 9px; }
.add-planner-form .button { min-height: 34px; padding-inline: 9px; font-size: 9px; }
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.user-avatar { width: 42px; height: 42px; }
.user-card-main > div { display: flex; align-items: center; gap: 8px; }
.user-card-main h3, .user-card-main p { margin: 0; }
.user-card-main h3 { font-size: 14px; }
.user-card-main p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.user-card-main small { display: block; margin-top: 5px; color: #929ba7; font-size: 9px; }
.custom-bit[open] summary { margin-bottom: 8px; }
.custom-bit form { display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px dashed #d8dde5; border-radius: 7px; background: #fafbfc; }
.custom-bit label { font-size: 8px; }
.custom-bit input, .custom-bit textarea { margin-top: 3px; font-size: 9px; }
.custom-bit input { height: 31px; }
.custom-bit textarea { padding: 7px; }
.custom-bit .button { align-self: end; min-height: 31px; font-size: 9px; }
.add-break-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 12px 14px; border-top: 1px solid var(--soft-line); }
.add-break-form input { height: 36px; margin: 0; font-size: 10px; }
.add-break-form .button { min-height: 36px; font-size: 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 17px; }
.section-heading.compact { align-items: center; margin-top: 4px; }
.section-heading h2 { margin: 0; }
.eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow.inline { margin: 0 0 0 8px; color: var(--muted); }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.segmented button { padding: 6px 13px; color: var(--muted); border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 12px; font-weight: 700; }
.segmented button.active { color: var(--navy-800); background: #edf0f4; }
.rundown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.prep-card { position: relative; overflow: hidden; min-height: 245px; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 20px rgba(15,28,50,.035); transition: .2s ease; }
.prep-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cyan); content: ''; }
.prep-card.promo-card::before { background: var(--orange); }
.prep-card:hover { border-color: #cbd2dc; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #8a94a4; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meta-spacer { margin-left: auto; }
.type-pill { padding: 3px 7px; border-radius: 5px; }
.type-feed { color: #267d78; background: #e5f8f5; }
.type-promo { color: #c24b1f; background: var(--orange-soft); }
.prep-card h3 { max-width: 95%; margin-bottom: 10px; font-size: 19px; }
.prep-card > p { min-height: 66px; margin-bottom: 20px; color: #5e6878; font-size: 13px; line-height: 1.65; }
.card-actions { display: flex; flex-wrap: wrap; gap: 15px; padding-top: 13px; border-top: 1px solid var(--soft-line); }

.panel, .table-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 4px 18px rgba(15,28,50,.035); }
.panel { padding: 25px; }
.filter-panel { margin-bottom: 25px; padding: 14px; }
.filter-form { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 160px auto; gap: 10px; }
.filter-form select { height: 43px; }
.search-field { position: relative; }
.search-field span { position: absolute; top: 8px; left: 13px; color: #9ca5b1; font-size: 20px; }
.search-field input { height: 43px; padding-left: 41px; }
.table-panel { overflow: hidden; }
.data-table { min-width: 780px; }
.table-row { display: grid; grid-template-columns: 38px minmax(260px, 1.7fr) minmax(100px, .65fr) 90px 115px 36px; align-items: center; gap: 14px; min-height: 80px; padding: 12px 18px; border-bottom: 1px solid var(--soft-line); }
.table-row:last-child { border-bottom: 0; }
.table-row:hover { background: #fbfbfc; }
.type-glyph { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 800; }
.type-glyph.feed { color: #267d78; background: #e5f8f5; }
.type-glyph.promo { color: #c24b1f; background: var(--orange-soft); }
.table-main { min-width: 0; }
.table-main strong, .table-main small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.table-main strong { font-size: 14px; }
.table-main small, .source-name, .table-date { color: var(--muted); font-size: 11px; }
.status { display: inline-block; width: max-content; padding: 3px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-active { color: var(--green); background: var(--green-soft); }
.status-scheduled { color: var(--yellow); background: var(--yellow-soft); }
.status-draft { color: #687487; background: #edf0f4; }
.status-expired { color: var(--red); background: var(--red-soft); }

.library-heading { gap: 18px; }
.library-heading > div:first-child p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.library-view-switcher { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.library-view-switcher button { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 10px; color: #788392; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.library-view-switcher button:hover { color: var(--navy-700); background: #f4f6f8; }
.library-view-switcher button.is-active { color: white; background: var(--navy-700); }
.library-view-switcher button span { font-size: 15px; line-height: 1; }
.library-view-switcher button b { font-size: 10px; white-space: nowrap; }
.library-panel { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.library-results { display: grid; gap: 9px; }
.library-item { position: relative; display: grid; min-width: 0; align-items: center; overflow: hidden; border: 1px solid #e0e4ea; border-radius: 8px; background: white; box-shadow: 0 2px 9px rgba(15,28,50,.025); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.library-item:hover { border-color: #c5ccd6; box-shadow: 0 7px 20px rgba(15,28,50,.07); transform: translateY(-1px); }
.library-item-visual { display: grid; place-items: center; overflow: hidden; background: #f2f4f7; }
.library-item-visual img { width: 100%; height: 100%; object-fit: cover; }
.library-item-visual .type-glyph { width: 42px; height: 42px; font-size: 20px; }
.library-item-main { min-width: 0; }
.library-item-main h3 { overflow: hidden; margin: 0; color: #26344c; font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.library-item-main > p { display: none; margin: 8px 0 0; color: #626e7f; font-size: 11px; line-height: 1.55; }
.library-item-main > small { display: block; margin-top: 7px; color: #939ca8; font-size: 9px; }
.library-item-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.library-item-meta > span:first-child { overflow: hidden; color: #7c8797; font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; letter-spacing: .045em; }
.library-item-meta .status { flex: 0 0 auto; }
.library-item-action { padding-right: 10px; }
.library-item-action .icon-button { width: 31px; height: 31px; }
.library-results[data-view="one"] { grid-template-columns: minmax(0, 1fr); }
.library-results[data-view="one"] .library-item { grid-template-columns: 72px minmax(0, 1fr) 42px; min-height: 86px; }
.library-results[data-view="one"] .library-item-visual { width: 72px; height: 86px; }
.library-results[data-view="one"] .library-item-main { padding: 12px 15px; }
.library-results[data-view="one"] .library-item-main h3 { font-size: 15px; }
.library-results[data-view="one"] .library-item-main > p { display: block; overflow: hidden; margin-top: 5px; white-space: nowrap; text-overflow: ellipsis; }
.library-results[data-view="one"] .library-item-main > small { display: none; }
.library-results[data-view="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.library-results[data-view="two"] .library-item { grid-template-columns: 70px minmax(0, 1fr) 39px; min-height: 82px; }
.library-results[data-view="two"] .library-item-visual { width: 70px; height: 82px; }
.library-results[data-view="two"] .library-item-main { padding: 10px 11px; }
.library-results[data-view="two"] .library-item-main > small { display: none; }
.library-results[data-view="cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.library-results[data-view="cards"] .library-item { grid-template-columns: 142px minmax(0, 1fr) 43px; min-height: 218px; }
.library-results[data-view="cards"] .library-item-visual { align-self: stretch; width: 142px; height: 100%; }
.library-results[data-view="cards"] .library-item-main { padding: 20px 16px; }
.library-results[data-view="cards"] .library-item-main h3 { font-size: 17px; white-space: normal; }
.library-results[data-view="cards"] .library-item-main > p { display: block; }
.library-results[data-view="cards"] .library-item-action { align-self: start; padding-top: 14px; }
.library-results[data-view="cards"] .library-item:not(.has-image) { grid-template-columns: 78px minmax(0, 1fr) 43px; }
.library-results[data-view="cards"] .library-item:not(.has-image) .library-item-visual { width: 78px; }

.page-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-actions > div { display: flex; align-items: baseline; gap: 10px; }
.summary-number { font-family: 'Manrope', sans-serif; font-size: 30px; font-weight: 800; }
.promo-list { padding: 0 20px; }
.promo-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 22px; align-items: center; min-height: 144px; padding: 20px 5px; border-bottom: 1px solid var(--soft-line); }
.promo-row:last-child { border-bottom: 0; }
.promo-date { display: flex; flex-direction: column; width: 53px; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 9px; }
.promo-date span { padding: 3px; color: white; background: var(--navy-700); font-size: 9px; font-weight: 800; }
.promo-date strong { padding: 6px; font-family: 'Manrope', sans-serif; font-size: 20px; }
.promo-main h3 { margin: 8px 0 5px; }
.promo-main p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.promo-main small { color: #8e97a5; font-size: 11px; }
.promo-main-heading { display: flex; align-items: center; gap: 8px; }
.promo-card-icon { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: var(--orange-soft); font-size: 17px; }
.row-actions { display: flex; align-items: center; gap: 8px; }

.promo-summary-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding: 0 3px; }
.promo-summary-bar > div { display: flex; align-items: center; gap: 12px; }
.promo-summary-actions { display: flex; align-items: center; gap: 9px; }
.promo-summary-bar strong, .promo-summary-bar small { display: block; }
.promo-summary-bar strong { font-family: 'Manrope', sans-serif; font-size: 14px; }
.promo-summary-bar small { color: var(--muted); font-size: 10px; }
.promo-panel { overflow-x: auto; }
.compact-promo-list { min-width: 820px; padding: 0 15px; }
.compact-promo-row { grid-template-columns: 48px minmax(260px, 1fr) minmax(170px, .65fr) 105px auto; gap: 14px; min-height: 91px; padding: 12px 3px; }
.compact-promo-row .promo-date { width: 44px; }
.compact-promo-row .promo-date strong { padding: 4px; font-size: 17px; }
.compact-promo-row .promo-main h3 { margin: 5px 0 2px; font-size: 14px; }
.compact-promo-row .promo-main p { overflow: hidden; margin: 0; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.promo-view-results { display: grid; min-width: 0; gap: 10px; padding: 0; }
.promo-view-results .promo-row { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.promo-view-results[data-view="one"] { grid-template-columns: minmax(0, 1fr); }
.promo-view-results[data-view="one"] .promo-row { grid-template-columns: 48px minmax(220px, 1fr) minmax(120px, .5fr) 90px auto; }
.promo-view-results[data-view="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promo-view-results[data-view="two"] .promo-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; min-height: 112px; }
.promo-view-results[data-view="two"] .promo-date { grid-area: 1 / 1 / 3 / 2; }
.promo-view-results[data-view="two"] .promo-main { grid-area: 1 / 2; }
.promo-view-results[data-view="two"] .promo-extras { display: none; }
.promo-view-results[data-view="two"] .promo-window { grid-area: 2 / 2; margin-top: 5px; }
.promo-view-results[data-view="two"] .row-actions { grid-area: 1 / 3 / 3 / 4; align-self: center; flex-direction: column; }
.promo-view-results[data-view="cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.promo-view-results[data-view="cards"] .promo-row { grid-template-columns: 54px minmax(0, 1fr); align-content: start; min-height: 238px; padding: 18px; }
.promo-view-results[data-view="cards"] .promo-date { grid-area: 1 / 1 / 3 / 2; }
.promo-view-results[data-view="cards"] .promo-main { grid-column: 2; }
.promo-view-results[data-view="cards"] .promo-main h3 { margin-top: 8px; font-size: 17px; }
.promo-view-results[data-view="cards"] .promo-main p { display: -webkit-box; overflow: hidden; margin-top: 7px; font-size: 12px; line-height: 1.55; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.promo-view-results[data-view="cards"] .promo-extras, .promo-view-results[data-view="cards"] .promo-window, .promo-view-results[data-view="cards"] .row-actions { grid-column: 2; }
.promo-view-results[data-view="cards"] .promo-extras { display: flex; margin-top: 12px; }
.promo-view-results[data-view="cards"] .promo-window { margin-top: 10px; }
.promo-view-results[data-view="cards"] .row-actions { align-self: end; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--soft-line); }
.promo-extras { display: flex; flex-wrap: wrap; gap: 5px; }
.promo-extras span { padding: 3px 6px; color: #687487; border-radius: 5px; background: #f0f2f5; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.promo-window strong, .promo-window small { display: block; }
.promo-window strong { font-size: 10px; }
.promo-window small { color: var(--muted); font-size: 8px; }

.promo-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: hidden; padding: 0; color: var(--ink); border: 0; border-radius: 15px; background: transparent; box-shadow: 0 24px 90px rgba(5,15,32,.34); }
.promo-dialog::backdrop { background: rgba(7,16,31,.62); backdrop-filter: blur(3px); }
.promo-modal-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 15px; background: white; }
.promo-modal-header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--soft-line); }
.promo-modal-header h2 { margin: 0 0 3px; }
.promo-modal-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.modal-close { display: grid; width: 34px; height: 34px; place-items: center; color: #788392; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 20px; }
.modal-close:hover { color: var(--ink); background: #f5f6f8; }
.promo-modal-body { display: grid; grid-template-columns: minmax(0, 1fr) 285px; max-height: calc(100dvh - 184px); overflow-y: auto; }
.promo-content-fields { display: flex; flex-direction: column; gap: 13px; padding: 20px 22px 25px; }
.promo-content-fields textarea { min-height: 0; padding: 10px; }
.promo-title-row { display: grid; grid-template-columns: minmax(160px, .38fr) minmax(280px, 1fr); gap: 11px; }
.promo-title-row .headline-input { height: 44px; font-size: 14px; }
.promo-icon-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.promo-icon-picker legend { margin-bottom: 6px; color: #465266; font-size: 11px; font-weight: 700; }
.promo-icon-picker > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.promo-icon-picker label { position: relative; display: grid; min-width: 0; min-height: 58px; align-content: center; justify-items: center; gap: 3px; padding: 6px 3px; color: #687487; border: 1px solid #dce1e8; border-radius: 8px; background: white; cursor: pointer; }
.promo-icon-picker label:hover { color: var(--navy-800); border-color: #bdc7d4; background: #fafbfc; }
.promo-icon-picker label:has(input:checked) { color: var(--orange-dark); border-color: #f09b70; background: var(--orange-soft); box-shadow: inset 0 0 0 1px #f09b70; }
.promo-icon-picker input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.promo-icon-picker label > span { font-size: 21px; line-height: 1; }
.promo-icon-picker label > small { overflow: hidden; max-width: 100%; font-size: 8px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.promo-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.talking-point-list { display: flex; flex-direction: column; gap: 6px; }
.talking-point-row { display: grid; grid-template-columns: 17px 1fr 30px; align-items: center; gap: 5px; }
.talking-point-row > span { color: var(--orange); text-align: center; font-size: 17px; font-weight: 800; }
.talking-point-row input { height: 36px; margin: 0; font-size: 10px; }
.point-remove { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: #9aa3af; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 17px; }
.point-remove:hover { color: var(--red); background: var(--red-soft); }
.content-builder { padding-top: 4px; border-top: 1px solid var(--soft-line); }
.content-builder-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 10px 0; }
.content-builder-heading > div:first-child label { color: var(--ink); font-size: 12px; }
.content-builder-heading > div:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.block-palette { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.block-palette button { padding: 6px 8px; color: var(--navy-700); border: 1px solid #d8dee7; border-radius: 6px; background: white; cursor: pointer; font-size: 9px; font-weight: 800; }
.block-palette button:hover { color: var(--orange-dark); border-color: #f4b797; background: var(--orange-soft); }
.content-block-list { display: flex; flex-direction: column; gap: 8px; }
.content-block { overflow: hidden; border: 1px solid #d9dfe7; border-radius: 9px; background: #fbfcfd; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.content-block:hover { border-color: #bdc7d4; }
.content-block.block-dragging { opacity: .48; border-color: var(--orange); box-shadow: 0 8px 24px rgba(23,34,51,.12); }
.block-header { display: flex; min-height: 35px; align-items: center; gap: 7px; padding: 5px 7px 5px 10px; border-bottom: 1px solid #e5e9ef; background: #f2f4f7; }
.block-drag { color: #8d98a7; cursor: grab; font-size: 15px; line-height: 1; }
.block-type { flex: 1; color: #5a6677; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.block-actions { display: flex; gap: 3px; }
.block-actions button { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; color: #6d7989; border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 13px; }
.block-actions button:hover:not(:disabled) { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(20,32,48,.12); }
.block-actions button[data-remove-block]:hover { color: var(--red); background: var(--red-soft); }
.block-actions button:disabled { opacity: .28; cursor: default; }
.block-body { display: grid; grid-template-columns: minmax(135px, .3fr) minmax(0, 1fr); gap: 10px; padding: 10px; }
.block-body input, .block-body textarea { margin-top: 4px; font-size: 10px; }
.block-body input { height: 35px; }
.block-body textarea { padding: 8px 10px; }
.block-body .field-label-row { margin: 0 0 5px; }
.block-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 68px; color: #929baa; border: 1px dashed #d6dce5; border-radius: 9px; background: #fafbfc; text-align: center; }
.block-empty[hidden] { display: none; }
.block-empty strong { color: #697587; font-size: 10px; }
.block-empty span { margin-top: 3px; font-size: 9px; }
.promo-modal-side { display: flex; flex-direction: column; gap: 14px; padding: 21px 18px; border-left: 1px solid var(--soft-line); background: #f7f8fa; }
.promo-modal-side h3 { margin: 0; font-size: 16px; }
.promo-modal-side > label:not(.check-row) { font-size: 10px; }
.promo-modal-side input { height: 39px; font-size: 10px; }
.promo-modal-side .check-row { padding: 10px; background: white; }
.modal-divider { height: 1px; background: var(--line); }
.promo-modal-tip { margin-top: auto; padding: 12px; color: #566171; border-radius: 8px; background: #e9eef4; }
.promo-modal-tip strong { font-size: 10px; }
.promo-modal-tip p { margin: 3px 0 0; font-size: 9px; line-height: 1.5; }
.promo-modal-footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; padding: 12px 22px; border-top: 1px solid var(--soft-line); background: white; }
.promo-modal-footer > span { color: var(--muted); font-size: 9px; }
.promo-modal-footer > div { display: flex; gap: 7px; }
.stream-support { margin: 8px 0 !important; padding: 10px 12px !important; }
.stream-support strong { display: block; margin-bottom: 4px; color: var(--navy-700); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.stream-support ul { margin: 0; padding-left: 17px; }
.stream-support p { margin: 0; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.editor-main { padding: 31px; }
.editor-side { display: flex; flex-direction: column; gap: 15px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--soft-line); }
.panel-heading h2 { margin: 0; }
.autosave-note { color: #9aa3af; font-size: 10px; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
label { display: block; color: #3d4859; font-size: 12px; font-weight: 700; }
label small { display: block; margin-top: 5px; color: #8a94a3; font-size: 10px; font-weight: 400; }
input, select, textarea { width: 100%; margin-top: 6px; color: var(--ink); border: 1px solid #ccd3dd; border-radius: 8px; outline: none; background: white; transition: .15s ease; }
input, select { height: 44px; padding: 0 12px; }
textarea { padding: 13px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: #7593b0; box-shadow: 0 0 0 3px rgba(38,58,91,.08); }
input:disabled { color: #9ca5b2; background: #f1f3f5; }
.headline-input { height: 52px; font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.check-row input { flex: 0 0 17px; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--orange); }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: 12px; }
.check-row small { margin-top: 2px; line-height: 1.35; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 25px; align-items: start; }
.sticky-panel { position: sticky; top: 20px; }
.feed-list { display: flex; flex-direction: column; gap: 11px; }
.feed-card { display: flex; align-items: center; gap: 15px; min-height: 105px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.feed-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; color: #267d78; border-radius: 11px; background: #e5f8f5; font-size: 21px; }
.feed-main { min-width: 0; flex: 1; }
.feed-title { display: flex; align-items: center; gap: 10px; }
.feed-title h3 { margin: 0; font-size: 15px; }
.feed-main > p { overflow: hidden; margin: 5px 0; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.feed-health { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #8b95a3; font-size: 10px; }
.health-dot { width: 6px; height: 6px; border-radius: 50%; background: #aab2be; }
.health-success { background: var(--green); }
.health-error { background: var(--red); }
.danger-zone { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--soft-line); }

.settings-layout { display: grid; grid-template-columns: minmax(430px, 1.25fr) minmax(330px, .9fr); gap: 22px; align-items: start; }
.station-settings-form { grid-row: span 3; }
.automation-panel p, .daily-source-panel > p { color: var(--muted); font-size: 12px; }
.account-settings-form, .daily-source-panel { scroll-margin-top: 25px; }
.daily-source-list { margin: 16px 0 13px; border-top: 1px solid var(--soft-line); }
.daily-source-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--soft-line); }
.daily-source-row strong, .daily-source-row small { display: block; }
.daily-source-row strong { font-size: 10px; text-transform: capitalize; }
.daily-source-row small { overflow: hidden; color: var(--muted); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.copy-field { display: flex; gap: 7px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.code-note { margin: 18px 0; padding: 13px; border-radius: 8px; background: var(--navy-950); }
.code-note strong, .code-note code { display: block; color: white; font-size: 10px; }
.code-note strong { margin-bottom: 5px; color: #8f9cb0; text-transform: uppercase; letter-spacing: .06em; }
.code-note code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.weather-settings { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; scroll-margin-top: 25px; }
.setting-subhead { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.setting-subhead > span { display: grid; width: 28px; height: 28px; place-items: center; color: #a96e12; border-radius: 7px; background: #fff3d6; }
.setting-subhead strong, .setting-subhead small { display: block; }
.setting-subhead strong { font-size: 11px; }
.setting-subhead small { color: var(--muted); font-size: 9px; }

.empty-state { padding: 70px 30px; text-align: center; }
.empty-state.small { padding: 45px 25px; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 500px; margin: 0 auto 22px; color: var(--muted); }
.empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 15px; place-items: center; color: var(--orange); border-radius: 14px; background: var(--orange-soft); font-size: 22px; }

.auth-body { min-height: 100vh; background: var(--navy-950); }
.auth-shell { display: grid; grid-template-columns: minmax(370px, .95fr) minmax(500px, 1.05fr); min-height: 100vh; }
.auth-intro { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: clamp(35px, 6vw, 75px); color: white; background: radial-gradient(circle at 15% 20%, rgba(75,210,197,.11), transparent 25%), linear-gradient(145deg, var(--navy-950), #172a49); }
.auth-intro::after { position: absolute; right: -60px; bottom: -50px; width: 300px; height: 300px; border: 60px solid rgba(242,107,56,.06); border-radius: 50%; content: ''; }
.auth-intro .kicker { margin-bottom: 16px; color: var(--cyan); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.auth-intro h1 { margin-bottom: 20px; font-size: clamp(38px, 5vw, 64px); line-height: 1.03; }
.auth-intro > div p:last-child { max-width: 490px; color: #98a8bf; font-size: 16px; line-height: 1.7; }
.auth-footnote { z-index: 1; margin: 0; color: #73829a; font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: 35px; background: white; }
.auth-form-wrap { width: min(460px, 100%); }
.auth-form-wrap h2 { margin-bottom: 7px; font-size: 30px; }
.auth-form-wrap > .muted { margin-bottom: 28px; }
.install-shell .auth-form-wrap { width: min(570px, 100%); }
.install-shell .auth-panel { overflow-y: auto; }
.install-shell .auth-intro h1 { font-size: clamp(36px, 4.5vw, 59px); }

@media (min-width: 781px) {
    html.sidebar-collapsed { --sidebar-width: 76px; }
    html.sidebar-collapsed .sidebar { padding-inline: 11px; }
    html.sidebar-collapsed .topbar-brand { justify-content: center; padding-inline: 11px; }
    html.sidebar-collapsed .brand { width: 100%; justify-content: center; }
    html.sidebar-collapsed .brand-name,
    html.sidebar-collapsed .station-chip > div,
    html.sidebar-collapsed .nav-label { display: none; }
    html.sidebar-collapsed .station-chip { justify-content: center; margin-inline: 0; padding-inline: 0; }
    html.sidebar-collapsed .nav-link { justify-content: center; gap: 0; padding-inline: 0; }
}

@container (max-width: 850px) {
    .page-primary .split-layout, .page-primary .editor-layout, .page-primary .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .page-primary .sticky-panel { position: static; }
    .page-primary .filter-form { grid-template-columns: 1fr 1fr; }
    .page-primary .filter-form .search-field, .page-primary .filter-form .button { grid-column: 1 / -1; }
    .page-primary .show-toolbar { align-items: stretch; flex-direction: column; }
    .page-primary .show-selector { display: grid; grid-template-columns: 1fr 1fr; }
    .page-primary .show-selector label input, .page-primary .show-selector label select { width: 100%; }
    .page-primary .show-selector .button { grid-column: 1 / -1; }
    .page-primary .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 650px) {
    .page-primary .library-results[data-view="two"], .page-primary .library-results[data-view="cards"] { grid-template-columns: minmax(0, 1fr); }
    .page-primary .prep-stream[data-view="two"], .page-primary .prep-stream[data-view="cards"], .page-primary .promo-view-results[data-view="two"], .page-primary .promo-view-results[data-view="cards"] { grid-template-columns: minmax(0, 1fr); }
}

@container (min-width: 651px) {
    .page-primary .filter-form { grid-template-columns: minmax(220px, 1fr) 150px 140px auto; }
    .page-primary .filter-form .search-field, .page-primary .filter-form .button { grid-column: auto; }
}

@media (max-width: 1050px) {
    .workspace { width: calc(100% - var(--sidebar-width)); }
    .page-with-rundown { display: block; }
    .rundown-rail { z-index: 35; width: min(320px, 94vw); transform: translateX(105%); transition: transform .22s ease; }
    body.rundown-open .rundown-rail { transform: translateX(0); }
    .rundown-rail .break-list { flex: 1 1 auto; max-height: none; overflow-y: auto; }
    .topbar-actions .rundown-toggle { display: inline-flex; }
    .rundown-rail .rundown-close { display: inline-grid; }
    .rundown-scrim { position: fixed; inset: var(--header-height) 0 0; z-index: 34; visibility: hidden; display: block; background: rgba(5,12,25,.48); opacity: 0; transition: .22s ease; }
    body.rundown-open .rundown-scrim { visibility: visible; opacity: 1; }
    .rundown-grid { grid-template-columns: 1fr; }
    .editor-layout, .split-layout { grid-template-columns: 1fr; }
    .editor-side { display: grid; grid-template-columns: 1fr 1fr; }
    .editor-side > .button { align-self: end; }
    .sticky-panel { position: static; }
    .settings-layout { grid-template-columns: 1fr; }
    .station-settings-form { grid-row: auto; }
    .hero-strip::after { display: none; }
    .show-workbench { grid-template-columns: 1fr; }
    .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prep-stream { max-height: none; min-height: 0; overflow: visible; }
    .weather-detail { display: none; }
    .weather-chip { min-width: 0; }
    .promo-extras { display: none; }
    .compact-promo-row { grid-template-columns: 48px minmax(260px, 1fr) 105px auto; }
}

@media (max-width: 780px) {
    :root { --header-height: 88px; }
    .mobile-only { display: inline-grid !important; }
    .sidebar-collapse-toggle { display: none; }
    .sidebar { width: min(300px, 87vw); transform: translateX(-105%); transition: transform .22s ease; }
    body.nav-open .sidebar { transform: translateX(0); }
    .nav-scrim { position: fixed; inset: var(--header-height) 0 0; z-index: 15; visibility: hidden; background: rgba(5,12,25,.48); opacity: 0; transition: .22s ease; }
    body.nav-open .nav-scrim { visibility: visible; opacity: 1; }
    .workspace { width: 100%; margin-left: 0; }
    .topbar { grid-template-columns: 54px minmax(0, 1fr); }
    .topbar-brand { justify-content: center; padding: 0 9px; }
    .topbar-brand .brand-name { display: none; }
    .topbar-main { gap: 10px; padding: 12px 14px; }
    .topbar h1 { font-size: 22px; }
    .topbar-title p, .clock { display: none; }
    .topbar-actions { gap: 8px; }
    .topbar-actions .button { padding: 0 12px; font-size: 0; }
    .topbar-actions .button span { font-size: 18px; }
    .topbar-actions .rundown-toggle { font-size: 10px; }
    .content { padding: 22px 17px 45px; }
    .hero-strip { align-items: flex-start; flex-direction: column; margin-bottom: 25px; padding: 18px; }
    .hero-stats { width: 100%; margin: 0; }
    .section-heading { align-items: flex-start; gap: 12px; }
    .filter-form { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .filter-form .button { grid-column: 1 / -1; }
    .table-panel { overflow-x: auto; }
    .promo-list { min-width: 700px; }
    .editor-side { display: flex; }
    .editor-main, .panel { padding: 20px; }
    .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-intro { display: none; }
    .auth-panel { min-height: 100vh; padding: 25px; }
    .show-toolbar { align-items: stretch; flex-direction: column; }
    .show-selector { display: grid; grid-template-columns: 1fr 1fr; }
    .show-selector label input, .show-selector label select { width: 100%; }
    .show-selector .button { grid-column: 1 / -1; }
    .show-workbench { grid-template-columns: minmax(0, 1fr); }
    .weather-chip { padding: 4px 7px; border-color: transparent; background: transparent; }
    .weather-chip .weather-icon { flex-basis: 32px; width: 32px; height: 32px; }
    .weather-setup > span:last-child, .weather-unavailable > span:last-child { display: none; }
    .promo-dialog { width: min(720px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); }
    .promo-modal-body { grid-template-columns: 1fr; max-height: calc(100dvh - 172px); }
    .promo-modal-side { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--soft-line); border-left: 0; }
    .promo-modal-side > div:first-child, .promo-modal-side .modal-divider, .promo-modal-tip { grid-column: 1 / -1; }
    .promo-modal-side .check-row { align-self: end; }
    .prep-stream, .break-detail-grid { grid-template-columns: 1fr; }
    .workbench-heading, .promo-summary-bar, .promo-summary-actions { align-items: stretch; flex-direction: column; }
    .workbench-actions { align-items: stretch; flex-direction: column; }
    .promo-list.promo-view-results { min-width: 0; }
    .promo-view-results[data-view="two"], .promo-view-results[data-view="cards"] { grid-template-columns: minmax(0, 1fr); }
    .starter-feed-callout { grid-template-columns: 38px minmax(0, 1fr); }
    .starter-feed-callout form, .starter-feed-connected { grid-column: 2; justify-self: start; }
    .library-heading { align-items: stretch; flex-direction: column; }
    .library-view-switcher { width: 100%; }
    .library-view-switcher button { flex: 1; justify-content: center; }
    .library-results[data-view="two"], .library-results[data-view="cards"] { grid-template-columns: minmax(0, 1fr); }
    .story-reader.has-media { grid-template-columns: 170px minmax(0, 1fr); }
    .story-reader-main { padding: 24px; }
    .story-reader-media { padding: 15px; }
}

@media (max-width: 500px) {
    .topbar-main { gap: 7px; padding-inline: 10px; }
    .topbar-title { max-width: 100px; }
    .topbar-title h1 { overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
    .topbar-actions { gap: 6px; }
    .topbar-actions .weather-chip { display: none; }
    .account-popover { width: min(250px, calc(100vw - 20px)); }
    .hero-stats { gap: 12px; justify-content: space-between; }
    .hero-stats span { min-width: auto; }
    .segmented { width: 100%; }
    .segmented button { flex: 1; padding-inline: 7px; }
    .section-heading:has(.segmented) { align-items: stretch; flex-direction: column; }
    .field-row { grid-template-columns: 1fr; }
    .feed-card { align-items: flex-start; }
    .feed-icon { display: none; }
    .feed-card > .row-actions { flex-direction: column; }
    .page-actions .muted { display: none; }
    .prep-search { grid-template-columns: 1fr 40px; }
    .prep-search .search-field { grid-column: 1 / -1; }
    .prep-search select { min-width: 0; }
    .daily-grid { grid-template-columns: 1fr; }
    .daily-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .daily-list { max-height: none; }
    .break-detail-header { align-items: stretch; flex-direction: column; }
    .starter-feed-callout { grid-template-columns: 1fr; }
    .starter-feed-callout form, .starter-feed-connected { grid-column: 1; }
    .entry-editor form { grid-template-columns: 1fr; }
    .weather-chip { gap: 4px; }
    .weather-temp { font-size: 20px; }
    .promo-dialog { width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
    .story-dialog { width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
    .story-dialog-shell { border: 0; border-radius: 0; }
    .story-dialog-header { min-height: 70px; padding: 12px 15px; }
    .story-dialog-content { max-height: calc(100dvh - 132px); padding: 0; }
    .story-dialog-footer { min-height: 62px; padding: 9px 12px; }
    .story-dialog-footer > span { display: none; }
    .story-dialog-footer .button { width: 100%; }
    .story-reader, .story-reader.has-media { display: block; min-height: 0; }
    .story-reader-media { min-height: 0; padding: 14px 17px; }
    .story-reader-media img { width: 96px; aspect-ratio: 1 / 1; }
    .story-reader-media > div { margin-top: 10px; padding-top: 10px; }
    .story-reader-main { padding: 22px 17px 28px; }
    .library-view-switcher button b { display: none; }
    .library-results[data-view="cards"] .library-item { grid-template-columns: 104px minmax(0, 1fr) 38px; min-height: 176px; }
    .library-results[data-view="cards"] .library-item-visual { width: 104px; }
    .library-results[data-view="cards"] .library-item-main { padding: 14px 10px; }
    .promo-modal-shell { border: 0; border-radius: 0; }
    .promo-modal-header { min-height: 72px; padding: 13px 15px; }
    .promo-modal-body { max-height: calc(100dvh - 138px); }
    .promo-content-fields { padding: 16px 15px 20px; }
    .promo-title-row, .promo-support-grid, .promo-modal-side { grid-template-columns: 1fr; }
    .promo-modal-side > div:first-child, .promo-modal-side .modal-divider, .promo-modal-tip { grid-column: auto; }
    .promo-modal-footer { min-height: 66px; padding: 9px 12px; }
    .promo-modal-footer > span { display: none; }
    .promo-modal-footer > div { width: 100%; }
    .promo-modal-footer .button-primary { flex: 1; }
    .content-builder-heading { align-items: stretch; flex-direction: column; }
    .block-palette { justify-content: flex-start; }
    .block-body { grid-template-columns: 1fr; }
}
