:root {
  color-scheme: light;
  --paper: #f8f1e7;
  --panel: #fffaf3;
  --ink: #2c1a32;
  --muted: #6e5b72;
  --plum: #381e44;
  --lavender: #eee3f0;
  --line: #ddcddd;
  --lime: #d6fa55;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .calendar:focus-visible { outline: 2px solid #8752a0; outline-offset: 3px; }
.shell { width: min(1440px, 100% - 64px); margin: 24px auto; display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 18px; height: calc(100dvh - 48px); }
.sidebar, .calendar { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.sidebar { display: flex; flex-direction: column; padding: 20px 15px 13px; gap: 7px; }
.sidebar-accounts { display: grid; min-width: 0; gap: 4px; padding-top: 4px; }
.sidebar-accounts label { font-size: 12px; font-weight: 700; }
.sidebar-accounts select { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 0 7px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; }
.sidebar-accounts select + label { margin-top: 4px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 4px 21px; font-size: 20px; font-weight: 760; line-height: 1.02; letter-spacing: -.045em; }
.brand-icon { display: block; flex: none; width: 40px; height: 40px; border-radius: 11px; }
.button, .nav-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: 13px; font-weight: 680; background: var(--panel); min-height: 35px; white-space: nowrap; }
.button:hover, .nav-button:hover, .series:hover { filter: brightness(.96); }
.button[hidden] { display: none; }
.button.danger { color: #852d43; }
.plum { background: var(--plum); color: white; border-color: var(--plum); }
.lime { background: var(--lime); border-color: var(--lime); color: #253009; }
.nav-button { justify-content: flex-start; border-color: transparent; background: transparent; width: 100%; }
.jump { justify-content: space-between; }
.views { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.views h2 { margin: 20px 9px 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.nav-button[aria-pressed="true"], .series[aria-pressed="true"] { background: var(--lavender); }
.series { width: 100%; text-align: left; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; border-radius: 9px; padding: 10px 9px; }
.series strong, .series small { display: block; }
.series strong { font-size: 13px; }
.series small { margin-top: 3px; font-size: 11px; color: var(--muted); }
.settings { margin-top: auto; font-size: 12px; white-space: normal; text-align: left; }
#settings-button[hidden], #password-logout[hidden] { display: none; }
.guest-signin { width: min(390px, calc(100% - 32px)); margin: 12vh auto; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.guest-signin img { border-radius: 9px; }
.guest-signin h1 { margin: 12px 0 20px; font-size: 24px; }
.guest-signin label { display: block; font-weight: 700; margin-bottom: 6px; }
.guest-signin a { display: block; margin-top: 18px; font-size: 13px; }
.guest-signin input { font-size: 16px; }
.calendar { overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #af87bc #f3eaf1; scrollbar-width: thin; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 23px 13px; border-bottom: 1px solid var(--line); }
.calendar-heading h1 { margin: 0; letter-spacing: -.055em; font-size: 25px; }
.schedule-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 13px; }
.schedule-controls[hidden] { display: none; }
.schedule-status { margin: 10px 23px 2px; font-size: 13px; color: var(--muted); }
.agenda { padding: 11px 22px 20px 35px; position: relative; }
.agenda::before { content: ""; position: absolute; left: 20px; top: 12px; bottom: 23px; border-left: 1px solid #c5a6ce; }
.day { position: relative; }
.day::before { content: ""; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); border-radius: 50%; height: 8px; width: 8px; border: 1px solid #a67bb0; background: var(--panel); }
.empty::before { left: -17px; width: 4px; height: 4px; background: #ab87b5; border: 0; }
.empty { display: flex; align-items: stretch; min-height: 17px; }
.empty button { width: 100%; border: 0; background: transparent; color: var(--muted); padding: 0 4px; text-align: left; font-size: 11px; line-height: 17px; border-radius: 3px; }
.empty button:hover, .empty button:focus-visible { background: var(--lavender); }
.empty button span { display: none; float: right; }
.empty button:hover span, .empty button:focus-visible span { display: inline; }
.empty:not(.is-today) .date { font: inherit; }
.is-past.empty button, .is-past .event-row { color: #776f79; }
.is-past::before { border-color: #aaa1a8; background: #d7cfd4; }
.is-past .event-row .art { filter: saturate(.45); }
.is-past .event-row .status { background: #eee8eb; color: #655c65; }
.is-today { background: #f0e2f3; border-radius: 6px; box-shadow: inset 2px 0 #653973; }
.is-today::before { width: 8px; height: 8px; left: -19px; background: #653973; border-color: #653973; }
.is-today.empty button { min-height: 27px; padding-inline: 7px; color: var(--ink); }
.is-today .date { font-weight: 800; }
.today-tag { display: inline-block; margin-inline-start: 5px; padding: 0 5px; border-radius: 8px; background: #653973; color: white; font-size: 10px; line-height: 15px; white-space: nowrap; }
.editor-date .today-tag { margin-inline-start: 0; background: var(--lavender); color: var(--plum); }
.event-row { display: grid; align-items: center; grid-template-columns: 106px 78px minmax(0, 1fr) auto; gap: 13px; width: 100%; text-align: left; padding: 8px 4px; border: 0; border-top: 1px solid #e9dcea; background: transparent; color: var(--muted); }
.event-row:hover { background: #faf1f8; }
.event-row.no-thumbnail { grid-template-columns: 106px minmax(0, 1fr) auto; }
.date { font-size: 12px; font-weight: 700; white-space: nowrap; }
.start-time { display: block; font-size: 11px; white-space: nowrap; }
.event-name, .excerpt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-name { font-size: 14px; font-weight: 720; }
.excerpt { margin-top: 3px; opacity: .9; font-size: 12px; }
.status { font-size: 11px; font-weight: 670; border-radius: 40px; padding: 4px 8px; background: var(--lavender); color: #653973; white-space: nowrap; }
.art { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #102d31; position: relative; display: block; }
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c272d 6%, #0c272d 35%, transparent 67%); }
.art img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: right center; clip-path: inset(0 0 0 48%); }
.event-art { background: var(--lavender); }
.event-art::after { content: none; }
.event-art img { clip-path: none; object-position: center; }
.event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.button[href] { text-decoration: none; }
.planner-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.weekdays { display: flex; flex-wrap: wrap; gap: 3px 8px; padding: 6px 8px; margin: 0 0 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.weekdays label { display: inline-flex; align-items: center; margin: 0; }
.planned-list { list-style: none; padding: 0; margin: 0; }
#stream-series { max-height: min(40vh, 320px); overflow-y: auto; }
.planned-episode { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 8px 0; }
.planned-episode:hover { background: var(--lavender); }
.planned-episode small { display: block; color: var(--muted); }
.plan-thumbnail { display: block; width: min(100%, 280px); border-radius: 7px; margin-bottom: 8px; }
.thumbnail-choice-preview { margin-bottom: 9px; }
.thumbnail-stage { position: relative; }
.thumbnail-stage .thumbnail-update { position: absolute; inset: 8px 8px auto auto; background: #fbe095; color: #31202b; border-color: #31202b; box-shadow: 0 2px 8px #21122550; }
.thumbnail-stage .thumbnail-update:hover { background: #ffedba; }
.thumbnail-loading { display: none; position: absolute; inset: 0; z-index: 1; place-items: center; border-radius: 8px; background: #211c26aa; }
.thumbnail-stage[aria-busy="true"] .thumbnail-choice-preview { filter: grayscale(1); }
.thumbnail-stage[aria-busy="true"] .thumbnail-loading { display: grid; }
.thumbnail-loading::before { content: ""; width: 32px; height: 32px; border: 3px solid #ffffff50; border-top-color: #fff; border-radius: 50%; animation: thumbnail-spin .8s linear infinite; }
@keyframes thumbnail-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .thumbnail-loading::before { animation-duration: 2s; } }
.series-art { max-width: 220px; }
.thumbnail-generator { display: grid; gap: 6px; }
.thumbnail-generator .inline-feedback { margin: 0; }
.thumbnail-actions .button { min-height: 32px; padding: 4px 9px; }
.thumbnail-prompt { margin-bottom: 0; min-width: 0; }
.thumbnail-prompt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.thumbnail-prompt-row input { min-width: 0; }
.presenter-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.presenter-selection:empty { display: none; }

.presenter-manager summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.presenter-manager { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.presenter-list { list-style: none; padding: 0; }
.presenter-list li, .presenter-selection label { display: flex; gap: 7px; align-items: center; margin: 6px 0; }
.presenter-list li span { flex: 1; }
.presenter-list img, .presenter-selection img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.timeline-more { padding: 0 23px 18px; }
.inline-feedback { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.inline-feedback:empty { display: none; }
#series-form [role="status"]:empty, #delete-series-form [role="status"]:empty, #series-episode-form [role="status"]:empty { display: none; }
.art-copy { position: absolute; z-index: 1; left: 6%; top: 12%; max-width: 48%; color: #fff0b3; font-weight: 950; font-stretch: condensed; text-transform: uppercase; font-size: 7px; line-height: .96; letter-spacing: -.04em; }
.art-copy span { display: block; color: #f5ca45; margin-top: .15em; overflow-wrap: anywhere; }
.art-copy small { display: block; color: #fff4c8; font-weight: 700; font-size: .36em; letter-spacing: .23em; margin-bottom: .75em; }
.event-row .art { opacity: .76; }
.next { margin: 12px 0; scroll-margin-top: 14px; }
.next::before { top: 12px; background: #e07763; border-color: #e07763; }
.next-label { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; color: #673376; font-size: 13px; font-weight: 760; }
.next-label::after { content: ""; flex: 1; border-top: 1px solid #b18cbd; }
.editor { border: 1px solid #885b93; border-radius: 12px; overflow: hidden; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--plum); color: white; }
.editor-date, .editor-actions { display: flex; align-items: center; gap: 8px; }
.editor-actions { margin-inline-start: auto; }
.editor-bar .status { background: #60446b; color: #f6eafa; }
.editor-bar .button { min-height: 31px; font-size: 12px; }
.editor-bar .stream-action { min-height: 36px; padding-inline: 15px; }
.editor-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 17px; padding: 13px; }
.editor-body.no-thumbnail { grid-template-columns: minmax(0, 1fr); }
.editor-body[data-editor] { grid-template-columns: minmax(0, 1fr); }
.episode-edit {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "copy artwork" "controls artwork";
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
}
.episode-edit.no-thumbnail { grid-template-areas: "copy" "controls"; }
.episode-copy { grid-area: copy; min-width: 0; }
.episode-copy textarea { min-height: clamp(132px, 16vw, 215px); }
.episode-artwork { grid-area: artwork; min-width: 0; }
.episode-controls { grid-area: controls; min-width: 0; }
.episode-controls .editor-feedback { margin-bottom: 0; }
.editor-feedback { grid-column: 1 / -1; }
.editor-feedback:empty { display: none; }
.mobile-menu { display: none; }
.editor-body label, .dialog-body label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.field { margin-bottom: 9px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbb1ce; padding: 7px 9px; border-radius: 7px; background: #fffdf8; color: var(--ink); font-size: 13px; }
textarea { display: block; resize: vertical; min-height: 91px; }
.preview-title { display: block; margin-bottom: 5px; font-weight: 700; font-size: 12px; }
.scored-label, .field-score { display: flex; align-items: baseline; gap: 6px; }
.scored-label { flex-wrap: wrap; }
.score-source, .score-age { color: var(--muted); font-size: 10px; }
.score-value { padding: 1px 5px; border-radius: 4px; background: #ede4ed; color: #5d4861; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.score-value[data-band="high"] { background: #d9eee0; color: #215c36; }
.score-value[data-band="medium"] { background: #f6e7c6; color: #754b10; }
.score-value[data-band="low"] { background: #f6dce0; color: #8b2a3c; }
.suggestion-button { padding: 2px 6px; border: 1px solid #d3bfd6; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-size: 11px; cursor: pointer; }
.suggestion-button:hover, .suggestion-button[aria-expanded="true"] { background: #ede4ed; }
.suggestion-panel { margin: 6px 0 9px; padding: 8px; border: 1px solid #e0d2e2; border-radius: 7px; background: #fffdf8; }
.suggestion-panel p, .dialog-body .suggestion-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.suggestion-option { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #e0d2e2; }
.suggestion-option p, .dialog-body .suggestion-option p { flex: 1 1 160px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.suggestion-panel .button { font-size: 11px; padding: 3px 6px; }
.preview .art-copy { font-size: clamp(15px, 2.1vw, 35px); }
.editor-footer { display: flex; flex-wrap: wrap; gap: 7px; }
dialog { width: min(460px, calc(100% - 30px)); max-height: 90dvh; color: var(--ink); background: var(--panel); border: 1px solid #b595bf; border-radius: 14px; padding: 21px; box-shadow: 0 18px 70px #36203536; }
dialog:has(#series-episode-form) { width: min(850px, calc(100% - 30px)); }
#series-episode-form { padding: 0; }
dialog::backdrop { background: #2c19365c; }
.dialog-close { position: absolute; right: 10px; top: 7px; }
.dialog-close button { border: 0; background: none; font-size: 25px; }
.dialog-body h2 { margin: 0 22px 12px 0; font-size: 21px; }
.dialog-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.rehearsal-summary strong { color: var(--ink); }
#rehearsal-feedback:empty { margin: 0; }
#rehearsal-feedback:not(:empty) { margin: 8px 0 0; }
.saved-connections + .saved-connections { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.saved-connections h3 { margin: 0 0 6px; font-size: 15px; }
.saved-connection-list { list-style: none; margin: 0 0 8px; padding: 0; }
.saved-connection-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.saved-connections details { margin-top: 10px; font-size: 13px; }
.saved-connections summary { cursor: pointer; font-weight: 700; }
.saved-connections .connection-hint { font-size: 13px; margin-top: 8px; }
.destination-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#connection-feedback:empty { display: none; }
#connection-feedback { margin-top: 8px; }
.feedback { position: fixed; bottom: 22px; right: 22px; z-index: 2; color: white; background: var(--plum); border-radius: 8px; padding: 11px 15px; font-size: 13px; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 28px); margin: 14px auto; height: calc(100dvh - 28px); grid-template-columns: 168px minmax(0, 1fr); gap: 9px; }
  .sidebar { padding: 12px 9px; }
  .editor-body { grid-template-columns: 1fr; }
  .episode-edit { grid-template-areas: "copy" "artwork" "controls"; gap: 10px; }
  .episode-edit.no-thumbnail { grid-template-areas: "copy" "controls"; }
  .preview { max-width: 380px; }
  .editor-bar { flex-wrap: wrap; }
  .event-row { grid-template-columns: 76px 58px minmax(0, 1fr) auto; gap: 6px; }
  .event-row.no-thumbnail { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .agenda { padding-right: 12px; }
}
@media (max-width: 530px) {
  .shell { height: auto; display: block; width: calc(100% - 16px); margin: 8px auto; }
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; margin-bottom: 8px; }
  .brand { padding: 0; font-size: 15px; }
  .brand br { display: none; }
  .brand-icon { width: 30px; height: 30px; }
  .mobile-menu { display: inline-flex; grid-column: 2; grid-row: 1; }
  .sidebar .schedule { grid-column: 2; grid-row: 2; }
  .sidebar .jump { grid-column: 1; grid-row: 2; white-space: normal; }
  .sidebar-accounts, .views, .settings { display: none; grid-column: 1 / -1; }
  .mobile-menu[aria-expanded="true"] ~ .sidebar-accounts { display: grid; }
  .sidebar-accounts select { height: 44px; font-size: 16px; }
  .mobile-menu[aria-expanded="true"] ~ .views { display: block; }
  .mobile-menu[aria-expanded="true"] ~ .settings { display: flex; }
  .views h2 { margin: 10px 9px 5px; }
  .calendar { overflow: visible; min-width: 0; }
  .calendar-heading { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .calendar-heading h1 { font-size: 21px; }
  .schedule-status { margin: 8px 10px 2px; }
  .agenda { padding-left: 15px; padding-right: 9px; }
  .event-row { grid-template-columns: 64px 44px minmax(0, 1fr) auto; }
  .status { padding: 3px 5px; }
  .editor { overflow: visible; }
  .editor-bar { border-radius: 11px 11px 0 0; }
  .editor-bar .stream-action { min-height: 44px; }
  .editor-series { display: none; }
  .editor-body { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .editor-body > *, .field { min-width: 0; }
  .field input, .field select, .field textarea { min-width: 0; font-size: 16px; }
  .field input[type="date"], .field input[type="time"] { padding-inline: 5px; }
  .button, .nav-button, .suggestion-button { min-height: 44px; }
  .button, .nav-button { white-space: normal; }
  .suggestion-button { font-size: 13px; }
  .episode-actions { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 2;
    border-top: 1px solid var(--line); background: var(--panel); padding: 7px 0; }
}

.handover-settings { overflow-wrap: anywhere; }
.handover-settings summary, .handover-settings dt { font-weight: 700; }
.handover-settings dd { margin: 2px 0 10px; }

.launcher-information {
  width: min(680px, calc(100% - 32px));
  margin: 4rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper, #fbf7ef);
  border: 1px solid var(--border, #d7ccdc);
  border-radius: 1rem;
}
.launcher-information img { border-radius: 9px; }
.launcher-information p { line-height: 1.6; }
.launcher-information h2 { margin-top: 1.5rem; }
.launcher-information nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.guest-signin a.policy-link { display: inline; font-size: inherit; }
