/* Original pixel display alphabet, embedded to keep this page self-contained. */
@font-face { font-family: "Lab Raster"; src: url("data:font/woff;base64,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") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #101010;
  --panel: #141414;
  --white: #f4f2ec;
  --muted: #a09f99;
  --line: #373735;
  --accent: #b4ff39;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --pixel: "Lab Raster", var(--mono);
  font-family: var(--mono);
  font-size: 14px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); }
button, input, textarea { font: inherit; }
button, input, textarea, a, label { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; }
button:disabled { color: #858580; border-color: #353533; background: #1c1c1a; }
input:disabled { color: #858580; }
button:not(:disabled):hover { background: var(--white); color: var(--bg); border-color: var(--white); }
button:not(:disabled):active { transform: translateY(1px); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: #101010; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { border-radius: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 16px; background: var(--white); color: #101010; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.shell { max-width: 1456px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.back-link > span { font-size: 20px; color: var(--accent); }
.header-tag { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.privacy { display: flex; align-items: center; gap: 9px; color: #cac8c1; font-size: 11px; line-height: 1.5; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; background: var(--accent); vertical-align: middle; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 44px 0 35px; }
.eyebrow { margin-bottom: 18px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
h1 { font-family: var(--pixel); font-size: clamp(72px, 10vw, 132px); line-height: .92; font-weight: 400; letter-spacing: -.05em; }
h1 > span { color: var(--accent); }
.intro-aside { display: flex; align-items: flex-end; gap: 27px; padding-bottom: 5px; }
.intro-aside p { font-size: clamp(14px, 1.4vw, 18px); line-height: 1.5; letter-spacing: -.04em; }
.pixel-mark { width: 63px; height: 63px; color: var(--accent); shape-rendering: crispEdges; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(300px, 1fr); align-items: start; gap: 20px; }
.source-column, .tool-column { display: grid; gap: 20px; min-width: 0; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 65px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
h2 { display: flex; align-items: center; gap: 12px; font-family: var(--pixel); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: .01em; }
.section-index { color: var(--accent); font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 12px; min-height: 35px; padding: 6px 0; border: 0; background: transparent; font-size: 11px; white-space: nowrap; }
.text-button:disabled { background: transparent; color: #86857f; }
.text-button:not(:disabled):hover { background: transparent; color: var(--accent); }
.text-button > span { font-size: 17px; line-height: 1; }
.dropzone { position: relative; display: flex; align-items: center; gap: 18px; min-height: 124px; margin: 22px; padding: 22px; border: 1px dashed #66655f; background: #1a1a18; cursor: pointer; }
.dropzone:hover, .dropzone.drag, .dropzone.dragover, .dropzone.is-dragover, .dropzone.over { border-color: var(--accent); background: #1c2814; }
.dropzone.busy { cursor: wait; opacity: .6; }
.dropzone.busy .pick-file { background: #777770; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.drop-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 46px; border: 1px solid var(--line); font-size: 32px; line-height: 1; color: var(--accent); }
.drop-copy { display: grid; gap: 8px; }
.drop-copy strong { font-size: 16px; font-weight: 500; }
.drop-copy > span { font-size: 11px; color: var(--muted); }
.pick-file { display: flex; align-items: center; gap: 18px; margin-left: auto; padding: 12px 14px; background: var(--white); color: #101010; font-size: 10px; font-weight: 700; white-space: nowrap; }
.pick-file > span { font-size: 17px; line-height: 1; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 22px 13px; }
.micro-label { font-size: 10px; line-height: 1.6; letter-spacing: .07em; }
.metadata { max-width: 70%; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: right; overflow-wrap: anywhere; }
.video-stage { position: relative; isolation: isolate; margin: 0 22px; aspect-ratio: 16 / 9; background: #080808; overflow: hidden; border: 1px solid #2b2b29; }
#video { display: block; position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #080808; }
#video:not([src]) { visibility: hidden; }
.stage-empty { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 24px 24px; color: #86867f; font-size: 9px; letter-spacing: .14em; pointer-events: none; }
#video[src] ~ .stage-empty, #still[src]:not([hidden]) ~ .stage-empty { display: none; }
#still { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; background: #080808; }
.viewfinder { position: relative; display: block; width: 44px; height: 34px; border: 1px solid #55554f; }
.viewfinder:before, .viewfinder:after { content: ""; position: absolute; background: #55554f; }
.viewfinder:before { width: 20px; height: 1px; left: 11px; top: 16px; }
.viewfinder:after { width: 1px; height: 20px; left: 21px; top: 7px; }
.viewfinder i { position: absolute; inset: 6px; border: 1px solid #33332f; }
.stage-corner { position: absolute; z-index: 3; width: 11px; height: 11px; pointer-events: none; }
.top-left { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.bottom-right { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.timeline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 22px 0; }
#seek { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: ew-resize; }
#seek:disabled { cursor: not-allowed; opacity: .5; }
#timecode { min-width: 81px; color: #cfcdc6; font-size: 11px; font-variant-numeric: tabular-nums; }
.frame-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px 22px; }
.frame-step { display: flex; align-items: center; gap: 6px; }
.frame-step button { width: 41px; min-height: 39px; padding: 8px; border: 1px solid var(--line); background: #222220; font-size: 12px; }
.frame-step > span { padding-left: 8px; font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 40px; padding: 11px 15px; background: var(--accent); border: 1px solid var(--accent); color: #101010; font-size: 11px; font-weight: 700; }
.primary-button > span { font-size: 16px; }
.note-composer { display: flex; gap: 10px; padding: 20px 22px; }
#note { width: 0; flex: 1; min-width: 0; min-height: 43px; border: 1px solid var(--line); background: #0d0d0d; color: var(--white); padding: 12px; border-radius: 0; font-size: 12px; }
#note::placeholder { color: #93928c; opacity: 1; }
.note-composer button { display: flex; align-items: center; gap: 15px; min-height: 43px; border: 1px solid var(--line); padding: 10px 14px; background: #272724; font-size: 10px; }
.notes-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0 22px 18px; }
.notes-list:empty { padding-bottom: 0; }
.notes-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.notes-list li > button:first-child, .notes-list time { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 11px; }
.notes-list button { background: transparent; border: 1px solid var(--line); padding: 6px 8px; }
.notes-list li > span { flex: 1; min-width: 100px; }
.small-tag { display: inline-block; padding: 4px 6px; border: 1px solid #526c36; color: var(--accent); font-size: 8px; line-height: 1.2; letter-spacing: .08em; white-space: nowrap; }
.tool-block { padding: 22px; border-bottom: 1px solid var(--line); }
.tool-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h3 { font-size: 13px; font-weight: 500; line-height: 1.5; }
.tool-symbol { color: var(--accent); font-size: 24px; line-height: 1; }
.hint { padding-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.format-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.format-buttons button, .wide-button, .image-convert > button { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; padding: 11px 14px; border: 1px solid #64635d; background: #222220; font-size: 11px; }
.format-buttons button > span:first-child { font-family: var(--pixel); font-size: 14px; }
.format-buttons button > span:last-child, .wide-button > span, .image-convert > button > span { font-size: 16px; }
.image-convert { display: flex; gap: 10px; margin-top: 18px; }
.seconds-label { display: flex; align-items: center; gap: 4px; min-width: 86px; min-height: 43px; border: 1px solid var(--line); background: #0d0d0d; padding: 0 10px 0 6px; }
#seconds { width: 47px; min-height: 39px; border: 0; border-radius: 0; background: transparent; color: var(--white); padding: 5px 4px; font-size: 12px; }
.seconds-label > span { font-size: 10px; color: var(--muted); }
.image-convert > button { flex: 1; font-size: 10px; }
.wide-button { width: 100%; margin-top: 18px; }
.transcript-note { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; background: #111110; }
.muted-tag { border-color: var(--line); color: var(--muted); }
.transcript-note p { color: var(--muted); font-size: 10px; line-height: 1.75; }
.process-panel { padding: 14px 22px 20px; }
.process-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.process-heading .micro-label { display: flex; align-items: center; gap: 6px; }
#status { font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; color: #c5c3bb; }
#status.error, #status[data-state="error"] { color: #ff8f87; }
#status.success, #status[data-state="success"] { color: var(--white); }
#progress { display: block; width: 100%; height: 5px; margin-top: 18px; overflow: hidden; border: 0; border-radius: 0; background: #343431; accent-color: var(--accent); }
#progress::-webkit-progress-bar { background: #343431; }
#progress::-webkit-progress-value { background: var(--accent); }
#progress::-moz-progress-bar { background: var(--accent); }
.results-panel { grid-column: 1 / -1; }
.muted { color: var(--muted); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 22px; }
.results-grid:empty { display: flex; align-items: center; justify-content: center; min-height: 107px; }
.results-grid:empty:before { content: "Your outputs appear here."; color: #94938c; font-size: 11px; }
.results-grid > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.results-grid > a, .results-grid > article, .results-grid > figure, .results-grid > div { margin: 0; padding: 12px; border: 1px solid var(--line); background: #0d0d0d; font-size: 11px; line-height: 1.6; }
.results-grid img, .results-grid video, .results-grid canvas { display: block; max-width: 100%; height: auto; margin-bottom: 10px; background: #080808; }
.results-grid audio { display: block; width: 100%; margin: 10px 0; }
.results-grid a { color: var(--white); text-underline-offset: 4px; }
.results-grid a:hover { color: var(--accent); }
.results-grid > a { display: flex; flex-direction: column; gap: 10px; }
.results-grid > a:after { content: "DOWNLOAD ↓"; margin-top: auto; color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.results-grid > a:hover { border-color: var(--accent); }
.results-grid button { padding: 8px 12px; border: 1px solid var(--line); background: #222220; font-size: 11px; }
.review-panel { grid-column: 1 / -1; border-top: 2px solid var(--accent); }
.review-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 22px; }
.review-source, .review-feedback { min-width: 0; }
.review-kicker { margin-bottom: 17px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.review-consent { display: flex; align-items: flex-start; gap: 11px; max-width: 560px; cursor: pointer; font-size: 11px; line-height: 1.8; }
#reviewConsent { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.review-disclosure { margin: 10px 0 17px 27px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.review-delete { color: #ff8f87; }
#reviewStatus { margin-top: 14px; font-size: 11px; line-height: 1.8; color: #c5c3bb; overflow-wrap: anywhere; }
.review-link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
#reviewLink { min-width: 0; max-width: 100%; padding: 8px 0; color: var(--accent); font-size: 11px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
#reviewLink:hover { color: var(--white); }
#reviewExpiry { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.7; }
#reviewExpiry:empty { display: none; }
#reviewPlayer { display: block; width: 100%; max-height: 420px; margin-top: 18px; border: 1px solid var(--line); background: #080808; object-fit: contain; }
.review-feedback { padding-left: 28px; border-left: 1px solid var(--line); }
.review-feedback h3 { margin-bottom: 15px; }
.review-composer { display: grid; gap: 10px; }
#reviewName, #reviewText { display: block; width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--line); border-radius: 0; padding: 11px 12px; background: #0d0d0d; color: var(--white); font-size: 12px; line-height: 1.65; }
#reviewText { min-height: 82px; resize: vertical; }
#reviewName::placeholder, #reviewText::placeholder { color: #93928c; opacity: 1; }
#reviewAdd { justify-self: start; }
.review-comments { display: grid; list-style: none; margin: 18px 0 0; padding: 0; }
.review-comments:empty { margin-top: 0; }
.review-comments li { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.review-comments button { margin: 0 8px 5px 0; padding: 5px 7px; border: 1px solid var(--line); background: #222220; color: var(--accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.review-comments p { white-space: pre-wrap; }
.review-comments time, .review-comments small { font-size: 10px; color: var(--muted); }
.noscript-note { margin: 20px 0; padding: 18px; border: 1px solid var(--accent); font-size: 12px; line-height: 1.7; }
footer { display: flex; align-items: center; gap: 20px; min-height: 105px; padding: 25px 0; }
.footer-mark { flex: 0 0 auto; font-family: var(--pixel); font-size: 16px; color: var(--accent); }
footer p { max-width: 630px; color: #96958e; font-size: 10px; line-height: 1.9; }
.footer-end { margin-left: auto; flex: 0 0 auto; font-size: 9px; color: #96958e; letter-spacing: .1em; }
@media (min-width: 1500px) { .intro { padding-top: 54px; padding-bottom: 45px; } }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; }
  .source-column, .tool-column { gap: 16px; }
  .panel-heading { padding-right: 16px; padding-left: 16px; }
  .dropzone { margin: 16px; padding: 18px 14px; gap: 12px; }
  .drop-icon { display: none; }
  .drop-copy strong { font-size: 14px; }
  .pick-file { padding: 12px; gap: 10px; }
  .video-stage { margin: 0 16px; }
  .preview-heading, .timeline, .frame-actions, .note-composer { padding-right: 16px; padding-left: 16px; }
  .tool-block, .transcript-note, .process-panel { padding-right: 16px; padding-left: 16px; }
  .notes-list { padding-right: 16px; padding-left: 16px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 74px; flex-wrap: wrap; gap: 6px 20px; padding: 15px 0; }
  .header-tag { margin-left: auto; }
  .privacy { width: 100%; font-size: 9px; }
  .intro { padding: 30px 0 27px; }
  .intro-aside { gap: 13px; }
  .intro-aside p { font-size: 12px; }
  .pixel-mark { width: 42px; height: 42px; }
  h1 { font-size: clamp(72px, 14vw, 105px); }
  .eyebrow { margin-bottom: 16px; font-size: 9px; }
  .workspace { grid-template-columns: 1fr; }
  .source-column { gap: 16px; }
  .tool-column { grid-template-columns: 1fr; }
  .panel-heading { min-height: 60px; }
  .dropzone { min-height: 115px; }
  .drop-icon { display: flex; }
  .drop-copy strong { font-size: 16px; }
  .tool-block { padding-top: 20px; padding-bottom: 20px; }
  .tool-label h3 { font-size: 14px; }
  .hint { font-size: 11px; }
  .format-buttons button, .wide-button, .image-convert > button { min-height: 47px; }
  .results-grid { padding: 16px; }
  .review-body { grid-template-columns: 1fr; gap: 23px; padding: 20px 16px; }
  .review-feedback { border-left: 0; border-top: 1px solid var(--line); padding: 21px 0 0; }
  .review-consent { font-size: 12px; }
  #reviewPlayer { max-height: 60vh; }
  footer { align-items: flex-start; gap: 14px; }
  .footer-mark { padding-top: 3px; }
  .footer-end { display: none; }
}
@media (max-width: 420px) {
  .shell { padding-right: 16px; padding-left: 16px; }
  .intro-aside .pixel-mark { display: none; }
  .dropzone { flex-wrap: wrap; gap: 14px; padding: 17px; }
  .drop-icon { flex-basis: 33px; height: 39px; }
  .drop-copy { gap: 6px; }
  .drop-copy strong { font-size: 14px; }
  .pick-file { width: 100%; justify-content: space-between; margin-left: 0; }
  h2 { gap: 9px; font-size: 12px; }
  .panel-heading { gap: 10px; }
  .panel-heading .text-button { font-size: 10px; gap: 6px; }
  .frame-step > span { display: none; }
  .frame-actions { gap: 10px; }
  .primary-button { gap: 15px; }
  .timeline { gap: 12px; }
  .results-panel .micro-label { max-width: 85px; font-size: 8px; text-align: right; }
  .note-composer { gap: 8px; }
  .note-composer button { gap: 8px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  button:not(:disabled):active { transform: none; }
}
@media (forced-colors: active) {
  .dropzone, .panel, .video-stage, .pick-file { border: 1px solid ButtonText; }
  .status-dot { background: CanvasText; }
  .stage-empty { background-image: none; }
}

#transcriptText { width:100%; min-height:110px; margin-top:10px; padding:12px; border:1px solid var(--line); background:#0b0b0b; color:var(--white, #f4f4f4); resize:vertical; font:inherit; font-size:12px; line-height:1.6; }
#transcriptText:focus-visible { outline:1px solid var(--accent); outline-offset:2px; }

/* Source first, one focused tool at a time. */
body { min-width: 280px; }
.lab-ambient { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.shell { position: relative; z-index: 1; max-width: 1440px; }
.workspace { display: flex; flex-direction: column; gap: 32px; }
.workspace > * { width: 100%; }
.intro { padding-top: 36px; padding-bottom: 32px; }
.intro-aside p { color: #c7c5bf; font-size: clamp(12px, 1.3vw, 16px); }
.panel { background: #151514f5; }
.source-panel { border-top: 2px solid var(--accent); }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.source-picker { min-width: 0; padding: 24px; }
.source-panel .dropzone { min-height: 155px; margin: 0; padding: 24px; background: #101010aa; transition: border-color .2s, background .2s; }
.source-panel .drop-copy { gap: 10px; }
.source-panel .drop-copy strong { font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -.04em; }
.source-panel .drop-copy > span { line-height: 1.6; }
.source-panel .drop-icon { border: 0; flex-basis: 36px; font-size: 42px; }
.source-panel .pick-file { font-size: 10px; padding: 14px; }
.source-panel .metadata { max-width: none; margin-top: 15px; text-align: left; font-size: 11px; line-height: 1.8; color: #d4d2cb; }
.source-limits { margin-top: 5px; max-width: 540px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.cloud-card { padding: 24px; border-left: 1px solid var(--line); background: #192016b0; }
.cloud-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#cloudDisclosure { color: #c5c3bc; font-size: 11px; line-height: 1.8; }
.cloud-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 17px 0 10px; }
.cloud-actions .primary-button { min-height: 44px; }
#cloudStatus { color: #b3b1aa; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.cloud-retention { color: #93928b; font-size: 9px; line-height: 1.8; margin-top: 10px; }
.cloud-link { display: inline-block; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 11px; line-height: 1.8; margin-top: 10px; overflow-wrap: anywhere; }
#cloudProgress { display: block; width: 100%; height: 4px; border: 0; margin: 14px 0; background: #343431; accent-color: var(--accent); }
#cloudProgress::-webkit-progress-bar { background: #343431; }
#cloudProgress::-webkit-progress-value { background: var(--accent); }
#cloudProgress::-moz-progress-bar { background: var(--accent); }
.source-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }
.source-footer .text-button { color: var(--white); flex: 0 0 auto; }
.source-panel .process-panel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 20px; padding: 10px 24px; border-top: 1px solid var(--line); background: #0d0d0d77; }
.source-panel .process-heading { display: contents; }
.source-panel .process-heading .micro-label { grid-column: 1; grid-row: 1; color: var(--muted); }
.source-panel #status { grid-column: 2; grid-row: 1; font-size: 10px; padding-right: 70px; }
.source-panel #cancel { grid-column: 2; grid-row: 1; justify-self: end; min-height: 24px; }
.source-panel #cancel:disabled { visibility: hidden; }
.source-panel #progress { grid-column: 1 / -1; height: 2px; margin: 3px 0 0; }
.operation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.operation-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.operation-tab { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 9px; min-width: 0; padding: 17px 15px 16px; border: 1px solid var(--line); background: #141413e8; color: var(--white); transition: border-color .18s, background .18s, transform .18s; }
.operation-tab::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.operation-tab .tab-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; color: var(--muted); font-size: 19px; line-height: 1; }
.operation-tab .tab-number { color: #77776f; font-size: 9px; letter-spacing: .07em; }
.operation-tab strong { font-family: var(--pixel); font-size: 14px; font-weight: 400; line-height: 1.5; }
.operation-tab small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.operation-tab:not(:disabled):hover { background: #20271c; border-color: #61744b; color: var(--white); transform: translateY(-2px); }
.operation-tab[aria-selected="true"], .operation-tab[aria-selected="true"]:hover { background: #213015; border-color: #739c3f; }
.operation-tab[aria-selected="true"]::after { transform: scaleX(1); }
.operation-tab[aria-selected="true"] .tab-top { color: var(--accent); }
.operation-tab[aria-selected="true"] .tab-number { color: #bac8ac; }
.source-empty { display: flex; align-items: center; gap: 20px; min-height: 140px; padding: 26px; border-style: dashed; background: #111110b5; }
.empty-glyph { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #44443d; color: var(--accent); font-size: 28px; flex: 0 0 auto; }
.source-empty h3 { font-size: 14px; }
.source-empty p { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 5px; }
.source-empty .text-button { margin-left: auto; flex: 0 0 auto; }
.remote-notice { margin: 0 0 16px; padding: 14px 18px; border-left: 2px solid var(--accent); background: #1b2416; color: #c1c9ba; font-size: 11px; line-height: 1.8; }
.operation-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.operation-layout.remote-only, .operation-layout.shared-comments { grid-template-columns: minmax(0, 1fr); }
.preview-panel { position: sticky; top: 20px; }
.preview-panel .video-stage { margin: 20px 20px 0; }
.preview-panel .timeline { padding: 10px 20px 0; }
.preview-hint { padding: 7px 20px 18px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.operation-content, .operation-pane { min-width: 0; }
.operation-pane .panel-heading { min-height: 65px; padding: 14px 20px; }
.operation-pane h2 { font-size: 12px; }
.operation-pane .tool-block { padding: 20px; }
.operation-pane .tool-block:last-child { border-bottom: 0; }
.operation-pane .tool-label h3 { font-size: 14px; }
.operation-pane .hint { font-size: 11px; line-height: 1.8; }
.operation-pane .frame-actions { padding: 18px 0 0; }
.operation-pane .primary-button { min-height: 43px; }
.metadata-details:not(:empty) { margin-top: 20px; }
.metadata-details { overflow-wrap: anywhere; font-size: 11px; line-height: 1.8; }
.metadata-details pre { max-height: 420px; overflow: auto; padding: 15px; border: 1px solid var(--line); background: #0a0a0a; white-space: pre-wrap; word-break: break-word; font-size: 10px; line-height: 1.8; }
.metadata-details dl { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1fr); gap: 0 16px; margin: 0; }
.metadata-details dt, .metadata-details dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #30302c; }
.metadata-details dt { color: var(--muted); }
.metadata-details h3, .metadata-details h4 { margin: 20px 0 8px; color: var(--accent); font-weight: 500; }
.clip-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.clip-range label { display: block; color: #c4c2bb; font-size: 11px; }
.clip-range label > span { float: right; color: var(--muted); font-size: 10px; }
.clip-range input { width: 100%; min-width: 0; margin-top: 8px; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: #0d0d0d; color: var(--white); font-size: 12px; }
.transcript-label { display: block; margin-top: 24px; }
.comments-pane { display: grid; gap: 20px; }
.comments-pane .review-body { display: block; padding: 20px; }
.comments-pane .review-feedback { margin-top: 20px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
.comments-pane .review-feedback h3 { margin-bottom: 0; }
.comment-disclosure { margin-bottom: 15px; }
.comments-pane #reviewStatus { margin-top: 0; }
.comments-pane .review-panel { border-top-width: 1px; }
.notes-disclosure { padding: 17px 20px 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.remote-only .notes-panel { display: none; }
.remote-only .review-body, .shared-comments .review-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.remote-only .review-feedback, .shared-comments .review-feedback { margin-top: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
#outputPanel { animation: lab-reveal .25s ease both; }
.results-grid { padding: 20px; }
.footer-end { line-height: 2; text-align: right; }
@keyframes lab-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .intro { padding-top: 44px; padding-bottom: 36px; } }
@media (max-width: 1100px) {
  .source-picker, .cloud-card { padding: 20px; }
  .source-panel .dropzone { flex-wrap: wrap; gap: 15px; min-height: 165px; padding: 20px; }
  .source-panel .pick-file { margin-left: 0; }
  .source-panel .drop-copy { flex: 1 1 160px; }
  .source-panel .drop-icon { display: flex; }
  .operation-tab { padding: 14px 11px; }
  .operation-tab strong { font-size: 12px; }
  .operation-tab small { font-size: 8px; }
  .operation-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 800px) {
  .upload-grid { grid-template-columns: 1fr; }
  .cloud-card { border-left: 0; border-top: 1px solid var(--line); }
  .source-panel .dropzone { min-height: 130px; flex-wrap: nowrap; }
  .source-panel .pick-file { margin-left: auto; }
  .source-footer { padding: 12px 20px; }
  .operation-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .operation-tab { padding: 14px; gap: 6px; }
  .operation-tab strong { font-size: 13px; }
  .operation-tab small { font-size: 9px; }
  .operation-tab .tab-top { margin-bottom: 4px; }
  .operation-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .preview-panel .video-stage { max-height: 50vh; aspect-ratio: 16 / 9; }
  .operation-pane .tool-block { padding: 22px; }
  .remote-only .review-body, .shared-comments .review-body { display: block; }
  .remote-only .review-feedback, .shared-comments .review-feedback { margin-top: 20px; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .source-empty { padding: 22px; flex-wrap: wrap; gap: 15px; }
  .source-empty > div { flex: 1; min-width: 160px; }
  .source-empty .text-button { margin-left: 65px; }
}
@media (max-width: 480px) {
  .shell { padding-right: 16px; padding-left: 16px; }
  .intro { padding-top: 28px; padding-bottom: 25px; }
  .intro-aside .pixel-mark { display: none; }
  .intro-aside p { font-size: 10px; line-height: 1.7; }
  .workspace { gap: 26px; }
  .source-picker, .cloud-card { padding: 17px; }
  .source-panel .dropzone { flex-wrap: wrap; min-height: 165px; gap: 16px 12px; padding: 18px; }
  .source-panel .drop-copy { flex-basis: 140px; }
  .source-panel .drop-copy strong { font-size: 15px; }
  .source-panel .pick-file { width: 100%; margin-left: 0; justify-content: space-between; }
  .source-footer { padding: 12px 17px; gap: 12px; }
  .source-footer > span { font-size: 9px; }
  .source-footer .text-button { font-size: 9px; gap: 8px; }
  .source-panel .process-panel { padding: 11px 17px; gap: 6px 12px; }
  .source-panel #status { padding-right: 0; }
  .source-panel #cancel { grid-row: 2; }
  .source-panel #progress { grid-row: 3; }
  .operation-heading h2 { font-size: 11px; gap: 8px; }
  .operation-heading > .micro-label { display: none; }
  .operation-tab { padding: 12px 9px; min-height: 110px; }
  .operation-tab strong { font-size: 12px; }
  .operation-tab small { font-size: 8px; }
  .operation-tab .tab-top { font-size: 17px; }
  .source-empty { padding: 18px; }
  .source-empty p { font-size: 10px; }
  .source-empty h3 { font-size: 13px; }
  .source-empty .empty-glyph { width: 38px; height: 43px; }
  .source-empty .text-button { margin-left: 53px; }
  .operation-pane .panel-heading { padding: 14px 17px; }
  .operation-pane .panel-heading h2 { font-size: 11px; }
  .operation-pane .tool-block { padding: 20px 17px; }
  .preview-panel .video-stage { margin: 17px 17px 0; }
  .preview-panel .timeline { padding-left: 17px; padding-right: 17px; }
  .preview-hint { padding-left: 17px; padding-right: 17px; }
  .comments-pane .review-body { padding: 17px; }
  .notes-disclosure { padding-right: 17px; padding-left: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-ambient { display: none; }
  .operation-tab:not(:disabled):hover { transform: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) { .lab-ambient { display: none; } .operation-tab[aria-selected="true"] { border: 3px solid Highlight; } }

/* Private notes stay folded underneath the shared review. */
.notes-panel > summary { cursor: pointer; list-style: none; user-select: none; }
.notes-panel > summary::-webkit-details-marker { display: none; }
.notes-panel:not([open]) > summary { border-bottom: 0; }
.notes-toggle { color: var(--accent); font-size: 21px; transition: transform .2s; }
.notes-panel[open] .notes-toggle { transform: rotate(45deg); }
.notes-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 20px 0; }
.notes-actions > span { color: var(--muted); font-size: 9px; line-height: 1.7; }
#localNoteTime { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .notes-actions { padding-right: 17px; padding-left: 17px; } }

/* Editing controls live with the player, independent of the selected tool. */
.player-tools { padding: 8px 20px 20px; }
.player-transport { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-transport .frame-step { gap: 8px; }
.player-transport .frame-step button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: auto; min-width: 102px; min-height: 40px; padding: 9px 12px; font-size: 11px; }
.player-step-info { color: var(--muted); font-size: 9px; line-height: 1.6; text-align: right; }
.player-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.range-point { min-width: 0; }
.range-point > label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #bcbab3; font-size: 9px; letter-spacing: .08em; }
.range-point > label > span { color: var(--muted); letter-spacing: 0; }
.range-entry { display: flex; min-width: 0; }
.range-entry input { display: block; width: 0; flex: 1; min-width: 0; min-height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 0; background: #0d0d0d; color: var(--white); font-size: 11px; font-variant-numeric: tabular-nums; }
.range-entry button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-left: 0; background: #222220; font-size: 10px; }
.range-entry button > span { color: var(--accent); font-size: 16px; }
.range-entry button:disabled > span { color: inherit; }
.tool-details { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.tool-details summary { width: fit-content; cursor: pointer; text-underline-offset: 3px; }
.tool-details summary:hover { color: var(--white); }
.tool-details p { margin-top: 8px; }
#panel-frames .frame-actions > .primary-button { width: 100%; }
#panel-info .tool-block > .hint:first-child, #panel-audio .tool-block > .hint:first-child { padding-top: 0; }
@media (max-width: 1100px) { .range-entry { flex-wrap: wrap; } .range-entry input { flex-basis: 100%; } .range-entry button { width: 100%; border: 1px solid var(--line); border-top: 0; } }
@media (max-width: 800px) { .range-entry { flex-wrap: nowrap; } .range-entry input { flex-basis: auto; } .range-entry button { width: auto; border-top: 1px solid var(--line); border-left: 0; } }
@media (max-width: 480px) { .player-tools { padding: 8px 17px 17px; } .player-transport { align-items: flex-start; gap: 8px; flex-wrap: wrap; } .player-transport .frame-step { flex: 1; } .player-transport .frame-step button { flex: 1; min-width: 0; padding: 9px; gap: 6px; } .player-step-info { align-self: center; font-size: 8px; } .player-range { gap: 10px; } .range-entry { flex-wrap: wrap; } .range-entry input { flex-basis: 100%; } .range-entry button { width: 100%; border-left: 1px solid var(--line); border-top: 0; } }

/* Local-first workbench: one large entry point, then source and accordion. */
body { min-width: 280px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr); align-items: start; gap: 28px; }
.source-column { display: grid; gap: 18px; min-width: 0; }
.source-panel { border-top: 1px solid var(--line); }
.source-panel > .panel-heading { min-height: 48px; padding: 9px 20px; }
.source-panel > .panel-heading h2 { font-size: 11px; }
.upload-grid { display: block; }
.source-picker { padding: 16px; }
.source-panel .dropzone { min-height: 106px; gap: 15px; padding: 18px; flex-wrap: nowrap; }
.source-panel .drop-copy { flex: 1; min-width: 0; }
.source-panel .drop-copy strong { font-size: 14px; }
.source-panel .drop-copy > span { font-size: 10px; }
.source-panel .drop-icon { flex-basis: 24px; font-size: 30px; }
.source-panel .pick-file { width: auto; margin-left: auto; padding: 12px; font-size: 9px; }
.source-panel .metadata { margin-top: 12px; font-size: 10px; }
.source-limits { font-size: 9px; }
.source-footer { padding: 9px 20px; }
.source-panel .process-panel { padding: 9px 20px; }
.preview-panel { position: static; }
.preview-panel .panel-heading { min-height: 49px; }
.preview-panel .panel-heading h2 { font-size: 11px; }
.preview-panel .video-stage { margin: 16px 16px 0; }
.preview-panel .timeline { padding: 10px 16px 0; }
.operation-workspace { min-width: 0; }
.operation-heading { min-height: 49px; margin: 0; padding: 0 0 17px; }
.operation-heading h2 { font-size: 11px; }
.operation-heading > .micro-label { font-size: 8px; }
.operation-layout { display: contents; }
.operation-tabs { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.operation-group { border-bottom: 1px solid var(--line); min-width: 0; }
.category-heading { margin: 0; }
.operation-tab { display: flex; flex-direction: row; align-items: center; gap: 18px; width: 100%; min-height: 81px; padding: 22px 15px; border: 0; background: #101010b8; }
.operation-tab::after { display: none; }
.operation-tab .tab-number { flex: 0 0 20px; font-size: 9px; color: #85857c; }
.operation-tab strong { flex: 1; font-size: clamp(15px, 1.6vw, 21px); }
.operation-tab .tab-toggle { font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.operation-tab:not(:disabled):hover { transform: none; color: var(--white); background: #1b2116; }
.operation-tab[aria-expanded="true"] { background: #1b2714; }
.operation-tab[aria-expanded="true"] strong { color: var(--accent); }
.operation-tab[aria-expanded="true"] .tab-toggle { transform: rotate(45deg); }
.operation-pane { border: 0; background: #161714; animation: lab-reveal .2s ease both; }
.operation-pane > .panel-heading { display: none; }
.operation-pane .tool-block { padding: 22px 20px; }
.operation-pane .tool-block + .tool-block { border-top: 1px solid #30322b; }
.operation-pane .tool-block { border-bottom: 0; }
.operation-pane .tool-label h3, .operation-pane h3 { font-size: 13px; }
.operation-pane .hint { font-size: 10px; }
.operation-pane .wide-button { min-height: 44px; }
.operation-pane .cloud-card { border: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; }
.comments-pane { gap: 0; }
.comments-pane .panel { border: 0; background: transparent; }
.comments-pane .review-panel > .panel-heading { display: none; }
.comments-pane .review-body, .remote-only .review-body, .shared-comments .review-body { display: block; padding: 20px; }
.comments-pane .review-feedback, .remote-only .review-feedback, .shared-comments .review-feedback { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
.comments-pane .notes-panel { border-top: 1px solid var(--line); }
.comments-pane .notes-panel h2 { font-size: 10px; }
.cloud-heading { align-items: flex-start; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.field-grid label { display: grid; gap: 8px; min-width: 0; color: var(--muted); font-size: 10px; }
.field-grid input, .control-row select, #subtitlesText { width: 100%; min-width: 0; min-height: 43px; border: 1px solid var(--line); border-radius: 0; background: #0d0e0c; color: var(--white); padding: 10px 12px; font-family: var(--mono); font-size: 12px; }
.control-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.control-row select { width: auto; min-width: 105px; flex: 1; }
.control-row > .primary-button { flex: 1; white-space: nowrap; }
#subtitlesText { margin-top: 16px; line-height: 1.7; resize: vertical; }
.subtitle-list { padding-left: 22px; margin: 20px 0 0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.subtitle-list:empty { display: none; }
.subtitle-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.subtitle-list button { margin: 8px 8px 0 0; padding: 6px 8px; border: 1px solid var(--line); background: transparent; font-size: 10px; }
.unavailable-title { margin-top: 18px; }
#outputPanel { grid-column: 1 / -1; }
#sourceEmpty { display: none !important; }
body[data-source="empty"] .workspace { display: block; }
body[data-source="empty"] .source-column { width: min(100%, 1010px); margin: 0 auto; }
body[data-source="empty"] .source-panel { border: 0; background: transparent; }
body[data-source="empty"] .source-panel > .panel-heading,
body[data-source="empty"] .source-panel .metadata,
body[data-source="empty"] .source-panel .source-limits,
body[data-source="empty"] .source-panel #chooseOperation,
body[data-source="empty"] #previewPanel,
body[data-source="empty"] .operation-workspace { display: none; }
body[data-source="empty"] .source-picker { padding: 0; }
body[data-source="empty"] .source-panel .dropzone { min-height: clamp(330px, 48vh, 560px); display: flex; flex-direction: column; justify-content: center; gap: 25px; padding: 48px 24px; border: 1px dashed #718350; background: radial-gradient(ellipse at center, #2432188c, #101210a3 70%); }
body[data-source="empty"] .source-panel .drop-icon { flex: 0 0 auto; height: 70px; font-size: 70px; }
body[data-source="empty"] .source-panel .drop-copy { flex: 0 0 auto; gap: 16px; text-align: center; }
body[data-source="empty"] .source-panel .drop-copy strong { font-family: var(--pixel); font-size: clamp(24px, 3.3vw, 43px); line-height: 1.5; color: var(--white); }
body[data-source="empty"] .source-panel .drop-copy > span { font-size: 11px; }
body[data-source="empty"] .source-panel .pick-file { margin: 4px 0 0; gap: 35px; padding: 15px 20px; color: #101010; background: var(--accent); font-size: 11px; }
body[data-source="empty"] .source-footer { justify-content: center; padding: 17px; border: 0; font-size: 10px; }
body:not([data-source="empty"]) .source-column { animation: source-arrive .38s cubic-bezier(.2,.7,.2,1) both; }
body:not([data-source="empty"]) .operation-workspace { animation: lab-reveal .35s .08s ease both; }
body[data-source="remote"] .source-column:has(#previewPanel[hidden]) { align-self: start; }
@keyframes source-arrive { from { opacity: .3; transform: translateX(35px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1000px) { .workspace { grid-template-columns: minmax(0, 1.12fr) minmax(300px, 1fr); gap: 20px; } .source-panel .dropzone { flex-wrap: wrap; } .source-panel .drop-copy { flex-basis: 150px; } .source-panel .pick-file { margin-left: 39px; } .operation-tab { min-height: 73px; } }
@media (max-width: 800px) {
  .workspace { grid-template-columns: 1fr; gap: 26px; }
  .intro { padding: 30px 0; }
  .operation-heading { padding-bottom: 15px; }
  .operation-tab { min-height: 70px; padding: 20px 16px; }
  .operation-tab strong { font-size: 19px; }
  .source-panel .dropzone { flex-wrap: nowrap; }
  .source-panel .pick-file { margin-left: auto; }
  .source-panel .drop-copy { flex-basis: auto; }
  .preview-panel .video-stage { max-height: none; }
  body[data-source="empty"] .source-panel .dropzone { min-height: 390px; }
  body[data-source="empty"] .source-panel .drop-copy { flex-basis: auto; }
  body[data-source="empty"] .source-panel .pick-file { margin: 4px 0 0; }
}
@media (max-width: 480px) {
  .intro-aside p { font-size: 10px; }
  .site-header { min-height: 69px; gap: 12px; }
  .header-tag { display: none; }
  .privacy { font-size: 9px; }
  .source-panel .dropzone { flex-wrap: wrap; gap: 12px; }
  .source-panel .drop-copy { flex: 1 1 160px; }
  .source-panel .pick-file { margin-left: 36px; }
  .source-footer { padding: 10px 16px; }
  .operation-tab strong { font-size: 17px; }
  body[data-source="empty"] .source-panel .dropzone { min-height: 360px; padding: 32px 17px; gap: 24px; }
  body[data-source="empty"] .source-panel .drop-copy { flex: 0 0 auto; }
  body[data-source="empty"] .source-panel .drop-copy strong { font-size: 25px; }
  body[data-source="empty"] .source-panel .pick-file { width: auto; margin: 0; }
  .control-row > .primary-button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

body[data-source="empty"] .source-panel .process-panel { background: transparent; border: 0; padding: 0 17px 6px; }
body[data-source="empty"] .source-panel .process-heading .micro-label, body[data-source="empty"] .source-panel #progress { display: none; }
body[data-source="empty"] .source-panel #status { grid-column: 1 / -1; padding: 0; text-align: center; color: var(--muted); }

/* Motion identity: readable type, departing pixels and short interaction accents. */
.motion-title { display: flex; align-items: baseline; gap: .27em; font-size: clamp(42px, 7.3vw, 102px); letter-spacing: -.045em; line-height: 1.08; }
.motion-title > span { color: var(--white); }
.motion-word { position: relative; display: inline-block; isolation: isolate; }
.motion-ink { display: block; animation: motion-edge 6s cubic-bezier(.2,.65,.3,1) infinite; }
.lab-word { white-space: nowrap; }
.title-cursor { color: var(--accent); }
/* Exact font contours, subdivided into half-cell squares for the full title. */
.motion-title{position:relative;display:block;width:max-content;max-width:100%;line-height:1.08}
.title-readable{display:block;white-space:nowrap}
.title-pixels{display:none;width:6.055em;height:.7em;max-width:100%;overflow:visible;fill:currentColor;shape-rendering:crispEdges;pointer-events:none}
.title-pixel{transition:none;animation:none;rx:0;ry:0}
.motion-title[data-pixel-title=active] .title-readable{visibility:hidden}
.motion-title[data-pixel-title=active] .title-pixels{display:block;position:absolute;left:0;top:.215em}
#title-motion-toggle{width:32px;height:32px;min-width:44px;min-height:44px;padding:8px;margin-top:6px;border:1px solid var(--line);background:transparent;color:var(--muted);font:12px var(--mono)}
#title-motion-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.trim-entering { position:relative; }
.trim-outline { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:2; color:var(--accent); }
.trim-outline path { fill:none; stroke:currentColor; stroke-width:1; vector-effect:non-scaling-stroke; }
@media(prefers-reduced-motion:reduce) { .title-pixels {display:none!important} .motion-title .title-readable {visibility:visible!important} #title-motion-toggle {display:none} .trim-outline {display:none} }
.decode-word, .rgb-word, .pixel-word { position: relative; display: inline-block; }
.operation-tab:is(:hover,:focus-visible) .decode-word { animation: type-decode .42s steps(5,end) both; }
.operation-tab:is(:hover,:focus-visible) .rgb-word { animation: rgb-offset .4s steps(2,end) both; }
.operation-tab:is(:hover,:focus-visible) .pixel-word { animation: pixel-resolve .38s steps(4,end) both; }
.dropzone:is(:hover,:focus-within) .decode-word { animation: type-decode .42s steps(5,end) both; }
@keyframes type-decode { 0% { clip-path: inset(0 65% 0 0); text-shadow: 6px 0 #b4ff3970; transform: translateX(2px); } 36% { clip-path: inset(0 32% 0 0); text-shadow: -3px 0 #b4ff3950; } 72% { clip-path: inset(0 9% 0 0); transform: translateX(0); } 100% { clip-path: inset(0); text-shadow: none; transform: none; } }
@keyframes rgb-offset { 0%,100% { text-shadow: none; transform: none; } 20% { text-shadow: -2px 0 #ff6380,2px 0 #61d9ff; transform: translateX(1px); } 45% { text-shadow: 2px 0 #ff6380,-2px 0 #61d9ff; transform: translateX(-1px); } 70% { text-shadow: -1px 0 #ff638070,1px 0 #61d9ff70; transform: none; } }
@keyframes pixel-resolve { 0% { clip-path: polygon(0 0,100% 0,100% 25%,85% 25%,85% 50%,100% 50%,100% 100%,0 100%,0 65%,8% 65%,8% 35%,0 35%); transform: translateY(1px); } 55% { clip-path: polygon(0 0,100% 0,100% 40%,95% 40%,95% 60%,100% 60%,100% 100%,0 100%); } 100% { clip-path: inset(0); transform: none; } }
.intro-aside { padding-bottom: 10px; }
.intro-aside .pixel-mark { width: 40px; height: 40px; opacity: .7; }
.operation-tabs { border: 0; gap: 5px; }
.operation-group { border: 0; }
.operation-tab { background: #141511a8; min-height: 77px; padding-left: 18px; padding-right: 18px; }
.operation-pane { background: #171914; }
.operation-pane .tool-block + .tool-block { border: 0; padding-top: 10px; }
.source-panel, .preview-panel { border: 0; background: #151612e6; }
.source-panel > .panel-heading, .preview-panel > .panel-heading { border: 0; }
.source-footer, .source-panel .process-panel { border: 0; }
.player-range { border: 0; padding-top: 6px; }
.site-header { border: 0; }
footer { border-top: 0; }
body[data-source="empty"] .source-panel .dropzone { border-color: #5c753c; }
body[data-source="empty"] .source-footer { opacity: .8; }
@media (max-width: 800px) { .motion-title { font-size: clamp(35px, 8vw, 63px); } .intro-aside .pixel-mark { width: 30px; height: 30px; } .intro-aside { padding-bottom: 5px; } }
@media (max-width: 480px) { .motion-title { font-size: clamp(30px, 8.7vw, 42px); gap: .21em; } .intro { gap: 0; padding-top: 36px; padding-bottom: 30px; } .intro-aside { display: none; } .eyebrow { font-size: 8px; letter-spacing: .12em; } .operation-tab { min-height: 68px; } }
@media (prefers-reduced-motion: reduce) { .pixel-drift { display: none; } .motion-ink { clip-path: none; } .decode-word, .rgb-word, .pixel-word { clip-path: none !important; transform: none !important; text-shadow: none !important; } }
.pick-file > .decode-word { font-size: inherit; line-height: 1.4; }

/* Optional context is one quiet, keyboard-accessible information disclosure. */
.site-header { position: relative; min-height: 76px; }
.site-info { position: relative; z-index: 20; margin-left: auto; }
.site-info > summary { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #48503c; color: var(--accent); list-style: none; cursor: pointer; font-family: var(--mono); font-size: 16px; }
.site-info > summary::-webkit-details-marker { display: none; }
.site-info > summary:hover, .site-info[open] > summary { background: var(--accent); color: #101010; border-color: var(--accent); }
.site-info-content { position: absolute; right: 0; top: 48px; width: min(365px, calc(100vw - 40px)); max-height: min(660px, 78vh); overflow-y: auto; padding: 25px; background: #181b14; border: 1px solid #48503c; box-shadow: 0 20px 60px #0009; }
.site-info-content h2 { color: var(--accent); font-size: 14px; margin-bottom: 15px; }
.site-info-content h3 { color: var(--white); font-size: 11px; margin-top: 20px; margin-bottom: 7px; }
.site-info-content p, .site-info-content li { color: #bbbfb3; font-size: 10px; line-height: 1.85; }
.site-info-content p + p { margin-top: 9px; }
.site-info-content ul { padding-left: 17px; margin: 0; }
.info-links { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 18px; }
.info-links a { color: var(--accent); }
.source-footer { display: none !important; }
.operation-heading { min-height: 40px; }
.operation-heading h2 { color: #999f8e; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; }
.intro { padding-top: 29px; padding-bottom: 37px; }
body[data-source="empty"] .source-panel .process-panel { padding-top: 15px; }
.source-panel .process-heading .micro-label { display: none; }
.source-panel #status { grid-column: 1 / -1; }
.source-panel #cancel { grid-column: 1 / -1; }
@media (max-width: 480px) { .site-header { min-height: 65px; } .site-info > summary { width: 34px; height: 34px; } .site-info-content { width: calc(100vw - 32px); padding: 22px; } .intro { padding-top: 28px; padding-bottom: 30px; } }

/* Short pages fill the viewport; taller workspaces keep their natural scroll height. */
body[data-site-page=lab]{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body[data-site-page=lab]>.shell{flex:1 0 auto;width:100%}
body[data-site-page=lab]>footer.ks-language-footer{flex-shrink:0;margin-top:auto}
/* Keep the language footer compact without reducing keyboard/touch targets. */
@media(min-width:801px){body[data-site-page=lab]>footer.ks-language-footer{min-height:44px;flex:0 0 44px;padding:0 var(--ks-header-gutter,20px);gap:8px}body[data-site-page=lab]>footer.ks-language-footer .ks-language-switch{gap:2px;font-size:10px}body[data-site-page=lab]>footer.ks-language-footer .ks-language-switch button{padding:4px;min-width:44px;min-height:44px}}

/* Local PSD artwork picker; retains the existing source-column layout. */
.psd-panel{padding:18px;min-width:0}.psd-panel[hidden]{display:none}#psdSummary{overflow-wrap:anywhere;font-size:12px}#psdItems{list-style:none;padding:0;margin:12px 0 0;max-height:380px;overflow:auto;display:grid;gap:6px}.psd-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:9px;border:1px solid var(--line);background:var(--bg);color:var(--white);cursor:pointer}.psd-item[aria-pressed=true]{border-color:var(--accent)}.psd-item img{width:52px;height:52px;object-fit:contain;flex-shrink:0;background:repeating-conic-gradient(#222 0% 25%,#303030 0% 50%) 0/12px 12px}.psd-item>span{min-width:0}.psd-item strong,.psd-item small{display:block;overflow-wrap:anywhere}.psd-item small{font-size:11px;color:var(--muted);margin-top:5px}.psd-warning{font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.psd-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.psd-item:disabled{opacity:.55;cursor:default}

.psd-kind+.psd-kind::before{content:" · "}.psd-warning>span{display:block}
