:root{color-scheme:light;--bg:#f6f6f5;--panel:#fff;--line:#dadadc;--text:#18181a;--muted:#58585e;--accent:#bc202d;--soft:#fcebed;--on-accent:#fff}
:root[data-theme=dark]{color-scheme:dark;--bg:#151516;--panel:#232325;--line:#424246;--text:#f6f6f6;--muted:#bebec2;--accent:#ff8a92;--soft:#48272c;--on-accent:#20080a}
body{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,.button{border-radius:12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.primary,.auth-card a.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.theme-toggle{margin-left:auto;white-space:nowrap;min-height:42px;padding:8px 13px;font-size:13px;background:var(--panel);color:var(--text)}
.product-site,.auth-page{background:var(--bg)}
.site-nav{max-width:1320px;border-color:var(--line);gap:30px}.site-nav .theme-toggle{margin-left:0}.site-nav nav{margin-left:auto}
.site-section{padding-top:86px}.tool-tile{background:var(--panel);box-shadow:0 3px 12px #1d222604}.tool-tile:hover{border-color:var(--accent)}.tool-icon,.tool-index{color:var(--accent);border-color:var(--line)}.tool-icon{background:var(--soft)}
.final-cta,.workflow-poster{background:var(--panel);border-color:var(--line)}.site-footer nav,.product-steps li{color:var(--muted)}
.auth-card{background:var(--panel);border-color:var(--line);box-shadow:0 18px 70px #1d22260c}.auth-card p,.auth-card small,.auth-intro p,.auth-benefits,.auth-footer{color:var(--muted)}.auth-card label{color:var(--text)}.auth-card a{color:var(--accent)}.auth-card hr{border-color:var(--line)}#recovery-codes pre{overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;padding:12px;border:1px solid var(--line);border-radius:10px}
.sidebar,.workspace-header{background:var(--panel)}.sidebar nav button.active,.badge{background:var(--soft);color:var(--accent)}.workspace-header{gap:12px}.workspace-header>.theme-toggle{order:2;margin-left:0}.workspace-header .badge{margin-left:auto}.workspace-header>a{order:3}
.connection-card{padding:22px 0;border-bottom:1px solid var(--line);margin-bottom:22px}.connection-card h3{margin-bottom:8px}.connection-card .disconnect{margin-top:10px}
/* Five stable sections; contextual tools keep the workspace focused. */
.sidebar #navigation{gap:8px}.sidebar #navigation button{min-height:62px;display:flex;align-items:flex-start;flex-direction:column;gap:3px;padding:12px 14px}.sidebar #navigation button>span{font-size:15px;font-weight:650}.sidebar #navigation button>small{font-size:11px;line-height:1.4;font-weight:400;color:var(--muted)}
.section-tools{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid var(--line)}.section-tools button{padding:8px 13px;min-height:42px;background:transparent;font-size:13px}.section-tools button.active{background:var(--soft);color:var(--accent);border-color:transparent;font-weight:650}.section-tool-select{display:none}.section-tools[hidden],.section-tool-select[hidden]{display:none!important}
@media(max-width:760px){.workspace .sidebar{display:block;padding:14px 12px 10px}.sidebar .brand{margin:0 4px 12px}.sidebar>.eyebrow,.sidebar .local-label{display:none}.sidebar #navigation{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;width:100%;overflow:visible}.sidebar #navigation button{min-width:0;min-height:44px;padding:9px 3px;align-items:center;justify-content:center;white-space:nowrap}.sidebar #navigation button>span{font-size:12px}.sidebar #navigation button>small{display:none}.section-tools{display:none}.section-tool-select{display:flex;align-items:center;gap:12px;margin:0 0 20px;font-size:12px;color:var(--muted)}.section-tool-select select{flex:1;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--panel);color:var(--text);font-size:14px}.heading h1{font-size:29px}.content{padding-top:24px}}

.research-options{margin:10px 0 16px;border:1px solid var(--line);border-radius:12px;padding:0 12px}.research-options summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;color:var(--muted)}.research-options summary::before{content:'＋';margin-right:8px}.research-options[open] summary::before{content:'−'}.research-options-actions{display:flex;gap:8px;flex-wrap:wrap}.research-options #research-export{margin:10px 0}.research-options #quick-discovery{margin:12px 0}.index-coverage progress{width:100%;height:10px}.index-coverage p{overflow-wrap:anywhere}.video-detail .card-actions button{min-height:44px}.script-editor fieldset{min-width:0}.script-editor input,.script-editor textarea{max-width:100%;box-sizing:border-box}
@media(max-width:760px){.workspace-header{padding:8px 12px;min-height:50px;gap:8px}.workspace-header a{font-size:12px;padding:8px;min-height:36px}.workspace-header .badge{font-size:9px}.content{padding:16px}.section-tool-select{margin-bottom:14px}.heading{margin-bottom:16px}.heading p{font-size:13px;line-height:1.45}.heading h1{font-size:25px}.research-options{margin:8px 0 12px}#filters{gap:8px}#filters label{font-size:12px}#filters button{padding:8px 10px;min-height:44px}.script-editor .editor-footer{position:sticky;bottom:0;background:var(--panel);padding:12px 0;z-index:2}.script-editor .dialog-heading h2{font-size:20px;overflow-wrap:anywhere}.script-editor label{font-size:13px}.script-editor .script-columns{gap:16px}}

@media(max-width:760px){.script-editor input,.script-editor textarea,.creator-writing input,.creator-writing textarea{font-size:16px}.video-detail .card-actions{position:sticky;top:0;background:var(--panel);padding:10px 0;z-index:2}}
/* Keep the mobile save bar outside the scrolling fields, never over them. */
@media(max-width:760px){
 html:has(.script-editor[open]){overflow:hidden}
 .home-welcome>div{min-width:0}
 .home-welcome .search{flex-wrap:wrap;min-width:0}
 .home-welcome .search input{min-width:0;max-width:100%;box-sizing:border-box}
 .script-editor[open]{display:flex;flex-direction:column;height:92dvh;max-height:92dvh;overflow:hidden;box-sizing:border-box}
 .script-editor>.dialog-heading,.script-editor>p{flex-shrink:0}
 .script-editor>form{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}
 .script-editor .script-columns{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:0 4px 16px 0}
 .script-editor .editor-footer{position:static;flex-shrink:0;border-top:1px solid var(--line);padding:12px 0 0}
}

.source-import-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px}.source-import-options[open]{display:grid;gap:12px}.index-coverage{margin:16px 0}

/* Keep mobile video actions from covering observed growth and admission details. */
@media(max-width:600px){.video-detail .card-actions{position:static}}

/* Fresh lookup keeps the library visible and separates collection progress. */
.fresh-lookup{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:8px 0 16px}.fresh-lookup p{margin:0;flex:1;min-width:0}.fresh-lookup button{min-height:44px;flex-shrink:0}.cohort-rank{padding:12px 0;border-top:1px solid var(--border,#ddd)}
@media(max-width:600px){.fresh-lookup{align-items:stretch;flex-direction:column}.fresh-lookup button{width:100%}.cohort-rank{font-size:14px}}

.writing-tool-links button{min-height:44px}.writing-tool-links{margin-bottom:12px;flex-wrap:wrap}


/* Compact research controls keep the first row of videos above the fold. */
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .heading p{display:none}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .content{padding-top:16px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .section-tools{margin-bottom:14px;padding:0;border:0;gap:6px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .section-tools button{min-height:44px;padding:9px 15px;font-size:16px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #search-form{margin:0 0 10px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #search-form input{min-height:44px;padding:10px 14px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #filters{align-items:center;gap:10px;margin:0 0 12px;flex-wrap:wrap}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #filters>label{display:flex;align-items:center;gap:7px;font-size:15px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #filters select{min-height:38px;padding:7px 10px;margin:0}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #filters button{min-height:42px;padding:8px 12px;font-size:15px}
.format-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.format-tabs button{border:0;background:transparent;color:var(--muted)}
.format-tabs button[aria-pressed="true"]{background:var(--soft);color:var(--accent);font-weight:650}
#filters .research-options{position:relative;margin:0 0 0 auto;border:0;padding:0}
#filters .research-options summary{min-height:38px;padding:6px 10px}
#filters .research-options[open]{border:1px solid var(--line);padding:10px;width:100%;margin:0}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #results>.subtle{font-size:12px;margin:8px 0 12px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .card-grid>.card{content-visibility:auto;contain-intrinsic-size:auto 430px}
.result-pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:24px 0}
@media(max-width:760px){body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .section-tool-select{margin-bottom:10px}body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #filters{gap:7px}body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) #filters>label{font-size:14px}.format-tabs{margin-right:auto}#filters .research-options{margin-left:0}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.loading-videos .skeleton-image,.loading-videos .skeleton-line{background:linear-gradient(100deg,var(--soft) 25%,var(--panel) 45%,var(--soft) 65%);background-size:250% 100%;animation:video-shimmer 1.5s ease-in-out infinite;border-radius:9px}
.skeleton-image{aspect-ratio:16/9}.skeleton-line{height:16px;margin-top:18px}.skeleton-line.short{width:60%;margin-bottom:30px}
@keyframes video-shimmer{to{background-position:-150% 0}}
@media(prefers-reduced-motion:reduce){.loading-videos .skeleton-image,.loading-videos .skeleton-line{animation:none}}

#filters .music-filter{white-space:nowrap;gap:6px}#filters .music-filter input{accent-color:var(--accent);width:15px;height:15px;margin:0}

/* Keep thumbnails full size while tightening the information below them. */
.compact-video-card{padding:14px 20px 12px;position:relative}
.compact-video-card .video-thumbnail{display:block;position:relative;padding:0;border:0;width:100%;aspect-ratio:16/9;border-radius:8px;background:var(--soft);overflow:hidden}
.compact-video-card .video-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.compact-video-card .video-thumbnail>span{position:absolute;right:6px;bottom:6px;padding:1px 5px;background:#111d;color:white;border-radius:4px;font-size:11px;font-weight:600}
.compact-video-card h3{font-size:15px;line-height:1.3;margin:9px 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.compact-video-card p.video-channel{font-size:12px;line-height:1.4;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-video-card .video-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.compact-video-card .video-metrics span{gap:1px;min-width:0}.compact-video-card .video-metrics strong{font-size:15px;line-height:1.3}
.compact-video-card .score-label{display:block;border:0;background:none;padding:0;min-height:0;color:var(--muted);font-size:10px;line-height:1.55;text-align:left;justify-content:start}
.compact-video-card .video-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-top:1px solid var(--line);padding-top:9px}
.compact-video-card .video-actions>button{font-size:11px;padding:6px 8px;min-height:32px;white-space:nowrap;border-radius:8px}
body:is([data-tool="outliers"],[data-tool="niches"],[data-tool="formats"]) .card-grid>.compact-video-card{contain-intrinsic-size:auto 350px}
@media(pointer:coarse){.compact-video-card .video-actions>button{min-height:40px}}

.compact-video-card h3 a{color:inherit;text-decoration:none}.compact-video-card h3 a:hover{text-decoration:underline}
.compact-video-card a:focus-visible{outline:2px solid var(--accent,#7256d8);outline-offset:3px}

/* Shared compact workspace rhythm; preserve larger touch targets on touch screens. */
.workspace-main .content{padding-top:16px}
.section-tools{margin-bottom:14px;padding-bottom:10px}
.section-tools button{min-height:36px;padding:8px 12px}
.heading{margin-bottom:16px}.heading h1{font-size:28px}.heading p{font-size:13px;line-height:1.45;margin-top:6px}
.card-grid{gap:14px}.card-grid>.card:not(.compact-video-card):not(.compact-channel-card){padding:16px}
.card-grid>.card:not(.compact-video-card):not(.compact-channel-card) h3{margin:0 0 8px;font-size:17px}
.card-grid>.card:not(.compact-video-card):not(.compact-channel-card) .card-actions{margin-top:12px;gap:6px}
.result-pagination{padding:18px 0;gap:12px}
.compact-channel-card{padding:16px;position:relative}
.channel-card-heading{display:flex;align-items:center;gap:12px;min-width:0}
.channel-avatar{width:72px;height:72px;flex:0 0 72px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--soft);font-size:30px}
.channel-avatar img{width:72px;height:72px;aspect-ratio:1;border-radius:50%;object-fit:cover}
.channel-card-heading>div{min-width:0}.channel-card-heading h3{margin:0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.channel-card-heading a{color:inherit;text-decoration:none}.channel-card-heading h3 a:hover{text-decoration:underline}
.channel-card-heading p{margin:5px 0 0;font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.channel-card-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.channel-card-metrics strong{font-size:15px}.channel-card-metrics small{font-size:10px;line-height:1.35}
.channel-card-actions{display:grid;grid-template-columns:1fr 1fr 32px;gap:6px;border-top:1px solid var(--line);padding-top:10px}
.channel-card-actions>button{padding:6px;font-size:11px;min-height:34px;white-space:nowrap}
.channel-more{position:relative}.channel-more summary{list-style:none;cursor:pointer;display:grid;place-items:center;height:34px;border:1px solid var(--line);border-radius:8px;font-size:12px}
.channel-more summary::-webkit-details-marker{display:none}
.channel-more>div{position:absolute;right:0;bottom:40px;z-index:5;min-width:155px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 8px 30px #0002}
.channel-more button{width:100%;padding:9px;border:0;background:none;text-align:left;justify-content:start;font-size:12px;white-space:nowrap}
.channel-more button:hover{background:var(--soft)}
body[data-tool="niches"] .card-grid>.compact-channel-card{contain-intrinsic-size:auto 230px}
@media(pointer:coarse){.channel-card-actions>button,.channel-more summary,.section-tools button{min-height:44px}}
@media(max-width:760px){.heading h1{font-size:25px}.section-tool-select{margin-bottom:12px}.channel-card-heading h3{font-size:16px}}

.research-search-row{display:contents}
body[data-tool="formats"] .research-search-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
body[data-tool="formats"] #search-form{flex:1;min-width:220px;margin:0}
body[data-tool="formats"] #filters{flex:0 1 auto;margin:0;min-height:44px}
body[data-tool="formats"] #filters .research-options{display:none}
.title-ideas-grid .format-card{display:flex;flex-direction:column;content-visibility:visible!important}
.title-ideas-grid .title-examples{display:grid;gap:10px;margin:8px 0}
.title-examples a{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-size:13px;line-height:1.4}
.title-examples a:hover span{text-decoration:underline}
.title-examples img{width:96px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;flex-shrink:0}
.title-ideas-grid .format-card .card-actions{margin-top:auto!important;padding-top:12px}
.title-ideas-grid .card-actions button{width:100%;min-height:40px}
@media(max-width:1000px){body[data-tool="formats"] .research-search-row{flex-wrap:wrap}body[data-tool="formats"] #search-form{flex-basis:100%}}

.writing-mode-tabs{display:inline-flex;margin:0 0 16px;gap:4px}.writing-mode-tabs[hidden]{display:none}.writing-mode-tabs button{min-height:38px;padding:8px 18px;font-size:13px}

.simple-script-editor{max-width:900px;width:calc(100% - 32px)}
.simple-script-editor .simple-script-inputs{display:grid;grid-template-columns:160px 1fr;gap:16px}
.simple-script-editor label{font-size:13px}.simple-script-editor textarea{line-height:1.55}
.simple-script-imports{display:flex;align-items:center;gap:16px;margin:8px 0 16px}.simple-script-imports button{font-size:12px}
.simple-script-editor .script-file-label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}.script-file-label input{max-width:200px;font-size:12px}
.simple-script-editor .script-options{margin:12px 0;padding:0;border:0}.script-options summary{font-size:13px;cursor:pointer;margin-bottom:12px}
.simple-script-editor .script-output{margin-top:24px}.simple-script-editor .script-output[hidden]{display:none}
.simple-script-editor .editor-footer{gap:10px;flex-wrap:wrap}.simple-script-editor [role=status]{flex:1;font-size:13px}
@media(max-width:600px){.simple-script-editor .simple-script-inputs{grid-template-columns:1fr}.simple-script-imports{flex-wrap:wrap}.simple-script-editor{width:calc(100% - 16px);padding:16px}}

section.simple-script-editor{width:100%;max-width:900px;max-height:none;overflow:visible;margin:0;padding:20px;background:var(--panel,#fff);border:1px solid var(--border,#e3e7ef);border-radius:16px}section.simple-script-editor .dialog-heading{margin-bottom:14px}.studio-projects{margin-top:32px;padding-top:22px;border-top:1px solid var(--border,#e3e7ef)}.studio-project-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-projects .card button{margin-top:12px}.studio-projects .card h3{margin-bottom:6px}.creator-writing{max-width:900px}

.simple-script-editor>form{display:flex;flex-direction:column;gap:14px;overflow:visible;flex:none}.simple-script-editor label{display:grid;gap:7px;min-width:0}.simple-script-editor input:not([type=file]),.simple-script-editor textarea{width:100%;min-width:0}.simple-script-editor .editor-footer{position:static;bottom:auto;border-top:1px solid var(--line);padding:14px 0 0;z-index:auto}.simple-script-editor .script-output{display:grid;gap:14px}.simple-script-editor>form>[data-write]{align-self:flex-start}.simple-script-editor .script-file-label{display:flex}.simple-script-editor[open]{display:block;height:auto;max-height:92dvh;overflow:auto}.simple-script-editor .simple-script-inputs{grid-template-columns:160px minmax(0,1fr)}@media(max-width:600px){.simple-script-editor .simple-script-inputs{grid-template-columns:1fr}}

.compact-video-card .video-actions .create-video{background:#c91635;color:#fff;border-color:#c91635;font-weight:650}

/* Shared surfaces for the public site, workspace and account screens. */
:root {
  --surface-edge: color-mix(in srgb, var(--line) 82%, var(--panel));
  --surface-shadow: inset 0 1px 0 #ffffff80, 0 2px 4px #22213b08, 0 12px 32px -15px #30265632;
  --press-curve: cubic-bezier(.22, 1.25, .4, 1);
}
:root[data-theme=dark] {
  --surface-shadow: inset 0 1px 0 #ffffff0d, 0 2px 4px #0002, 0 14px 34px -16px #0008;
}
body { font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif; }
h1, h2, h3 { letter-spacing: -.032em; text-wrap: balance; }
.workspace-main, .product-site, .auth-page {
  background: var(--bg);
}
dialog, .auth-card, .tool-tile, .final-cta {
  background-color: var(--panel);
  border: 1px solid var(--surface-edge);
  border-radius: 20px;
  box-shadow: var(--surface-shadow);
}
.site-nav, .workspace-header, .sidebar {
  background-color: color-mix(in srgb, var(--panel) 95%, var(--soft));
  border-color: var(--surface-edge);
}
.site-section h2, .product-hero h1 { letter-spacing: -.045em; }
button, .button, nav a { transition: background-color .16s, box-shadow .16s, transform .18s var(--press-curve); }
button.primary, a.primary {
  background-image: linear-gradient(170deg, #ffffff16, transparent 55%);
  box-shadow: inset 0 1px 0 #ffffff38, 0 3px 9px color-mix(in srgb, var(--accent) 22%, transparent);
}
button:enabled:active, .button:active { transform: scale(.98); }
button:disabled { cursor: not-allowed; opacity: .62; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  border-radius: 11px; border-color: var(--line); box-shadow: inset 0 1px 3px #16132e08;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
dialog::backdrop { background: #14142580; backdrop-filter: blur(4px); }
.dashboard-empty { border-radius: 12px; background: color-mix(in srgb, var(--soft) 34%, var(--panel)); }
[aria-invalid=true] { border-color: #c84356; }
[aria-busy=true] { cursor: progress; }
@media (hover:hover) {
  .tool-tile:hover, button.primary:enabled:hover, .button.primary:hover { transform: translateY(-1px); }
}
@media (max-width:600px) {
  .card, .auth-card, dialog { border-radius: 16px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  button:enabled:active, .button:active, .tool-tile:hover, button.primary:enabled:hover, .button.primary:hover { transform: none; }
}

/* Shared measurements keep controls and scanning rows aligned in every studio. */
:root {
  --space-unit: 4px;
  --space-section: clamp(20px, 3vw, 40px);
  --control-height: 44px;
  --radius-control: 11px;
  --radius-panel: 18px;
  --type-page: clamp(28px, 3vw, 42px);
  --status-error: #aa2738;
}
:root[data-theme=dark] { --status-error: #ff9aa7; }
.workspace .content { max-width: 1480px; margin-inline: auto; padding: var(--space-section); }
.workspace .heading { margin: 0 0 20px; align-items: center; }
.workspace .heading h1 { font-size: var(--type-page); line-height: 1.12; margin: 3px 0 6px; }
.workspace .heading p { max-width: 66ch; margin: 0; color: var(--muted); }
.sidebar #navigation button { flex-direction: row; align-items: center; gap: 12px; min-height: var(--control-height); }
.sidebar #navigation svg { width: 20px; height: 20px; flex: none; }
.sidebar #navigation button.active { color: var(--accent); background-color: var(--soft); }
.workspace .section-tools { gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.workspace .section-tools button { min-height: 40px; background: transparent; color: var(--muted); border-color: transparent; }
.workspace .section-tools button.active { color: var(--accent); background: var(--soft); border-color: transparent; }
.card { border-color: var(--line); border-radius: var(--radius-panel); background-color: var(--panel); }
.workspace td, .workspace th { padding: 10px 12px; text-align: start; font-variant-numeric: tabular-nums; border-color: var(--line); }
.workspace th { color: var(--muted); font-size: 12px; }
.workspace .dashboard-projects, .workspace .dashboard-saved { background: transparent; border: 0; box-shadow: none; padding: 0; }
.dashboard-work-column { display: grid; gap: var(--space-section); }
.home-project:hover { background: var(--panel); }
.workspace .vault-items { display: grid; grid-template-columns: 1fr; gap: 0; }
.workspace .vault-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; padding: 16px 0; }
.vault-item .project-copy { flex: 1; }
.workspace .title-settings { background: var(--panel); box-shadow: var(--surface-shadow); }
.workspace .title-results { background: transparent; border: 0; box-shadow: none; }
.workspace .card-actions button, .workspace .filters select { border-radius: var(--radius-control); }
.workspace [role=alert]:not(:empty), [aria-invalid=true] { color: var(--status-error); }
.product-site .site-nav { padding: 16px clamp(16px,4vw,52px); gap: 16px; }
.auth-header { padding-block: 18px; border-bottom: 1px solid var(--line); }
.auth-layout { display: block; }
.auth-card h2 { font-size: 32px; line-height: 1.16; }
@media(max-width:900px) {
  .sidebar #navigation button { flex-direction: column; gap: 3px; padding: 5px 2px; }
  .sidebar #navigation button>span { font-size: 11px; }
  .workspace .section-tools { display: none; }
}
@media(max-width:600px) {
  .workspace .content { padding: 18px 14px 28px; }
  .workspace .heading { flex-wrap: wrap; }
  .workspace .card-actions button, .workspace select, .workspace .title-option button, .product-site nav a { min-height: var(--control-height); }
  .workspace .vault-item { display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center; }
  .workspace .vault-item .project-links { grid-column:1/-1;justify-content:flex-start; }
  .workspace .title-results {padding-inline:0}
  dialog { max-width:calc(100vw - 20px); max-height:90dvh; overflow:auto; }
  .studio-title-row, .studio-project-heading { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:no-preference) {
  .section-tools button.active { animation: tool-select .16s var(--press-curve); }
  @keyframes tool-select { from { transform:scale(.97) } to { transform:scale(1) } }
}

.site-menu-toggle { display:none; }
.auth-card #auth-title { margin:0; font-size:clamp(28px,4vw,36px); line-height:1.15; }
.vault-controls a.button { background:none; color:var(--accent); border:0; padding-inline:0; margin-right:12px; }
.workspace .vault-item .project-links { flex:0 1 auto; }
.workspace .project-preview { background:var(--soft); color:var(--accent); }
@media(max-width:700px) {
  .product-site .site-nav { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px; }
  .site-nav .theme-toggle { grid-column:2;grid-row:1; }
  .site-menu-toggle { display:inline-flex;min-height:44px;align-items:center;grid-column:3;grid-row:1; }
  .site-nav #public-navigation { grid-column:1/-1;grid-template-columns:1fr 1fr;gap:4px;margin:0; }
  .site-menu-toggle[aria-expanded=false] + nav { display:none; }
  .site-menu-toggle[aria-expanded=true] + nav { display:grid; }
  #public-navigation a { display:flex;align-items:center;justify-content:center;border-radius:10px; }
  .auth-header .badge {display:none}
}
@media(max-width:760px) {
  .workspace .sidebar { position:static;min-height:0;padding:10px 14px;background:var(--panel); }
  .workspace .sidebar #navigation { position:fixed;bottom:0;left:0;right:0;z-index:8;margin:0;background:var(--panel);
    border-top:1px solid var(--line);box-shadow:0 -4px 16px #17222908;padding:4px 4px max(4px,env(safe-area-inset-bottom)); }
  .workspace .content { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
  .workspace-header > span:first-child {display:none}
  .workspace .workspace-header { flex-wrap:wrap;min-height:44px;height:auto;gap:6px;padding:6px 14px; }
  .workspace-header .badge {font-size:10px;white-space:normal; }
  .workspace .sidebar #navigation button { min-height:50px; }
  .workspace .vault-item .project-links { grid-column:2; }
  .auth-header { gap:6px;padding-inline:14px; }
}
[role=status][data-state=error] {
  padding: 12px 16px; color: var(--status-error);
  background: color-mix(in srgb,var(--status-error) 7%,var(--panel));
  border-inline-start: 3px solid var(--status-error); border-radius: 6px;
}
[role=status][data-state=loading] { color:var(--muted); }

.brand .ct-mark {width:30px;height:30px;flex:none;color:var(--accent)}
.brand b {color:var(--text)}
.workspace .sidebar #rail-toggle {display:grid;place-items:center;width:44px;height:44px;padding:0;background:transparent;color:var(--text);border:1px solid var(--line)}
#rail-toggle svg {width:20px;height:20px}
.workspace:not(.rail-expanded) .sidebar #navigation button span {display:none}
@media(min-width:761px){
 .workspace {display:grid;grid-template-columns:68px minmax(0,1fr)}
 .workspace.rail-expanded {grid-template-columns:220px minmax(0,1fr)}
 .workspace .sidebar {position:sticky;top:0;align-self:start;height:100dvh;overflow:auto;padding:16px 10px;display:flex;flex-direction:column;gap:12px;align-items:stretch;border-right:1px solid var(--line)}
 .workspace .sidebar .brand {min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;margin:0}
 .workspace .sidebar #navigation {display:flex!important;flex-direction:column;gap:5px;margin:0}
 .workspace .sidebar #navigation button {min-height:46px;flex-direction:row;align-items:center;justify-content:center;padding:8px}
 .workspace.rail-expanded .sidebar #navigation button,.workspace.rail-expanded .sidebar .brand {justify-content:flex-start;padding-inline:12px}
 .workspace .sidebar #navigation button>span {font-size:14px}
 .workspace:not(.rail-expanded) .sidebar .brand span,.workspace:not(.rail-expanded) .local-label {display:none}
}
@media(max-width:760px){
 .workspace .sidebar {display:flex;align-items:center;gap:12px}
 .workspace .sidebar .brand {margin:0;display:flex;align-items:center;gap:6px}
 .workspace .sidebar .local-label {display:none}
 .workspace .sidebar #navigation button {flex-direction:column}
}

form label.reaction-commentary-option:not([hidden]) { display: flex; align-items: center; gap: .5rem; }
form .reaction-commentary-option input[type="checkbox"] { width: auto; margin: 0; }

.workspace .creator-writing.writing-layout, .workspace section.simple-script-editor > .writing-layout {
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  grid-template-areas:"output settings" "footer footer"; gap:16px; align-items:start; max-width:none;
}
.workspace section.simple-script-editor { max-width:none; padding:0; border:0; background:none; }
.writing-layout .writing-settings, .writing-layout .writing-output { display:grid; gap:10px; min-width:0; margin:0; padding:16px; }
.writing-settings { display:grid; gap:10px; }
.writing-layout .writing-settings { grid-area:settings; }
.writing-layout .writing-output { grid-area:output; }
.writing-layout .editor-footer { grid-area:footer; }
.writing-layout .writing-settings > button { justify-self:start; }
.writing-layout .writing-output > label:first-child { font-size:16px; font-weight:600; }
.writing-layout .writing-output textarea { font-weight:400; }
.writing-layout [role=status]:empty, .writing-layout [data-connection]:empty { display:none; }
.writing-layout .script-options, .writing-layout [data-count] { margin:0; }
@media(max-width:900px){
  .workspace .creator-writing.writing-layout, .workspace section.simple-script-editor > .writing-layout {
    grid-template-columns:minmax(0,1fr); grid-template-areas:"settings" "output" "footer";
  }
}

/* Open workspace masthead and persistent navigation within tools. */
.workspace,.workspace.rail-expanded{display:block;min-height:100dvh;padding-bottom:0}
.workspace .workspace-main{width:100%;min-width:0}
.workspace .workspace-header{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1440px;margin:0 auto;padding:28px 40px;height:auto;min-height:0;border:0;background:transparent;box-shadow:none}
.workspace .workspace-header>.brand{order:0;display:flex;align-items:center;gap:12px;font-size:30px;line-height:1.2;padding:0;min-height:48px}
.workspace-header .brand .ct-mark{width:44px;height:44px}
.account-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.account-identity{font-size:13px;color:var(--muted);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-controls .theme-toggle{margin:0;order:1}.account-controls .account-link{order:2}
.workspace .workspace-navigation{display:flex;flex-wrap:wrap;gap:8px;max-width:1440px;margin:0 auto;padding:0 40px 20px}
.workspace-navigation button{background:transparent;display:flex;gap:8px;align-items:center;min-height:44px;border:0;padding:9px 14px}
.workspace-navigation svg{width:20px;height:20px}
.workspace-navigation button.active{background:var(--soft);color:var(--accent)}
body[data-tool="home"] .workspace-navigation{display:none}
.workspace .content{max-width:1440px;margin:0 auto;padding:24px 40px 48px}
.dashboard-start>div{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.home-section-title h2{font-size:26px}
.projects-heading-link{display:inline-flex;align-items:center;gap:10px}
.projects-heading-link svg{width:24px;height:24px}
.projects-heading-link:hover,.projects-view-all:hover{color:var(--accent)}
.projects-view-all{font-size:14px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}
.dashboard-projects .home-section-title{justify-content:flex-start;gap:24px}
@media(max-width:900px){.workspace .workspace-header{padding:24px}.workspace .content{padding:20px 24px 40px}.workspace .workspace-navigation{padding:0 24px 16px}.account-identity{max-width:180px}.dashboard-start>div{gap:12px}.dashboard-start a{padding:20px 10px}.dashboard-start strong{font-size:1rem}}
@media(max-width:650px){.workspace .workspace-header{flex-wrap:wrap;gap:14px;padding:20px 16px}.workspace .workspace-header>.brand{font-size:27px}.account-controls{margin-left:auto;flex-wrap:wrap;gap:8px}.account-identity{font-size:12px;max-width:160px}.workspace .workspace-navigation{padding:0 16px 16px;gap:4px}.workspace-navigation button{padding:8px;font-size:12px}.workspace .content{padding:16px 16px 32px}.dashboard-start>div{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-start a{min-height:132px}.home-section-title h2{font-size:24px}.dashboard-projects .home-section-title{gap:18px}}

/* Keep cross-workspace navigation available without pinning the masthead. */
.workspace .workspace-navigation{position:sticky;top:0;z-index:20;padding-top:10px;padding-bottom:10px;background:var(--bg);border-bottom:1px solid var(--line);align-items:center}
.workspace-navigation button{border:1px solid transparent;border-radius:10px;white-space:nowrap;font-weight:500;transition:background-color .15s,border-color .15s,color .15s}
.workspace-navigation button:hover{background:var(--panel);border-color:var(--line)}
.workspace-navigation button.active{background:var(--soft);border-color:var(--accent);color:var(--accent);font-weight:700}
.workspace-navigation button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html:has(.workspace-navigation){scroll-padding-top:84px}
@media(max-width:650px){
 .workspace .workspace-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 16px}
 .workspace-navigation button{justify-content:center;min-width:0;padding:8px 6px;font-size:12px}
 .workspace-navigation button svg{display:none}
 html:has(.workspace-navigation){scroll-padding-top:124px}
 body[data-tool="home"] .workspace-navigation{display:none}
}
@media(prefers-reduced-motion:reduce){.workspace-navigation button{transition:none}}

/* Artwork-led Library cards; the title button covers its entire card. */
.workspace .creator-vault .vault-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.workspace .creator-vault .vault-item{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;border:0;padding:0;background:transparent;border-radius:10px;min-width:0}
.workspace .creator-vault .vault-item .project-preview{position:relative;width:100%;height:auto;aspect-ratio:16/9;flex:none;overflow:hidden;border-radius:10px;display:grid;place-items:center}
.workspace .creator-vault .vault-item .project-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.workspace .creator-vault .vault-item .project-preview>span{font-size:36px}
.workspace .creator-vault .vault-item .project-copy{flex:none}
.workspace .creator-vault .vault-item h3{margin:0 0 6px;font-size:16px;line-height:1.45}
.workspace .creator-vault .vault-item [data-open]{display:block;min-height:0;padding:0;border:0;background:none;text-align:left;font:inherit;font-weight:650;color:var(--text);overflow-wrap:anywhere}
.workspace .creator-vault .vault-item [data-open]::after{content:'';position:absolute;inset:0;border-radius:10px}
.workspace .creator-vault .vault-item [data-open]:hover{color:var(--accent)}
.workspace .creator-vault .vault-item [data-open]:focus-visible{outline:none}
.workspace .creator-vault .vault-item [data-open]:focus-visible::after{outline:2px solid var(--accent);outline-offset:5px}
.workspace .creator-vault .vault-item small{font-size:12px;color:var(--muted)}
.section-tools button:disabled{opacity:.45;cursor:default}
@media(max-width:1000px){.workspace .creator-vault .vault-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.workspace .creator-vault .vault-items{grid-template-columns:1fr}}

/* Original separate mark with a black-and-red wordmark. */
.workspace .workspace-header>.brand{gap:12px;font-size:30px;font-weight:700;letter-spacing:normal;color:var(--text)}
.workspace-header .brand .ct-mark{width:44px;height:44px;margin-right:0;color:#c91b2e}
.workspace-header .brand .wordmark-name{display:inline-flex;align-items:baseline}
.workspace-header .brand .wordmark-name b{font-weight:700;color:#c91b2e;letter-spacing:normal}
[data-theme="dark"] .workspace-header .brand .ct-mark,[data-theme="dark"] .workspace-header .brand .wordmark-name b{color:#ee4555}
@media(max-width:650px){.workspace .workspace-header>.brand{font-size:29px}.workspace-header .brand .ct-mark{width:40px;height:40px}}

.compact-video-card .video-actions button.create-video:hover{background:#ae102c;border-color:#ae102c;color:#fff}

/* Readable workspace hierarchy, with compact content and full-size controls. */
.workspace .heading .eyebrow,.workspace .heading #description{display:none}
.workspace .heading h1{font-size:clamp(36px,4vw,52px);line-height:1.12;letter-spacing:-.035em;margin:0}
.workspace .heading{margin-bottom:28px}
.workspace .account-identity{font-size:16px;max-width:320px;color:var(--text)}
.workspace .account-controls .button,.workspace .account-controls .theme-toggle{font-size:15px;min-height:44px}
.workspace .section-tools button,.workspace .writing-mode-tabs button{font-size:16px;min-height:44px;padding:9px 15px}
.workspace .section-tool-select{font-size:16px}
.dashboard-projects .home-section-title{justify-content:space-between}
.workspace #search-form{border:1px solid var(--accent);background:var(--panel)}
.workspace #search-form input{font-size:17px;color:var(--text)}
.workspace #search-form input::placeholder{color:var(--muted);opacity:1}
.workspace #search-form button{background:#bc202d;border-color:#bc202d;color:#fff;font-size:16px;min-height:44px;font-weight:650}
.workspace #filters{gap:12px;color:var(--text);align-items:center}
.workspace #filters label,.workspace #filters select,.workspace #filters button,.workspace .format-tabs button{font-size:15px;color:var(--text)}
.workspace #filters select,.workspace #filters button,.workspace .format-tabs button{min-height:42px}
.workspace #filters select{background:var(--panel);border-color:var(--muted)}
.workspace .format-tabs button.active,.workspace .format-tabs button[aria-pressed="true"]{color:var(--accent);font-weight:700}
.workspace #filters .music-filter input{width:18px;height:18px}
.workspace #research-options{display:none}
.workspace #filters #more-filters{background:var(--text);color:var(--panel);font-weight:650}
.workspace .compact-video-card h3{font-size:18px;line-height:1.35;min-height:2.7em;margin:10px 0 6px}
.workspace .compact-video-card p.video-channel{font-size:14px;color:var(--text)}
.workspace .compact-video-card .video-metrics strong,.workspace .channel-card-metrics strong{font-size:19px}
.workspace .compact-video-card .video-metrics small,.workspace .compact-video-card .score-label,.workspace .channel-card-metrics small{font-size:13px;color:var(--muted)}
.workspace .compact-video-card .video-actions>button{font-size:14px;min-height:40px;padding:7px 5px}
.workspace .channel-card-heading h3{font-size:19px}
.workspace .channel-card-heading p{font-size:14px}
.workspace .channel-card-actions>button,.workspace .channel-more button{font-size:14px;min-height:40px}
.workspace .title-ideas-grid .format-card h3{font-size:20px}
.workspace .title-ideas-grid .format-card p,.workspace .title-examples a{font-size:15px}
.workspace .title-ideas-grid .format-card small{font-size:13px}
.workspace .title-ideas-grid .card-actions button{width:auto;min-height:42px;font-size:15px;padding:9px 16px;flex:none;align-self:flex-start}
.workspace .result-pagination,.workspace .result-pagination button,.workspace .vault-paging,.workspace .vault-paging button{font-size:16px;min-height:44px}
.workspace .creator-writing label,.workspace .title-studio label,.workspace .simple-script-editor label{font-size:15px}
body:is([data-tool="writing"],[data-tool="scripts"],[data-tool="titles"],[data-tool="thumbnails"]) #results .studio-projects{display:none}
.shared-project-library{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.shared-project-library>h2{font-size:26px;margin:0 0 20px}
@media(max-width:650px){.workspace .heading h1{font-size:36px}.workspace .account-identity{font-size:14px;max-width:160px}.workspace .account-controls .button,.workspace .account-controls .theme-toggle{font-size:14px}.workspace .compact-video-card .video-actions>button{font-size:13px}}

.shared-project-library .vault-controls:nth-child(2){display:none}

.vault-controls:empty{display:none}

.workspace .writing-settings .writing-format-choice{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0 0 4px;padding:0 0 16px;min-width:0;display:block}
.writing-format-choice legend{font-size:15px;font-weight:650;margin-bottom:10px;padding:0}
.writing-format-choice>div{display:flex;flex-wrap:wrap;gap:12px 24px}
.workspace .writing-format-choice label{display:flex;align-items:center;gap:8px;font-size:15px;margin:0;cursor:pointer}
.workspace .writing-format-choice input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--accent);flex:none}

/* Thumbnail directions share the writing form's readable hierarchy. */
.workspace .thumbnail-studio label{font-size:16px;font-weight:600;line-height:1.45;color:var(--text)}
.workspace .thumbnail-studio input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),.workspace .thumbnail-studio textarea,.workspace .thumbnail-studio select{font-size:15px;font-weight:400;line-height:1.5;color:var(--text)}
.workspace :is(.creator-writing,.simple-script-editor,.thumbnail-studio,.title-studio-grid) :is(input,textarea)::placeholder{font-family:inherit;font-size:15px;font-weight:400;color:#757575;opacity:1}
[data-theme="dark"] .workspace :is(.creator-writing,.simple-script-editor,.thumbnail-studio,.title-studio-grid) :is(input,textarea)::placeholder{color:#aaa}
@media(max-width:760px){.workspace :is(.creator-writing,.simple-script-editor,.thumbnail-studio,.title-studio-grid) :is(input,textarea)::placeholder{font-size:16px}.workspace .thumbnail-studio :is(input,textarea,select){font-size:16px}}
.workspace .thumbnail-studio .thumb-workspace h3{font-size:16px;font-weight:650}
.workspace .thumbnail-studio .thumb-notes>span,.workspace .thumbnail-studio .thumb-notes summary{font-size:15px;font-weight:600;color:var(--text)}
.workspace .thumbnail-studio label small{font-size:14px;font-weight:450}

.account-controls .admin-link{order:3}.account-controls .admin-link.active{color:var(--accent,#c91b2e);border-color:currentColor;font-weight:650}

.workspace .creator-vault .vault-item{cursor:pointer}.workspace .creator-vault .vault-item .project-copy{padding-right:40px;position:static}.workspace .creator-vault .vault-item h3 [data-open]{position:static}.workspace .creator-vault .vault-item [data-open]::after{z-index:1}.workspace .creator-vault .vault-item .project-options{position:absolute;right:0;bottom:0;z-index:2;width:36px;min-height:36px;padding:4px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;font-size:18px}.workspace .creator-vault .vault-item:hover h3{color:var(--accent)}

/* Shared edges for the title workspace and recording handoff. */
.workspace .title-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.workspace .title-studio-grid>.card{margin:0;padding:20px;border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--panel);box-shadow:none}.workspace .title-settings{align-content:start}.workspace .title-studio .filming-handoff{margin:16px 0 0;padding:24px 28px}@media(max-width:900px){.workspace .title-studio-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep project identity and the new-project action at the page edge. */
.workspace .heading>div:has(.studio-title-row){flex:1;min-width:0}.studio-title-row{width:100%}.studio-project-controls{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-left:auto;min-width:0;max-width:100%}.studio-project-controls .studio-context{min-width:0;flex:0 1 auto}.studio-project-controls .studio-new{flex:none}.studio-project-controls:has(.studio-context[hidden]):has(.studio-new[hidden]){display:none}@media(max-width:800px){.studio-project-controls{width:100%;gap:12px}.studio-project-controls .studio-context-copy{max-width:30ch}}

.workspace .title-studio-grid>.title-results{background:transparent;border-color:transparent;box-shadow:none}

/* Compact research cards with evenly spaced, aligned statistics. */
.workspace .compact-video-card{display:flex;flex-direction:column}
.workspace .compact-video-card .video-thumbnail{flex:none}
.workspace .compact-video-card h3{min-height:0;margin:10px 0 5px;font-size:18px;line-height:1.35}
.workspace .compact-video-card p.video-channel{margin:0 0 12px}
.workspace .compact-video-card .video-metrics{margin: auto 0 10px;align-items:start;text-align:center}
.workspace .compact-video-card .video-metrics>span{align-items:center;text-align:center}
.workspace .compact-video-card .video-metrics strong{font-size:22px;line-height:1.25}
.workspace .compact-video-card .score-label{width:100%;text-align:center;justify-content:center}
@media(max-width:650px){.workspace .compact-video-card .video-metrics strong{font-size:20px}}

.title-selection{max-width:100%}.title-selection-options{display:grid;gap:10px;margin-bottom:20px}.title-selection-options [data-winner]{display:grid;grid-template-columns:28px minmax(0,1fr) 24px;align-items:center;gap:14px;width:100%;min-height:64px;padding:16px 20px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--text)}.title-selection-options [data-winner] strong{font-size:17px;line-height:1.4}.title-selection-options [data-winner]:hover{border-color:var(--accent);background:var(--soft)}.title-selection-options [data-winner]>span{color:var(--muted)}.title-selection [role=status]:empty{display:none}

/* Compact publishing details beneath the export preview. */
.workspace .export-materials{padding:20px;gap:18px}.export-materials h2{margin:0;font-size:23px}.export-details-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);gap:28px;align-items:start}.export-details-grid:not(:has(.export-details-thumbnail)){grid-template-columns:minmax(0,1fr)}.export-details-grid:not(:has(.export-details-copy)){grid-template-columns:minmax(0,320px)}.export-details-copy{display:grid;gap:18px;min-width:0}.export-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.export-materials h3{margin:0;font-size:15px;font-weight:600}.export-materials .export-detail-heading button{flex:none;width:auto;min-height:36px;padding:6px 12px;font-size:13px}.export-materials .export-chosen-title{margin:0;font-size:17px;line-height:1.45;font-weight:650}.export-materials textarea{display:block;box-sizing:border-box;margin:0;min-height:120px;max-height:280px;resize:vertical;font-size:15px;line-height:1.5}.export-details-thumbnail{display:grid;justify-items:start;gap:10px;min-width:0}.export-details-thumbnail>a:first-of-type{display:block;width:100%}.export-details-thumbnail img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.export-details-thumbnail>.button{width:auto;min-height:36px;padding:7px 12px;font-size:13px}.export-materials [role=status]{margin:0;font-size:13px}.export-materials [role=status]:empty{display:none}@media(max-width:760px){.export-details-grid{grid-template-columns:minmax(0,1fr);gap:20px}.export-details-thumbnail{max-width:320px}.export-materials textarea{font-size:16px}}

/* Finalized video: preview left, all download and copy actions right. */
.workspace .final-video-layout{grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr);gap:24px;align-items:start}.final-video-layout>.rec-preview{min-width:0}.workspace .final-video-actions{display:grid;justify-items:stretch;gap:20px;padding:22px;min-width:0}.final-video-download{justify-self:start;width:auto;min-height:44px}.workspace .final-video-actions .export-materials{margin:0;padding:0;border:0;box-shadow:none;background:transparent;gap:16px}.final-video-actions .export-details-grid{grid-template-columns:minmax(0,1fr);gap:18px}.final-video-actions .export-details-thumbnail{width:100%;max-width:none}.final-video-actions .export-detail-heading{gap:8px}.final-video-actions .export-chosen-title{font-size:16px}.final-video-actions textarea{min-height:140px}@media(max-width:900px){.workspace .final-video-layout{grid-template-columns:minmax(0,1fr)}.final-video-actions .export-details-thumbnail{max-width:none}}

.dashboard-project-card{position:relative;min-width:0}.dashboard-project-card>.home-project{width:100%;height:100%}.workspace .project-trash{position:absolute;right:8px;top:8px;z-index:3;display:grid;place-items:center;width:38px;min-height:38px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);opacity:0;transition:opacity .15s}.project-trash svg{width:20px;height:20px}.dashboard-project-card:hover .project-trash,.dashboard-project-card:focus-within .project-trash,.vault-item:hover .project-trash,.vault-item:focus-within .project-trash{opacity:1}.workspace .project-trash:hover{color:#bd172b;border-color:#bd172b}.workspace .creator-vault .vault-item .project-copy{padding-right:0}@media(hover:none){.workspace .project-trash{opacity:1}}
/* The compact brand joins the menu only after the masthead scrolls away. */
.workspace-navigation .sticky-brand{display:none;flex:0 0 44px;width:44px;height:44px;align-items:center;justify-content:center;color:#c91b2e;border-radius:8px}
.workspace-navigation.is-stuck .sticky-brand{display:flex}
.workspace-navigation .sticky-brand svg{display:block;width:38px;height:38px}
.workspace-navigation .sticky-brand:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[data-theme="dark"] .workspace-navigation .sticky-brand{color:#ee4555}
@media(max-width:650px){.workspace .workspace-navigation.is-stuck{grid-template-columns:44px repeat(3,minmax(0,1fr))}.workspace-navigation.is-stuck .sticky-brand{grid-row:1 / 3;align-self:center}}
.workspace .final-video-actions .export-details-thumbnail img{width:100%;max-width:none;height:auto}
