:root {
  --schedule-panel: color-mix(in srgb, var(--background-alt, #1d2533) 88%, transparent);
  --schedule-line: color-mix(in srgb, var(--text-muted, #aab5c4) 24%, transparent);
  --schedule-accent: var(--primary, #66d9b8);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.schedule-shell :is(button, a, input, select, textarea, summary):focus-visible,
.schedule-nav :is(button, a, select):focus-visible,
.recording-editor-dialog :is(button, input, select):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

body { min-height: 100vh; max-width: none; margin: 0; padding: 0; }
.schedule-nav { position: sticky; z-index: 60; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: none; margin: 0; padding: .75rem max(1.25rem, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--schedule-line); background: color-mix(in srgb, var(--background, #111821) 92%, transparent); backdrop-filter: blur(18px); }
.schedule-nav-tools { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; min-width: 0; }
.schedule-appearance { flex: 0 0 auto; }
.schedule-nav a { text-decoration: none; font-weight: 700; }
.schedule-brand-lockup { display: inline-flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: .55rem; }
.schedule-brand-lockup a { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-build { flex: 0 0 auto; padding: .16rem .42rem; border: 1px solid var(--schedule-line); border-radius: 999px; color: var(--text-muted, #aab5c4); font-size: .66rem; font-weight: 800; letter-spacing: .04em; }
.nav-actions { display: flex; gap: 1rem; }
.nav-actions { align-items: center; }
.nav-account { display: flex; align-items: center; gap: .55rem; padding: .35rem .6rem; border: 1px solid var(--schedule-line); border-radius: 999px; }
.nav-account img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.nav-account span { display: grid; line-height: 1.12; }
.nav-account strong { font-size: .82rem; }
.nav-account small { max-width: 170px; overflow: hidden; color: var(--text-muted, #aab5c4); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.nav-signout { min-height: 38px; margin: 0; padding: .35rem .65rem; font-size: .78rem; }
.schedule-shell { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 5rem; }
.schedule-hero { max-width: 720px; margin: 2rem 0; }
.schedule-hero h1 { margin: .25rem 0 .75rem; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.schedule-hero p { font-size: 1.1rem; color: var(--text-muted, #b6c1cf); }
body[data-ready="true"] .schedule-hero { display: none; }
.kicker { display: block; color: var(--schedule-accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.schedule-panel { margin: 1rem 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--schedule-line); border-radius: 18px; background: var(--schedule-panel); box-shadow: 0 18px 50px rgb(0 0 0 / 14%); }
.mobile-scheduler-home, .mobile-scheduler-nav { display: none; }
.schedule-sidebar { position: sticky; top: 5rem; display: flex; max-height: calc(100vh - 6rem); flex-direction: column; gap: 1rem; padding: .75rem; overflow-y: auto; border: 1px solid var(--schedule-line); border-radius: 16px; background: color-mix(in srgb, var(--schedule-panel) 95%, transparent); box-shadow: 0 18px 45px rgb(0 0 0 / 14%); }
.podcast-switcher { display: grid; gap: .3rem; padding: .15rem .15rem .75rem; border-bottom: 1px solid var(--schedule-line); }
.podcast-switcher label { margin: 0; color: var(--text-muted, #aab5c4); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.podcast-switcher select { width: 100%; min-height: 42px; box-sizing: border-box; margin: 0; padding: .45rem 2rem .45rem .55rem; font-size: .82rem; font-weight: 800; }
.workspace-menu-group { display: grid; gap: .2rem; }
.workspace-menu-label { padding: .4rem .55rem .25rem; color: var(--text-muted, #aab5c4); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.schedule-sidebar button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: .65rem; margin: 0; padding: .5rem .6rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-muted, #aab5c4); font-size: .84rem; font-weight: 750; text-align: left; }
.schedule-sidebar button:hover { border-color: var(--schedule-line); background: rgb(255 255 255 / 4%); color: var(--text-bright, #fff); }
.schedule-sidebar button.is-active { border-color: color-mix(in srgb, var(--schedule-accent) 38%, transparent); background: color-mix(in srgb, var(--schedule-accent) 14%, transparent); color: var(--schedule-accent); }
.schedule-sidebar svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#schedule-app:not([hidden]) { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 1rem; align-items: start; }
#schedule-app > :not(.schedule-sidebar) { min-width: 0; grid-column: 2; }
#schedule-app > .podcast-dashboard, #schedule-app > .schedule-panel { margin-top: 0; }
.create-show-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: end; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
.create-show-form label { grid-column: 1 / -1; margin: 0; }
.create-show-form input { width: 100%; min-height: 46px; box-sizing: border-box; margin: 0; }
.create-show-form button { min-height: 46px; margin: 0; }
.show-management-list { display: grid; gap: .7rem; }
.show-management-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
.show-management-row.is-current { border-color: color-mix(in srgb, var(--schedule-accent) 48%, var(--schedule-line)); background: color-mix(in srgb, var(--schedule-accent) 7%, transparent); }
.show-management-row h3 { margin: 0; }
.show-management-row p { margin: .25rem 0 0; }
.show-management-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.show-management-actions input { width: min(220px, 100%); min-height: 42px; box-sizing: border-box; margin: 0; }
.show-management-actions button { min-height: 42px; margin: 0; padding: .4rem .65rem; }
.recording-move { display: flex; gap: .35rem; align-items: center; }
.recording-move select { max-width: 180px; min-height: 40px; margin: 0; padding: .35rem 1.7rem .35rem .5rem; font-size: .8rem; }
.recording-move button { min-height: 40px; }
.connection-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
.connection-form label { margin: 0; }
.connection-form input, .connection-form select { width: 100%; box-sizing: border-box; margin-top: .35rem; }
.connection-secret-note { margin: 0; }
.connection-list { display: grid; gap: .7rem; margin-top: 1rem; }
.connection-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
.connection-card[data-enabled="false"] { opacity: .7; }
.connection-card h3, .connection-card p { margin: .15rem 0; }
.connection-provider { text-transform: capitalize; }
.connection-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.connection-actions button { min-height: 42px; margin: 0; padding: .4rem .65rem; }
.connection-help { margin-top: 1rem; padding: .9rem; border: 1px solid var(--schedule-line); border-radius: 14px; }
.connection-help > summary { cursor: pointer; font-weight: 800; }
.connection-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: .9rem; }
.connection-help-grid > div { padding: .8rem; border-radius: 10px; background: rgb(0 0 0 / 10%); }
.connection-help-grid p { margin: .35rem 0 0; }
.auth-panel { text-align: center; }
.auth-panel button { margin-top: .75rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-wide { grid-column: 1 / -1; }
.field-grid label, .reminders { margin: 0; }
.field-grid input, .field-grid select { width: 100%; box-sizing: border-box; margin-top: .35rem; }
.gmail-delivery-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }
.gmail-delivery-controls button { margin: 0; padding: .45rem .7rem; }
.reminders { display: grid; align-content: start; gap: .35rem; padding: .65rem .8rem; border: 1px solid var(--schedule-line); border-radius: 10px; }
.reminders label { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.reminders input { width: auto; margin: 0; }
.primary-action { width: 100%; margin-top: .5rem; font-weight: 800; }
.manual-invite-panel .form-heading p { max-width: 58ch; margin: .35rem 0 0; }
#schedule-form { display: grid; gap: 1rem; }
.schedule-form-sections { display: grid; gap: .85rem; }
.schedule-form-step { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 9%); }
.schedule-form-step > legend { display: flex; align-items: center; gap: .55rem; padding: 0 .35rem; color: var(--text-bright, #fff); font-weight: 850; }
.schedule-form-step > legend b { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; background: var(--schedule-accent); color: #08120f; font-size: .8rem; }
.schedule-form-step > .field-grid { margin-top: .25rem; }
.schedule-form-step > .hint { margin: .75rem 0 0; }
.arrival-summary { margin: .65rem 0 0; padding: .65rem .75rem; border: 1px solid color-mix(in srgb, var(--schedule-accent) 35%, var(--schedule-line)); border-radius: 10px; background: color-mix(in srgb, var(--schedule-accent) 8%, transparent); color: var(--text-bright, #fff); font-size: .9rem; }
.arrival-summary[data-error="true"] { border-color: color-mix(in srgb, #ff7979 55%, var(--schedule-line)); color: #ffb7b7; }
.schedule-delivery-grid { align-items: start; }
.schedule-delivery-grid .reminders { min-height: 100%; box-sizing: border-box; }
.hint, .status { color: var(--text-muted, #aab5c4); }
.status:empty { display: none; }
.invite-result { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--schedule-accent) 10%, transparent); }
.invite-result code { display: block; margin: .75rem 0; padding: .65rem; overflow-wrap: anywhere; white-space: normal; }
.result-actions, .invite-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel-heading h2 { margin: .15rem 0 0; }
.form-heading { margin-bottom: 1rem; }
.optional-label { color: var(--text-muted, #aab5c4); font-size: .8rem; font-weight: 400; }
.button-link { display: inline-block; padding: .5rem .75rem; border: 1px solid var(--schedule-line); border-radius: 9px; text-decoration: none; }
.invite-list { display: grid; gap: .75rem; margin-top: 1rem; }
.invite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .85rem; border: 1px solid var(--schedule-line); border-radius: 12px; }
.invite-row p { margin: .15rem 0; }
.invite-meta { color: var(--text-muted, #aab5c4); font-size: .88rem; }
.status-chip { display: inline-block; padding: .15rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--schedule-accent) 14%, transparent); text-transform: capitalize; }
.invite-actions button { margin: 0; padding: .4rem .65rem; font-size: .86rem; }
.roadmap-note p { margin-bottom: .5rem; }
.booking-toggle { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.booking-toggle input { margin: 0; }
.availability-editor { margin: 1rem 0; padding: .8rem; border: 1px solid var(--schedule-line); border-radius: 12px; }
.availability-day { display: grid; grid-template-columns: minmax(110px, 1fr) 1fr auto 1fr; gap: .65rem; align-items: center; padding: .45rem 0; }
.availability-day + .availability-day { border-top: 1px solid var(--schedule-line); }
.availability-day label { display: flex; align-items: center; gap: .5rem; margin: 0; }
.availability-day input[type="checkbox"] { margin: 0; }
.availability-day input[type="time"] { margin: 0; width: 100%; box-sizing: border-box; }
.booking-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.booking-admin-grid > .admin-section + .admin-section { border-left: 1px solid var(--schedule-line); padding-left: 1.25rem; }
.admin-section, .booking-options { min-width: 0; }
.admin-section > summary, .booking-options > summary { cursor: pointer; }
.admin-section > summary { margin: 0; padding: 0; list-style: none; background: transparent; }
.admin-section > summary::-webkit-details-marker { display: none; }
.admin-section > summary h2 { margin: .15rem 0 0; }
.booking-options { margin: 1rem 0; }
.booking-options > summary { margin: 0 0 1rem; padding: 0; background: transparent; font-weight: 800; }
.compact-form { display: grid; gap: .65rem; }
.compact-form label { margin: 0; }
.compact-form input { width: 100%; box-sizing: border-box; margin-top: .25rem; }
.compact-form button { margin: 0; }
.admin-list { display: grid; gap: .55rem; margin-top: .85rem; }
.admin-row { padding: .7rem; border: 1px solid var(--schedule-line); border-radius: 10px; }
.admin-row p { margin: .2rem 0; }
.admin-row button { margin: .4rem 0 0; padding: .35rem .55rem; font-size: .82rem; }
.public-link-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.public-link-actions button, .public-link-actions a { margin: 0; }
.new-recording-panel form { display: grid; gap: 1rem; }
.new-recording-panel label { margin: 0; }
.new-recording-panel input, .new-recording-panel textarea { width: 100%; box-sizing: border-box; margin-top: .35rem; }
.prep-notes-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--schedule-line); }
.prep-notes-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.prep-notes-heading h3 { margin: .15rem 0 0; }
.prep-note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: end; }
.prep-note-form label { grid-column: 1 / -1; margin: 0; }
.prep-note-form textarea { width: 100%; box-sizing: border-box; margin: 0; }
.prep-note-form button { min-height: 48px; margin: 0; }
.prep-note-list { display: grid; gap: .55rem; margin-top: .85rem; }
.prep-note-row { padding: .8rem; border: 1px solid var(--schedule-line); border-radius: 12px; }
.prep-note-row p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.prep-note-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .55rem; color: var(--text-muted, #aab5c4); font-size: .8rem; }
.prep-note-meta button { min-height: 36px; margin: 0; padding: .3rem .55rem; font-size: .8rem; }
.idea-board-manager { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--schedule-line); }
.idea-board-heading, .idea-board-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.idea-board-heading h3 { margin: .15rem 0 0; }
.idea-board-create { width: 100%; min-height: 48px; }
.idea-board-card { padding: 1rem; border: 1px solid color-mix(in srgb, var(--schedule-accent) 35%, var(--schedule-line)); border-radius: 14px; background: color-mix(in srgb, var(--schedule-accent) 7%, transparent); }
.idea-board-stats { display: flex; flex-wrap: wrap; gap: .45rem; }
.idea-board-state { display: flex; align-items: center; gap: .5rem; margin: 0; }
.idea-board-state input { margin: 0; }
.idea-board-link { margin-top: .8rem; }
.idea-board-link code { display: block; padding: .65rem; overflow-wrap: anywhere; white-space: normal; }
.idea-board-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.idea-board-actions > * { min-height: 44px; margin: 0; }
.idea-board-entries { display: grid; gap: .55rem; margin-top: 1rem; }
.idea-board-entry { padding: .8rem; border: 1px solid var(--schedule-line); border-radius: 12px; }
.idea-board-entry h4 { margin: 0; }
.idea-board-entry p { margin: .35rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-board-entry-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--text-muted, #aab5c4); font-size: .8rem; }
.idea-board-entry-meta button { min-height: 36px; margin: 0; padding: .3rem .55rem; font-size: .8rem; }

.podcast-dashboard { margin: .5rem 0 1.5rem; padding: clamp(1rem, 3vw, 1.75rem); scroll-margin-top: 5.5rem; border: 1px solid color-mix(in srgb, var(--schedule-accent) 35%, var(--schedule-line)); border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--schedule-accent) 8%, var(--schedule-panel)), var(--schedule-panel) 45%); box-shadow: 0 24px 70px rgb(0 0 0 / 22%); }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.dashboard-header h2 { margin: .2rem 0 .35rem; font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1.05; }
.dashboard-header p { margin: 0; }
.dashboard-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.dashboard-header-actions > * { margin: 0; }
.dashboard-primary-link, .dashboard-action-primary { border-color: transparent; background: var(--schedule-accent); color: #15100a; font-weight: 800; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.dashboard-metrics article { padding: 1rem; border: 1px solid var(--schedule-line); border-radius: 16px; background: rgb(0 0 0 / 12%); }
.dashboard-metrics span { display: block; color: var(--text-muted, #aab5c4); font-size: var(--text-sm, .875rem); }
.dashboard-metrics strong { display: block; margin-top: .15rem; color: var(--text-bright, #fff); font-size: clamp(1.5rem, 4vw, 2rem); font-variant-numeric: tabular-nums; }
.dashboard-tabs { display: none; gap: .35rem; margin: 0 -0.25rem 1rem; padding: .25rem; overflow-x: auto; border-bottom: 1px solid var(--schedule-line); scrollbar-width: thin; }
.dashboard-tabs button { flex: 0 0 auto; min-height: 42px; margin: 0; padding: .45rem .8rem; border: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; background: transparent; color: var(--text-muted, #aab5c4); font-weight: 750; }
.dashboard-tabs button[aria-selected="true"] { border-bottom-color: var(--schedule-accent); background: color-mix(in srgb, var(--schedule-accent) 10%, transparent); color: var(--text-bright, #fff); }
.dashboard-panel { min-width: 0; padding-top: .35rem; }
.dashboard-overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.dashboard-feature-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--schedule-line); border-radius: 18px; background: rgb(0 0 0 / 12%); }
.dashboard-feature-card h3 { margin: .55rem 0 .25rem; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.dashboard-next-time { margin: .25rem 0; color: var(--text-bright, #fff); font-size: 1.05rem; font-weight: 700; }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .65rem; }
.dashboard-quick-actions a, .dashboard-action-primary { display: grid; min-height: 44px; place-items: center; box-sizing: border-box; padding: .55rem .65rem; border: 1px solid var(--schedule-line); border-radius: 10px; text-align: center; text-decoration: none; }
.dashboard-quick-actions .dashboard-action-primary { border-color: transparent; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.35rem 0 .7rem; }
.dashboard-section-heading h3 { margin: .15rem 0 0; }
.dashboard-section-heading button { min-height: 40px; margin: 0; padding: .4rem .65rem; }
.dashboard-filter-heading label { width: min(280px, 100%); margin: 0; color: var(--text-muted, #aab5c4); font-size: .8rem; }
.dashboard-filter-heading input { width: 100%; box-sizing: border-box; margin: .2rem 0 0; }
.dashboard-list { display: grid; gap: .65rem; }
.dashboard-list.compact { margin-top: .75rem; }
.dashboard-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding: .9rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
.dashboard-row.compact { padding: .7rem .8rem; }
.dashboard-row-info { min-width: 0; }
.dashboard-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.dashboard-row h4 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.dashboard-row-meta { margin: .25rem 0 0; overflow-wrap: anywhere; color: var(--text-muted, #aab5c4); font-size: .86rem; }
.dashboard-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.dashboard-row-actions > * { min-height: 40px; box-sizing: border-box; margin: 0; padding: .4rem .6rem; }
.quiet-danger { border-color: color-mix(in srgb, #ff7979 35%, var(--schedule-line)); background: transparent; color: #ffaaaa; }
.dashboard-date-badge { display: grid; width: 3rem; place-items: center; padding: .4rem; border-radius: 12px; background: color-mix(in srgb, var(--schedule-accent) 15%, transparent); color: var(--schedule-accent); line-height: 1; text-transform: uppercase; }
.dashboard-date-badge span { font-size: .68rem; font-weight: 800; }
.dashboard-date-badge strong { margin-top: .15rem; font-size: 1.4rem; }
.dashboard-upcoming-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.dashboard-empty { margin: 0; padding: 1.25rem; border: 1px dashed var(--schedule-line); border-radius: 14px; color: var(--text-muted, #aab5c4); text-align: center; }
.dashboard-archive { margin-top: 1rem; padding: .8rem; border: 1px solid var(--schedule-line); border-radius: 14px; }
.dashboard-archive > summary { cursor: pointer; font-weight: 750; }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.dashboard-person-card { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: .9rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
.dashboard-person-card > div { min-width: 0; }
.dashboard-person-card h4, .dashboard-person-card p { margin: .1rem 0; overflow-wrap: anywhere; }
.dashboard-person-avatar { display: grid; flex: 0 0 2.65rem; height: 2.65rem; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--schedule-accent) 18%, transparent); color: var(--schedule-accent); font-weight: 850; }
.calendar-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; }
.calendar-toolbar h3 { margin: 0; text-align: center; }
.calendar-toolbar button { min-height: 40px; margin: 0; padding: .4rem .7rem; }
.calendar-weekdays, .recording-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { margin-top: 1rem; color: var(--text-muted, #aab5c4); font-size: .72rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-day { min-width: 0; min-height: 94px; padding: .4rem; overflow: hidden; border-right: 1px solid var(--schedule-line); border-bottom: 1px solid var(--schedule-line); background: rgb(0 0 0 / 8%); }
.calendar-day:nth-child(-n+7) { border-top: 1px solid var(--schedule-line); }
.calendar-day:nth-child(7n+1) { border-left: 1px solid var(--schedule-line); }
.calendar-day.outside-month { opacity: .45; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--schedule-accent); }
.calendar-day-number { display: block; margin-bottom: .3rem; color: var(--text-muted, #aab5c4); font-size: .75rem; font-weight: 800; }
.calendar-event { display: block; width: 100%; min-height: 0; margin: 0 0 .25rem; padding: .25rem; overflow: hidden; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--schedule-accent) 18%, transparent); color: var(--text-bright, #fff); font-size: .66rem; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.recording-editor-dialog { width: min(760px, calc(100vw - 2rem)); max-height: min(88vh, 900px); box-sizing: border-box; margin: auto; padding: 0; overflow: auto; border: 1px solid color-mix(in srgb, var(--schedule-accent) 40%, var(--schedule-line)); border-radius: 20px; background: var(--background, #111821); color: var(--text-main, #f4f7fb); box-shadow: 0 30px 100px rgb(0 0 0 / 55%); }
.recording-editor-dialog::backdrop { background: rgb(4 8 14 / 72%); backdrop-filter: blur(5px); }
.recording-editor-form { padding: clamp(1rem, 3vw, 1.5rem); }
.recording-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.recording-editor-header h2 { margin: .15rem 0 0; }
.dialog-close { width: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.recording-editor-guests { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--schedule-line); }
.recording-editor-section-heading h3, .recording-editor-section-heading p { margin: .15rem 0; }
.recording-editor-guest-list { display: grid; gap: .7rem; margin-top: .8rem; }
.recording-editor-guest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(100px, .65fr) minmax(125px, .7fr) auto; gap: .6rem; align-items: end; padding: .8rem; border: 1px solid var(--schedule-line); border-radius: 12px; background: rgb(0 0 0 / 10%); }
.recording-editor-guest label { min-width: 0; margin: 0; font-size: .8rem; }
.recording-editor-guest input, .recording-editor-guest select { width: 100%; min-width: 0; box-sizing: border-box; margin: .25rem 0 0; }
.recording-editor-guest button { min-height: 44px; margin: 0; padding: .4rem .6rem; white-space: nowrap; }
.recording-editor-guest.is-removed { border-color: color-mix(in srgb, #ff7979 45%, var(--schedule-line)); opacity: .72; }
.recording-editor-guest.is-removed label { text-decoration: line-through; }
.recording-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--schedule-line); }
.recording-editor-actions button { width: auto; min-height: 46px; margin: 0; }
.edited-invite-token { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--schedule-line); }
.edited-invite-token span { min-width: 0; overflow-wrap: anywhere; }
.edited-invite-token code { min-width: 0; padding: .45rem; overflow-wrap: anywhere; white-space: normal; }
.edited-invite-token button { flex: 0 0 auto; min-height: 42px; margin: 0; }

/* At tablet widths the persistent 215px workspace rail leaves the two overview
   cards too narrow for four quick actions. Stack the cards before their labels
   become cramped, while retaining the efficient desktop navigation rail. */
@media (min-width: 761px) and (max-width: 900px) {
  .dashboard-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .schedule-appearance .app-theme-menu-label,
  .schedule-appearance .app-theme-menu-current { display: none; }
  .schedule-appearance .app-theme-menu > summary { width: 44px; justify-content: center; padding-inline: 0; }
  html { scroll-behavior: smooth; scroll-padding-bottom: 6rem; }
  body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
  .schedule-nav { padding: .75rem 1rem; }
  .schedule-brand-lockup { max-width: 42vw; }
  .schedule-brand-lockup a { display: flex; min-height: 44px; align-items: center; }
  .nav-actions { gap: .35rem; }
  .nav-actions > a { display: none; }
  .nav-account { max-width: 34vw; padding: .3rem .45rem; border: 0; }
  .nav-account img, .nav-account small { display: none; }
  .nav-account strong { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-signout { min-height: 44px; }
  .schedule-shell { padding: .4rem .75rem 1.5rem; }
  .schedule-hero { margin: 1rem 0; }
  .schedule-hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .schedule-hero p { font-size: 1rem; }
  .schedule-hero gipity-notify-button { display: block; }
  .schedule-hero gipity-notify-button button { width: 100%; min-height: 48px; }
  #schedule-app:not([hidden]) { display: flex; flex-direction: column; gap: .65rem; }
  .schedule-sidebar { position: sticky; z-index: 45; top: 61px; display: flex; max-width: calc(100vw - 1.5rem); max-height: none; flex-direction: row; order: -1; gap: .25rem; margin: 0 -.75rem; padding: .45rem .75rem; overflow-x: auto; overflow-y: hidden; border-width: 0 0 1px; border-radius: 0; background: color-mix(in srgb, var(--background, #111821) 94%, transparent); box-shadow: 0 10px 28px rgb(0 0 0 / 18%); scrollbar-width: thin; }
  .podcast-switcher { position: sticky; z-index: 2; left: 0; min-width: 180px; flex: 0 0 180px; padding: 0 .5rem 0 0; border-right: 1px solid var(--schedule-line); border-bottom: 0; background: color-mix(in srgb, var(--background, #111821) 96%, transparent); box-shadow: .65rem 0 .85rem color-mix(in srgb, var(--background, #111821) 82%, transparent); }
  .podcast-switcher label { display: none; }
  .podcast-switcher select { min-height: 44px; font-size: 16px; }
  .workspace-menu-group { display: contents; }
  .workspace-menu-label { display: none; }
  .schedule-sidebar button { width: auto; min-height: 44px; flex: 0 0 auto; gap: .4rem; padding: .5rem .65rem; white-space: nowrap; }
  .schedule-sidebar button span { font-size: .78rem; }
  /* These primary destinations already have persistent bottom-bar controls on
     phones. Keep the secondary strip focused on the remaining app sections. */
  .schedule-sidebar button[data-workspace-view="overview"],
  .schedule-sidebar button[data-workspace-view="calendar"],
  .schedule-sidebar button[data-workspace-view="new"],
  .schedule-sidebar button[data-workspace-view="schedule"] { display: none; }
  #podcast-dashboard { order: 0; }
  /* Bottom-nav dashboard links scroll this section into view. Keep its toolbar
     below both sticky phone headers instead of hiding the first calendar row. */
  #podcast-dashboard { scroll-margin-top: 8rem; }
  #new-recording-panel { order: 1; }
  #booking-admin-panel { order: 2; }
  #manual-invite-panel { order: 3; }
  #invitations-panel { order: 4; }
  #availability-panel { order: 5; }
  #availability-panel, #new-recording-panel, #booking-admin-panel, #manual-invite-panel, #invitations-panel,
  #upcoming-bookings-panel, #blackouts-panel { scroll-margin-top: .75rem; }
  #roadmap-panel { scroll-margin-top: 8rem; }
  .mobile-scheduler-home { display: block; margin: .25rem 0 .75rem; padding: 1.1rem; border: 1px solid color-mix(in srgb, var(--schedule-accent) 45%, transparent); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--schedule-accent) 15%, var(--schedule-panel)), var(--schedule-panel)); box-shadow: 0 18px 50px rgb(0 0 0 / 18%); }
  .mobile-scheduler-home h2 { margin: .25rem 0 1rem; font-size: 1.45rem; }
  .mobile-scheduler-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .mobile-scheduler-metrics article { padding: .75rem; border: 1px solid var(--schedule-line); border-radius: 14px; background: rgb(0 0 0 / 10%); }
  .mobile-scheduler-metrics span { display: block; color: var(--text-muted, #aab5c4); font-size: .78rem; }
  .mobile-scheduler-metrics strong { display: block; margin-top: .2rem; font-size: 1.1rem; }
  .mobile-next-recording { margin: .85rem 0; color: var(--text-muted, #aab5c4); }
  .mobile-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .mobile-quick-actions a, .mobile-quick-actions button { display: grid; place-items: center; min-height: 48px; box-sizing: border-box; margin: 0; padding: .65rem; border: 1px solid var(--schedule-line); border-radius: 12px; text-align: center; text-decoration: none; font-size: .9rem; font-weight: 750; }
  .mobile-quick-actions .mobile-primary-action { border-color: transparent; background: var(--schedule-accent); color: #08120f; }
  .mobile-quick-actions .mobile-create-action { grid-column: 1 / -1; min-height: 54px; }
  .mobile-scheduler-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; grid-template-columns: repeat(4, 1fr); padding: .35rem max(.35rem, env(safe-area-inset-right)) calc(.35rem + env(safe-area-inset-bottom)) max(.35rem, env(safe-area-inset-left)); border-top: 1px solid var(--schedule-line); background: color-mix(in srgb, var(--background, #111821) 92%, transparent); backdrop-filter: blur(16px); box-shadow: 0 -12px 30px rgb(0 0 0 / 24%); }
  body[data-ready="true"] .mobile-scheduler-nav { display: grid; }
  .mobile-scheduler-nav a { display: flex; min-width: 0; min-height: 50px; align-items: center; justify-content: center; flex-direction: column; gap: .08rem; border-radius: 10px; color: var(--text-main, #f4f7fb); text-decoration: none; font-size: .72rem; font-weight: 700; }
  .mobile-scheduler-nav a:active, .mobile-scheduler-nav a:focus-visible, .mobile-scheduler-nav a.is-active { background: color-mix(in srgb, var(--schedule-accent) 16%, transparent); color: var(--schedule-accent); }
  .mobile-scheduler-nav svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-scheduler-nav svg path:first-child:last-child { fill: none; }
  .schedule-panel { margin: .6rem 0; padding: 1rem; border-radius: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  input, select, textarea, button, .button-link { font-size: 16px; }
  input, select, button, .button-link { min-height: 48px; box-sizing: border-box; }
  .primary-action { min-height: 52px; }
  .schedule-form-step { padding: .85rem .7rem; }
  .invite-row { grid-template-columns: 1fr; }
  .invite-actions button { min-height: 44px; flex: 1; }
  .panel-heading { align-items: flex-start; }
  .booking-admin-grid { grid-template-columns: 1fr; }
  .bookings-column { order: -1; }
  .booking-admin-grid > .admin-section + .admin-section { border-left: 0; border-top: 1px solid var(--schedule-line); padding: 1rem 0 0; }
  .admin-section > summary { position: relative; padding-right: 1.75rem; }
  .admin-section > summary::after, .booking-options > summary::after { content: '+'; position: absolute; right: .15rem; color: var(--schedule-accent); font-size: 1.4rem; font-weight: 400; }
  .admin-section[open] > summary::after, .booking-options[open] > summary::after { content: '−'; }
  .booking-options > summary { position: relative; min-height: 44px; display: flex; align-items: center; margin-bottom: 0; padding-right: 1.75rem; }
  .booking-options[open] > summary { margin-bottom: 1rem; }
  .availability-day { grid-template-columns: 1fr 1fr; }
  .availability-day label { grid-column: 1 / -1; min-height: 44px; font-weight: 750; }
  .availability-day > span { display: none; }
  .booking-toggle { width: 100%; min-height: 48px; padding: .55rem .7rem; border: 1px solid var(--schedule-line); border-radius: 12px; }
  .booking-toggle input { width: 1.25rem; height: 1.25rem; }
  .public-link-actions > * { flex: 1 1 100%; text-align: center; }
  .admin-row { padding: .9rem; }
  .admin-row button, .admin-row a { display: inline-flex; min-height: 44px; align-items: center; }
  .prep-note-form { grid-template-columns: 1fr; }
  .prep-note-form button { width: 100%; }
  .prep-note-meta { align-items: flex-end; }
  .idea-board-summary { flex-direction: column; }
  .idea-board-actions > * { flex: 1 1 100%; text-align: center; }
  .idea-board-entry-meta { align-items: flex-end; }
  .podcast-dashboard { margin: .15rem 0 .75rem; padding: .9rem; border-radius: 19px; }
  .dashboard-header { flex-direction: column; gap: .85rem; }
  .dashboard-header-actions { width: 100%; justify-content: stretch; }
  .dashboard-header-actions > * { flex: 1 1 100%; min-height: 46px; box-sizing: border-box; text-align: center; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0; }
  .dashboard-metrics article { padding: .75rem; border-radius: 13px; }
  .dashboard-overview-grid { grid-template-columns: 1fr; }
  .dashboard-quick-actions { grid-template-columns: 1fr 1fr; }
  .dashboard-section-heading { align-items: flex-start; }
  .dashboard-filter-heading { flex-direction: column; }
  .dashboard-filter-heading label { width: 100%; }
  .dashboard-row, .dashboard-upcoming-row { grid-template-columns: 1fr; align-items: start; }
  .dashboard-upcoming-row { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-upcoming-row .dashboard-row-actions { grid-column: 1 / -1; }
  .dashboard-row-actions { width: 100%; }
  .dashboard-row-actions > * { min-height: 44px; flex: 1 1 auto; justify-content: center; text-align: center; }
  .dashboard-card-grid { grid-template-columns: 1fr; }
  .create-show-form, .show-management-row { grid-template-columns: 1fr; }
  .create-show-form label { grid-column: auto; }
  .show-management-actions { justify-content: stretch; }
  .show-management-actions input { width: 100%; flex: 1 1 100%; }
  .show-management-actions button { flex: 1 1 auto; }
  .recording-move { width: 100%; }
  .recording-move select { max-width: none; flex: 1 1 auto; font-size: 16px; }
  .connection-form, .connection-card, .connection-help-grid { grid-template-columns: 1fr; }
  .connection-actions { justify-content: stretch; }
  .connection-actions button { flex: 1 1 auto; }
  .calendar-toolbar button { min-width: 0; font-size: .78rem; }
  /* A month cell is narrow on phones, but its recording is still an action.
     Keep the compact label while giving it a dependable finger target. */
  .calendar-day { min-height: 94px; padding: .22rem 1px; }
  .calendar-event { min-height: 44px; padding: .2rem; font-size: .6rem; }
  .recording-editor-dialog { width: 100vw; max-width: none; max-height: calc(100dvh - env(safe-area-inset-top)); margin: env(safe-area-inset-top) 0 0; border-width: 1px 0 0; border-radius: 20px 20px 0 0; }
  .recording-editor-form { padding: 1rem .85rem calc(1rem + env(safe-area-inset-bottom)); }
  .recording-editor-guest { grid-template-columns: 1fr; }
  .recording-editor-guest button { width: 100%; }
  .recording-editor-actions { position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); z-index: 2; margin: 1rem -.85rem calc(-1rem - env(safe-area-inset-bottom)); padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--background, #111821) 94%, transparent); backdrop-filter: blur(14px); }
  .recording-editor-actions button { flex: 1 1 100%; }
  .edited-invite-token { align-items: stretch; flex-direction: column; }
  .edited-invite-token button { width: 100%; }
}

/* Coarse pointers at ANY width. The reflow above only fires under 760px, so a
   tablet or touch laptop kept the 36-42px desktop controls above — each of those
   declarations carries a class and out-specifies the app-wide tap floor in
   tokens.css, so they have to be raised by name. */
@media (pointer: coarse) {
  .schedule-shell :is(button, a.button-link, select, input:not([type="checkbox"]):not([type="radio"]), textarea),
  .schedule-nav :is(button, a, select),
  .recording-editor-dialog :is(button, input, select) { min-height: 44px; }
  .nav-signout, .podcast-switcher select, .schedule-sidebar button,
  .show-management-actions input, .show-management-actions button,
  .recording-move select, .recording-move button, .connection-actions button,
  .prep-note-meta button, .idea-board-entry-meta button, .dashboard-tabs button,
  .dashboard-section-heading button, .dashboard-row-actions > *,
  .calendar-toolbar button, .edited-invite-token button { min-height: 44px; }
}
