:root { --ink: #292b28; --muted: #606359; --paper: #f4f0e7; --line: #d9d5ca; --accent: #d5ad68; --white: #fffdf8; --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-synthesis: none; }
.updates-card { max-width: 850px; margin-inline: auto; }
.updates-card form { margin-block: 20px; }
.updates-card progress { width: 100%; height: 18px; accent-color: var(--accent); }
.release-notes { margin-block: 24px; }
.release-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #916a30; outline-offset: 4px; }
.top { max-width: 1360px; margin: auto; padding: 23px 54px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-bottom: 3px double var(--line); }
.wordmark { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; }
.brand-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; font-size: 1rem; }
nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
nav a[aria-current="page"]::after { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: url('/static/clapperboard.svg') center / contain no-repeat; }
.backstage-navigation { margin-bottom: 32px; }
.backstage-tabs { gap: 24px; border-bottom: 1px solid var(--line); }
.backstage-tabs a { padding: 10px 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); }
.backstage-tabs a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); text-decoration: none; }
.backstage-tabs a[aria-current="page"]::after { content: none; }
main { max-width: 1180px; margin: 0 auto; padding: 48px 30px 65px; min-height: calc(100vh - 170px); }
.footer { max-width: 1252px; margin: auto; padding: 24px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .9375rem; color: var(--muted); }
.local { display: inline-flex; align-items: center; gap: 8px; }
.local i { width: 6px; height: 6px; border-radius: 50%; background: #94723e; }
.skip-link { position: absolute; top: -60px; left: 10px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 4.8vw, 63px); font-weight: 600; }
h2 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 12px; }
p { margin-bottom: 16px; }
.intro { padding: 4px 0 36px; }
.intro h1 { margin: 12px 0 18px; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: #886334; }
.eyebrow { font-family: var(--mono); font-size: .8125rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 12px; }
.lede { font-size: 16px; color: var(--muted); margin: 0; }
.create-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 42px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px; margin-bottom: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3, .section-heading p:last-child { margin-bottom: 0; }
.section-heading p:not(:last-child) { margin-bottom: 8px; }
.badge { display: inline-block; border: 1px solid var(--line); padding: 5px 10px; border-radius: 3px; font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.new-job .badge { font-size: .75rem; color: var(--muted); }
label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 7px; }
input:not([type=checkbox], [type=hidden]), textarea, select { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #faf8f2; color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; min-height: 75px; }
input::placeholder, textarea::placeholder { color: #797b72; }
input:focus, textarea:focus { border-color: #94723e; background: var(--white); }
.optional { font-weight: 400; color: var(--muted); margin-left: 5px; }
.help { font-size: .875rem; color: var(--muted); margin: 7px 0 19px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px; }
.crawl-settings { margin-bottom: 20px; }
.crawl-settings summary { font-size: .9375rem; font-weight: 600; }
.crawl-settings .field-row { margin-top: 16px; align-items: start; }
.format-note { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: .875rem; color: var(--muted); padding-bottom: 8px; }
.ratio { display: block; height: 32px; width: 26px; border: 1px solid #9a998b; border-radius: 3px; }
.ratio.story { height: 38px; width: 22px; }
.checkbox { display: flex; gap: 10px; align-items: center; margin: 22px 0; font-weight: 400; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 23px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: white; text-decoration: none; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.button:hover { background: #474940; }
.button.small { padding: 9px 14px; font-size: .875rem; }
.button.wide { display: flex; width: 100%; justify-content: space-between; }
.button.secondary { color: var(--ink); background: var(--white); border-color: var(--line); }
.button.secondary:hover { background: var(--paper); }
.button.danger { background: #963e36; border-color: #963e36; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.centered { text-align: center; }
form > .help:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 1rem; }
.process-card { padding: 0 8px; }
.format-art { position: relative; padding: 27px 24px; background: var(--ink); color: #c8c3b6; border: 1px solid #464840; border-radius: 6px; margin-bottom: 26px; box-shadow: inset 0 0 0 3px #ffffff09; }
.format-art::before, .format-art::after { content: ""; position: absolute; left: 12px; right: 12px; height: 7px; background: linear-gradient(to right, var(--paper) 9px, transparent 9px) left / 21px 7px repeat-x; opacity: .8; }
.format-art::before { top: 9px; }
.format-art::after { bottom: 9px; }
.film-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: .75rem/1.4 var(--mono); letter-spacing: .09em; }
.film-frames { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 18px 0; }
.art-feed, .art-story { display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; padding: 12px; border: 1px solid #f4f0e72b; border-radius: 2px; color: var(--ink); }
.art-feed { width: 52%; aspect-ratio: 4 / 5; background: #e7e1d3; }
.art-story { width: 37%; aspect-ratio: 9 / 16; background: var(--accent); }
.art-feed > span, .art-story > span { font-size: clamp(22px, 2.4vw, 31px); letter-spacing: -1.2px; line-height: 1.08; font-weight: 600; }
.art-feed em, .art-story em { font-family: Georgia, serif; font-weight: 400; }
.art-feed em { color: #886334; }
.art-feed b, .art-story b { margin-top: 18px; font: .75rem/1.5 var(--mono); letter-spacing: .02em; }
.process-list { list-style: none; padding: 0; margin: 20px 0 24px; }
.process-list li { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 20px; }
.process-list li > span { width: 25px; padding-top: 3px; color: #886334; font: .875rem var(--mono); }
.process-list b { font-size: 1rem; font-weight: 600; }
.process-list p { color: var(--muted); font-size: .9375rem; margin: 4px 0 0; }
.cost-note { font-size: .875rem; line-height: 1.8; color: var(--muted); padding-top: 19px; border-top: 1px solid var(--line); }
.job-row { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.job-link { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; text-decoration: none; }
.job-link > span:last-child { min-width: 0; }
.job-link strong { display: block; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.job-link small { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }
.job-symbol { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 4px; font-size: 23px; background: #e9e2d3; }
.job-cost { min-width: 45px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.text-link { font-size: .875rem; }
.status-done { background: #e6efdc; border-color: #d5e5c6; color: #375a29; }
.status-review { background: #fff2cd; border-color: #eddda6; color: #705616; }
.status-failed, .status-interrupted { background: #f9e5df; border-color: #efd0c8; color: #923e33; }
.empty-state { text-align: center; border: 1px dashed #c9c2b4; border-radius: 6px; padding: 30px; color: var(--muted); }
.empty-state > span { display: block; font-size: 26px; }
.empty-state h3 { margin: 10px 0; font-size: 1rem; color: var(--ink); }
.empty-state p { font-size: .9375rem; margin: 0; }
.back-link { display: inline-block; text-decoration: none; font-size: .9375rem; color: var(--muted); margin-bottom: 30px; }
.job-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.job-heading > div { min-width: 0; }
.job-heading h1 { font-size: clamp(28px, 3.1vw, 42px); margin: 10px 0 14px; }
.job-heading .muted { overflow-wrap: anywhere; }
.cost-pill { padding: 12px 18px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 4px; font-variant-numeric: tabular-nums; }
.cost-pill small { display: block; font-size: .8125rem; color: var(--muted); }
.progress-card { padding: 36px; }
.progress-signal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.progress-signal .eyebrow { margin: 0; }
.discoveries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; margin: 24px 0; }
.insight-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #faf8f2; overflow-wrap: anywhere; }
.insight-card .eyebrow { color: #886334; font-size: .75rem; margin: 0 0 10px; }
.insight-card h3 { font-size: 19px; line-height: 1.3; margin: 0 0 16px; }
.insight-description, .insights-empty { font-size: 1rem; color: var(--muted); }
.insight-items { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.insight-items li + li { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.insight-items p { margin: 0 0 6px; white-space: pre-line; }
.insight-items a, .insight-card summary { font-size: .875rem; color: #686449; }
.insight-card details { margin-top: 18px; }
.insight-card details[open] summary { margin-bottom: 16px; }
.insight-colours { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 20px 0 0; }
.insight-colours li { width: 54px; font-size: .8125rem; text-align: center; }
.insight-colours svg { display: block; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; margin: 0 auto 6px; }
.progress-description { color: var(--muted); max-width: 70ch; }
.progress-message { color: #686449; background: #f4f0e7; padding: 12px 16px; border-radius: 3px; font-size: 1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.render-progress { margin: 24px 0; padding: 20px; background: #f4f0e7; border: 1px solid var(--line); border-radius: 8px; font-variant-numeric: tabular-nums; }
.render-progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.render-progress-heading label { margin: 0; }
.render-progress-heading strong { font-size: 1.5rem; }
.render-progress progress { display: block; width: 100%; height: 14px; appearance: none; border: none; border-radius: 999px; overflow: hidden; background: var(--line); accent-color: var(--accent); }
.render-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.render-progress progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.render-progress progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.render-current { margin: -4px 0 14px; font-size: .9375rem; }
.render-progress-track { position: relative; }
.render-midpoint { position: absolute; left: 50%; top: -3px; height: 20px; width: 2px; transform: translateX(-50%); background: var(--ink); pointer-events: none; }
.render-format-labels { display: grid; grid-template-columns: 1fr 1fr; margin-top: 9px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.render-format-labels > span:first-child { padding-right: 10px; }
.render-format-labels small { display: block; font-size: inherit; }
.render-eta { margin: 14px 0 4px; }
.render-progress .help { margin: 0; }
.progress-next { display: flex; align-items: baseline; gap: 20px; padding: 12px 0 0; }
.progress-next .eyebrow { flex-shrink: 0; color: #886334; }
.progress-next p { margin: 0; font-size: 1rem; }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: #b58b49; box-shadow: 0 0 0 6px #f3eddf; animation: signal-pulse 2s ease-in-out infinite; }
@keyframes signal-pulse { 50% { box-shadow: 0 0 0 10px #f3eddf00; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.steps { list-style: none; padding: 20px 0; margin: 25px 0; display: flex; flex-wrap: wrap; gap: 18px 27px; border-block: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.steps li > span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; font-size: .8125rem; }
.steps .complete { color: #527248; }
.steps .complete > span { background: #eaf1e3; border-color: #dbe6ce; }
.steps .current { color: var(--ink); font-weight: 700; }
.steps .current > span { background: var(--ink); color: white; }
.progress-footer { display: flex; justify-content: space-between; gap: 20px; font-size: .9375rem; color: var(--muted); }
.progress-footer b { font-size: 23px; font-weight: 500; color: var(--ink); }
.progress-footer small { display: block; font-size: .8125rem; }
.activity { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9375rem; }
.activity ol { max-height: 260px; overflow: auto; color: var(--muted); }
summary { cursor: pointer; }
.brand-board summary { font-weight: 600; }
.brand-board summary span { float: right; font-weight: 400; }
.brand-board img { display: block; width: 100%; border-radius: 8px; margin-top: 24px; }
.preview-grid, .video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.preview-grid > div, .video-grid > div { min-width: 0; }
.preview { display: block; width: 100%; height: 590px; border: 0; border-radius: 9px; background: #222420; }
.result-video { display: block; width: 100%; height: 540px; object-fit: contain; background: #222420; border-radius: 9px; margin-bottom: 16px; }
.result-heading { flex-wrap: wrap; align-items: flex-start; }
.rendered-downloads summary { font-weight: 600; }
.review-health { display: flex; align-items: baseline; gap: 24px; padding: 4px 0 26px; font-size: .9375rem; }
.review-health details { flex: 1; }
.review-health details > p { margin-top: 15px; }
.review-health li { margin-bottom: 8px; }
.scene-heading { margin-top: 26px; }
.scene-title { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.scene-title h3 { margin: 3px 0 7px; }
.scene-title .help { margin-bottom: 0; }
.scene-number { color: #886334; font: italic 31px Georgia, serif; }
.scene-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: start; }
.keyframe-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; align-items: start; }
figure { margin: 0; min-width: 0; }
figcaption { font-size: .8125rem; color: var(--muted); margin-bottom: 7px; }
.keyframe-pair img { width: 100%; height: auto; display: block; border-radius: 7px; border: 1px solid var(--line); }
.copy-field { margin-bottom: 20px; }
.copy-field:last-child { margin-bottom: 0; }
.copy-field textarea { font-size: 1rem; }
.sources { margin-top: 7px; font-size: .875rem; color: var(--muted); }
blockquote { margin: 12px 0 8px; padding: 12px; background: var(--paper); border-radius: 6px; line-height: 1.7; }
cite { display: block; margin-top: 5px; }
.finished-copy { font-size: 17px; margin-bottom: 7px; }
.copy-field .eyebrow { font-size: .75rem; color: var(--muted); margin-bottom: 7px; }
.feedback-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 38px; background: #ede7da; }
.feedback-card .help { margin-bottom: 0; }
.review-actions { position: sticky; bottom: 16px; padding: 18px 23px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 25px #292b2812; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0; }
.review-actions p { font-size: 1rem; font-weight: 600; margin: 0; }
.review-actions small { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.review-actions > div, .actions { display: flex; gap: 10px; }
.actions { flex-wrap: wrap; }
.notice { padding: 16px 20px; border-radius: 8px; font-size: 1rem; overflow-wrap: anywhere; }
.notice.error { background: #fbece6; color: #8b3b31; border: 1px solid #efcec1; }
.compact { max-width: 650px; margin: 50px auto; padding: 36px; }
.compact h1 { font-size: 30px; }
.job-management { text-align: right; margin-top: 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.timeline-editor { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 26px; }
.timeline-editor h3 { margin: 0 0 8px; }
.timeline-transport { display: flex; align-items: center; gap: 14px; margin: 20px 0 12px; flex-wrap: wrap; }
.timeline-transport output { font: 1rem var(--mono); min-width: 65px; }
input.timeline-range { padding: 0; border: 0; accent-color: #886334; cursor: pointer; height: 24px; margin-bottom: 8px; }
.timeline-frames { display: flex; gap: 5px; overflow-x: auto; padding: 3px; background: var(--ink); border-radius: 6px; }
.timeline-frame { flex-basis: 0; min-width: 65px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #373932; color: white; cursor: pointer; overflow: hidden; }
.timeline-frame.selected { border-color: var(--accent); }
.timeline-frame img { width: 100%; height: 112px; object-fit: contain; display: block; background: #20221f; }
.timeline-frame > span { display: block; padding: 7px 4px; font: .875rem var(--mono); }
.timeline-frame small { display: block; color: #ded8c9; font-size: .75rem; margin-top: 4px; }
.frame-missing { height: 112px; }
.comment-markers { position: relative; margin-top: 10px; }
.comment-marker { position: absolute; transform: translateX(-50%); width: 28px; height: 28px; border: 1px solid #a37939; border-radius: 50%; background: #e8c887; color: #292b28; font: .875rem var(--mono); cursor: pointer; }
.comment-marker[aria-pressed=true] { background: var(--ink); color: white; border-color: var(--ink); }
.timeline-scale { display: flex; justify-content: space-between; font: .8125rem var(--mono); color: var(--muted); margin: 8px 0 24px; }
.comment-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.comment-composer { background: #f4f0e7; border-radius: 6px; padding: 22px; }
.comment-composer .field-row { margin-bottom: 18px; }
.comment-list { list-style: none; padding: 0; margin: 0; max-height: 510px; overflow-y: auto; }
.comment-list li { border: 1px solid var(--line); border-radius: 4px; padding: 15px; margin-bottom: 12px; }
.comment-list li.selected { background: #faf3e4; border-color: #b58b49; }
.comment-list p { font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-jump { padding: 0; border: 0; background: transparent; text-align: left; font-size: .875rem; line-height: 1.5; }
.scene-move { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.scene-move .button { padding: 8px 12px; }
.scene-plan { display: grid; grid-template-columns: minmax(140px, .4fr) 1fr; gap: 22px; margin-bottom: 22px; }
.scene-plan-note { background: #ede7da; }
.scene-details > summary { font-size: .9375rem; font-weight: 600; margin-bottom: 20px; }
.invalid-duration { color: #923e33; }
@media (max-width: 900px) {
  .top { padding: 20px 30px; }
  .create-grid { gap: 26px; }
  .card { padding: 24px; }
  .preview { height: 510px; }
  .scene-layout { grid-template-columns: .85fr 1fr; gap: 20px; }
  .job-row { gap: 15px; }
}
@media (max-width: 680px) {
  main { padding: 30px 18px 45px; }
  .top { padding: 17px 18px; }
  .wordmark { font-size: 16px; }
  nav { gap: 12px; }
  .intro { padding: 6px 0 28px; }
  .intro h1 { font-size: 44px; }
  .create-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-card { padding: 4px; }
  .format-art { max-width: 440px; margin-inline: auto; }
  .process-list { margin-bottom: 10px; }
  .section-heading { gap: 12px; }
  .job-row { flex-wrap: wrap; gap: 10px; }
  .job-link { flex-basis: 100%; margin-bottom: 6px; }
  .job-row > .badge { margin-left: 58px; }
  .job-cost { margin-left: auto; }
  .job-heading { align-items: flex-start; }
  .job-heading h1 { font-size: 29px; }
  .job-heading .muted span { display: block; margin-top: 7px; }
  .cost-pill { padding: 8px 11px; font-size: 1rem; }
  .card, .progress-card { padding: 20px; border-radius: 6px; }
  h2 { font-size: 25px; }
  .preview-grid, .video-grid, .scene-layout, .feedback-card { grid-template-columns: 1fr; gap: 22px; }
  .preview.feed { height: 450px; }
  .preview.story { height: 595px; }
  .result-video { height: auto; max-height: 580px; }
  .brand-board summary span { float: none; display: block; margin-top: 6px; font-size: .875rem; }
  .progress-footer { flex-direction: column; }
  .progress-next { flex-direction: column; gap: 4px; }
  .progress-next .eyebrow { margin-bottom: 0; }
  .progress-card .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .comment-workspace, .scene-plan { grid-template-columns: 1fr; }
  .comment-composer { padding: 16px; }
  .comment-composer .field-row { grid-template-columns: 1fr; gap: 14px; }
  .timeline-end { display: none; }
  .timeline-frame { min-width: 0; }
  .timeline-frame > span { padding-inline: 1px; }
  .timeline-frame small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .timeline-editor .section-heading { flex-wrap: wrap; }
  .scene-title { flex-wrap: wrap; }
  .scene-move { margin-left: 0; }
  .review-health { flex-direction: column; gap: 14px; }
  .review-actions { position: static; flex-direction: column; align-items: stretch; padding: 18px; }
  .review-actions > div { flex-direction: column; }
  .footer { padding: 20px 18px; gap: 15px; font-size: .8125rem; }
  .footer > span:first-child { max-width: 180px; }
}

/* Keep the selected scene beside its preview, with the filmstrip in reach. */
[hidden] { display: none !important; }
.review-studio { padding: 26px; }
.studio-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.studio-heading .eyebrow { color: #886334; }
.studio-grid { scroll-margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "monitor inspector"; gap: 0 26px; align-items: start; }
.studio-monitor { grid-area: monitor; position: sticky; top: 16px; min-width: 0; background: var(--white); }
.studio-preview { min-width: 0; }
.studio-preview > .help { margin-top: 0; }
.studio-preview .preview-grid { gap: 14px; }
.studio-preview h3 { font: .8125rem var(--mono); color: var(--muted); margin-bottom: 10px; }
.studio-preview .preview { height: clamp(200px, 34dvh, 340px); border-radius: 5px; }
.studio-grid .timeline-editor { min-width: 0; margin-top: 22px; padding-top: 20px; }
.timeline-editor .section-heading { margin-bottom: 12px; }
.timeline-editor .section-heading .help { margin: 0; }
.timeline-editor .eyebrow { font-size: .6875rem; color: var(--muted); }
.timeline-editor h3 { font-size: 18px; }
.timeline-transport { gap: 10px; margin-top: 12px; }
.timeline-transport .button { padding: 8px 10px; font-size: .75rem; }
.timeline-transport output { font-size: .8125rem; min-width: 52px; }
#comment-here { margin-left: auto; }
.timeline-frames { gap: 4px; padding: 5px; }
.timeline-frame { min-width: 58px; flex-shrink: 0; transition: border-color .15s; }
.timeline-frame img, .frame-missing { height: 75px; }
.timeline-frame > span { font-size: .75rem; }
.timeline-frame small { font-size: .625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-frame.selected { border-color: transparent; background: #525447; }
.timeline-frame[aria-pressed=true] { border-color: var(--accent); background: #525447; }
.timeline-frame.selected > span::before { content: "• "; color: var(--accent); }
.timeline-frame .frame-edit { color: #f3cd8b; font: .625rem/1.4 -apple-system, BlinkMacSystemFont, sans-serif; }
.timeline-scale { margin-bottom: 0; font-size: .6875rem; }
.scene-inspector { grid-area: inspector; min-width: 0; border-left: 1px solid var(--line); padding-left: 26px; }
.inspector-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.inspector-heading .eyebrow { margin: 0; color: #886334; }
.inspector-heading .button { min-width: 36px; padding: 6px 10px; }
.scene-inspector .scene-card { border: 0; padding: 0; margin: 0; background: transparent; }
.scene-inspector .scene-title { gap: 0; margin-bottom: 12px; }
.scene-inspector .scene-number { display: none; }
.scene-inspector .scene-title h3 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
.scene-inspector .scene-title .help { font: .75rem/1.6 var(--mono); }
.scene-inspector .scene-move { margin: 0 0 20px; }
.scene-inspector .scene-move .button { font-size: .75rem; padding: 6px 10px; }
.scene-inspector .scene-plan { display: block; margin-bottom: 20px; }
.scene-inspector .scene-plan > div:first-child { display: grid; grid-template-columns: 1fr 100px; gap: 0 12px; align-items: center; margin-bottom: 16px; }
.scene-inspector .scene-plan label { margin-bottom: 6px; }
.scene-inspector .scene-plan > div:first-child label { margin: 0; }
.scene-inspector .scene-new-time { grid-column: 1 / -1; margin: 6px 0 0; font-size: .75rem; }
.scene-inspector textarea, .scene-inspector input { padding: 10px 12px; font-size: .9375rem; }
.scene-inspector .scene-plan textarea { min-height: 120px; }
.scene-layout > .scene-stills { order: -1; }
.scene-inspector .scene-layout { display: flex; flex-direction: column; gap: 0; }
.scene-inspector .scene-layout > * { width: 100%; }
.scene-inspector .scene-stills { order: 0; }
.scene-inspector .copy-field { margin-bottom: 16px; }
.scene-inspector .copy-field textarea { min-height: 66px; }
.scene-inspector .copy-field .help { margin-bottom: 0; font-size: .75rem; }
.scene-inspector .sources { font-size: .75rem; }
.scene-stills { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
.scene-stills summary { font-size: .8125rem; color: var(--muted); }
.scene-stills[open] summary { margin-bottom: 14px; }
.scene-plan-note { margin-top: 24px; padding: 14px 18px; border-radius: 5px; background: #f4f0e7; }
.scene-plan-note > p:first-child { margin: 0; font: .8125rem/1.6 var(--mono); }
.scene-plan-note .help { margin: 4px 0 0; font-size: .8125rem; }
#planned-order { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#planned-order .button { font: .75rem var(--mono); padding: 8px 10px; }
.inspector-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.inspector-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 2px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.inspector-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: #886334; }
#confirmed-comment-count { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 3px; background: var(--paper); font: .75rem/1.8 var(--mono); }
.timeline-comments .comment-workspace { grid-template-columns: 1fr; gap: 22px; }
.timeline-comments .comment-composer { padding: 0; background: transparent; }
.timeline-comments .field-row { grid-template-columns: 1fr 1fr; gap: 14px; }
.timeline-comments .comment-list { max-height: none; overflow: visible; }
.timeline-comments .comment-list h3, .timeline-comments h3 { font-size: 18px; }
.timeline-comments .help { font-size: .8125rem; }
.timeline-comments input, .timeline-comments textarea, .timeline-comments select { font-size: 1rem; }
.timeline-comments #comment-status:empty { display: none; }
.review-actions { position: static; box-shadow: none; }
main:has(#review-workspace) { max-width: 1360px; padding-top: 28px; }
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; grid-template-areas: "monitor" "inspector"; }
  .studio-monitor { position: static; }
  .studio-preview .preview { height: 360px; }
  .scene-inspector { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin-top: 22px; }
}
@media (max-width: 680px) {
  .review-studio { padding: 16px; }
  .studio-heading { flex-wrap: wrap; gap: 14px; padding-bottom: 18px; }
  .studio-heading .badge { font-size: .6875rem; }
  .studio-preview .preview-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .studio-preview .preview { height: 245px; }
  .studio-preview > .help { font-size: .8125rem; }
  .timeline-frames { padding: 5px; }
  .timeline-frame { min-width: 64px; }
  .timeline-frame .timeline-end { display: inline; }
  .timeline-transport { gap: 8px; }
  .timeline-transport .button { min-height: 40px; }
  .timeline-transport output { min-width: 44px; }
  #comment-here { margin-left: 0; }
  .scene-plan-note { padding: 12px; }
  .inspector-heading .button, .scene-inspector .scene-move .button { min-height: 40px; }
}

@media (max-width: 900px) {
  .comment-mode .studio-monitor { position: sticky; top: 0; z-index: 3; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .comment-mode .studio-preview > .help,
  .comment-mode .timeline-editor > .section-heading,
  .comment-mode .timeline-frames,
  .comment-mode .timeline-scale,
  .comment-mode #comment-markers,
  .comment-mode #comment-here { display: none; }
  .comment-mode .studio-preview .preview { height: clamp(90px, 22dvh, 180px); }
  .comment-mode .studio-preview h3 { margin-bottom: 5px; }
  .comment-mode .timeline-editor { margin-top: 8px; padding-top: 0; border: 0; }
  .comment-mode .timeline-transport { margin: 6px 0; }
  .comment-mode .timeline-range { margin: 0; }
  .comment-mode .scene-inspector { margin-top: 0; border-top: 0; padding-top: 0; }
}

/* Advanced ideas use one larger paused frame, with the same timeline and inspector. */
.advanced-mode .preview-grid { grid-template-columns: 1fr; }
.advanced-mode .studio-preview .preview { height: clamp(260px, 48dvh, 560px); }
.advanced-mode .studio-preview > .help { display: none; }
.advanced-mode .studio-monitor { position: sticky; top: 16px; }
.advanced-mode #timeline-play, .advanced-mode #comment-here { display: none; }
.advanced-mode .timeline-editor { margin-top: 12px; padding-top: 12px; }
.advanced-mode .timeline-editor > .section-heading { display: none; }
.advanced-mode .timeline-transport { margin: 0; }
.advanced-mode .timeline-transport::before { content: 'Reference frame'; color: var(--muted); font-size: .8125rem; }
#advanced-panel > select { margin-bottom: 14px; }
#advanced-panel .section-heading { margin-bottom: 12px; }
#advanced-panel .help { font-size: .8125rem; }
.design-tools { margin-bottom: 8px; }
.design-tools label { margin: 0; }
#design-properties .field-row > div { min-width: 0; }
#design-properties { padding: 16px; margin: 18px 0; background: var(--paper); border-radius: 5px; }
#design-properties .field-row { gap: 12px; margin-bottom: 12px; }
#design-properties textarea { margin-bottom: 12px; }
#design-properties input[type=color] { height: 45px; padding: 5px; }
#design-geometry { margin-bottom: 14px; }
#design-geometry summary { margin-bottom: 12px; font-size: .8125rem; }
.design-layer-title { font-size: 16px; margin: 20px 0 10px; }
.design-layer-title .optional { font-size: .8125rem; }
.design-layers { display: grid; gap: 5px; max-height: 220px; overflow: auto; padding: 3px; }
.design-layer { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; background: var(--white); color: var(--ink); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.design-layer[aria-pressed=true] { border-color: #886334; background: #f7edd8; }
@media (max-width: 900px) {
  .advanced-mode .studio-monitor { top: 0; z-index: 3; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .advanced-mode .studio-preview .preview { height: clamp(150px, 28dvh, 260px); }
  .advanced-mode .studio-preview h3 { margin-bottom: 5px; }
  .advanced-mode .timeline-editor { margin-top: 8px; padding-top: 0; border: 0; }
  .advanced-mode .timeline-frames, .advanced-mode .timeline-scale, .advanced-mode #comment-markers { display: none; }
  .advanced-mode .timeline-range { margin: 0; }
  .advanced-mode .scene-inspector { margin-top: 0; padding-top: 12px; border: 0; }
  .advanced-mode #advanced-panel input, .advanced-mode #advanced-panel textarea, .advanced-mode #advanced-panel select { scroll-margin-top: calc(clamp(150px, 28dvh, 260px) + 95px); }
  .inspector-tabs { gap: 16px; }
}
.auth-card { max-width: 640px; margin: 40px auto; }
.auth-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.auth-card form { display: grid; gap: 12px; margin: 24px 0; }
.recovery-key { overflow-wrap: anywhere; padding: 16px; border: 1px solid currentColor; }
.top nav form { margin: 0; }

/* Account management uses the full workspace width, with individual access controls tucked away. */
.users-page { max-width: 1080px; margin: 12px auto; }
.users-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.users-heading h1 { margin-bottom: 12px; }
.users-heading .badge { flex-shrink: 0; }
.users-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.users-settings > .card { min-width: 0; }
.users-settings h2 { font-size: 24px; }
.users-page form { margin: 0; }
.users-page .button { max-width: 100%; overflow-wrap: anywhere; }
.users-page .checkbox span { min-width: 0; overflow-wrap: anywhere; }
.users-invite { display: grid; gap: 14px; }
.users-invite .button, .users-policy .button { justify-self: start; }
.users-invite .help { margin: 0; }
.users-policy .checkbox { align-items: flex-start; margin: 20px 0 12px; }
.users-page .checkbox input { flex-shrink: 0; margin-top: 4px; }
.users-invitation { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.users-invitation .recovery-key { margin-bottom: 0; border-color: var(--line); border-radius: 4px; background: var(--paper); user-select: all; }
.users-private { font-size: .875rem; color: var(--muted); }
.users-list { list-style: none; padding: 0; margin: 0; }
.users-account { padding: 24px 0; border-top: 1px solid var(--line); }
.users-account:last-child { padding-bottom: 0; }
.users-account-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.users-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.users-person > div { min-width: 0; }
.users-person h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.users-person .help { margin: 0; }
.users-avatar { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.users-you { font: 400 .8125rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.users-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.users-status { border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.users-status.is-active { background: #edf1e8; color: #405136; border-color: #d7e0cc; }
.users-status.is-disabled { background: #f6eae5; color: #873f34; border-color: #e6cfc5; }
.users-access { margin-top: 18px; }
.users-access summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-size: .875rem; color: var(--muted); list-style: none; }
.users-access summary::-webkit-details-marker { display: none; }
.users-access[open] summary > span { transform: rotate(45deg); }
.users-access-content { padding: 20px; margin-top: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.users-factor .checkbox { margin: 0 0 8px; align-items: flex-start; }
.users-factor { display: grid; gap: 8px; }
.users-factor .help { margin: 0 0 8px; }
.users-factor .button { justify-self: start; }
.users-disable { border-top: 1px solid var(--line); margin-top: 20px !important; padding-top: 16px; }
.users-delete { margin-top: 20px; }
@media (max-width: 760px) {
  .users-settings { grid-template-columns: 1fr; gap: 0; }
  .users-heading { align-items: flex-start; }
  .users-page .card { padding: 22px; }
  .users-account-summary { align-items: flex-start; flex-direction: column; gap: 14px; }
  .users-statuses { justify-content: flex-start; }
  .users-accounts .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .users-heading .badge { margin-top: 4px; }
}
.users-settings-single { grid-template-columns: 1fr; }
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px 28px; margin-bottom: 24px; }
.info-box-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.info-box-heading .eyebrow { color: var(--muted); font-size: .6875rem; margin-bottom: 8px; }
.info-box-heading h2 { font: italic 28px/1.2 Georgia, serif; letter-spacing: -.025em; margin: 0; }
.info-box-slate { width: 44px; height: 40px; flex-shrink: 0; color: var(--ink); }
.users-roles dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0; counter-reset: set-role; }
.users-roles dl > div { counter-increment: set-role; }
.users-roles dt::before { content: "0" counter(set-role) " / ROLE"; display: block; margin-bottom: 10px; color: var(--muted); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .1em; }
.users-roles dt { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.users-roles dd, .users-roles > p { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.users-roles > p { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.users-role-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px !important; }
.users-role-form .help { grid-column: 1 / -1; margin: 0; }
.users-role-form select { appearance: none; min-height: 44px; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23606359' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
@media (max-width: 760px) {
  .info-box { padding: 22px; }
  .users-roles dl { grid-template-columns: 1fr; gap: 18px; }
  .users-role-form { grid-template-columns: 1fr; }
  .users-role-form .button { justify-self: start; }
}
.video-library-heading { align-items: flex-end; margin-bottom: 28px; }
.video-library-heading .button { flex-shrink: 0; }
@media (max-width: 680px) {
  .video-library-heading { flex-direction: column; align-items: flex-start; }
}
.brief-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.provider-page { max-width: 760px; margin: 12px auto; }
.provider-page-heading { margin-bottom: 30px; }
.provider-page-heading h1 { margin-bottom: 12px; }
.provider-page .auth-card { max-width: none; margin: 0; }
.provider-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin: 24px 0; }
.provider-summary dt { font: 500 .6875rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.provider-summary dd { margin: 0; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.provider-summary-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; color: var(--muted); font-size: .875rem; }
.provider-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.provider-test-status { margin: 0; }
.provider-test-status[data-state="success"] { color: #405136; }
.provider-test-status[data-state="error"] { color: #873f34; }
@media (max-width: 680px) {
  .provider-summary dl { grid-template-columns: 1fr; gap: 18px; }
}
.new-job.is-locked { position: relative; }
.new-job.is-locked form { opacity: .3; pointer-events: none; user-select: none; }
.provider-lock { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: center; padding: 76px 24px 24px; background: #f4f0e7b8; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: inherit; }
.provider-lock-card { width: 100%; max-width: 420px; padding: 32px 28px; margin: 0; color: var(--paper); box-shadow: 0 16px 40px #292b2820; }
.provider-lock-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.provider-lock-heading .eyebrow { color: var(--accent); margin: 0; font-size: .6875rem; }
.provider-lock-heading img { filter: brightness(0) invert(1); opacity: .8; }
.provider-lock-card h3 { font-size: 38px; margin-bottom: 18px; }
.provider-lock-card h3 em { font-family: Georgia, serif; color: var(--accent); font-weight: 400; }
.provider-lock-reason { font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
#provider-lock-message { font-size: .9375rem; line-height: 1.65; color: #d0cfc4; margin-bottom: 24px; }
.provider-lock-card .button { background: var(--accent); border-color: var(--accent); color: var(--ink); max-width: 100%; }
.provider-lock-card .button:hover { background: #e3bd7e; }
.provider-lock-access { font-size: .8125rem; line-height: 1.6; color: #d0cfc4; border-top: 1px solid #ffffff26; margin: 24px 0 0; padding-top: 16px; }
@media (max-width: 680px) {
  .provider-lock { padding: 64px 16px 20px; }
  .provider-lock-card { padding: 30px 22px; }
}
