:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(14, 18, 24, .96);
  --panel-2: #121720;
  --panel-3: #181f2a;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #f7f9fc;
  --muted: #a7afbd;
  --muted-2: #727b8a;
  --accent: #dcff58;
  --accent-ink: #111604;
  --danger: #ff6f7c;
  --blue: #8ca7ff;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button, label, select, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
a { color: inherit; }
.is-hidden { display: none !important; }

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(101,128,255,.16), transparent 31%),
    radial-gradient(circle at 88% 4%, rgba(220,255,88,.08), transparent 25%),
    linear-gradient(180deg, #07090d, #090c12 60%, #07090d);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  background: rgba(7,9,13,.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 2px; }
.brand > span:last-child > span { color: var(--accent); }
.brand small { margin-left: 8px; color: var(--muted-2); font-size: 8px; letter-spacing: .18em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px rgba(220,255,88,.13); }
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.topbar-center { display: flex; justify-content: center; }
.status-chip, .privacy-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--muted); font-size: 11px; padding: 8px 11px; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(220,255,88,.08); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ghost-button { cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,.035); border-radius: 11px; }
.ghost-button.compact { padding: 9px 12px; font-size: 12px; font-weight: 700; }
.ghost-button:hover { border-color: var(--border-strong); background: rgba(255,255,255,.06); }

.studio-shell { position: relative; z-index: 1; width: min(100% - 28px, 1600px); margin: 0 auto; padding: 26px 0 40px; }
.studio-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: end; margin-bottom: 18px; padding: 0 4px; }
.eyebrow { display: block; color: var(--accent); font-size: 10px; letter-spacing: .22em; font-weight: 800; margin-bottom: 8px; }
.studio-intro h1 { margin: 0; max-width: 740px; font-size: clamp(31px, 4vw, 50px); line-height: 1.02; letter-spacing: -.045em; }
.studio-intro h1 span { color: var(--accent); }
.studio-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 600px; }

.editor-layout { display: grid; grid-template-columns: 292px minmax(620px,1fr) 350px; gap: 14px; align-items: stretch; min-height: 790px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.source-panel, .control-sidebar { padding: 17px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-heading > div { display: flex; align-items: center; gap: 9px; }
.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.step-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: rgba(220,255,88,.1); color: var(--accent); font-size: 10px; font-weight: 800; border: 1px solid rgba(220,255,88,.15); }
.panel-kicker, .section-title span, summary span { color: var(--muted-2); font-size: 8px; letter-spacing: .12em; font-weight: 700; }
.text-button { color: var(--muted); cursor: pointer; font-size: 10px; }
.text-button:hover { color: var(--accent); }
.text-button:disabled { opacity: .35; cursor: default; }

.drop-zone { display: grid; place-items: center; text-align: center; min-height: 160px; border: 1px dashed rgba(255,255,255,.16); border-radius: 15px; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.012)); cursor: pointer; transition: .16s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: rgba(220,255,88,.6); background: rgba(220,255,88,.035); }
.compact-drop { min-height: 146px; }
.upload-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: rgba(220,255,88,.1); color: var(--accent); margin-bottom: 7px; }
.upload-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 14px; }
.drop-zone span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.drop-zone small { color: var(--muted-2); font-size: 9px; margin-top: 5px; }
.inline-error { margin: 9px 0 0; color: var(--danger); font-size: 10px; line-height: 1.4; }

.selected-media { display: grid; grid-template-columns: 48px minmax(0,1fr) 28px; align-items: center; gap: 9px; margin-top: 10px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025); padding: 8px; }
.file-thumb { width: 48px; height: 48px; border-radius: 9px; background-position: center; background-size: cover; background-color: var(--panel-3); }
.file-info { min-width: 0; }
.file-info strong, .file-info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info strong { font-size: 10px; }
.file-info span { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.icon-button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; background: rgba(255,255,255,.035); }

