/* Shared surfaces and controls. Theme colours live here and in theme.css. */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; color-scheme: light;
  --canvas: #e9edf1; --surface: #fff; --surface-raised: #fff; --surface-soft: #f2f4f6; --surface-inset: #e5ebef;
  --text: #1d3039; --muted: #586b77; --border: #cbd5dd; --border-strong: #9aadb9;
  --teal: #087b74; --teal-hover: #05645f; --teal-soft: #e2f1ee; --teal-border: #82b9b1;
  --green: var(--teal); --accent: #a7e8da; --ring: #0c9187;
  --danger: #ab3e32; --warning-bg: #f6eedb; --warning-border: #d9c59a; --warning-text: #6e5426;
  --shadow: 0 4px 8px #263c4804, 0 14px 40px #263c4807;
  background: var(--canvas); color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary, .dropzone { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
main:focus { outline: none; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); padding: 11px 16px; border-radius: 9px; min-height: 42px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
button:hover { background: var(--surface-inset); border-color: var(--muted); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .48; }
button.primary, .primary {
  background: var(--teal); color: #fff; border-color: var(--teal);
  box-shadow: 0 2px 3px #073c3b14, inset 0 1px 0 #ffffff17;
}
button.primary:hover:not(:disabled) { background: var(--teal-hover); border-color: var(--teal-hover); box-shadow: 0 4px 14px #076c6829; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 46px; font-weight: 650; line-height: 1.13; letter-spacing: -1.9px; margin-bottom: 18px; }
h2 { font-size: 18px; letter-spacing: -.4px; font-weight: 650; margin-bottom: 0; }
h3 { font-size: 15px; font-weight: 650; }
p { color: var(--muted); line-height: 1.65; font-size: 14px; }
small { font-size: 12px; color: var(--muted); line-height: 1.6; }
label { display: block; font-size: 13px; font-weight: 600; }
input:not([type=radio]):not([type=checkbox]), textarea, select {
  display: block; width: 100%; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 8px; padding: 12px 13px; color: var(--text); margin: 8px 0 18px; font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; font-weight: 400; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
textarea { resize: vertical; line-height: 1.7; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
input[type=radio], input[type=checkbox] { accent-color: var(--teal); width: 17px; height: 17px; flex-shrink: 0; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 30; padding: 12px 18px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 750; letter-spacing: 1.65px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.eyebrow-line { width: 22px; height: 2px; background: var(--teal); }
.subtle { color: var(--muted); font-size: 12px; font-weight: 400; }
/* A persistent dark rail gives the light workspace a strong visual anchor. */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 5; width: 238px; padding: 28px 18px 18px;
  background: #152b34; color: #edf5f6; border-right: 1px solid #2e434c;
  display: flex; flex-direction: column;
}
.brand { display: flex; text-decoration: none; }
.product-label { display: flex; align-items: center; gap: 0; font-size: 17px; font-weight: 650; letter-spacing: -.5px; margin: 18px 10px 0; }
.product-label>span:not(.product-dot):not(.product-tag) { font-weight: 400; color: #a8c5cc; }
.product-dot { width: 6px; height: 6px; border-radius: 50%; background: #78d7c3; margin-right: 9px; box-shadow: 0 0 0 4px #78d7c311; }
.product-tag { margin-left: auto; font-size: 7px; letter-spacing: 1px; color: #a6bac3; font-weight: 600; }
.sidebar-line { height: 1px; background: #31464f; margin: 25px 10px; }
.nav-caption { font-size: 9px; letter-spacing: 1.7px; font-weight: 650; color: #8ca6b1; margin: 0 14px 13px; }
.nav-item { display: flex; gap: 11px; align-items: center; border: 1px solid transparent; background: transparent; border-radius: 9px; width: 100%; text-align: left; justify-content: flex-start; font-size: 12px; padding: 13px; color: #b8cbd2; }
.nav-item:hover { background: #223a44; border-color: transparent; color: #fff; }
.nav-item.active { background: #284a50; border-color: #3b6267; color: #d2f6e9; box-shadow: inset 3px 0 0 #8cddc5; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item .nav-chevron { margin-left: auto; width: 13px; height: 13px; opacity: .75; }
.nav-count { font-size: 10px; margin-left: auto; padding: 2px 6px; border-radius: 5px; background: #ffffff0e; color: #c7dbe2; }
.sidebar-note { margin: auto 8px 28px; padding: 22px 16px 18px; border: 1px solid #38535b; border-radius: 12px; background: linear-gradient(140deg, #29494c, #1b333d 75%); }
.sidebar-note>.icon { color: #99d8c7; margin-bottom: 13px; width: 24px; height: 24px; }
.sidebar-note strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -.25px; }
.sidebar-note p { color: #a2bac2; font-size: 11px; margin: 9px 0 18px; }
.sidebar-workflow { display: flex; align-items: center; gap: 10px; color: #8fb5b6; }
.sidebar-workflow .icon { width: 18px; height: 18px; }
.sidebar-workflow span { width: 44px; border-top: 1px dashed #597c80; }
main { margin-left: 238px; padding: 0 clamp(24px, 3.4vw, 64px) 24px; max-width: 1780px; min-height: 100vh; }
.workspace-header { height: 77px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.breadcrumb strong { font-weight: 550; color: var(--text); }
.breadcrumb .icon { width: 12px; height: 12px; opacity: .7; }
.private-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.private-label .icon { width: 13px; height: 13px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 0 31px; }
.heading-copy { min-width: 0; }
.page-heading h1 { margin-bottom: 16px; }
.page-heading h1 em { font-style: normal; color: var(--teal); }
.page-heading p { margin-bottom: 0; max-width: 440px; font-size: 14px; }
/* Lightweight, local artwork: a recording becoming an illustrated document. */
.workflow-art { position: relative; width: 302px; height: 226px; flex-shrink: 0; isolation: isolate; }
.art-orbit { position: absolute; width: 220px; height: 190px; left: 55px; top: 4px; border: 1px solid var(--border); border-radius: 50%; transform: rotate(-25deg); background: radial-gradient(ellipse, #5bbaad14, transparent 72%); }
.art-orbit::after { content: ""; position: absolute; inset: 21px -22px; border: 1px dashed var(--border); border-radius: 50%; }
.art-video { position: absolute; z-index: 1; top: 43px; left: 2px; width: 167px; height: 123px; border: 1px solid #42636a; border-radius: 11px; padding: 13px; transform: rotate(-8deg); background: linear-gradient(135deg, #2c5058, #172e39); box-shadow: 0 12px 25px #163f4524; color: #b5cec9; }
.art-file-label { display: flex; align-items: center; justify-content: space-between; font-size: 7px; letter-spacing: 1.5px; }
.art-file-label i { width: 4px; height: 4px; border-radius: 50%; background: #9edbc8; }
.art-play { display: grid; place-items: center; height: 58px; }
.art-play .icon { width: 35px; height: 35px; color: #9edbc8; stroke-width: 1.2; }
.art-timeline { height: 3px; border-radius: 4px; background: #506870; }
.art-timeline span { display: block; height: 3px; width: 43%; background: #8ed9c5; border-radius: 4px; }
.art-time { display: flex; justify-content: space-between; margin-top: 7px; font-size: 6px; letter-spacing: .5px; }
.art-time b { font-weight: 500; }
.art-connector { position: absolute; z-index: 3; top: 103px; left: 140px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #c7eee1; border: 4px solid var(--canvas); color: #17665f; }
.art-connector .icon { width: 18px; height: 18px; }
.art-document { position: absolute; z-index: 2; top: 23px; right: 9px; width: 121px; height: 155px; padding: 15px 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); transform: rotate(8deg); box-shadow: 0 10px 25px #163f4517; }
.art-doc-label { display: flex; align-items: center; gap: 6px; color: var(--teal); font-size: 7px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 12px; }
.art-doc-label .icon { width: 14px; height: 14px; }
.art-doc-heading { height: 5px; width: 75%; background: var(--text); opacity: .65; border-radius: 2px; margin-bottom: 9px; }
.art-doc-line { height: 3px; background: var(--border-strong); opacity: .65; border-radius: 2px; margin-bottom: 5px; }
.art-doc-line.short { width: 67%; }
.art-doc-picture { height: 32px; border: 1px solid var(--teal-border); background: var(--teal-soft); border-radius: 3px; margin: 9px 0; display: grid; place-items: center; color: var(--teal); }
.art-doc-picture .icon { width: 17px; height: 17px; }
.art-done { position: absolute; bottom: -9px; right: -8px; width: 27px; height: 27px; display: grid; place-items: center; border: 3px solid var(--canvas); border-radius: 50%; background: var(--teal); color: #fff; }
.art-done .icon { width: 14px; height: 14px; }
.art-caption { position: absolute; bottom: 10px; left: 15px; right: 0; font-size: 9px; color: var(--muted); text-align: center; }
/* Creation workspace */
.create-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); overflow: clip; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 27px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.card-title { display: flex; align-items: center; gap: 11px; }
.card-title>.icon { color: var(--teal); width: 19px; height: 19px; }
.card-top h2 { font-size: 16px; letter-spacing: -.25px; }
.pill { border: 1px solid var(--border); padding: 5px 8px; border-radius: 5px; font-size: 8px; letter-spacing: 1.3px; font-weight: 650; color: var(--muted); background: var(--surface); white-space: nowrap; }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 27px; }
.upload-column, .options-column { min-width: 0; }
.options-column { padding-left: 29px; border-left: 1px solid var(--border); }
.step-label { display: flex; align-items: center; gap: 12px; }
.step-label h3 { margin: 0 0 3px; font-size: 14px; letter-spacing: -.15px; }
.step-label small { font-size: 11px; display: block; font-weight: 400; }
.step-number { display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; width: 34px; height: 34px; flex-shrink: 0; font-size: 11px; font-weight: 650; color: var(--muted); background: var(--surface-soft); font-variant-numeric: tabular-nums; }
.dropzone { border: 1.5px dashed var(--border-strong); background: radial-gradient(ellipse at 50% 22%, #8acbbb22, transparent 66%), var(--surface-soft); border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 287px; padding: 25px 15px 21px; text-align: center; margin-top: 21px; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.dropzone:hover, .dropzone.drag { background: var(--teal-soft); border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal-border); }
.dropzone.drag .upload-visual, .dropzone:hover .upload-visual { transform: translateY(-4px); }
.dropzone strong { font-size: 15px; font-weight: 650; }
.dropzone-prompt { color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 6px; }
.dropzone small { font-size: 10px; font-weight: 400; margin-top: 4px; }
.upload-visual { position: relative; width: 76px; height: 67px; display: block; margin-bottom: 17px; transition: transform .2s; }
.upload-back { position: absolute; width: 52px; height: 54px; left: 7px; top: 3px; border: 1px solid var(--teal-border); border-radius: 9px; transform: rotate(-13deg); background: var(--teal-soft); }
.upload-front { position: absolute; width: 52px; height: 54px; left: 15px; top: 4px; border: 1px solid var(--border-strong); border-radius: 9px; transform: rotate(6deg); background: var(--surface); display: grid; place-items: center; color: var(--teal); box-shadow: 0 4px 9px #19384612; }
.upload-front .icon { width: 29px; height: 29px; stroke-width: 1.4; }
.upload-badge { position: absolute; bottom: 0; right: 0; border: 3px solid var(--surface-soft); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.upload-badge .icon { width: 13px; height: 13px; }
.file-picker { display: flex; align-items: center; gap: 15px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); padding: 10px 15px; font-size: 11px; font-weight: 650; margin: 17px 0; box-shadow: 0 2px 2px #142d3507; }
.file-picker .icon { width: 14px; height: 14px; color: var(--teal); }
.file-formats { font-size: 9px; font-weight: 600; letter-spacing: .6px; color: var(--muted); }
.file-formats i { margin: 0 7px; font-style: normal; opacity: .6; }
.upload-caption { display: flex; align-items: flex-start; gap: 6px; font-size: 10px; line-height: 1.6; margin: 12px 0 0; }
.upload-caption .icon { width: 12px; height: 12px; margin-top: 2px; }
.mode-options { display: grid; gap: 10px; margin-top: 21px; }
.mode-card { display: flex; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 10px; padding: 16px 14px; cursor: pointer; min-height: 82px; background: var(--surface-soft); transition: border-color .18s, background .18s, box-shadow .18s; }
.mode-card:hover { border-color: var(--border-strong); background: var(--surface-inset); }
.mode-card:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.mode-card:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.mode-card input { order: 3; margin: 0 0 0 auto; }
.mode-card strong { font-size: 13px; display: block; font-weight: 650; }
.mode-card small { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; line-height: 1.5; }
.mode-copy { min-width: 0; }
.mode-symbol { display: grid; place-items: center; width: 37px; height: 42px; flex-shrink: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.mode-symbol .icon { width: 22px; height: 22px; }
.mode-card:has(input:checked) .mode-symbol { color: var(--teal); border-color: var(--teal-border); }
.additional { margin-top: 18px; color: var(--muted); font-size: 12px; }
.additional summary { cursor: pointer; line-height: 1.6; font-weight: 550; padding: 8px 0; }
.additional label:first-of-type { margin-top: 17px; }
.additional small { font-size: 11px; }
.customize { margin-top: 12px; }
.customize summary { display: flex; gap: 8px; align-items: center; padding: 11px 0 0; list-style: none; }
.customize summary::-webkit-details-marker { display: none; }
.customize summary>.icon { width: 16px; height: 16px; }
.customize .details-chevron { margin-left: auto; width: 13px; height: 13px; transform: rotate(90deg); transition: transform .18s; }
.customize[open] .details-chevron { transform: rotate(-90deg); }
.additional-content { border-top: 1px solid var(--border); margin-top: 13px; }
#notes, #frame-count { margin-bottom: 5px; }
#frame-count { max-width: 110px; }
#notes-help, #frame-count-help { display: block; }
#notes-help + label { margin-top: 20px; }
.create-footer { border-top: 1px solid var(--border); background: var(--surface-inset); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 27px; }
.create-footer .step-number { background: var(--surface); }
.create-footer p { font-size: 10px; margin: 9px 0 0 46px; max-width: 350px; }
.create-footer button { white-space: nowrap; padding: 15px 20px; font-size: 12px; }
.create-footer button .icon { width: 17px; height: 17px; }
.create-footer button .icon:last-child { margin-left: 12px; }
.workspace-footnote { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; padding: 22px 0 10px; }
.workspace-footnote span:first-child { display: flex; align-items: center; gap: 7px; }
.workspace-footnote .icon { width: 14px; height: 14px; }
.banner { border: 1px solid var(--warning-border); background: var(--warning-bg); display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 10px; margin-bottom: 22px; }
.banner-icon { color: var(--warning-text); }
.banner strong { display: block; font-size: 12px; color: var(--warning-text); }
.banner span:not(.banner-icon) { display: block; font-size: 11px; color: var(--warning-text); margin-top: 4px; }
.banner button { background: transparent; white-space: nowrap; border: 0; color: var(--warning-text); font-size: 11px; padding: 5px; margin-left: auto; }
.banner button .icon { width: 15px; height: 15px; }
progress { display: block; width: 100%; height: 6px; border: 0; accent-color: var(--teal); background: var(--surface-inset); border-radius: 10px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-inset); border-radius: 10px; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 10px; transition: width .3s; }
progress::-moz-progress-bar { background: var(--teal); border-radius: 10px; }
.progress-meta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; margin: 16px 0 8px; }
.selected { display: flex; gap: 12px; align-items: center; background: var(--teal-soft); padding: 14px; border: 1px solid var(--teal-border); border-radius: 9px; margin-top: 14px; }
.selected>.icon { color: var(--teal); }
.selected>div { min-width: 0; flex: 1; }
.selected strong { font-size: 12px; overflow-wrap: anywhere; }
.selected small { display: block; margin: 3px 0; font-size: 10px; }
.selected button { padding: 6px; min-height: 32px; }
/* Library */
.library { margin-top: 36px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.library-heading h1 { margin-bottom: 12px; font-size: 38px; }
.library-heading h1 span { color: var(--teal); }
.library-heading p { margin: 0; font-size: 13px; }
.library-heading .eyebrow { margin-bottom: 12px; }
.library-overview { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-soft); padding: 23px 0; margin-bottom: 25px; }
.library-overview>div { display: flex; align-items: center; gap: 14px; padding: 0 25px; border-right: 1px solid var(--border); }
.library-overview>div:last-child { border: 0; }
.library-overview .icon { color: var(--teal); width: 24px; height: 24px; }
.library-overview span { font-size: 11px; color: var(--muted); }
.library-overview strong { display: block; font-size: 24px; color: var(--text); font-weight: 650; letter-spacing: -.7px; line-height: 1.3; margin-bottom: 3px; }
.library-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0; }
.search-field { position: relative; flex: 1; max-width: 390px; }
.search-field>.icon { position: absolute; top: 13px; left: 13px; width: 18px; height: 18px; color: var(--muted); }
.search-field input[type=search] { margin: 0; padding-left: 40px; background: var(--surface); font-size: 12px; }
#library-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.empty { background: var(--surface-soft); border: 1px dashed var(--border-strong); border-radius: 13px; text-align: center; padding: 50px 24px; }
.empty>.icon { color: var(--teal); width: 32px; height: 32px; margin-bottom: 6px; }
.empty h3 { font-size: 17px; margin: 12px 0 0; }
.empty p { font-size: 12px; margin: 9px 0 22px; }
.video-card { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; margin-bottom: 15px; box-shadow: 0 3px 8px #14304005; overflow: clip; }
.video-title { display: flex; align-items: center; gap: 15px; padding: 22px; }
.video-title>div:not(.video-actions) { min-width: 0; }
.file-symbol { width: 46px; height: 51px; border: 1px solid var(--teal-border); border-radius: 10px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.file-symbol .icon { width: 24px; height: 24px; }
.video-title h3 { margin-bottom: 6px; overflow-wrap: anywhere; font-size: 14px; letter-spacing: -.15px; }
.video-title p { font-size: 11px; margin: 0; }
.video-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.video-actions button { padding: 9px 12px; font-size: 11px; }
.video-actions .delete-video { min-width: 38px; padding: 9px; color: var(--muted); }
.delete-video:hover { color: var(--danger); }
.jobs { border-top: 1px solid var(--border); background: var(--surface-soft); padding: 0 22px; }
.jobs>.subtle { padding: 13px 0; margin: 0; font-size: 11px; }
.job-row { display: flex; align-items: center; gap: 12px; font-size: 11px; padding: 12px 0; flex-wrap: wrap; }
.job-row+.job-row { border-top: 1px solid var(--border); }
.job-row button { padding: 5px 0; font-size: 11px; background: transparent; border: 0; min-height: 32px; }
.job-row .job-open { color: var(--text); margin-right: 3px; }
.job-open .icon { width: 14px; height: 14px; color: var(--teal); }
.job-open .icon:first-child { width: 17px; height: 17px; margin-right: 2px; }
.job-row .job-open:hover { color: var(--teal); text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 5px; background: var(--surface-inset); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.ready { color: var(--teal); background: var(--teal-soft); }
.status.processing, .status.queued { color: var(--warning-text); background: var(--warning-bg); }
.status.failed { color: var(--danger); background: #b84d3510; }
.job-message { color: var(--muted); font-size: 10px; flex: 1; min-width: 140px; text-align: right; margin: 0; }
/* Report editing */
.editor-toolbar { padding: 20px 0; display: flex; justify-content: space-between; gap: 15px; align-items: center; position: sticky; top: 0; background: var(--canvas); border-bottom: 1px solid var(--border); z-index: 2; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar-actions>span { font-size: 11px; color: var(--muted); margin-right: 5px; }
.quiet { background: transparent; border: 1px solid transparent; box-shadow: none; }
.quiet:hover { background: var(--surface-inset); border-color: transparent; }
.paper { max-width: 950px; margin: 18px auto 30px; background: var(--surface); border: 1px solid var(--border-strong); padding: 44px; border-radius: 12px; box-shadow: var(--shadow); }
.paper input.report-title { font-size: 30px; font-weight: 650; border-color: transparent; background: transparent; padding: 4px 0; letter-spacing: -.9px; margin-top: 20px; }
.paper input.section-title { font-size: 20px; font-weight: 650; border-color: transparent; background: transparent; padding: 4px 0; letter-spacing: -.35px; }
.paper textarea { border-color: var(--border); background: var(--surface-soft); font-weight: 400; }
.paper .section-caption { font-weight: 400; }
.paper .report-summary { background: var(--teal-soft); border-color: var(--teal-border); }
.paper .report-section { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 30px; }
.report-meta { font-size: 11px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; overflow-wrap: anywhere; }
.report-section .time-ref { font-size: 10px; color: var(--muted); margin-bottom: 15px; display: block; }
.selected-images { display: flex; gap: 12px; flex-wrap: wrap; margin: 15px 0; }
.selected-images figure { margin: 0; width: 230px; max-width: 100%; }
.selected-images img { width: 100%; height: auto; object-fit: contain; border-radius: 7px; border: 1px solid var(--border-strong); }
.selected-images figcaption { font-size: 10px; color: var(--muted); margin-top: 5px; }
.crop-button { font-size: 11px; padding: 6px 10px; margin-top: 8px; min-height: 34px; }
.crop-button .icon { width: 14px; height: 14px; }
.frame-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 15px 0; }
.frame-choice { position: relative; cursor: pointer; }
.frame-choice img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: var(--surface-inset); border: 2px solid transparent; border-radius: 6px; }
.frame-choice:has(input:checked) img { border-color: var(--teal); }
.frame-choice input { position: absolute; top: 6px; left: 6px; }
.frame-choice span { font-size: 10px; }
.closing-label { margin-top: 28px; }
.editor-notice { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); margin: 23px auto 0; max-width: 950px; }
.editor-notice .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--teal); }
.processing-card { max-width: 720px; margin: 50px auto; padding: 45px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; text-align: center; box-shadow: var(--shadow); }
.processing-card .eyebrow { justify-content: center; }
.processing-card h1 { font-size: 30px; letter-spacing: -.9px; }
.processing-card p { font-size: 12px; overflow-wrap: anywhere; }
.processing-card progress { margin: 25px 0; }
.processing-card>.subtle { margin-top: 18px; font-size: 11px; }
.processing-mark { width: 66px; height: 66px; border-radius: 18px; background: var(--teal-soft); border: 1px solid var(--teal-border); display: grid; place-items: center; margin: 0 auto 25px; color: var(--teal); }
.processing-mark .icon { width: 29px; height: 29px; }
.processing-mark.working>span { display: inline-block; width: 27px; height: 27px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; font-size: 0; animation: working-spin 1.2s linear infinite; }
.processing-mark.working .icon { display: none; }
.processing-time { font-variant-numeric: tabular-nums; }
@keyframes working-spin { to { transform: rotate(360deg); } }
/* Sign in */
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { position: relative; background: radial-gradient(ellipse at 70% 45%, #285353, transparent 70%), #152b34; color: #e8f4f2; padding: 42px 10%; display: flex; flex-direction: column; overflow: hidden; }
.login-story::after { content: ""; position: absolute; width: 650px; height: 650px; border: 1px solid #ffffff09; border-radius: 50%; left: -330px; top: 22%; pointer-events: none; }
.login-story-content { margin: auto 0; padding: 55px 0 35px; }
.login-story-content h1 { font-size: clamp(32px, 3.5vw, 55px); line-height: 1.15; letter-spacing: -1.6px; max-width: 500px; }
.login-story-content h1 em { font-style: normal; color: #a6dfcb; }
.login-story-content p { color: #b5cbd0; max-width: 360px; font-size: 14px; }
.login-story .eyebrow { color: #a8d1c9; font-size: 9px; }
.login-story .workflow-art { margin: 30px auto 0; --canvas: #1c3a42; --surface: #f2f5f3; --text: #21373d; --muted: #a9c4c7; --border: #416066; --border-strong: #93acae; --teal: #087b74; --teal-border: #82b9b1; --teal-soft: #e2f1ee; }
.login-story-footer { display: flex; align-items: center; gap: 9px; color: #a0bdc5; font-size: 10px; letter-spacing: .3px; }
.login-story-footer .icon { width: 16px; height: 16px; }
.login-form-side { display: grid; place-items: center; padding: 85px 40px 55px; position: relative; }
.login-card { width: 100%; max-width: 360px; }
.login-card .eyebrow { font-size: 9px; margin-bottom: 13px; }
.login-card h2 { font-size: 29px; letter-spacing: -1px; margin-bottom: 12px; }
.login-card>p { font-size: 13px; margin-bottom: 32px; }
.login-emblem { display: grid; place-items: center; width: 49px; height: 54px; border: 1px solid var(--teal-border); border-radius: 12px; color: var(--teal); background: var(--teal-soft); margin-bottom: 25px; box-shadow: 0 4px 10px #18303909; }
.login-emblem .icon { width: 26px; height: 26px; }
.login-card label { font-size: 12px; }
.login-card input { min-height: 48px; }
.login-card button { width: 100%; justify-content: space-between; margin-top: 26px; min-height: 48px; }
.login-card #login-error { margin: 15px 0 0; }
.login-private { display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 28px; font-size: 10px; color: var(--muted); }
.login-private .icon { width: 13px; height: 13px; }
.error { color: var(--danger) !important; font-size: 12px !important; margin-top: 15px; }
/* Dialogs and feedback */
dialog { border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 25px 100px #0b223c40; padding: 30px; width: min(540px,calc(100% - 30px)); max-height: 90dvh; color: var(--text); background: var(--surface); }
dialog::backdrop { background: #0e233b8a; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 23px; letter-spacing: -.7px; }
.dialog-heading .eyebrow { margin-bottom: 7px; }
.icon-button { border: 1px solid var(--border); background: var(--surface-soft); padding: 7px; color: var(--muted); min-height: 34px; }
.icon-button .icon { width: 18px; height: 18px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
dialog p { font-size: 12px; }
.help-link { font-size: 11px; margin-top: 22px; }
.help-link a { color: var(--teal); }
.connection-status { background: var(--surface-inset); border: 1px solid var(--border); border-radius: 8px; padding: 13px; font-size: 12px; margin-bottom: 20px; }
.dialog-feedback { margin-top: 16px; margin-bottom: 0; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: min(620px,calc(100% - 32px)); background: #173d41; border: 1px solid #42716b; color: #fff; padding: 15px 22px; border-radius: 10px; box-shadow: 0 10px 40px #17343930; font-size: 13px; line-height: 1.5; }
#toast.bad { background: #843d34; border-color: #a6655b; }
#crop-dialog { width: min(980px,calc(100% - 24px)); max-height: 92dvh; overflow: auto; }
#crop-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; background: #152b34; border-radius: 7px; }
.crop-margins { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }
.crop-margins legend { font-size: 12px; margin-bottom: 10px; }
.crop-margins input { margin-bottom: 8px !important; }
.crop-all { display: flex; gap: 9px; align-items: flex-start; margin: 8px 0 12px; line-height: 1.5; }
.crop-all input { margin-top: 3px; }
@keyframes enter-view { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-dialog { from { opacity: 0; } to { opacity: 1; } }
#workspace, #library, #editor { animation: enter-view .25s ease-out; }
dialog[open] { animation: reveal-dialog .18s ease-out; }
@media (min-width: 1650px) { .page-heading { padding: 45px 0; } .page-heading h1 { font-size: 55px; } .create-grid { padding: 32px; gap: 36px; } .options-column { padding-left: 35px; } .dropzone { min-height: 300px; } }
@media (max-width: 1200px) { .sidebar { width: 214px; padding-left: 13px; padding-right: 13px; } main { margin-left: 214px; padding-left: 28px; padding-right: 28px; } .page-heading h1 { font-size: 39px; } .page-heading>.workflow-art { transform: scale(.86); transform-origin: right center; width: 268px; } .create-grid { gap: 22px; padding: 23px; } .options-column { padding-left: 21px; } .mode-card { gap: 9px; padding: 15px 11px; } .mode-symbol { width: 31px; height: 36px; } .create-footer { padding: 21px 23px; } .create-footer button { padding: 14px; } .create-footer button .icon:last-child { margin-left: 0; } .step-label { gap: 9px; } .step-label h3 { font-size: 12px; } }
@media (max-width: 1050px) { .page-heading>.workflow-art { display: none; } .page-heading { padding: 32px 0; } .page-heading p { max-width: 520px; } .mode-symbol { display: none; } .create-footer { gap: 16px; } .create-footer button { font-size: 11px; } .create-footer p { margin-left: 43px; } .video-title { flex-wrap: wrap; } .video-actions { width: 100%; margin-left: 61px; } .library-overview>div { padding: 0 18px; gap: 10px; } .library-overview .icon { width: 20px; height: 20px; } .library-heading h1 { font-size: 34px; } }
@media (max-height: 820px) and (min-width: 801px) { .sidebar-note { padding: 17px 14px; margin-bottom: 18px; margin-top: 35px; } .sidebar-note p { margin-bottom: 0; } .sidebar-workflow { display: none; } }
@media (max-height: 640px) and (min-width: 801px) { .sidebar-note { display: none; } }
@media (max-width: 800px) {
  .sidebar { position: relative; width: 100%; height: auto; padding: 16px 22px 12px; border: 0; }
  .sidebar-line, .nav-caption, .sidebar-note { display: none; }
  .product-label { position: absolute; top: 26px; right: 24px; margin: 0; font-size: 18px; }
  .product-tag { display: none; }
  main { margin-left: 0; padding: 0 24px 90px; min-height: calc(100vh - 100px); }
  .workspace-header { height: 54px; }
  .page-heading { padding: 28px 0; }
  .page-heading h1 { font-size: 40px; }
  .page-heading p { max-width: 440px; }
  .mode-symbol { display: grid; }
  .create-grid { gap: 20px; padding: 22px; }
  .options-column { padding-left: 19px; }
  .paper { padding: 28px; }
  .banner { flex-wrap: wrap; gap: 10px; }
  .banner>div { flex: 1; }
  .banner button { margin-left: 29px; min-height: 30px; }
  .toolbar-actions>span { display: none; }
  .editor-toolbar button { font-size: 11px; padding: 10px; }
  .frame-grid { grid-template-columns: repeat(3,1fr); }
  .library { margin-top: 28px; }
  .library-heading .primary { font-size: 11px; }
  .library-heading .eyebrow { font-size: 9px; }
  .login-story { padding: 30px 9%; }
  .login-story-content h1 { font-size: 34px; }
  .login-story .workflow-art { transform: scale(.85); transform-origin: left center; margin-left: 0; }
  .login-form-side { padding-left: 28px; padding-right: 28px; }
  .login-card h2 { font-size: 25px; }
}
@media (max-width: 620px) {
  main { padding-left: 17px; padding-right: 17px; }
  .workspace-header { height: 48px; }
  .private-label { font-size: 9px; }
  .breadcrumb { font-size: 10px; gap: 6px; }
  .page-heading { padding: 29px 0 25px; }
  .page-heading h1 { font-size: clamp(29px, 7.8vw, 42px); letter-spacing: -1.15px; }
  .page-heading p { font-size: 13px; max-width: 360px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; margin-bottom: 15px; }
  .create-grid { grid-template-columns: 1fr; padding: 20px; gap: 25px; }
  .options-column { padding: 23px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .card-top { padding: 17px 20px; }
  .card-top h2 { font-size: 13px; }
  .card-top .pill { font-size: 7px; padding: 5px; letter-spacing: .7px; }
  .card-title { gap: 8px; }
  .dropzone { min-height: 265px; margin-top: 18px; }
  .mode-card { padding: 15px; min-height: 82px; gap: 13px; }
  .mode-card strong { font-size: 13px; }
  .mode-card small { font-size: 11px; }
  .mode-symbol { width: 37px; height: 42px; }
  .step-label h3 { font-size: 13px; }
  .step-label small { font-size: 11px; }
  .create-footer { align-items: stretch; flex-direction: column; padding: 20px; gap: 20px; }
  .create-footer button { font-size: 13px; min-height: 48px; }
  .create-footer button .icon:last-child { margin-left: auto; }
  .create-footer p { max-width: none; margin-left: 43px; }
  .workspace-footnote { font-size: 9px; padding-top: 18px; }
  .workspace-footnote>span:last-child { display: none; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .library-heading h1 { font-size: 34px; }
  .library-heading .primary { font-size: 12px; }
  .library-overview { padding: 17px 0; }
  .library-overview>div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 12px; }
  .library-overview span { font-size: 9px; }
  .library-overview strong { font-size: 22px; }
  .library-overview .icon { width: 19px; height: 19px; }
  .library-tools { flex-wrap: wrap; }
  .search-field { max-width: none; min-width: 100%; }
  .video-title { padding: 17px; gap: 12px; }
  .video-title>div:not(.video-actions) { max-width: calc(100% - 58px); }
  .video-actions { margin: 3px 0 0 58px; }
  .video-title h3 { font-size: 13px; }
  .jobs { padding: 0 17px; }
  .job-row { gap: 7px; }
  .job-message { flex-basis: 100%; text-align: left; font-size: 11px; }
  .paper { padding: 23px 17px; }
  .paper input.report-title { font-size: 25px; }
  .paper input.section-title { font-size: 18px; }
  .frame-grid { grid-template-columns: repeat(2,1fr); }
  .editor-toolbar { gap: 6px; }
  .editor-toolbar>.quiet { font-size: 0; padding: 10px 6px; }
  .editor-toolbar>.quiet .icon { width: 20px; height: 20px; }
  .toolbar-actions { gap: 7px; }
  .toolbar-actions button { font-size: 10px; padding: 10px; }
  .toolbar-actions button .icon { width: 15px; height: 15px; }
  .editor-notice { font-size: 11px; }
  .processing-card { padding: 30px 20px; margin: 25px auto; }
  .processing-card h1 { font-size: 26px; }
  .selected-images figure { width: 100%; }
  .dialog-actions { flex-direction: column; }
  dialog { padding: 23px; }
  #crop-dialog { padding: 18px; }
  .crop-margins { grid-template-columns: repeat(2,1fr); gap: 4px 12px; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { padding: 20px 27px; }
  .login-story-content, .login-story-footer { display: none; }
  .login-form-side { padding: 62px 30px 35px; min-height: calc(100dvh - 100px); }
  .login-card { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
