.dashboard-active{--dashboard-side:220px;--dashboard-rail:290px;--dashboard-gap:18px;padding-left:var(--dashboard-side)}
.dashboard-active [hidden]{display:none!important}
.dashboard-active.premium-active{padding-left:var(--dashboard-side)}
.dashboard-active .topbar{height:72px;max-width:none;margin:0;padding:14px clamp(18px,2vw,34px);justify-content:flex-end;border-bottom:0}
.dashboard-active .topbar .channel-brand{display:none}
.dashboard-mobile-brand{display:none}
.dashboard-active .topbar .library-pill{background:var(--surface);border-color:var(--line)}
/* Channel pill + theme button span exactly the right rail's width, and the
   topbar uses the layout's max width and padding, so both edges line up with
   the Creator offers panel below. */
.dashboard-active .topbar{max-width:1720px;margin:0 auto}
.dashboard-active .topbar .top-actions{width:var(--dashboard-rail);min-width:0}
.dashboard-active .topbar .library-pill{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dashboard-active .topbar .library-pill b{overflow:hidden;text-overflow:ellipsis}
.dashboard-active .topbar .icon-button{flex:none}
@media(max-width:980px){.dashboard-active .topbar .top-actions{width:auto}.dashboard-active .topbar .library-pill{flex:initial}}
.dashboard-active .dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--dashboard-rail);gap:var(--dashboard-gap);max-width:1720px;margin:0 auto;padding:0 clamp(18px,2vw,34px) 48px}
.dashboard-center{min-width:0}
.dashboard-active .hero:not(.composer-section){max-width:880px;margin:0 auto 20px;text-align:center;padding:0 8px}
.dashboard-active .hero:not(.composer-section) .eyebrow{font-size:10px;letter-spacing:.16em}
.hero-message{width:min(80%,288px);margin:0 auto}
.hero-message img{display:block;width:100%;height:auto}
.hero-message .hero-message-dark{display:none}
html[data-theme=dark] .hero-message .hero-message-light{display:none}
html[data-theme=dark] .hero-message .hero-message-dark{display:block}
.dashboard-active .hero:not(.composer-section) h1{margin:12px 0 8px;font-size:clamp(34px,3.4vw,52px);letter-spacing:-.06em;line-height:1.06}
.dashboard-active .hero:not(.composer-section) h1 strong{color:var(--violet)}
.dashboard-active .hero:not(.composer-section) .hero-copy{max-width:680px;margin:0 auto;color:var(--muted);font-size:15px;line-height:1.5}
.dashboard-workspace{margin:0 auto 16px;max-width:1000px}
.dashboard-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;box-sizing:border-box;gap:4px;width:min(100%,900px);margin:0 auto 13px;padding:5px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px}
.dashboard-tabs button{flex:1 0 auto;padding-inline:12px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.dashboard-tabs button[aria-selected=true]{background:var(--surface);color:var(--violet);box-shadow:0 3px 16px rgba(24,20,69,.11)}
.dashboard-tabs button span{font-size:18px;line-height:1}
.dashboard-search{display:block;border:1.5px solid var(--line);background:var(--surface);border-radius:16px;padding:8px;box-shadow:0 5px 24px rgba(35,32,85,.06)}
.dashboard-search:focus-within{border-color:var(--violet);box-shadow:0 0 0 4px color-mix(in srgb,var(--violet) 12%,transparent)}
.dashboard-search label{position:absolute;clip:rect(0 0 0 0);height:1px;width:1px;overflow:hidden}
.dashboard-search-row{display:flex;align-items:center;gap:12px}
.dashboard-search-row>.dashboard-search-icon{display:grid;place-items:center;flex:none;width:40px;height:44px;margin-left:4px;color:var(--violet)}
/* The box border already shows focus; no second outline on the input itself. */
.dashboard-active .dashboard-search input:focus-visible{outline:none}
.dashboard-search input{flex:1;min-width:0;height:44px;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:15px}
.dashboard-search button,.dashboard-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:45px;padding:8px 20px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--violet),var(--violet-2));color:#fff;font-size:13px;font-weight:750;cursor:pointer}
.dashboard-search button:disabled,.dashboard-primary:disabled{opacity:.55;cursor:default}
.dashboard-panel{min-width:0;margin:0 0 14px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(35,32,85,.045)}
.dashboard-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 15px}
.dashboard-panel-head h2{margin:2px 0 2px;font-size:21px;letter-spacing:-.035em}
.dashboard-panel-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.dashboard-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--violet)}
.dashboard-text-button{border:0;background:transparent;color:var(--violet);font-size:12px;font-weight:750;cursor:pointer;text-align:left;white-space:nowrap}
.dashboard-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:190px;padding:30px 16px;text-align:center;color:var(--ink);background:var(--surface-2);border-radius:13px}
.dashboard-empty strong{font-size:16px}.dashboard-empty p{margin:0;max-width:380px;color:var(--muted);font-size:13px;line-height:1.5}
.dashboard-spinner{display:block;width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--violet);animation:dashboard-spin .8s linear infinite}
@keyframes dashboard-spin{to{transform:rotate(360deg)}}
.dashboard-active #askPanel>.chat-section{max-width:none;margin:0 0 14px}
.dashboard-active #askPanel>.chat-section .section-head{margin-bottom:13px}
.dashboard-active #askPanel>.chat-section .section-head h2{font-size:21px}
.dashboard-active #askPanel>.chat-section .chat-card{min-height:205px}
.dashboard-active #askPanel>.chat-section .chat-thread{min-height:125px;max-height:380px}
.dashboard-active:not(.has-conversation) #askPanel .chat-input-row{display:none}
.dashboard-active #askPanel .chat-grid{grid-template-columns:minmax(0,1fr) 220px;gap:12px}
.dashboard-active #askPanel .chat-actions-card{padding:16px}
.dashboard-active #askPanel .chat-benefits-list{font-size:12px}
.dashboard-active:not(.has-conversation) #askPanel .chat-grid{grid-template-columns:1fr}
.dashboard-active:not(.has-conversation) #askPanel .chat-card{display:none}
.dashboard-active:not(.has-conversation) #askPanel .chat-actions-card{display:block;padding:17px}
.dashboard-active:not(.has-conversation) #askPanel .chat-benefits-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dashboard-active #episodePanel>.composer-section{max-width:none;margin:0 0 14px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.dashboard-active #episodePanel>.composer-section .section-head{margin-bottom:12px}
.dashboard-active #episodePanel>.composer-section .section-head h2{font-size:21px}
.dashboard-active #episodePanel .composer{padding:14px;background:var(--surface-2);border-radius:12px}
.dashboard-active #episodePanel .composer>label,.dashboard-active #episodePanel .question-row{display:none}
.dashboard-active #episodePanel .composer-tools{margin:0;align-items:center;justify-content:space-between;gap:12px}
.dashboard-active #episodePanel .composer-tools #questionBankButton{display:none}
.dashboard-active #episodePanel .option-divider{display:none}
.dashboard-active .option-divider{display:none!important}
.dashboard-active #episodePanel .episode-shell{max-width:none;margin:0}
.dashboard-active #episodePanel .episode-heading h2{font-size:clamp(28px,3vw,38px)}
.dashboard-active .history-section{max-width:none;margin:12px 0 0;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.dashboard-active .history-section .section-head h2{font-size:21px}
.dashboard-active .history-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.dashboard-active .history-card{min-height:150px}
.dashboard-active footer{max-width:none}
/* Like premium.css: the content fills the screen so the footer starts about
   20px below the sidebar tagline instead of floating near the top. */
.dashboard-active .dashboard-layout{min-height:calc(100vh - 111px)}
.deck-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;font-size:11px;color:var(--muted)}
.deck-filters{display:flex;gap:7px}.deck-filters button{min-height:34px;border:1px solid var(--line);border-radius:99px;padding:6px 12px;background:var(--surface-2);color:var(--muted);font-size:11px;cursor:pointer}
.deck-filters button[aria-pressed=true]{border-color:var(--violet);background:color-mix(in srgb,var(--violet) 10%,var(--surface));color:var(--violet);font-weight:750}
.deck-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;padding:2px 3px 13px}
@media(max-width:1500px){.deck-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.deck-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.deck-card{display:flex;flex-direction:column;overflow:hidden;min-width:0;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;scroll-snap-align:start}
.deck-card:hover{border-color:var(--violet);box-shadow:0 8px 22px rgba(35,32,85,.11)}
.deck-card-media{position:relative;aspect-ratio:16/10;background:var(--surface-2);overflow:hidden}
.deck-card-media.image-unavailable{background:linear-gradient(135deg,var(--surface-2),color-mix(in srgb,var(--violet) 20%,var(--surface)))}
.deck-card-media img{width:100%;height:100%;object-fit:cover}
.deck-rank,.deck-duration,.deck-play{position:absolute;display:grid;place-items:center;color:#fff;background:rgba(7,8,23,.77);border-radius:6px;font-size:10px;font-weight:750}
.deck-rank{top:8px;left:8px;min-width:24px;height:24px;background:var(--violet)}
.deck-duration{bottom:8px;right:8px;padding:3px 6px}
.deck-play{inset:50% auto auto 50%;width:34px;height:34px;border-radius:50%;transform:translate(-50%,-50%);font-size:19px;background:rgba(7,8,23,.67)}
.deck-card-copy{display:flex;flex:1;flex-direction:column;gap:5px;padding:12px}
.deck-card-copy strong{font-size:12px;line-height:1.3;min-height:31px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.deck-card-copy small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deck-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto;padding-top:7px}
.deck-badges span{padding:4px 6px;border-radius:99px;background:var(--surface-2);color:var(--violet);font-size:9px;font-weight:700}
.deck-badges .deck-used{color:var(--muted)}
#deckMore{display:block;margin:9px auto 0}
.deck-card-shell{position:relative;display:flex;min-width:0}
.deck-card-shell>.deck-card{flex:1}
.deck-card-copy .deck-published{color:var(--ink)}
.deck-select{position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:5px;padding:4px 8px;border-radius:99px;background:rgba(7,8,23,.77);color:#fff;font-size:10px;font-weight:750;cursor:pointer}
.deck-select input{width:14px;height:14px;margin:0;accent-color:var(--violet);cursor:pointer}
.deck-select:has(input:checked){background:var(--violet)}
.deck-select:has(input:disabled){opacity:.5;cursor:not-allowed}
.deck-select:has(input:disabled) input{cursor:not-allowed}
.deck-build{display:flex;align-items:center;gap:12px;flex-shrink:0}
#deckSelectionCount{color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}
.deck-build-button{padding:10px 18px;border:0;border-radius:10px;background:var(--violet);color:#fff;font-size:13px;font-weight:750;cursor:pointer}
.deck-build-button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.dashboard-panel-head:has(.deck-build){flex-direction:column;align-items:flex-start}}
.deck-viewer-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding:16px 22px 20px;border-top:1px solid var(--line)}
.deck-viewer-nav button{min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--ink);cursor:pointer}
.deck-viewer-nav button:disabled{opacity:.4;cursor:default}
#deckViewerTranscript:not([hidden]){display:block;max-height:160px;overflow:auto;padding:4px 22px 16px;margin:0;color:var(--muted);font-size:13px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.dashboard-right{display:flex;flex-direction:column;gap:12px;min-width:0;align-self:start}
.dashboard-right .dashboard-panel{margin:0}
.dashboard-rail-head{display:flex;align-items:center;gap:10px}
.dashboard-rail-head h2,.source-note h2{margin:0;font-size:17px;letter-spacing:-.03em}
.rail-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:color-mix(in srgb,var(--violet) 11%,var(--surface));color:var(--violet);font-size:20px}
.dashboard-rail-copy{color:var(--muted);font-size:12px;line-height:1.5;margin:7px 0 12px}
.offer-empty{display:grid;gap:8px;justify-items:center;min-height:155px;align-content:center;text-align:center;padding:17px;background:var(--surface-2);border-radius:12px}
.offer-empty span{font-size:24px;color:var(--violet)}.offer-empty strong{font-size:13px}.offer-empty p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.offer-disclosure{margin:13px 0 0;font-size:10px;color:var(--muted);line-height:1.4}
.dashboard-offer{display:grid;gap:8px;margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:12px}
.dashboard-offer img{width:100%;max-height:135px;object-fit:cover;border-radius:8px}
.dashboard-offer h3{margin:0;font-size:14px}.dashboard-offer p{margin:0;color:var(--muted);font-size:11px;line-height:1.4}
.offer-label{color:var(--violet);font-size:9px;font-weight:800;letter-spacing:.08em}
.dashboard-offer-link{display:inline-flex;justify-content:center;padding:9px 12px;border-radius:8px;background:var(--surface-2);color:var(--violet);font-size:11px;font-weight:750;text-decoration:none}
.recent-questions-panel #recentQuestions{display:grid;gap:5px}.recent-questions-panel button{width:100%;max-width:100%;padding:8px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.source-note{margin-top:4px!important}.source-note h2{margin-top:7px}.source-note p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.dashboard-sidebar{position:fixed;top:0;bottom:0;left:0;z-index:100;width:var(--dashboard-side);display:flex;flex-direction:column;padding:24px 14px;background:var(--surface);border-right:1px solid var(--line)}
.dashboard-brand{display:flex;align-items:center;gap:8px;margin-bottom:24px;color:var(--ink);font-size:24px;text-decoration:none;letter-spacing:-.04em}.dashboard-brand img{width:39px;height:39px;object-fit:contain}
.dashboard-sidebar-label{padding:0 10px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.08em}
.dashboard-side-nav{display:grid;gap:4px;margin:18px 0 20px}
.dashboard-side-nav button{display:flex;align-items:center;gap:10px;min-height:43px;width:100%;padding:9px 11px;border:0;border-radius:10px;background:transparent;color:var(--muted);text-align:left;font-size:13px;cursor:pointer}
.dashboard-side-nav button>span:first-child{display:grid;place-items:center;width:20px;color:var(--violet);font-size:19px}
.dashboard-side-nav button[aria-current=page]{background:linear-gradient(110deg,var(--violet),var(--violet-2));color:#fff;font-weight:750;box-shadow:0 6px 16px rgba(86,72,212,.18)}
.dashboard-side-nav button[aria-current=page]>span:first-child{color:#fff}
.dashboard-sidebar-note{margin:auto 10px 0;white-space:pre-line;color:var(--muted);font-size:12px;line-height:1.5}
.dashboard-active .premium-sidebar{width:var(--dashboard-side);padding:24px 14px}
.dashboard-active .premium-brand{margin-bottom:16px}
.dashboard-active .premium-channel-list{gap:4px;margin-top:8px}
.dashboard-active .premium-channel-list button{min-height:43px;padding:7px 9px}
.dashboard-active .premium-channel-list img{width:34px;height:34px;border-radius:8px}
.dashboard-active .premium-channel-list button.active{background:linear-gradient(110deg,var(--violet),var(--violet-2));color:#fff}
.dashboard-active .premium-explore{min-height:42px;margin-top:10px;color:var(--violet)}
.dashboard-active .premium-logout{min-height:42px}
.dashboard-active .premium-sidebar .dashboard-side-nav{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.dashboard-active .premium-mobile-toggle{display:none}
.dashboard-active :is(button,a,input,textarea):focus-visible{outline:3px solid var(--violet);outline-offset:2px}
@media(max-width:1200px){.dashboard-active{--dashboard-side:196px;--dashboard-rail:250px;--dashboard-gap:12px}.dashboard-active #askPanel .chat-grid{grid-template-columns:1fr}.dashboard-active #askPanel .chat-actions-card{display:none}}
@media(max-width:980px){.dashboard-active{--dashboard-side:192px}.dashboard-active .dashboard-layout{grid-template-columns:minmax(0,1fr)}.dashboard-right{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-right .source-note{grid-column:1/-1}}
@media(max-width:700px){
  .dashboard-active,.dashboard-active.premium-active{padding-left:0;padding-top:48px}
  .dashboard-active:not(.premium-active){padding-top:0}
  .dashboard-active .topbar{height:54px;padding:8px 16px}
  .dashboard-active .topbar .dashboard-mobile-brand{display:inline-flex;align-items:center;gap:6px;margin-right:auto;color:var(--ink);text-decoration:none;font-size:18px;letter-spacing:-.035em}
  .dashboard-mobile-brand img{width:28px;height:28px;object-fit:contain}
  .dashboard-active .dashboard-layout{padding:0 13px 28px}
  .dashboard-active .hero:not(.composer-section){margin:0 auto 18px}
  .dashboard-active .hero:not(.composer-section) h1{font-size:clamp(34px,9vw,42px)}
  .dashboard-active .hero:not(.composer-section) .hero-copy{font-size:13px}
  .dashboard-tabs{width:100%}.dashboard-tabs button{gap:3px;min-height:43px;font-size:11px}.dashboard-tabs button span{font-size:15px}
  .dashboard-search-row{gap:5px}.dashboard-search input{font-size:13px}.dashboard-search button{min-height:44px;padding:8px 11px;font-size:11px}
  .dashboard-panel{padding:15px;border-radius:14px}.dashboard-panel-head{align-items:flex-start}.dashboard-panel-head h2{font-size:19px}.dashboard-panel-head p{font-size:11px}.dashboard-panel-head .dashboard-primary{padding:8px 10px;white-space:nowrap}
  .dashboard-active #askPanel>.chat-section .section-head p{display:none}
  .dashboard-active:not(.has-conversation) #askPanel .chat-benefits-list{grid-template-columns:1fr}
  .dashboard-right{grid-template-columns:1fr}.dashboard-right .source-note{grid-column:auto}
  .dashboard-active .history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-active .premium-mobile-toggle{display:block;height:48px;padding-left:15px}
  .dashboard-active .premium-sidebar{width:min(300px,calc(100vw - 48px));box-shadow:var(--shadow)}
  .dashboard-active.premium-menu-open:after{content:"";position:fixed;inset:48px 0 0;z-index:98;background:rgba(12,13,32,.38)}
  .dashboard-active .premium-channel-list{max-height:37vh}
  .dashboard-active .dashboard-sidebar{display:none}
}
@media(max-width:420px){.dashboard-tabs{gap:0;padding:4px}.dashboard-tabs button{font-size:10px}.dashboard-tabs button span{display:none}.dashboard-active .history-grid{grid-template-columns:1fr}.deck-grid{grid-template-columns:1fr}.deck-toolbar{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.dashboard-spinner{animation:none}}
/* When an episode is showing (new or from history), it leads the Episode tab;
   the "Build a personalized episode" form moves below it. */
.dashboard-active #episodePanel:not([hidden]){display:flex;flex-direction:column}
.dashboard-active #episodePanel:has(#episodeShell:not(.hidden)) #composerSection{order:3;margin-top:28px}
#deckViewerTranscript a{color:var(--violet);text-decoration:underline;text-underline-offset:2px}
.announcement-panel #announcementBody{display:grid;gap:8px;margin-top:10px}
.announcement-title{font-size:15px;color:var(--ink)}
.announcement-message{margin:0;color:var(--muted);font-size:13px;line-height:1.5;white-space:pre-line}
.announcement-link{justify-self:start;padding:8px 14px;border-radius:9px;background:linear-gradient(135deg,var(--violet),var(--violet-2));color:#fff;font-size:13px;font-weight:700;text-decoration:none}

/* Channel identity beside the introduction, stacked on narrow screens. */
.dashboard-active .hero:not(.composer-section){max-width:1400px;display:grid;grid-template-columns:180px minmax(0,1fr);gap:32px;align-items:center;text-align:center;padding:0 8px}
.hero-channel-image{width:180px;height:180px;object-fit:cover;border-radius:24px;box-shadow:0 12px 32px rgba(30,25,70,.10)}
.hero-channel-image[hidden]{display:none}
.premium-combined .hero-channel-image,.premium-combined .playlist-filter{display:none!important}
.dashboard-active.premium-combined .hero:not(.composer-section){grid-template-columns:1fr}
.dashboard-active .hero:not(.composer-section):has(.hero-channel-image[hidden]){grid-template-columns:1fr}
@media(min-width:1500px){.dashboard-active .hero:not(.composer-section){grid-template-columns:220px minmax(0,1fr)}.hero-channel-image{width:220px;height:220px}}
@media(max-width:760px){.dashboard-active .hero:not(.composer-section){grid-template-columns:1fr;gap:16px}.hero-channel-image{width:96px;height:96px;border-radius:18px;justify-self:center}}

.playlist-filter{flex:0 1 180px;min-width:125px;display:grid;gap:3px}
.dashboard-search .playlist-filter label{position:static;clip:auto;width:auto;height:auto;overflow:visible;font-size:10px;line-height:1.1;color:var(--muted);font-weight:700}
.playlist-filter select{width:100%;min-width:0;min-height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:4px 24px 4px 8px;font:inherit;font-size:12px}
.playlist-scope-count{margin:6px 10px 0;font-size:11px;color:var(--muted)}
@media(max-width:760px){.dashboard-search-row{flex-wrap:wrap;gap:8px}.dashboard-search-row>input{flex:1 1 calc(100% - 60px);width:calc(100% - 60px)}.playlist-filter{flex:1 1 130px}.dashboard-search-row>#dashboardSubmit{flex:0 1 auto;width:auto;min-width:135px}}

.dashboard-workspace{container-type:inline-size}
@container(max-width:700px){.dashboard-search-row{flex-wrap:wrap;gap:8px}.dashboard-search-row>input{flex:1 1 calc(100% - 60px);width:calc(100% - 60px)}.playlist-filter{flex:1 1 160px}.dashboard-search-row>#dashboardSubmit{flex:0 1 auto;width:auto;min-width:135px}}
.chat-source-title-row{display:flex;align-items:flex-start;gap:16px;margin-bottom:6px}
.chat-source-modal-info .chat-source-title-row h3{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.chat-source-copy-link{flex:none;margin-left:auto;padding:4px 0;border:0;background:transparent;color:var(--violet-2);font:inherit;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.chat-source-copy-link:hover{text-decoration:underline}
.chat-source-copy-link:focus-visible{outline:2px solid var(--violet);outline-offset:4px;border-radius:3px}
.generation-panel{position:relative}
.generation-head>div{min-width:0;width:100%}
.generation-head .eyebrow{padding-right:64px}
.generation-head>b{position:absolute;top:18px;right:20px;font-size:20px;line-height:1.2}
@media(max-width:620px){.generation-head>b{top:16px;right:16px;font-size:18px}}
/* Recent Videos: Markdown preview button (same look as the .deck-badges "Video" badge, right corner of the badge row) */
.deck-markdown-button{position:absolute;right:19px;bottom:14px;z-index:1;padding:4px 6px;border:0;border-radius:99px;background:var(--surface-2);color:var(--violet);font-size:9px;font-weight:700;line-height:normal;cursor:pointer}
.deck-markdown-button:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.markdown-preview-modal{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 24px 70px rgba(24,20,69,.28);overflow:hidden}
.markdown-preview-modal[open]{display:flex;flex-direction:column}
.markdown-preview-modal::backdrop{background:rgba(15,12,40,.55)}
.markdown-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}
.markdown-preview-heading{min-width:0}
.markdown-preview-head h3{margin:0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.markdown-preview-meta{margin:4px 0 0;color:var(--muted);font-size:12px}
.markdown-preview-meta:empty{display:none}
.markdown-preview-close{flex:none;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:var(--surface-2);color:var(--ink);font-size:20px;line-height:1;cursor:pointer}
.markdown-preview-body{flex:1;min-height:180px;overflow:auto;padding:20px 26px}
.markdown-preview-body:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}
.markdown-preview-document{color:var(--ink);font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.markdown-preview-document>:first-child{margin-top:0}
.markdown-preview-document h1,.markdown-preview-document h2,.markdown-preview-document h3,.markdown-preview-document h4,.markdown-preview-document h5,.markdown-preview-document h6{margin:1.4em 0 .5em;line-height:1.3}
.markdown-preview-document h1{font-size:22px}.markdown-preview-document h2{font-size:18px}.markdown-preview-document h3{font-size:16px}.markdown-preview-document h4,.markdown-preview-document h5,.markdown-preview-document h6{font-size:14px}
.markdown-preview-document p,.markdown-preview-document ul,.markdown-preview-document ol,.markdown-preview-document blockquote,.markdown-preview-document pre,.markdown-preview-document table{margin:0 0 1em}
.markdown-preview-document ul,.markdown-preview-document ol{padding-left:1.5em}
.markdown-preview-document li+li{margin-top:.25em}
.markdown-preview-document a{color:var(--violet)}
.markdown-preview-document blockquote{padding:2px 0 2px 14px;border-left:3px solid var(--violet);color:var(--muted)}
.markdown-preview-document code{padding:1px 5px;border-radius:5px;background:var(--surface-2);font-size:.9em}
.markdown-preview-document pre{padding:12px 14px;border-radius:10px;background:var(--surface-2);overflow:auto}
.markdown-preview-document pre code{padding:0;background:none}
.markdown-preview-document hr{margin:1.5em 0;border:0;border-top:1px solid var(--line)}
.markdown-preview-document table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:13px}
.markdown-preview-document th,.markdown-preview-document td{padding:6px 10px;border:1px solid var(--line);text-align:left;vertical-align:top}
.markdown-preview-document th{background:var(--surface-2)}
.markdown-preview-foot{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:14px 22px;border-top:1px solid var(--line)}
.markdown-preview-foot[hidden]{display:none}
.markdown-preview-status{margin-right:auto;color:var(--muted);font-size:12px}
.markdown-preview-export:disabled{opacity:.6;cursor:progress}
@media (max-width:640px){.markdown-preview-modal{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.markdown-preview-body{padding:16px}.markdown-preview-head,.markdown-preview-foot{padding:14px 16px}}
.markdown-preview-document blockquote>:last-child,.markdown-preview-document li>p:last-child{margin-bottom:0}
/* Up to two announcements at once (dashboard.js loadAnnouncement). */
.announcement-item{display:grid;gap:8px}.announcement-item+.announcement-item{padding-top:12px;margin-top:4px;border-top:1px solid var(--line)}
/* Creator resources (dashboard.js loadResources): listed under Announcements, hidden when empty. */
.resource-panel[hidden]{display:none}.resource-panel #resourceBody{display:grid;gap:0;margin-top:10px}.resource-item{display:grid;gap:5px;padding:10px 0}.resource-item+.resource-item{border-top:1px solid var(--line)}.resource-item:first-child{padding-top:0}.resource-item:last-child{padding-bottom:0}.resource-title{font-size:14px;color:var(--ink)}.resource-description{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.resource-link{justify-self:start;color:var(--violet-2);font-size:13px;font-weight:700;text-decoration:none}.resource-link:hover{text-decoration:underline}
/* Episode report download: in the gap between the player and Sources & timestamps, on the right. */
.episode-report-row{display:flex;justify-content:flex-end;margin:18px 0 6px}.episode-report-row .report-button{margin:0}
@media(max-width:760px){.episode-report-row{justify-content:center}}
/* Episode options: a compact strip directly under the search box, half its width, right edge flush with Create episode. */
.dashboard-active #episodePanel>.composer-section,.dashboard-active #episodePanel:has(#episodeShell:not(.hidden)) #composerSection{order:0;width:fit-content;max-width:100%;margin:-6px max(0px,calc((100% - 1000px) / 2)) 16px auto;padding:0;border:0;background:none}
.dashboard-active #episodePanel>.composer-section .section-head{display:none}
.dashboard-active #episodePanel .composer{display:flex;align-items:center;justify-content:center;min-height:0;padding:4px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.dashboard-active #episodePanel .composer>*:not(.composer-tools){display:none}
.dashboard-active #episodePanel .composer-tools{margin:0;padding:0;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px 18px;font-size:13px}
.dashboard-active #episodePanel .composer-tools>*{margin:0}
@media(max-width:760px){.dashboard-active #episodePanel>.composer-section,.dashboard-active #episodePanel:has(#episodeShell:not(.hidden)) #composerSection{width:100%;margin:0 0 14px}.dashboard-active #episodePanel .composer-tools{flex-wrap:wrap}}
/* Footer: channel/status line on top, Zaavle brand below, both centred under Recent episodes. */
.dashboard-active footer{border-top:0;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px}
.dashboard-active footer #footerStatus{order:-1;margin:0}
.dashboard-active footer .footer-brand{justify-content:center}
/* Ask a question (before a conversation): same compact strip as the episode composer, under the search box. */
.dashboard-active:not(.has-conversation) #askPanel>.chat-section{width:fit-content;max-width:100%;margin:-6px max(0px,calc((100% - 1000px) / 2)) 16px auto;padding:4px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.dashboard-active:not(.has-conversation) #askPanel>.chat-section .section-head{display:flex;align-items:center;justify-content:center;gap:18px;margin:0;font-size:13px}
.dashboard-active:not(.has-conversation) #askPanel>.chat-section .section-head h2,.dashboard-active:not(.has-conversation) #askPanel>.chat-section .section-head p,.dashboard-active:not(.has-conversation) #askPanel>.chat-section .chat-grid{display:none}
.dashboard-active:not(.has-conversation) #askPanel>.chat-section .option-tag{margin:0;padding:0;background:none;border:0;white-space:nowrap}
.dashboard-active:not(.has-conversation) #askPanel>.chat-section .option-tag::after{content:" \00B7  1\2013 3 supporting video clips";font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
.dashboard-active:not(.has-conversation) #askPanel>.chat-section .dashboard-text-button{margin:0;white-space:nowrap;font-size:13px}
@media(max-width:760px){.dashboard-active:not(.has-conversation) #askPanel>.chat-section{width:100%;margin:0 0 14px}.dashboard-active:not(.has-conversation) #askPanel>.chat-section .section-head{flex-wrap:wrap}}
/* Confirm before rendering a new episode when related ones exist. */
.episode-confirm-dialog{width:min(520px,calc(100% - 32px));padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.episode-confirm-dialog::backdrop{background:rgba(4,5,10,.72);backdrop-filter:blur(4px)}
.episode-confirm-dialog form{padding:22px 24px}
.episode-confirm-dialog h2{margin:0 0 8px;font-size:20px}
.episode-confirm-dialog p{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.5}
.episode-confirm-dialog ul{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:8px}
.episode-confirm-dialog li button{width:100%;text-align:left;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);cursor:pointer}
.episode-confirm-dialog li button:hover,.episode-confirm-dialog li button:focus-visible{border-color:var(--violet)}
.episode-confirm-dialog li strong{display:block;font-size:13px}
.episode-confirm-dialog li small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.episode-confirm-actions{display:flex;justify-content:flex-end;gap:10px}
.episode-confirm-actions button{padding:9px 16px;border-radius:10px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.episode-confirm-cancel{border:1px solid var(--line);background:transparent;color:var(--ink)}
.episode-confirm-new{border:0;background:var(--violet);color:#fff}

body[data-view="recent"] #dashboardSearch,body[data-view="recent"] #playlistScopeCount{display:none}
#channelVideoSearch{width:100%;min-width:0;background:transparent;border:0;padding:12px;color:inherit;font:inherit}
#channelVideoMore{display:block;margin:16px auto 0}
#channelVideoMore[hidden],#channelVideoSeek[hidden]{display:none}
#channelVideoSeek{display:block;width:calc(100% - 28px);margin:10px 14px;accent-color:var(--accent,var(--violet,#7762d6))}

.channel-video-search{margin:20px 0 24px;max-width:760px}
.channel-video-search label{display:block;margin-bottom:8px;font-size:13px;font-weight:650;color:var(--muted)}
.channel-video-search-field{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);transition:border-color .15s,box-shadow .15s}
.channel-video-search-field:focus-within{border-color:var(--violet);box-shadow:0 0 0 3px color-mix(in srgb,var(--violet) 15%,transparent)}
.channel-video-search-icon{flex:none;font-size:20px;line-height:1;color:var(--violet)}
.channel-video-search-field #channelVideoSearch{padding:14px 0;outline:none}
.whole-video-view .timeline-column{display:none}
.whole-video-view .episode-grid{grid-template-columns:minmax(0,1fr)}

/* Channel video playback (not an episode): hide episode-only UI */
body.channel-video-active #dashboardSearch,body.channel-video-active #playlistScopeCount,body.channel-video-active #composerSection,body.channel-video-active #narratorOptions,body.channel-video-active .composer-tools,body.channel-video-active #episodeShell .episode-heading .eyebrow,body.channel-video-active #episodeShell .episode-actions{display:none!important}

/* Sidebar: channel identity on top, Zaavle brand at the bottom */
.dashboard-sidebar-channel{display:flex;align-items:center;gap:12px;margin:0 6px 24px;min-width:0}
.dashboard-sidebar-channel img{flex:none;width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--surface-2);border:1px solid var(--line)}
.dashboard-sidebar-channel strong{min-width:0;color:var(--ink);font-size:16px;line-height:1.25;font-weight:750;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dashboard-brand.dashboard-brand-footer{margin:auto 10px 0;font-size:18px;gap:8px;opacity:.85}
.dashboard-brand.dashboard-brand-footer img{width:28px;height:28px}
.dashboard-sidebar .dashboard-sidebar-channel strong{font-size:13px;font-weight:700;line-height:1.3}

/* Episodes widget switched off in the creator dashboard */
body.episodes-disabled #tab-episode,body.episodes-disabled [data-nav-view="episode"]{display:none!important}
.markdown-preview-document ul+ul,.markdown-preview-document ol+ol,.markdown-preview-document ul+ol,.markdown-preview-document ol+ul{margin-top:1.4em}

/* ---- Channel hero (2026-10-15): channel photo on the left, the message on the right (one row on
   desktop and tablet). The default "Where AI leads..." graphic is not shown; a creator's own header
   graphic (Private Label) still appears above the headline. "Powered by" lives in the footer. */
.dashboard-active .hero:not(.composer-section){display:grid;grid-template-columns:168px minmax(0,1fr);align-items:center;gap:36px;max-width:1040px;margin:10px auto 30px;padding:0 12px;text-align:left}
.dashboard-active .hero:not(.composer-section):has(.hero-channel-image[hidden]){grid-template-columns:1fr}
.dashboard-active .hero-channel-image,.hero-channel-image{width:168px;height:168px;border-radius:28px;object-fit:cover;box-shadow:0 0 0 1px var(--line),0 18px 40px rgba(16,12,48,.28)}
.hero-channel-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.hero-channel-name{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--violet-2)}
.hero-message .hero-message-light,.hero-message .hero-message-dark,html[data-theme=dark] .hero-message .hero-message-dark{display:none}
.hero-message:not(:has(.hero-message-custom)){display:none}
.dashboard-active .hero:not(.composer-section) .hero-message{width:auto;margin:10px 0 0}
.hero-message .hero-message-custom{max-width:320px;max-height:72px;margin:0}
.dashboard-active .hero:not(.composer-section) h1{margin:8px 0 12px;font-size:clamp(32px,3.6vw,50px);line-height:1.05;letter-spacing:-.04em;font-weight:820}
.dashboard-active .hero:not(.composer-section) h1 strong{display:block;color:var(--violet)}
.dashboard-active .hero:not(.composer-section) .hero-copy{max-width:640px;margin:0;font-size:16px;line-height:1.55;color:var(--muted)}
.hero-copy #heroChannelNameInline{color:var(--ink);font-weight:650}
.hero-benefits{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.hero-benefits li{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:12.5px;font-weight:600}
.hero-benefits li span{color:var(--violet);font-size:10px}
@media(min-width:1500px){.dashboard-active .hero:not(.composer-section){grid-template-columns:188px minmax(0,1fr)}.dashboard-active .hero-channel-image,.hero-channel-image{width:188px;height:188px}}
@media(max-width:760px){
  .dashboard-active .hero:not(.composer-section){grid-template-columns:84px minmax(0,1fr);gap:16px;align-items:start;margin:4px auto 20px}
  .dashboard-active .hero-channel-image,.hero-channel-image{width:84px;height:84px;border-radius:18px;justify-self:start}
  .dashboard-active .hero:not(.composer-section) h1{font-size:clamp(26px,7.4vw,34px)}
  .dashboard-active .hero:not(.composer-section) .hero-copy{font-size:14px}
  .hero-benefits{gap:6px}.hero-benefits li{font-size:11.5px;padding:5px 10px}
}

/* Markdown preview: timestamped detail entries as readable cards (time link at the end) */
.markdown-preview-document ul.md-moments{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:12px}
.markdown-preview-document li.md-moment{margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.md-moment-claim{margin:0 0 8px;font-weight:700;font-size:15px;line-height:1.45;color:var(--ink)}
.md-moment-quote{margin:0 0 10px;padding:2px 0 2px 14px;border-left:2px solid color-mix(in srgb,var(--violet) 45%,var(--line));color:var(--muted);font-size:14px;line-height:1.6}
.md-moment-quote p{margin:0 0 6px}.md-moment-quote p:last-child{margin-bottom:0}
.md-moment-quote p:before{content:"“"}.md-moment-quote p:after{content:"”"}
a.md-moment-time{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--violet) 40%,var(--line));color:var(--violet);font-size:12px;font-weight:700;text-decoration:none;font-variant-numeric:tabular-nums}
a.md-moment-time:hover{background:color-mix(in srgb,var(--violet) 12%,transparent)}
/* Video timeline: seek bar, tick marks with times underneath, time remaining on the right. */
.seek-wrap{margin:10px 14px 4px}
.seek-wrap[hidden]{display:none}
.seek-row{display:flex;align-items:flex-start;gap:12px}
.seek-track{position:relative;flex:1;min-width:0;padding-bottom:26px}
.seek-wrap #channelVideoSeek{position:relative;z-index:1;width:100%;margin:0}
.seek-remaining{flex:none;min-width:58px;padding-top:1px;text-align:right;font-variant-numeric:tabular-nums;font-size:13px;font-weight:700;color:var(--muted,#9aa0b4)}
.seek-scale{position:absolute;left:0;right:0;top:calc(100% - 26px);height:26px;pointer-events:none}
.seek-tick{position:absolute;top:2px;width:1px;height:4px;background:currentColor;opacity:.35;color:var(--muted,#9aa0b4)}
.seek-tick.major{height:7px;opacity:.7}
.seek-tick i{position:absolute;top:10px;left:0;transform:translateX(-50%);font-style:normal;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:1}
.seek-tick:first-child i{transform:none}
.seek-end i{transform:translateX(-100%)}
.seek-marker{position:absolute;top:calc((100% - 26px) / 2);width:16px;height:16px;border-radius:50%;transform:translate(-50%,-50%) scale(.4);background:#f5b84b;box-shadow:0 0 0 2px #0b0d14;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.seek-marker.newer{background:#5dd39e}
.seek-marker.reached{opacity:1;transform:translate(-50%,-50%) scale(1)}
.seek-marker{z-index:2}