.batch-head { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.batch-head > div { display: flex; flex-direction: column; gap: 2px; }
.batch-head strong { font-size: 11px; }
.batch-head span { color: var(--muted-2); font-size: 8px; }
.batch-queue { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; min-height: 70px; max-height: 340px; overflow: auto; scrollbar-width: thin; scrollbar-color: #343b47 transparent; }
.batch-empty { min-height: 70px; display: grid; place-items: center; text-align: center; color: var(--muted-2); border: 1px dashed var(--border); border-radius: 12px; font-size: 9px; padding: 12px; }
.batch-item { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) 28px; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); padding: 7px; cursor: pointer; }
.batch-item:hover { border-color: var(--border-strong); }
.batch-item.selected { border-color: rgba(220,255,88,.45); background: rgba(220,255,88,.045); }
.batch-thumb { width: 44px; height: 44px; border-radius: 8px; background-position: center; background-size: cover; }
.batch-copy { min-width: 0; }
.batch-copy strong, .batch-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-copy strong { font-size: 9px; }
.batch-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: capitalize; }
.batch-copy i { display: block; height: 2px; background: rgba(255,255,255,.08); margin-top: 6px; border-radius: 99px; overflow: hidden; }
.batch-copy i b { display: block; height: 100%; background: var(--accent); }
.batch-download { position: relative; z-index: 3; width: 26px; height: 26px; display: grid; place-items: center; text-decoration: none; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.batch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.privacy-note { display: flex; gap: 9px; margin-top: 14px; padding: 11px; border-radius: 12px; background: rgba(140,167,255,.055); border: 1px solid rgba(140,167,255,.11); }
.privacy-note > span { color: var(--blue); }
.privacy-note strong { font-size: 9px; }
.privacy-note p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

.workspace { display: flex; flex-direction: column; min-width: 0; background: #0b0f15; }
.workspace-toolbar { min-height: 56px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.mode-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: #0b0e13; }
.mode-tabs button { cursor: pointer; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 9px; }
.mode-tabs button.active { color: var(--text); background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--border); }
.processing-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.processing-state.busy .state-dot { animation: pulse 1s infinite; }
.processing-state.error .state-dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.canvas-stage { position: relative; flex: 1; min-height: 540px; display: grid; place-items: center; padding: 22px; background:
  radial-gradient(circle at 50% 35%, rgba(255,255,255,.025), transparent 35%),
  linear-gradient(45deg, rgba(255,255,255,.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.012) 75%),
  #090c11;
  background-size: auto, 28px 28px;
}
.empty-state { max-width: 390px; text-align: center; color: var(--muted); }
.empty-doodle { width: 150px; margin: 0 auto 12px; color: rgba(220,255,88,.65); }
.empty-doodle svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.empty-label { color: var(--accent); font-size: 8px; letter-spacing: .2em; font-weight: 800; }
.empty-state h3 { margin: 8px 0 6px; color: var(--text); font-size: 23px; }
.empty-state p { margin: 0 auto 15px; font-size: 11px; line-height: 1.6; }

.canvas-shell { position: relative; width: min(100%, 1050px); max-height: 66vh; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: conic-gradient(#d9dcda 25%,#f5f6f3 0 50%,#d9dcda 0 75%,#f5f6f3 0) 0 0/18px 18px; box-shadow: 0 30px 75px rgba(0,0,0,.42); }
.canvas-shell canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#animationCanvas { z-index: 3; }
.canvas-label { position: absolute; z-index: 6; top: 10px; left: 10px; padding: 6px 8px; border-radius: 7px; background: rgba(10,12,16,.76); color: #fff; font-size: 7px; letter-spacing: .12em; backdrop-filter: blur(6px); }
.doodle-label, .animation-label { left: auto; right: 10px; }
.compare-range { position: absolute; z-index: 8; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare-handle { position: absolute; z-index: 7; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255,255,255,.88); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 13px; box-shadow: 0 5px 18px rgba(0,0,0,.28); }

.timeline-panel { border-top: 1px solid var(--border); padding: 11px 14px 12px; background: #0e1218; }
.timeline-controls { display: grid; grid-template-columns: 34px auto 1fr; align-items: center; gap: 10px; }
.timeline-play { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 12px; cursor: pointer; }
.timeline-play:disabled { opacity: .35; cursor: not-allowed; }
.time-readout { display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; font-size: 9px; }
.time-readout span { color: var(--muted-2); }
.timeline-meta { display: flex; justify-content: flex-end; gap: 12px; color: var(--muted-2); font-size: 8px; min-width: 0; }
.timeline-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-track { position: relative; height: 6px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: visible; }
.timeline-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #a7f76a); }
.timeline-track i { position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%); width: 10px; height: 10px; border: 2px solid #0e1218; border-radius: 50%; background: #fff; }
.timeline-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 7px; letter-spacing: .12em; margin-top: 5px; }

.video-result-wrap { border-top: 1px solid var(--border); padding: 10px 14px 13px; }
.video-progress-wrap { padding: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.02); border-radius: 11px; margin-bottom: 9px; }
.video-progress-header { display: flex; align-items: center; justify-content: space-between; font-size: 9px; margin-bottom: 6px; }
#videoProgressBar { width: 100%; height: 7px; accent-color: var(--accent); }
#videoStatus { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.result-video { width: 100%; max-height: 340px; border-radius: 10px; background: #05070a; border: 1px solid var(--border); }
#downloadVideoLink { width: 100%; margin-top: 8px; }

.control-sidebar { overflow-y: auto; max-height: calc(100vh - 100px); scrollbar-width: thin; scrollbar-color: #343b47 transparent; }
.inspector-heading { position: sticky; top: -17px; z-index: 5; margin: -17px -17px 12px; padding: 15px 17px 11px; background: rgba(14,18,24,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.inspector-section { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 13px; }
.inspector-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.section-title h3 { margin: 0; font-size: 11px; }
details.inspector-section summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 750; }
details.inspector-section summary::-webkit-details-marker { display: none; }
details.inspector-section summary::before { content: "▸"; margin-right: 7px; color: var(--muted-2); transition: transform .16s ease; }
details.inspector-section[open] summary::before { transform: rotate(90deg); }
details.inspector-section summary span { margin-left: auto; }
.detail-body { padding-top: 10px; }
.wide-select { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
select { width: 100%; margin-top: 5px; border: 1px solid var(--border); border-radius: 9px; background: #0d1117; color: var(--text); padding: 8px 9px; font-size: 9px; outline: 0; }
select:focus { border-color: rgba(220,255,88,.5); }

.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.style-card { display: flex; flex-direction: column; text-align: left; min-width: 0; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.018); cursor: pointer; }
.style-card.active { border-color: rgba(220,255,88,.45); background: rgba(220,255,88,.045); }
.style-swatch { height: 38px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 7px; background: #f4f2eb; color: #161719; font-family: Georgia, serif; font-size: 9px; font-weight: 900; font-style: italic; }
.style-card strong, .style-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-card strong { font-size: 8px; }
.style-card small { color: var(--muted-2); font-size: 6px; margin-top: 2px; }
.style-card[data-style="pencil"] .style-swatch { background:#d9d9d5;color:#54575d; }
.style-card[data-style="comic"] .style-swatch { background:linear-gradient(135deg,#ffd85f 0 34%,#ff7a67 34% 66%,#8bd0ff 66%); }
.style-card[data-style="color"] .style-swatch { background:linear-gradient(135deg,#dcff58,#72c9ff,#d98cff); }
.style-card[data-style="chalkboard"] .style-swatch { background:#252c2a;color:#e8eadc; }

.slider-control { margin-bottom: 9px; }
.slider-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.slider-label label { color: var(--muted); font-size: 8px; }
.slider-label output { color: var(--accent); font-size: 8px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 3px; cursor: pointer; }
.export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 8px; }
.export-row label { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.motion-note { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px; border: 1px solid rgba(220,255,88,.12); border-radius: 9px; background: rgba(220,255,88,.035); }
.motion-note strong { color: var(--accent); font-size: 8px; }
.motion-note span { color: var(--muted); font-size: 7px; line-height: 1.4; }

.background-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.background-option { height: 42px; position: relative; border: 1px solid var(--border); border-radius: 9px; background: #fff; overflow: hidden; cursor: pointer; }
.background-option.active { box-shadow: 0 0 0 2px var(--accent); }
.background-option span { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 2px; border-radius: 4px; background: rgba(255,255,255,.75); color: #111; font-size: 5px; text-align: center; }
.background-option[data-bg="transparent"] { background: conic-gradient(#d7d9dc 25%,#f7f7f7 0 50%,#d7d9dc 0 75%,#f7f7f7 0) 0 0/10px 10px; }
.background-option[data-bg="paper"] { background:#f0e8d4; }
.background-option[data-bg="notebook"] { background:repeating-linear-gradient(#f8faf7 0 8px,#91b2c844 8px 9px); }
.background-option[data-bg="grid"] { background-color:#f3f6f5;background-image:linear-gradient(#8099aa33 1px,transparent 1px),linear-gradient(90deg,#8099aa33 1px,transparent 1px);background-size:9px 9px; }
.background-option[data-bg="blackboard"] { background:#242b29; }
.background-option[data-bg="custom"] { background:linear-gradient(135deg,#efb7f2,#a7def4,#f4e7a7); }
.custom-color { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.custom-color input { width: 42px; height: 26px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-3); }

.primary-button, .secondary-button { min-height: 38px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; font-size: 9px; font-weight: 800; text-decoration: none; transition: .15s ease; }
.primary-button { background: var(--accent); color: var(--accent-ink); }
.secondary-button { background: rgba(255,255,255,.035); border: 1px solid var(--border); color: var(--text); }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.render-cta { width: 100%; min-height: 48px; flex-direction: column; gap: 2px; margin-top: 3px; }
.render-cta span { font-size: 11px; }
.render-cta small { font-size: 6px; opacity: .65; }
.download-button { width: 100%; min-height: 44px; margin-top: 8px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); cursor: pointer; text-align: left; }
.download-button:disabled { opacity: .35; cursor: not-allowed; }
.download-icon { width: 30px; display: grid; place-items: center; color: var(--accent); font-size: 18px; }
.download-button span:last-child { display: flex; flex-direction: column; gap: 1px; }
.download-button strong { font-size: 8px; }
.download-button small { color: var(--muted); font-size: 6px; }
.jpeg-quality { margin-top: 8px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 22px; transform: translate(-50%,16px); opacity: 0; pointer-events: none; background: #f6f7f2; color: #10120c; border-radius: 9px; padding: 9px 12px; font-size: 9px; font-weight: 800; box-shadow: 0 15px 45px rgba(0,0,0,.42); transition: .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1320px) {
  .editor-layout { grid-template-columns: 250px minmax(520px,1fr) 320px; }
  .source-panel, .control-sidebar { padding: 14px; }
  .inspector-heading { top: -14px; margin: -14px -14px 12px; padding-inline: 14px; }
  .canvas-stage { min-height: 500px; padding: 16px; }
}

@media (max-width: 1040px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-center { display: none; }
  .editor-layout { grid-template-columns: 230px minmax(0,1fr); }
  .control-sidebar { grid-column: 1 / -1; max-height: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; }
  .inspector-heading { position: static; grid-column: 1 / -1; margin: 0; padding: 0 0 10px; }
  .inspector-section { margin-top: 0; }
}

@media (max-width: 900px) {
  .topbar { height: 64px; padding: 0 12px; }
  .privacy-badge { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .studio-shell { width: calc(100% - 14px); padding-top: 16px; }
  .studio-intro { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
  .studio-intro h1 { font-size: 31px; }
  .studio-intro p { font-size: 11px; }
  .editor-layout { grid-template-columns: 1fr; min-height: 0; }
  .media-rail { order: 2; }
  .workspace { order: 1; min-height: 570px; }
  .control-sidebar { order: 3; grid-column: auto; grid-template-columns: 1fr; max-height: none; }
  .canvas-stage { min-height: 410px; }
  .batch-queue { max-height: 230px; }
  .timeline-meta span:first-child { display: none; }
}

@media (max-width: 560px) {
  .topbar-actions .ghost-button { font-size: 0; width: 36px; height: 36px; padding: 0; }
  .topbar-actions .ghost-button::after { content: "+"; font-size: 18px; }
  .brand small { display: none; }
  .studio-intro h1 { font-size: 27px; }
  .workspace-toolbar { align-items: stretch; flex-direction: column; }
  .mode-tabs { width: 100%; }
  .mode-tabs button { flex: 1; padding-inline: 5px; }
  .processing-state { padding-left: 4px; }
  .canvas-stage { min-height: 330px; padding: 8px; }
  .timeline-controls { grid-template-columns: 32px 1fr; }
  .timeline-meta { grid-column: 1 / -1; justify-content: flex-start; }
  .batch-actions { grid-template-columns: 1fr; }
}
