/* Reverie trial. Colours are Reverie's own tokens (neutral greys, one blue accent). */
:root {
  --paper: #fbfbfa; --surface: #ffffff; --surface-subtle: #f7f7f5; --surface-raised: #f1f1ef; --surface-hover: #ebebea;
  --ink: #37352f; --ink-strong: #1f1e1b; --secondary: #5f5e5b; --muted: #6f6e6a;
  --line: #e9e9e7; --line-strong: #d9d9d6;
  --accent: #1f6cc4; --accent-dark: #1858a3; --accent-soft: #e8f1fb; --accent-line: #93b8e6; --accent-fill: #1f74d6; --accent-ink: #ffffff;
  --danger: #9c332d; --danger-line: #cfaca5; --danger-soft: #fff3f0;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191919; --surface: #202020; --surface-subtle: #242424; --surface-raised: #2b2b2b; --surface-hover: #333333;
    --ink: #e6e6e4; --ink-strong: #f5f5f4; --secondary: #c3c2bf; --muted: #9b9a97;
    --line: #2f2f2f; --line-strong: #3f3f3f;
    --accent: #6ea8ee; --accent-dark: #94c0f4; --accent-soft: #1c2a3b; --accent-line: #3f6ea6; --accent-fill: #2f6fc4; --accent-ink: #ffffff;
    --danger: #ffaba1; --danger-line: #80504a; --danger-soft: #362320;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; overflow: hidden; }
#app { height: 100vh; display: grid; grid-template-rows: 44px minmax(0, 1fr) 28px; }
#screen, .screen-root, .scr { height: 100%; min-height: 0; }
h2 { font-size: 17px; line-height: 1.3; margin: 2px 0; font-weight: 600; color: var(--ink-strong); }
h2 b { font-family: var(--mono); font-weight: 600; margin-right: 4px; }
h3 { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
h4 { font-size: 13px; margin: 0; }
h5 { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 16px 0 4px; }
p { margin: 4px 0; }
q { quotes: "“" "”"; color: var(--secondary); }
button, select, input, textarea { font: inherit; color: inherit; }
button { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); cursor: pointer; }
button:hover:not(:disabled) { background: var(--surface-hover); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.primary { background: var(--accent-fill); color: var(--accent-ink); border-color: transparent; font-weight: 500; }
button.primary:hover:not(:disabled) { background: var(--accent-dark); }
button.link { border: 0; background: none; color: var(--accent); padding: 2px 4px; }
kbd { font: 10.5px var(--mono); padding: 1px 4px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-raised); color: var(--secondary); margin-left: 4px; }
button.primary kbd { background: transparent; border-color: rgba(255, 255, 255, .45); color: inherit; }
.sub { color: var(--muted); font-size: 12px; }
.fine { margin-top: 18px; max-width: 62ch; }
.cite { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scene-head { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 6px 4px; }
.spacer { flex: 1; }
.empty { color: var(--muted); padding: 10px 6px; }
.dialogue { color: var(--secondary); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; background: var(--surface); }
.chip i { font-style: normal; font: 10px var(--mono); color: var(--muted); }
.chip.from-script { border-color: var(--accent-line); background: var(--accent-soft); }
canvas.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.st { font-style: normal; font-size: 11px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.st.picked { color: var(--accent-dark); border-color: var(--accent-line); background: var(--accent-soft); }

/* shell */
.top { display: flex; align-items: center; gap: 20px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { font-weight: 600; color: var(--ink-strong); }
.brand span { font-weight: 400; color: var(--muted); margin-left: 3px; }
nav { display: flex; gap: 2px; flex: 1; }
nav button { border: 0; background: none; color: var(--secondary); padding: 6px 9px; display: inline-flex; align-items: center; gap: 5px; }
nav button.on { background: var(--surface-raised); color: var(--ink-strong); font-weight: 500; }
nav kbd { margin-left: 2px; border: 0; background: none; color: var(--muted); padding: 0; }
.badge { font: 600 10.5px var(--mono); background: var(--accent-fill); color: var(--accent-ink); border-radius: 999px; padding: 0 6px; }
.top-right { display: flex; gap: 6px; align-items: center; }
.status { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: 12px; min-width: 0; }
.status .last { border: 0; background: none; padding: 0; color: var(--secondary); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.status .kind { color: var(--accent); font-weight: 500; }
.status .sub { white-space: nowrap; }
.record { position: fixed; top: 44px; right: 0; bottom: 28px; width: 370px; max-width: 92vw; background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: -10px 0 30px rgba(0, 0, 0, .1); overflow: auto; padding: 14px 16px; z-index: 20; }
.record header { display: flex; justify-content: space-between; align-items: center; }
.record header h3 { margin: 0; }
.record h4 { margin: 16px 0 2px; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.counts div { border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-weight: 500; }
.counts b { display: block; font-size: 19px; color: var(--ink-strong); }
.counts span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.record ol { list-style: none; margin: 0; padding: 0; }
.record li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.record li div { display: flex; gap: 8px; align-items: center; font-size: 11.5px; }
.record .kind { font: 600 10.5px var(--mono); padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px; }
.record .from { color: var(--muted); flex: 1; }
.record .tag.new { color: var(--accent); font-weight: 500; }
.record .tag.built { color: var(--muted); }
.toast { position: fixed; bottom: 42px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; background: var(--ink-strong); color: var(--paper); padding: 9px 14px; border-radius: 10px; z-index: 30; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); max-width: 90vw; }
.toast[hidden] { display: none; }
.toast button.link { color: var(--accent-line); font-weight: 600; white-space: nowrap; }

/* script */
.script-scr { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.15fr) minmax(280px, .9fr); }
.col { min-height: 0; overflow: auto; padding: 16px 18px; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col > header { margin-bottom: 10px; }
.col.editor { display: flex; flex-direction: column; background: var(--surface); }
.col.editor textarea { flex: 1; min-height: 0; width: 100%; border: 0; outline: 0; resize: none; background: transparent; font: 13px/1.65 var(--mono); padding: 0; }
.shot-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 6px; border-radius: 8px; align-items: start; }
.shot-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shot-line b { font-family: var(--mono); margin-right: 3px; }
.shot-status { font-size: 11.5px; color: var(--muted); }
.shot-status.missing { color: var(--danger); }
.rule { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule .rid { font: 600 11.5px var(--mono); color: var(--accent); margin-right: 4px; }
.rule .meta, p.meta { font-size: 11.5px; color: var(--muted); }
.rule ul, ul.notes { margin: 6px 0 0; padding-left: 16px; }
.rule li, ul.notes li { margin-bottom: 4px; }

/* generate */
.gen-scr { display: grid; grid-template-columns: 250px minmax(360px, 1fr) minmax(300px, 38%); }
.gen-shots { overflow: auto; padding: 6px 10px 16px; border-right: 1px solid var(--line); }
.gen-shot { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; align-items: baseline; }
.gen-shot b { font-family: var(--mono); }
.gen-shot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--secondary); }
.gen-shot i { font-style: normal; font-size: 11px; color: var(--muted); }
.gen-shot i.missing { color: var(--danger); }
.gen-shot i.ok { color: var(--accent); }
.gen-shot.on { background: var(--accent-soft); }
.gen-main { overflow: auto; padding: 18px 26px 30px; }
.gen-main > * { max-width: 720px; }
.field { margin-top: 18px; }
.field > label { display: block; font-size: 11.5px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
textarea.prompt, textarea.reason, .lib-search { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); resize: vertical; font-size: 14px; }
.lint { margin-top: 10px; display: grid; gap: 6px; }
.lint-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lint-row.warn { border-color: var(--danger-line); background: var(--danger-soft); }
.lint-src { font: 600 11px var(--mono); padding-top: 2px; color: var(--muted); }
.lint-row.warn .lint-src { color: var(--danger); }
.lint-row.ok .lint-src { color: var(--accent); }
.lint-row button { white-space: nowrap; }
.actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.progress b { display: block; height: 100%; background: var(--accent-fill); animation: grow 1.5s linear forwards; }
@keyframes grow { from { width: 0; } to { width: 100%; } }
.take-list { display: grid; gap: 4px; }
.take-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; text-align: left; padding: 6px; border-color: transparent; background: none; border-radius: 8px; align-items: center; }
.take-row.on { border-color: var(--accent-line); background: var(--accent-soft); }
.gen-preview { padding: 18px; border-left: 1px solid var(--line); background: var(--surface-subtle); }
.gen-preview canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.pv-cap { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* judge */
.judge-scr { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.judge-main { overflow: auto; padding: 16px 26px 28px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 4px; }
.pairs figure { margin: 0; cursor: pointer; }
.pairs canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; outline: 3px solid transparent; outline-offset: 2px; }
.pairs figure.sel canvas { outline-color: var(--accent-fill); }
.pairs figure.dim canvas { opacity: .4; }
.pairs figcaption { margin-top: 8px; font-size: 12.5px; color: var(--secondary); }
.pairs figcaption kbd { margin: 0 6px 0 0; font-size: 12px; padding: 1px 6px; }
.picks, .cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.picks button.on, .cats button.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-dark); font-weight: 500; }
.cats button { border-radius: 999px; font-size: 12px; padding: 3px 10px; }
.why { display: flex; gap: 8px; margin-top: 12px; align-items: flex-start; max-width: 860px; }
.why textarea { flex: 1; resize: none; }
.why.need textarea { border-color: var(--danger); }
.warn-line { color: var(--danger); font-size: 12px; }
.reveal { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 10px; max-width: 860px; }
.reveal h3 { color: var(--accent-dark); }
.reveal ul { margin: 0 0 12px; padding-left: 18px; }
.reveal li { margin-bottom: 3px; }
.judge-side { border-left: 1px solid var(--line); padding: 14px 16px; overflow: auto; background: var(--surface-subtle); }
.judge-side h3 + .sub { margin-bottom: 14px; }
.hist { padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.hist:last-of-type { margin-bottom: 16px; }
.hist q { display: block; font-size: 12px; margin-top: 2px; }
.empty-state { max-width: 460px; margin: 14vh auto 0; text-align: center; }
.empty-state p { color: var(--secondary); margin: 10px 0; }

/* library */
.lib-scr { display: flex; flex-direction: column; position: relative; }
.lib-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.lib-search { width: 320px; font-size: 13px; padding: 6px 10px; resize: none; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--secondary); background: var(--surface); }
.pill select { border: 0; background: transparent; font-size: 12px; padding: 2px 2px; width: 78px; field-sizing: content; max-width: 190px; cursor: pointer; }
.pill.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); }
.lib-grid { flex: 1; min-height: 0; overflow: auto; padding: 14px 12px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; align-content: start; }
.card { position: relative; display: flex; flex-direction: column; gap: 5px; text-align: left; border-color: transparent; background: none; padding: 6px; border-radius: 10px; }
.card.sel { border-color: var(--accent-fill); background: var(--accent-soft); }
.card .num { position: absolute; top: 12px; left: 12px; font: 600 11px var(--mono); font-style: normal; background: var(--accent-fill); color: var(--accent-ink); border-radius: 999px; min-width: 20px; height: 20px; line-height: 20px; text-align: center; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sel-bar { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 10px 8px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16); white-space: nowrap; }

/* timeline (layout after Editroom) */
.tl-scr { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tl-upper { display: grid; grid-template-columns: 270px minmax(0, 1fr) 280px; min-height: 0; }
.tl-script, .tl-insp { overflow: auto; padding: 12px 12px 16px; min-height: 0; }
.tl-script { border-right: 1px solid var(--line); }
.tl-insp { border-left: 1px solid var(--line); padding: 12px 14px; }
.tl-script .scene-head:first-of-type { padding-top: 2px; }
.sline { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; width: 100%; text-align: left; border: 0; background: none; padding: 5px 6px; align-items: baseline; }
.sline b { font-family: var(--mono); }
.sline em { display: block; color: var(--muted); }
.sline i { font-style: normal; font-size: 11px; color: var(--accent); }
.sline.on { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent-fill); }
.sline.missing span { color: var(--muted); }
.tl-viewer { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-subtle); }
.tv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 14px 14px 0; overflow: hidden; }
.tv-wrap { position: relative; line-height: 0; }
.tv-canvas { display: block; background: #000; border-radius: 4px; }
.tv-label { position: absolute; top: 8px; left: 8px; font: 11px/1.5 var(--mono); color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 7px; border-radius: 4px; }
.tv-label:empty { display: none; }
.tv-caption { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; color: #fff; font-size: 16px; line-height: 1.5; pointer-events: none; }
.tv-caption span { background: rgba(0, 0, 0, .55); padding: 2px 10px; border-radius: 3px; }
.transport { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; }
.tc-now { font: 500 16px var(--mono); color: var(--ink-strong); }
.tc-dur { font: 11.5px var(--mono); color: var(--muted); justify-self: end; }
.play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink-strong); position: relative; padding: 0; }
.play:hover:not(:disabled) { background: var(--ink); }
.play::before { content: ""; position: absolute; inset: 10px 9px 10px 13px; background: var(--paper); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play.on::before { inset: 11px 11px; clip-path: none; background: linear-gradient(90deg, var(--paper) 0 36%, transparent 36% 64%, var(--paper) 64%); }
.tl-insp h3 { text-transform: none; letter-spacing: 0; font: 600 15px var(--mono); color: var(--ink-strong); margin-bottom: 4px; }
.tl-insp h3 .sub { font: 400 12px -apple-system, sans-serif; margin-left: 6px; }
.tl-insp .line { color: var(--secondary); margin-bottom: 10px; }
.insp-takes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.insp-takes button { width: 78px; padding: 3px 3px 2px; border-color: var(--line); background: none; font-size: 10.5px; color: var(--muted); }
.insp-takes canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 3px; margin-bottom: 2px; }
.insp-takes button.on { border-color: var(--accent-fill); color: var(--accent-dark); }
.check { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.tl-insp dl { margin: 12px 0; }
.tl-insp dt { font-size: 11px; color: var(--muted); }
.tl-insp dd { margin: 0 0 8px; }
.row { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-lower { border-top: 1px solid var(--line-strong); background: var(--surface); min-width: 0; }
.tl-tools { display: flex; gap: 6px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.tl-tools button { padding: 3px 9px; font-size: 12px; }
.tl-scroll { overflow-x: auto; overflow-y: hidden; padding: 0 16px; user-select: none; -webkit-user-select: none; }
.tl-inner { position: relative; height: 142px; min-width: 100%; }
.tl-ruler { position: relative; height: 24px; cursor: text; }
.tl-ruler i { position: absolute; top: 0; height: 5px; border-left: 1px solid var(--line-strong); font: 10px var(--mono); font-style: normal; color: var(--muted); padding: 7px 0 0 4px; white-space: nowrap; }
.tl-ruler i.major { height: 22px; }
.tl-lane { position: relative; }
.tl-scenes, .tl-lines { height: 21px; }
.scene-block, .line-block { position: absolute; top: 2px; height: 17px; line-height: 16px; font-size: 10.5px; padding: 0 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-block { background: var(--surface-raised); color: var(--secondary); letter-spacing: .03em; }
.scene-block b { font-family: var(--mono); }
.line-block { border: 1px dashed var(--line-strong); color: var(--muted); line-height: 15px; }
.tl-clips { height: 64px; margin-top: 4px; }
.clip { position: absolute; top: 0; height: 60px; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-strong); cursor: grab; }
.clip canvas { display: block; width: 100%; height: 100%; }
.clip.slate { box-shadow: 0 0 0 1px var(--danger-line); }
.clip.sel { box-shadow: 0 0 0 2px var(--accent-fill); }
.clip.dragging { opacity: .45; }
.clip-label { position: absolute; left: 5px; top: 4px; font-size: 10.5px; line-height: 15px; color: #fff; background: rgba(0, 0, 0, .6); padding: 0 5px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.clip-label b { font-family: var(--mono); }
.hl, .hr { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; }
.hl { left: 0; } .hr { right: 0; }
.clip:hover .hl::after, .clip:hover .hr::after, .clip.sel .hl::after, .clip.sel .hr::after { content: ""; position: absolute; top: 18px; bottom: 18px; left: 3px; width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.tl-drop { position: absolute; top: -3px; width: 3px; height: 66px; background: var(--accent-fill); border-radius: 2px; }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: #ff4a1c; pointer-events: none; }
.tl-playhead::before { content: ""; position: absolute; top: 0; left: -4.25px; width: 10px; height: 9px; background: #ff4a1c; border-radius: 2px 2px 5px 5px; }
.tl-keys { padding: 6px 16px 8px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); }
.tl-keys kbd { margin: 0 1px; }
dialog.cutfile { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); width: min(560px, 92vw); padding: 18px; }
dialog.cutfile::backdrop { background: rgba(0, 0, 0, .35); }
dialog.cutfile h3 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink-strong); margin-bottom: 2px; }
dialog.cutfile pre { max-height: 50vh; overflow: auto; background: var(--surface-subtle); border: 1px solid var(--line); padding: 10px; border-radius: 8px; font: 11.5px/1.5 var(--mono); }
dialog.cutfile form { text-align: right; }

@media (max-width: 1100px) {
  .script-scr { grid-template-columns: 1fr 1fr; }
  .script-scr .taste { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .gen-scr { grid-template-columns: 200px 1fr; }
  .gen-preview { display: none; }
  .tl-upper { grid-template-columns: 220px minmax(0, 1fr); }
  .tl-insp { display: none; }
  .judge-scr { grid-template-columns: 1fr; }
  .judge-side { display: none; }
}
