/* Cutout Show: the libraries (left), what's picked (middle), its settings (right). */
#main { display: flex; flex-direction: row; flex: 1; min-width: 0; min-height: 0; background: var(--panel); }
#cut-left, #cut-side { min-height: 0; }
.cut-pane { display: flex; flex-direction: column; min-height: 0; }
.cut-pane.grow { flex: 1; }
#cut-props { flex: 1; min-height: 0; overflow: auto; }
/* the list on the left (Cast, Places, Props): the kit's rows, a picture each, opened out by the arrow */
#cut-lib { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#cut-lib > .cut-find { flex: none; margin: 8px 8px 2px; }
.cut-tree { flex: 1; min-height: 0; overflow: auto; padding: 4px 4px 16px; }
.cut-tree .list-row { padding-left: 4px; }
.cut-tree .list-row.cut-tree-top { height: 40px; color: var(--text); font-weight: 600; }
.cut-tree .list-row.picked:not(.on) { background: var(--hover); box-shadow: inset 3px 0 0 var(--line); }
.cut-tree-lead { display: inline-flex; align-items: center; gap: 2px; }
.cut-tree-arrow { flex: none; width: 18px; height: 22px; border: 0; padding: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-xs); }
.cut-tree-arrow[hidden] { display: inline-flex !important; visibility: hidden; }
.cut-tree-arrow:hover { background: var(--hover); color: var(--text); }
.cut-tree-arrow .material-symbols-outlined { font-size: var(--ic-s); }
.cut-tree-th { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-xs); background: var(--checker); color: var(--muted); }
.cut-tree-th.tall { width: 20px; height: 26px; }
.cut-tree-top .cut-tree-th.tall { width: 26px; height: 34px; }
.cut-tree-th.wide { width: 34px; height: 22px; background: var(--paper); }
.cut-tree-th.square { width: 24px; height: 24px; }
.cut-tree-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cut-tree-th.wide img { width: 100%; height: 100%; object-fit: cover; }
.cut-tree-th .material-symbols-outlined { font-size: var(--ic-s); }
.cut-tree-label { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 6px 4px 0 34px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cut-tree-note { margin: 8px 10px; font-size: var(--fs-s); }
.cut-tree-picked { flex: none; display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-top: 1px solid var(--line-soft); background: var(--panel-2); font-size: var(--fs-s); }
.cut-tree-picked > span { flex: 1; min-width: 0; }
#cut-props { padding-bottom: 14px; }
#cut-centre { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--desk); overflow: hidden; }
#cut-page { flex: 1; min-height: 0; overflow: auto; padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
.cut-note { color: var(--text-2); font-size: 13px; line-height: 1.45; margin: 8px 2px; }
.cut-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cut-chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius-pill); padding: 4px 11px; font: inherit; font-size: var(--fs-m); cursor: pointer; }
.cut-chip:hover { border-color: var(--line-strong); }
.cut-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.cut-find { position: relative; }
.cut-find > .material-symbols-outlined { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: var(--fs-h); color: var(--muted); pointer-events: none; }
.cut-find .inp { padding-left: 33px; border-radius: var(--radius); }
.cut-row { display: flex; align-items: center; gap: 10px; }
.cut-row[hidden] { display: none; }
.cut-row-k { width: 90px; flex: none; color: var(--text-2); font-size: 13px; }
.cut-row.cut-row-top { align-items: flex-start; }
.cut-row-top > .cut-row-k { padding-top: 5px; }
.cut-row-ksub { display: block; font-size: 11.5px; color: var(--text-3); }
/* Make a pose: the props it has, each with its picture, toggled */
.cut-make-props { flex: 1; min-width: 0; }
.cut-prop-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 4px; }
.cut-prop-chip img { width: 22px; height: 22px; object-fit: contain; border-radius: var(--radius-xs); background: var(--checker); }
.cut-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.cut-check[hidden] { display: none; }
.cut-field { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px; }
.cut-field textarea { resize: vertical; }

/* the library */
.cut-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line-soft); }
.cut-tab { flex: 1; border: 0; background: none; padding: 9px 4px; font: inherit; font-size: 13px; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; justify-content: center; gap: 6px; }
.cut-tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.cut-tab-n { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.cut-new-menu { display: flex; flex-direction: column; padding: 4px; min-width: 240px; }
.cut-new-item { display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: var(--fs); text-align: left; padding: 8px 10px; border-radius: var(--radius-s); cursor: pointer; color: var(--text); }
.cut-new-item:hover { background: var(--hover); }

/* the middle */
.cut-head { display: flex; flex-direction: column; gap: 4px; }
.cut-h1 { margin: 0; font-size: 22px; font-weight: 650; }
.cut-ch-head { flex-direction: row; align-items: center; gap: 14px; }
.cut-ch-canon { flex: none; width: 64px; height: 80px; border-radius: var(--radius-l); background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); }
.cut-ch-canon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cut-ch-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cut-name { font: inherit; font-size: 22px; font-weight: 650; border: 1px solid transparent; border-radius: var(--radius); padding: 2px 6px; margin-left: -7px; background: none; color: var(--text); max-width: 100%; }
.cut-name:hover, .cut-name:focus { border-color: var(--line); background: var(--surface); outline: none; }
.cut-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-l); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cut-card p { margin: 0; line-height: 1.5; }
.cut-card-h { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-m); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.cut-card-btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
.cut-soon { border-style: dashed; background: none; }
.cut-cast-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cut-cast-card { width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.cut-cast-card img, .cut-cast-empty { width: 80px; height: 100px; object-fit: contain; border-radius: var(--radius); background: var(--paper); }
.cut-cast-card .muted { font-size: var(--fs-s); }
.cut-cast-add { align-self: center; }
.cut-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cut-bar .pf-btn { padding: 7px 13px; }
.cut-bar .pf-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.cut-bar-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.cut-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cut-filter .cut-find { flex: 0 1 300px; }
.cut-first { align-self: center; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-soft); }
.cut-first > .material-symbols-outlined { font-size: 44px; color: var(--accent-strong); }
.cut-first b { font-size: 17px; }
.cut-first p { margin: 0; line-height: 1.5; color: var(--text-2); }
.cut-placing { padding: 10px 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
/* poses: all at one scale, standing on a line */
.cut-poses { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cut-pose.variant { border-style: dashed; border-color: var(--line); background: color-mix(in srgb, var(--surface) 70%, var(--accent-soft)); }
.cut-pose-variant { position: absolute; left: 6px; bottom: 6px; display: inline-flex; padding: 2px; border-radius: var(--radius-s); background: var(--surface); color: var(--muted); font-size: 16px; }
.cut-pose-variant .material-symbols-outlined { font-size: 16px; }
.cut-pose { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: var(--radius-l); background: var(--surface); cursor: pointer; outline-offset: 2px; }
.cut-pose:hover { border-color: var(--line); }
.cut-pose.on { border-color: var(--accent); background: var(--accent-soft); }
.cut-pose.placing { cursor: crosshair; }
.cut-pose.next { border-color: var(--accent); border-style: dashed; }
.cut-pose-pic { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 6px 8px 0; border-radius: var(--radius); background: var(--paper); min-width: 90px; }
.cut-pose-pic img { display: block; max-width: 220px; object-fit: contain; }
.cut-mouth-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent-strong); border: 2px solid var(--surface); box-shadow: var(--shadow); }
.cut-pose-canon { position: absolute; top: 4px; left: 4px; color: var(--warn); }
.cut-pose-canon .material-symbols-outlined { font-size: var(--fs-h); font-variation-settings: 'FILL' 1; }
.cut-pose-anim { position: absolute; top: 4px; right: 4px; font-size: var(--fs-xs); line-height: 1; padding: 4px 6px; border-radius: var(--radius-pill); background: var(--accent); color: var(--surface); }
.cut-anim-set { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cut-anim-set .cut-bar { margin-top: 4px; }
.cut-pose-label { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-s); max-width: 220px; }
.cut-pose-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-pose-face { color: var(--muted); flex: none; }
/* groups and mouths */
.cut-group { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: none; text-align: left; font: inherit; cursor: pointer; color: var(--text); }
.cut-group.on { border-color: var(--accent); background: var(--accent-soft); }
.cut-group-play { width: 56px; height: 70px; object-fit: contain; background: var(--paper); border-radius: var(--radius); flex: none; }
.cut-group-tx { display: flex; flex-direction: column; min-width: 160px; }
.cut-group-tx .muted { font-size: var(--fs-s); }
.cut-group-strip { display: flex; gap: 2px; overflow: hidden; }
.cut-group-strip img { height: 40px; object-fit: contain; background: var(--paper); border-radius: var(--radius-xs); }
.cut-mouths { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cut-mouth { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; }
.cut-mouth.empty { border-style: dashed; }
.cut-mouth .muted { font-size: var(--fs-xs); text-align: center; }
.cut-mouth-pic { width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-radius: var(--radius-s); color: var(--muted); }
.cut-mouth-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* a background and its floor; a prop */
.cut-bg { position: relative; align-self: flex-start; max-width: 100%; }
.cut-bg img { display: block; max-width: 100%; max-height: 70vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.cut-floor { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--accent-strong); cursor: ns-resize; }
.cut-floor::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 16px; }
.cut-floor span { position: absolute; right: 8px; top: -24px; padding: 2px 8px; border-radius: var(--radius-s); background: var(--accent-strong); color: var(--surface); font-size: 11.5px; }
.cut-prop img { max-width: min(480px, 100%); max-height: 60vh; background: var(--paper); border-radius: var(--radius-l); padding: 12px; }
/* a place's props where it has them (on its page) */
.cut-home { position: absolute; border: 2px dashed var(--accent-strong); border-radius: var(--radius-s); pointer-events: none; }
.cut-home img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; box-shadow: none; border-radius: 0; max-height: none; }
.cut-home span { position: absolute; left: -2px; bottom: 100%; margin-bottom: 2px; padding: 1px 6px; border-radius: var(--radius-s); background: var(--accent-strong); color: var(--surface); font-size: var(--fs-xs); white-space: nowrap; }
.cut-place-props { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cut-place-prop { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.cut-place-prop img { width: 84px; height: 84px; object-fit: contain; }
.cut-place-prop:hover { border-color: var(--accent-strong); }
/* the ruler */
.cut-ruler { display: flex; flex-direction: column; gap: 10px; outline: none; }
.cut-ruler-cv { align-self: center; border-radius: var(--radius); cursor: crosshair; touch-action: none; }
.cut-ruler-info { font-size: 13px; line-height: 1.4; }
.cut-ruler-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cut-ruler-cm { width: 90px; }
.cut-size-note { font-size: var(--fs-s); color: var(--muted); }
/* the right panel's pose */
.cut-pose-edit { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 14px; }
.cut-pose-edit canvas { background: var(--paper); border-radius: var(--radius); cursor: crosshair; touch-action: none; }

/* the new episode */
.cut-new { display: flex; flex-direction: column; gap: 10px; }
.cut-new-h { font-weight: 600; font-size: 13px; margin-top: 6px; }
.cut-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cut-format { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 2px solid var(--line-soft); border-radius: var(--radius-l); background: var(--surface); font: inherit; cursor: pointer; color: var(--text); text-align: center; }
.cut-format.on { border-color: var(--accent); background: var(--accent-soft); }
.cut-format .muted { font-size: var(--fs-xs); line-height: 1.3; }
.cut-format-shape { display: block; border: 2px solid currentColor; border-radius: var(--radius-xs); margin: 4px 0; opacity: .8; }
.cut-langs { display: flex; flex-direction: column; gap: 8px; }

/* making poses and mouths */
.cut-make { display: flex; flex-direction: column; gap: 8px; }
.cut-make-lines { font-size: 14px; }
.cut-make-cost { margin: 4px 0 0; }
.cut-make-part { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--hover); }
.cut-make-part .muted { flex: 1; }
.cut-making { display: flex; flex-direction: column; gap: 12px; }
.cut-making-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.cut-making-tile { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid var(--line-soft); border-radius: var(--radius); }
.cut-making-tile.done { border-color: var(--accent); }
.cut-making-tile.off { opacity: .5; border-color: var(--line-soft); }
.cut-making-tile.failed { border-color: var(--danger); }
.cut-making-pic { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--paper); border-radius: var(--radius); color: var(--accent-strong); font-variant-numeric: tabular-nums; font-size: var(--fs-s); }
.cut-making-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cut-making-tile.going .cut-making-pic .material-symbols-outlined, .cut-making-tile.waiting .cut-making-pic .material-symbols-outlined { animation: cut-spin 1s linear infinite; }
.cut-making-t { font-size: var(--fs-s); line-height: 1.3; }
.cut-making-err { font-size: 11.5px; color: var(--danger); }
.cut-making-acts { display: flex; align-items: center; justify-content: space-between; }
.cut-icon-btn { padding: 3px 6px; }
.cut-making-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cut-making-foot > .muted { flex: 1; min-width: 160px; font-size: var(--fs-m); }
.cut-making-foot .btn[hidden] { display: none; }
@keyframes cut-spin { to { transform: rotate(360deg); } }

/* the studio: the script beside the stage, the timeline under them */
#cut-page[hidden], #cut-studio[hidden] { display: none; }
#cut-studio { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#cut-studio-top { flex: 1; min-height: 0; display: flex; }
#cut-script { min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
#cut-stage-col { flex: 1 0 240px; min-width: 0; display: flex; flex-direction: column; }
#cut-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cut-stage-cv { display: block; box-shadow: var(--shadow); border-radius: var(--radius-xs); background: var(--paper); touch-action: none; }
#cut-timeline { flex: none; height: 190px; min-height: 60px; position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); }
.cut-tl-cv { display: block; position: absolute; left: 0; top: 0; touch-action: none; }
/* the overview's Fit button, in its head (cutout/timeline.js – CutTimeline.OV high) */
.cut-tl-fit { position: absolute; left: 70px; bottom: 6px; z-index: 1; }
.cut-split { flex: none; position: relative; z-index: 2; }
.cut-split.v { width: 5px; margin: 0 -3px 0 -2px; cursor: col-resize; }
.cut-split.h { height: 5px; margin: -2px 0 -3px; cursor: row-resize; }
.cut-split:hover { background: var(--accent-soft); }
/* under the stage */
/* the transport on the top bar (as the Video editor's) */
.cut-tp { display: flex; align-items: center; gap: 2px; }
.cut-tp .cut-tp-play { background: var(--accent); color: var(--surface); border-radius: var(--radius-pill); }
.cut-tp .cut-tp-play:hover { background: var(--accent-strong); color: var(--surface); }
.cut-tp-time { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: var(--fs-m); margin: 0 8px; color: var(--text-2); white-space: nowrap; }
.cut-tp-lang { width: auto; padding: 3px 8px; font-size: var(--fs-m); }

/* the script */
.cut-sc-head { flex: none; display: flex; align-items: center; gap: 8px; }
.cut-sc-langs { display: flex; gap: 4px; }
.cut-sc-len { margin-left: auto; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.cut-chip.small { padding: 2px 8px; font-size: 11.5px; }
.cut-chip.auto { border-style: dashed; }
.cut-sc-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.cut-sc-list .cut-first { margin: 20px 4px; padding: 22px 18px; }
.cut-sc-more { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; margin-top: 2px; border: 1px dashed var(--line); border-radius: var(--radius); background: none; font: inherit; font-size: var(--fs-m); color: var(--text-2); cursor: pointer; }
.cut-sc-more:hover { background: var(--hover); color: var(--text); }
.cut-ln { display: flex; gap: 6px; padding: 6px 8px 6px 4px; border: 1px solid transparent; border-radius: var(--radius); background: var(--surface); cursor: default; }
.cut-ln:hover { border-color: var(--line-soft); }
.cut-ln.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cut-ln.playing { background: var(--accent-soft); }
.cut-ln.with { margin-left: 16px; }
.cut-ln.also { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
/* a line's smaller controls and its "Meanwhile" (giving someone something to do): on the line picked, or under the pointer */
.cut-ln:not(.on):not(:hover) .cut-ln-sec { display: none; }
.cut-ln:not(.on) .cut-mw-add { display: none; }
/* the empty script: what to do first */
.cut-first-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.cut-first-btns .btn { display: inline-flex; align-items: center; gap: 6px; }
.cut-first-btns .material-symbols-outlined { font-size: 17px; }
.cut-first-steps { list-style: none; margin: 12px auto 0; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: var(--fs-m); max-width: 320px; }
.cut-first-steps li { display: flex; align-items: center; gap: 6px; }
.cut-first-steps li .material-symbols-outlined { font-size: 17px; color: var(--muted); }
.cut-first-steps li.done .material-symbols-outlined { color: var(--ok); }
.cut-ln.k-scene { background: var(--panel-2); }
.cut-ln.k-pause { background: none; border-style: dashed; border-color: var(--line); }
.cut-ln-gut { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cut-ln-time { border: 0; background: none; font: inherit; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: var(--muted); padding: 2px 3px; border-radius: var(--radius-s); cursor: pointer; }
.cut-ln-time:hover { background: var(--hover); color: var(--accent-strong); }
.cut-ln-with { border: 0; background: none; color: var(--line-strong); padding: 0; cursor: pointer; display: inline-flex; }
.cut-ln-with .material-symbols-outlined { font-size: 16px; }
.cut-ln-with.on { color: var(--accent-strong); }
.cut-ln-with:disabled { visibility: hidden; }
.cut-ln-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cut-ln-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 26px; }
.cut-ln-kind { display: inline-flex; color: var(--muted); }
.cut-ln-kind .material-symbols-outlined { font-size: 17px; }
.cut-ln.k-say .cut-ln-kind { color: var(--danger); }
.cut-ln.k-do .cut-ln-kind { color: var(--info); }
.cut-ln.k-text .cut-ln-kind { color: var(--warn); }
.cut-ln-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 170px; border: 1px solid var(--line-soft); border-radius: var(--radius-pill); background: var(--surface); padding: 1px 9px 1px 2px; font: inherit; font-size: var(--fs-m); color: var(--text); cursor: pointer; }
.cut-ln-chip:hover { border-color: var(--line); }
.cut-ln-chip img { width: 22px; height: 22px; object-fit: contain; background: var(--paper); border-radius: 50%; }
.cut-ln-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-ln-chip.who { font-weight: 600; }
.cut-ln-chip.empty, .cut-ln-chip:not(:has(img)) { padding-left: 9px; }
.cut-ln-chip.shot { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--line-soft)); padding-left: 6px; }
.cut-ln-chip.shot .material-symbols-outlined { font-size: 15px; }
.cut-ln-chip.bg img { width: 34px; border-radius: var(--radius-s); object-fit: cover; }
.cut-ln-chip.wide { max-width: none; width: 100%; border-radius: var(--radius); padding: 3px 10px 3px 3px; }
.cut-ln-chip.wide img { width: 40px; height: 40px; border-radius: var(--radius); }
.cut-ln-icon { border: 0; background: none; color: var(--muted); padding: 2px; border-radius: var(--radius-s); cursor: pointer; display: inline-flex; }
.cut-ln-icon .material-symbols-outlined { font-size: var(--fs-h); }
.cut-ln-icon:hover { background: var(--hover); }
.cut-ln-icon.on { color: var(--accent-strong); }
.cut-ln-more { margin-left: auto; }
.cut-ln-num { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-s); color: var(--text-2); }
.cut-ln-num .inp { width: 58px; padding: 2px 5px; font-size: var(--fs-m); }
.cut-voice-more { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cut-voice-design textarea { width: 100%; resize: vertical; }
.cut-voice-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 6px; margin-bottom: 8px; }
.cut-voice-design .cut-voice-list { max-height: 360px; overflow: auto; }
.cut-voice-design .cut-voice .btn { margin-left: auto; flex: none; }
.cut-ln-what { flex: 1 1 140px; min-width: 100px; padding: 2px 8px; font-size: var(--fs-m); }
.cut-ln-ai .material-symbols-outlined { color: var(--accent-strong); }
.cut-music-res { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cut-music-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--accent-strong); }
.cut-ln-track { width: auto; padding: 2px 6px; font-size: var(--fs-m); }
.cut-ln-cast { display: flex; flex-wrap: wrap; gap: 4px; }
.cut-ln-texts { display: grid; grid-template-columns: repeat(var(--langs, 1), minmax(0, 1fr)); gap: 6px; }
.cut-ln-words { field-sizing: content; width: 100%; resize: none; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-s); background: var(--panel); padding: 5px 8px; font: inherit; font-size: 14px; line-height: 1.4; color: var(--text); min-height: 30px; }
.cut-ln-words:hover { border-color: var(--line-soft); }
.cut-ln-words:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.cut-ln.k-text .cut-ln-words { font-weight: 600; }
/* Find (and replace): the matches marked over the words (the same box, see-through), the line with any at its left */
.cut-ln-word { position: relative; min-width: 0; }
.cut-ln-word > .cut-ln-words { display: block; }
.cut-ln-hl { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border: 1px solid transparent; padding: 5px 8px; font: inherit; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: break-word; color: transparent; }
.cut-ln.k-text .cut-ln-hl { font-weight: 600; }
.cut-ln-hl mark { color: transparent; background: var(--find-hl); border-radius: var(--radius-xs); }
.cut-ln-hl mark.cur { background: var(--find-cur); box-shadow: 0 0 0 1px var(--find-cur); }
.cut-ln.found > .cut-ln-gut { box-shadow: inset 3px 0 0 var(--find-cur); border-radius: var(--radius-xs); }
.cut-ln.found-cur > .cut-ln-gut { box-shadow: inset 3px 0 0 var(--find-cur); }
.cut-found { outline: 2px solid var(--find-cur) !important; outline-offset: 1px; border-radius: var(--radius-s); }

/* pickers */
.cut-pick-pop { padding: 8px; }
.cut-pick { display: flex; flex-direction: column; gap: 8px; width: 300px; max-height: 420px; }
.cut-pick.wide { width: 420px; }
.cut-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; overflow: auto; }
.cut-pick-grid.bgs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cut-pick-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; min-width: 0; }
.cut-pick-item:hover { border-color: var(--line); }
.cut-pick-item.on { border-color: var(--accent); background: var(--accent-soft); }
.cut-pick-th { width: 100%; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-radius: var(--radius-s); overflow: hidden; color: var(--muted); }
.cut-pick-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cut-pick-grid.bgs .cut-pick-th img { width: 100%; height: 100%; object-fit: cover; }
.cut-pick-name { font-size: var(--fs-s); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-pick-sub { font-size: var(--fs-xs); color: var(--muted); }
/* the pose picker: the poses on the left, the one under the pointer big on the right (playing, if it's an animation) */
.cut-pick.cut-pick-poses { flex-direction: row; width: 680px; max-width: calc(100vw - 32px); max-height: 460px; }
.cut-pick-col { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; min-height: 0; }
.cut-pick-preview { flex: none; width: 236px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: var(--radius); background: var(--paper); align-self: flex-start; }
.cut-pick-preview canvas { display: block; }
.cut-pick-preview .cut-pick-name { font-weight: 600; white-space: normal; text-align: center; }
.cut-pick-preview .cut-pick-sub { text-align: center; }
@media (max-width: 720px) { .cut-pick.cut-pick-poses { width: 420px; } .cut-pick-preview { display: none; } }
/* a pose and what's made from it (↳ – its animations and variants): one family, joined by its colour */
.cut-pick-item.kin-root, .cut-pick-item.kin { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.cut-pick-item.kin { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-soft)); }
.cut-pick-item.kin .cut-pick-sub { color: var(--accent-strong); }

/* the right panel: text tracks, a scene's cast */
.cut-track-row { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.cut-track-row:hover { border-color: var(--line); }
.cut-track-row .muted { margin-left: auto; font-size: var(--fs-s); }
.cut-track-sw { width: 34px; height: 26px; border-radius: var(--radius-s); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-l); flex: none; }
.cut-cast-h { font-weight: 600; font-size: 13px; padding: 10px 14px 0; border-top: 1px solid var(--line-soft); margin-top: 6px; }

/* voices */
.cut-ln-icon.voice.ok { color: var(--ok); }
.cut-ln-icon.voice.old { color: var(--warn); }
.cut-link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-strong); text-decoration: underline; cursor: pointer; }
.cut-voice-sum p { margin: 6px 0; line-height: 1.45; }
.cut-voice-warn { color: var(--warn); }
.cut-voices { display: flex; flex-direction: column; gap: 10px; }
.cut-voice-list { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.cut-voice { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: var(--radius); cursor: pointer; }
.cut-voice:hover { border-color: var(--line); }
.cut-voice.on { border-color: var(--accent); background: var(--accent-soft); }
.cut-voice-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cut-voice-play:disabled { opacity: .35; cursor: default; }
.cut-voice-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cut-voice-tx .muted { font-size: var(--fs-s); }
.cut-voice-langs { font-size: 11.5px; color: var(--ok); }
.cut-voice-opts { border-top: 1px solid var(--line-soft); padding-top: 6px; }
.cut-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px; }

/* a video being made */
.cut-busy { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 10px 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.cut-busy-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cut-busy-bar { flex: none; width: 140px; height: 6px; border-radius: var(--radius-xs); background: var(--line); overflow: hidden; }
.cut-busy-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.cut-busy .btn[hidden] { display: none; }
.cut-dl { display: flex; flex-direction: column; gap: 6px; }

/* moving a line by dragging */
.cut-sc-list { position: relative; }
.cut-ln-grip { display: inline-flex; color: var(--line-strong); cursor: grab; opacity: 0; transition: opacity .12s; margin-bottom: -2px; }
.cut-ln-grip .material-symbols-outlined { font-size: 16px; }
.cut-ln:hover .cut-ln-grip, .cut-ln.on .cut-ln-grip { opacity: 1; }
.cut-ln.dragging { opacity: .4; }
/* what the others do meanwhile, under a line (cutout/scriptview.js meanwhile): its actions – blue, as actions are on the
   timeline – then "Meanwhile" and the others on stage, each with what they're doing, to give one something to do */
.cut-mw { display: flex; flex-direction: column; gap: 4px; }
.cut-mw-row { display: flex; flex-direction: column; gap: 3px; padding: 3px 4px; border-left: 3px solid var(--info); border-radius: var(--radius-s); background: var(--info-soft); }
.cut-mw-top, .cut-mw-sub { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.cut-mw-sub { padding-left: 21px; }
.cut-mw-walk { margin-left: auto; }
.cut-mw-row.on { outline: 1px solid var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cut-mw-row.playing { background: color-mix(in srgb, var(--info) 22%, var(--surface)); }
.cut-mw-mark { display: inline-flex; color: var(--info); }
.cut-mw-mark .material-symbols-outlined { font-size: 16px; }
.cut-mw-row .cut-ln-chip { max-width: 150px; }
.cut-mw-len { width: auto; padding: 2px 4px; font-size: var(--fs-s); }
.cut-mw-add { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cut-mw-k { font-size: var(--fs-xs); color: var(--muted); margin-right: 2px; }
.cut-mw-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 230px; border: 1px dashed var(--line); border-radius: var(--radius-pill); background: none; padding: 1px 6px 1px 2px; font: inherit; font-size: var(--fs-s); color: var(--text-2); cursor: pointer; }
.cut-mw-chip:not(:has(img)) { padding-left: 8px; }
.cut-mw-chip:hover { border-style: solid; border-color: var(--info); background: var(--info-soft); color: var(--text); }
.cut-mw-chip img { flex: none; width: 20px; height: 20px; object-fit: contain; background: var(--paper); border-radius: 50%; }
.cut-mw-chip b { font-weight: 600; white-space: nowrap; }
.cut-mw-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.cut-mw-chip .material-symbols-outlined { flex: none; font-size: 15px; color: var(--info); }
.cut-mw-more .material-symbols-outlined { font-size: 17px; }
/* Paste a script (cutout/scriptpaste.js) */
.cut-paste-text { width: 100%; resize: vertical; font: inherit; font-size: var(--fs-m); line-height: 1.45; }
.cut-paste-sum { font-size: var(--fs-s); color: var(--text-2); }
.cut-paste .cut-check[hidden] { display: none; }
/* (a picker opened at the pointer – the stage, the timeline: app.meanwhileAt) */
.cut-anchor { position: fixed; width: 1px; height: 1px; pointer-events: none; }
.cut-pick-title { font-weight: 600; font-size: var(--fs-m); }
.cut-ln-drop { position: absolute; left: 10px; right: 10px; height: 3px; margin-top: -1px; border-radius: var(--radius-xs); background: var(--accent); pointer-events: none; z-index: 3; }
.cut-ln-drop::before { content: ''; position: absolute; left: -4px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
body.cut-dragging-line, body.cut-dragging-line * { cursor: grabbing !important; user-select: none; }
.cut-voice.off { opacity: .55; cursor: not-allowed; }
.cut-voice-warn.small { font-size: 11.5px; }
.cut-shapes { justify-content: center; }

/* a pose whose face is being made */
.cut-pose.busy .cut-pose-pic img { opacity: .45; }
.cut-pose-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent-strong); font-size: var(--fs-s); font-weight: 600; text-align: center; pointer-events: none; }
.cut-pose-busy .material-symbols-outlined { font-size: 28px; animation: cut-spin 1s linear infinite; }
.cut-pose-busy-t { background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 2px 8px; border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }

/* making an animation */
.cut-anim { display: flex; flex-direction: column; gap: 10px; }
.cut-anim-cv { align-self: center; border-radius: var(--radius); width: 360px; height: 420px; }
.cut-anim-strip { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.cut-anim-frame { height: 64px; background: var(--paper); border-radius: var(--radius-s); flex: none; }
.cut-anim input[type=range] { flex: 1; }

/* animations and groups on a character's page */
.cut-anims { display: flex; flex-wrap: wrap; gap: 10px; }
.cut-anim-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 2px solid var(--line-soft); border-radius: var(--radius-l); background: var(--paper); cursor: pointer; font: inherit; color: var(--text); width: 166px; }
.cut-anim-tile:hover { border-color: var(--line); }
.cut-anim-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cut-anim-play { width: 150px; height: 170px; }
.cut-anim-tx { display: flex; flex-direction: column; align-items: center; line-height: 1.3; font-size: var(--fs-m); text-align: center; }
.cut-anim-tx .muted { font-size: 11.5px; }
.cut-group-cv { background: var(--paper); border-radius: var(--radius); }
.cut-group-frame { position: relative; flex: none; }
.cut-group-x { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--scrim); color: var(--toast-text); display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.cut-group-x .material-symbols-outlined { font-size: 13px; }
.cut-group-frame:hover .cut-group-x { display: inline-flex; }

/* a pose, opened: back to the character, it playing, its face up close, every look */
.cut-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-h); }
.cut-crumb-back, .cut-crumb-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; color: var(--accent-strong); cursor: pointer; padding: 2px 4px; border-radius: var(--radius-s); }
.cut-crumb-back:hover, .cut-crumb-link:hover { background: var(--accent-soft); }
.cut-crumb-back .material-symbols-outlined { font-size: 20px; }
.cut-pose-page { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.cut-pose-player { align-items: center; }
.cut-pose-player canvas { background: var(--paper); border-radius: var(--radius); }
.cut-face-ed { align-items: center; max-width: 420px; }
.cut-face-ed canvas { border-radius: var(--radius); touch-action: none; }
.cut-face-ed .cut-card-h { align-self: stretch; }
.cut-face-acts { display: flex; flex-direction: column; gap: 4px; align-self: stretch; }
.cut-face-ed .cut-bar, .cut-face-ed .cut-row { align-self: stretch; }
.cut-face-none { max-width: 360px; line-height: 1.5; }
.cut-pose-tabs { padding: 0; margin: 4px 0 14px; max-width: 760px; }
.cut-pose-tabs .cut-tab { flex: 0 0 auto; padding: 9px 14px; }
.cut-tab.dim { color: var(--muted); }
.cut-tab-off { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--surface); background: var(--muted); border-radius: var(--radius-pill); padding: 1px 7px; align-self: center; }
.cut-face-switch { display: flex; flex-direction: column; gap: 6px; max-width: 760px; margin-bottom: 14px; }
.cut-face-switch .cut-bar { margin: 4px 0 0; }
.cut-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.cut-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cut-switch-k { width: 36px; height: 20px; border-radius: var(--radius-pill); background: var(--line); position: relative; transition: background .15s; flex: none; }
.cut-switch-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform .15s; }
.cut-switch input:checked + .cut-switch-k { background: var(--accent); }
.cut-switch input:checked + .cut-switch-k::after { transform: translateX(16px); }
.cut-switch input:focus-visible + .cut-switch-k { outline: 2px solid var(--accent); outline-offset: 2px; }
.cut-annot-info { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.cut-annot-sec { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; line-height: 1.45; }
.cut-drawing-pic { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cut-sheet-pic { flex: 1 1 520px; min-width: 0; padding: 12px; }
.cut-sheet-pic img { max-width: 100%; max-height: 420px; }
.cut-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; text-align: center; }
.cut-annot-sec > .pf-btn { align-self: flex-start; margin-top: 6px; }
.cut-drawing-pic img { max-height: 460px; max-width: 340px; background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 16px 16px; border-radius: var(--radius); }
.cut-drawing-words { width: 100%; font-size: var(--fs); }
.cut-annot-sec .cut-row { width: 100%; }
.cut-warn { align-self: stretch; color: var(--warn); font-size: var(--fs-m); }
.cut-face-cells { display: flex; flex-wrap: wrap; gap: 6px; }
.cut-face-cell { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: var(--fs-xs); color: var(--muted); }
.cut-face-cell canvas { width: 76px; height: 76px; border-radius: var(--radius-s); }
.cut-face-cells.big .cut-face-cell canvas { width: 104px; height: 104px; }
.cut-faces-row { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: var(--radius); background: none; padding: 4px 6px; font: inherit; color: var(--text); cursor: pointer; text-align: left; min-height: 96px; }
.cut-faces-row:hover { border-color: var(--line); background: var(--surface-2); }
.cut-faces-name { display: flex; flex-direction: column; width: 120px; flex: none; gap: 2px; }
.cut-pose-open { position: absolute; right: 6px; top: 6px; display: none; padding: 2px; border: 0; border-radius: var(--radius-s); background: var(--surface); color: var(--muted); cursor: pointer; }
.cut-pose-open .material-symbols-outlined { font-size: 16px; }
.cut-pose:hover .cut-pose-open, .cut-pose.on .cut-pose-open { display: inline-flex; }
.cut-pose-open:hover { color: var(--accent-strong); }

/* painting on a picture: the brush, eraser, colour picked, a part marked for AI */
.cut-paint { display: flex; flex-direction: column; gap: 8px; outline: none; }
.cut-paint.busy .cut-paint-wrap { opacity: .6; pointer-events: none; }
.cut-paint-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cut-paint-row input[type=range] { width: 110px; }
.cut-paint-row .chip .material-symbols-outlined, .cut-paint .cut-chip .material-symbols-outlined { font-size: 16px; vertical-align: -3px; }
.cut-paint-color { width: 34px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: none; cursor: pointer; }
.cut-paint-wrap { max-height: calc(100vh - 360px); overflow: auto; border-radius: var(--radius); background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 16px 16px; }
.cut-paint-stack { position: relative; margin: 0 auto; }
.cut-paint-stack canvas { position: absolute; left: 0; top: 0; image-rendering: auto; }
.cut-paint-ai { display: none; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: var(--radius); background: color-mix(in srgb, var(--guide) 8%, var(--surface)); }
.cut-paint-ai.on { display: flex; }
.cut-paint-ai .inp:first-child { flex: 1; }
.cut-paint-ai .cut-paint-row > .inp:only-child { flex: 1; }
.cut-face-cell.paintable { cursor: pointer; }
.cut-face-cell.paintable:hover canvas { outline: 2px solid var(--accent); }
.cut-paint-row .inp { width: auto; }
.cut-paint-stack canvas { pointer-events: none; }
.cut-paint-stack canvas:last-child { pointer-events: auto; }
.cut-paint-top { opacity: 1; }
.cut-paint-layers .cut-chip.changed::after { content: ' •'; color: var(--accent); }
.cut-two { display: flex; flex-wrap: wrap; gap: 16px; }
.cut-two-pic { display: flex; flex-direction: column; gap: 6px; max-width: 340px; }
.cut-two-pic canvas { background: var(--paper); border-radius: var(--radius); align-self: flex-start; }
.cut-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.cut-part { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 6px; background: var(--surface); font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer; width: 112px; }
.cut-part:hover { border-color: var(--accent); }
.cut-part img { width: 96px; height: 72px; object-fit: contain; border-radius: var(--radius-s); background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 12px 12px; }
.cut-pulse { animation: cut-pulse 1s ease-in-out 3; } @keyframes cut-pulse { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
/* recording a character's lines in a real voice */
.cut-rec { display: flex; flex-direction: column; gap: 8px; }
.cut-rec-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.cut-rec-row { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.cut-rec-row.on { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.cut-rec-words { font-size: var(--fs-l); line-height: 1.4; }
.cut-rec-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cut-rec-acts .cut-chip .material-symbols-outlined { font-size: var(--fs-l); vertical-align: -3px; }
.cut-chip.rec { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.cut-rec-time { font-variant-numeric: tabular-nums; color: var(--danger); font-size: var(--fs-m); }
.cut-ln-icon.voice.own { color: var(--accent-strong); }
/* anchors: named points on a picture */
.cut-anc { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cut-anc canvas { align-self: center; border-radius: var(--radius); cursor: crosshair; touch-action: none; }
.cut-anc-names { display: flex; flex-direction: column; gap: 6px; }
/* a place's variants */
.cut-place-vars { display: flex; gap: 8px; flex-wrap: wrap; }
.cut-place-var { display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer; width: 150px; }
.cut-place-var img { width: 100%; height: 84px; object-fit: cover; border-radius: var(--radius-s); }
.cut-place-var.on { border-color: var(--accent); }
/* the second panel: what belongs to the character, place or prop picked */
/* an animation, opened: it playing, its frames */
.cut-anim-player { align-items: center; }
.cut-anim-player canvas { border-radius: var(--radius); touch-action: none; }
.cut-anim-player { gap: 8px; }
.cut-frames { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cut-frame-pic { position: relative; width: 58px; height: 68px; border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); cursor: pointer; padding: 3px; display: flex; align-items: flex-end; justify-content: center; }
.cut-frame-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cut-frame-pic.on, .cut-frame-pic:hover { border-color: var(--accent); }
.cut-frame-n { position: absolute; left: 4px; top: 2px; font-size: 10px; font-weight: 600; color: var(--muted); }
.cut-frame-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.cut-frame-acts.off { opacity: .4; pointer-events: none; }
/* a place's front layer */
.cut-front { display: flex; flex-direction: column; gap: 8px; }
.cut-front-wrap { display: flex; justify-content: center; }
.cut-front canvas { border-radius: var(--radius); cursor: crosshair; touch-action: none; }
.cut-front .cut-chip .material-symbols-outlined { font-size: 16px; vertical-align: -3px; }
/* a place's layers */
.cut-bg-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; border-radius: var(--radius); }
.cut-bg-front.on { opacity: 1; filter: sepia(1) saturate(6) hue-rotate(190deg) brightness(.9); mix-blend-mode: normal; }
.cut-layers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cut-layer { display: flex; flex-direction: column; gap: 2px; width: 200px; }
.cut-layer-pic { position: relative; width: 200px; height: 112px; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line-soft); display: flex; align-items: flex-end; justify-content: center; }
.cut-layer-pic img { width: 100%; height: 100%; object-fit: cover; }
.cut-layer-pic.checked { background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 14px 14px; }
.cut-layer-pic.cast img.cut-layer-who { width: auto; height: 86%; object-fit: contain; }
.cut-layer-arrow { font-size: 20px; color: var(--muted); }

/* every page alike: Used in, tiles, help tucked away */
.cut-page-name { font-weight: 650; }
.cut-used { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; }
.cut-used-row { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; font-size: 13px; text-align: left; padding: 6px 8px; border-radius: var(--radius-s); cursor: pointer; color: var(--text); }
.cut-used-row:hover { background: var(--hover); }
.cut-used-row .material-symbols-outlined { font-size: 17px; color: var(--muted); }
.cut-used-t { font-variant-numeric: tabular-nums; color: var(--muted); width: 44px; flex: none; }
.cut-used-x { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cut-tile { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; border: 2px solid var(--line-soft); background: var(--surface); border-radius: var(--radius); padding: 6px; font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: var(--text); }
.cut-tile:hover, .cut-tile.on { border-color: var(--accent); }
.cut-tile-pic { width: 100%; height: 110px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 14px 14px; border-radius: var(--radius-s); overflow: hidden; }
.cut-tile-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cut-hint { font-size: 13px; line-height: 1.5; margin: 4px 0; max-width: 760px; }
.cut-hint-more { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-strong); cursor: pointer; }
.cut-hint.small { font-size: var(--fs-s); margin: 2px 0; }
.cut-place-play { display: flex; align-items: center; justify-content: center; }
.cut-place-play img { max-width: 520px; max-height: 340px; border-radius: var(--radius); }

/* Script and stage: the library folded to a strip */

/* every window: its footer (Cancel or Close, then the main button, bottom right) always in sight */
.fp-body .cut-making-foot { position: sticky; bottom: 0; z-index: 2; background: var(--surface); padding: 10px 0 2px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.cut-prop-layers img:not(.cut-bg-front) { max-height: 420px; background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 16px 16px; }

/* Paint – the AI's row and Save at the bottom of the window, never scrolled away (November 2026, as every AI window);
   after a fix: only the part marked, or the AI's whole square */
.fp-body .cut-paint-dock { position: sticky; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 4px; }
.fp-body .cut-paint-dock > .cut-making-foot { position: static; border-top: 0; margin-top: 0; padding-top: 0; }
.cut-paint-use[hidden] { display: none; }
.cut-paint-say { flex-basis: 100%; padding: 6px 8px; border-radius: var(--radius-s); background: var(--warn-soft); color: var(--warn); font-size: 12px; }
.cut-paint-say[hidden], .cut-paint-use .btn[hidden] { display: none; }
.cut-seg { display: inline-flex; gap: 0; }
.cut-seg > .btn { border-radius: 0; }
.cut-seg > .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.cut-seg > .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px; }
.cut-seg > .btn.on { background: var(--prog-soft); color: var(--prog-strong); border-color: var(--prog); font-weight: 600; position: relative; }

.cut-add { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cut-add .material-symbols-outlined { font-size: var(--fs-h); }

/* the AI windows of three columns (cutout/studio.js) */
.cut-studio .cut-make { display: flex; flex-direction: column; gap: 10px; }
.cut-st-view { display: flex; flex-direction: column; gap: 10px; }
.cut-st-view .cut-making-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cut-st-big { max-width: 100%; border-radius: var(--radius); background: var(--sunk); }
.cut-st-prop { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cut-st-prop img { max-height: 90px; max-width: 120px; }
.cut-st-msg { flex: 1 1 auto; min-width: 0; }

/* Make an animation's third column (as the Sprite editor's): the AI's picture with the box the frames are cut on, the
   animation beside it; the frames (a click leaves one out) */
.cut-anim-top { display: flex; gap: 12px; align-items: flex-start; }
.cut-anim-sheet { flex: 1 1 0; min-width: 160px; }
.cut-anim-sheetcv { display: block; max-width: 100%; border-radius: var(--radius); touch-action: none; }
.cut-anim-sheetcv.drag { cursor: grabbing; }
.cut-anim-playbox { flex: 0 1 300px; min-width: 130px; display: flex; justify-content: center; }
.cut-anim-top .cut-anim-cv { width: 100%; max-width: 300px; height: auto; aspect-ratio: 360 / 420; }
.cut-anim-boxline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cut-anim-boxline > .muted { flex: 1 1 220px; min-width: 0; }
.cut-anim-fps { width: 72px; }
.cut-anim-strip { flex-wrap: wrap; overflow: visible; }
.cut-anim-pick { position: relative; padding: 0; border: 2px solid var(--accent); border-radius: var(--radius); background: none; cursor: pointer; line-height: 0; }
.cut-anim-pick.off { border-color: var(--line); opacity: .4; }
.cut-anim-pick .cut-anim-frame { height: 64px; width: auto; }
.cut-anim-n { position: absolute; left: 3px; top: 3px; padding: 0 4px; border-radius: var(--radius-xs); background: var(--scrim); color: var(--toast-text); font: 600 10px/14px var(--font); }
/* Make an animation: the start picture, the clip's frames picked (shared/clip.js) */
.cut-anim-start { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.cut-anim-startpic { width: 64px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-s); background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 10px 10px; flex: none; }
.cut-anim-startside { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cut-anim-startbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.cut-anim-startbtns [hidden] { display: none; }
.cut-anim-start .cut-anim-startpic[hidden] { display: none; }
/* a place's or prop's animation (cutout/animthing.js): a place's start picture wide; its card on the Animation tab */
.cut-anim-startpic.cut-anim-wide { width: 150px; height: 84px; object-fit: cover; }
/* a reference sheet (Make a pose's Drawn from): the whole sheet, wide */
.cut-anim-startpic.cut-anim-sheet { width: 168px; height: 96px; object-fit: contain; }
.cut-anim-thing { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cut-anim-thing .cut-place-play img { max-width: 100%; }
.cut-anim-endnone { display: flex; align-items: center; justify-content: center; width: 64px; height: 84px; flex: none; box-sizing: border-box; padding: 4px; border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-s); text-align: center; line-height: 1.3; }
.cut-anim-endnone[hidden] { display: none; }
.cut-face-model { max-width: 560px; margin: 4px 0 10px; }
/* the episode open, on the Script panel's header: a click opens the Episode menu */
.cut-ep-bar { padding: 8px 10px 2px; display: flex; }
.cut-ep-btn { display: flex; align-items: center; width: 100%; min-width: 0; gap: 8px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-strong); font: inherit; font-size: var(--fs-m); font-weight: 600; padding: 7px 8px 7px 10px; border-radius: var(--radius-s); cursor: pointer; text-align: left; }
.cut-ep-btn > .material-symbols-outlined:last-child { margin-left: auto; }
.cut-ep-btn:hover { background: var(--surface); }
.cut-ep-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cut-ep-btn .cut-ep-k { white-space: nowrap; }
.cut-ep-btn .cut-ep-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.cut-ep-btn .material-symbols-outlined { font-size: 20px; }
.cut-used-ep { padding: 8px 6px 2px; }
/* AI looks, props and characters (cutout/aipics.js): the pictures given, a tick in the result */
.cut-aip-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.cut-aip-ref { position: relative; width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--sunk); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font: inherit; }
.cut-aip-ref img { width: 100%; height: 100%; object-fit: contain; }
button.cut-aip-ref { cursor: pointer; }
.cut-aip-ref.off img { opacity: 0.3; }
.cut-aip-ref-k { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); color: var(--surface); font-size: var(--fs-s); text-align: center; }
.cut-aip-ref.off .cut-aip-ref-k { background: var(--muted); }
.cut-aip-ref-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cut-aip-ref-x .material-symbols-outlined { font-size: 16px; }
.cut-aip-add { border-style: dashed; }
.cut-aip-add:hover { color: var(--accent-strong); border-color: var(--accent); }
.cut-aip-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; cursor: pointer; }
.cut-aip-check input { margin-top: 3px; }
.cut-aip-sub { margin: -4px 0 0 24px; }
.cut-aip-clear { background-image: repeating-conic-gradient(var(--sunk) 0 25%, var(--surface) 0 50%); background-size: 16px 16px; }
.cut-aip-for { font-weight: 600; }
.cut-look-pic img { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; border-radius: var(--radius-s); }
.cut-look-pic p { margin: 8px 0 0; }
/* a look and its art style in words beside it (side by side when there's room) */
.cut-look-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.cut-look-wrap > .cut-look-pic { flex: 2 1 420px; min-width: 0; }
.cut-look-style { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cut-look-style textarea { width: 100%; resize: vertical; line-height: 1.45; }
.cut-look-style p { margin: 0; }
.cut-look-style .pf-btn, .cut-look-style button { align-self: flex-start; }
.cut-empty-look { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cut-empty-look > .cut-card { width: min(720px, 100%); display: flex; flex-direction: column; gap: 8px; }
.cut-empty-look > .cut-card textarea { width: 100%; resize: vertical; }
.cut-empty-look > .cut-card p { margin: 0; }
.cut-empty-look > .cut-card > button { align-self: flex-start; }
/* Make looks with AI: the styles to start from, each its small picture */
.cut-aip-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cut-aip-style { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; font-size: 11.5px; line-height: 1.2; text-align: center; cursor: pointer; }
.cut-aip-style img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); display: block; }
.cut-aip-style:hover { border-color: var(--accent); }
.cut-aip-style.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; box-shadow: 0 0 0 1px var(--accent); }
.cut-aip-tile { position: relative; display: flex; }
.cut-aip-tile > .cut-aip-style { flex: 1; min-width: 0; }
.cut-aip-more { position: absolute; top: 8px; right: 8px; padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); font: inherit; font-size: 11px; line-height: 16px; cursor: pointer; }
.cut-aip-more:hover, .cut-aip-more:focus-visible { border-color: var(--accent); color: var(--accent-strong); background: var(--surface); }
.cut-aip-style-ic { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: var(--radius-s); background: var(--sunk); color: var(--muted); }
.cut-aip-style-ic .material-symbols-outlined { font-size: 30px; }
.cut-aip-none.on .cut-aip-style-ic { color: var(--accent-strong); }
/* the window of every style: each family and its variants */
.cut-aip-all { display: flex; flex-direction: column; gap: 18px; max-height: 70vh; overflow: auto; padding-right: 4px; }
.cut-aip-all > p { margin: 0; }
.cut-aip-fam { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--radius); }
.cut-aip-fam.at { background: var(--accent-soft); }
.cut-aip-styles-big { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.cut-face-model .cut-row-k { width: 120px; }
.cut-anim-endnote { font-size: var(--fs-m); line-height: 1.45; padding-top: 2px; }
.cut-anim-endlinks { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.cut-anim-endlinks .cut-link { font-size: var(--fs-m); color: var(--prog-strong); text-underline-offset: 2px; }
.cut-anim-endlinks .cut-link:hover { color: var(--text); }
.cut-warn { color: var(--warn); }
.cut-anim-count { width: 72px; }
.cut-clip-foot { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.cut-clip-foot .sai-fit-info { flex: 1 1 0; min-width: 0; font-size: var(--fs-m); color: var(--text-2); }
.cut-clip-size input[type=range] { flex: 1 1 auto; }
/* an icon before a few words (in place of ★, ⚠ or ✓ – cutout/library.js CutIconText) */
.cut-icon-text { display: inline-flex; align-items: center; gap: 4px; }
.cut-icon-text > .material-symbols-outlined { font-size: var(--ic-s); }

/* a pose, a place, a prop on a canvas (cutout/view.js) – zoomed at the pointer, moved by Space-drag, a middle-drag or the Hand */
.cut-view { position: relative; flex: 1 0 380px; min-height: 380px; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-soft); touch-action: none; }
.cut-view-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: var(--shadow); }
.cut-view.checker .cut-view-in { background: var(--checker); }
.cut-view-in > img, .cut-view-in > .cut-bg, .cut-view-in > .cut-bg > img:not(.cut-bg-front) { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; box-shadow: none; }
.cut-view-in > .cut-bg > img:not(.cut-bg-front) { background: none; }
.cut-view-in > .cut-bg .cut-bg-front { border-radius: 0; }
/* the floor line and the labels keep their size, whatever the zoom */
.cut-view-in .cut-floor { border-top-width: calc(2px / var(--k, 1)); }
.cut-view-in .cut-floor::before { top: calc(-8px / var(--k, 1)); height: calc(16px / var(--k, 1)); }
.cut-view-in .cut-home { border-width: calc(2px / var(--k, 1)); }
.cut-view-in .cut-floor span { transform: scale(calc(1 / var(--k, 1))); transform-origin: 100% 100%; top: auto; bottom: calc(6px / var(--k, 1)); }
.cut-view-in .cut-home span { transform: scale(calc(1 / var(--k, 1))); transform-origin: 0 100%; }
body.cut-space .cut-view, body.cut-hand .cut-view { cursor: grab; }
body.cut-space .cut-view *, body.cut-hand .cut-view * { cursor: inherit; }
.cut-view.dragging, .cut-view.dragging * { cursor: grabbing; }
.cut-pose-page.has-view { flex: 1 0 420px; flex-wrap: nowrap; align-items: stretch; min-height: 420px; }
.cut-pose-page.has-view > .cut-annot-info { flex: 0 0 320px; align-self: flex-start; }
/* a face made for an earlier drawing of the pose */
.cut-stale { display: flex; flex-direction: column; gap: 10px; border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.cut-stale > p { margin: 0; }
/* Make faces with AI (cutout/make.js facesWindow): the poses without a face, each ticked or left out */
.cut-face-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.cut-face-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: var(--fs-s); color: var(--text-2); cursor: pointer; opacity: .55; }
.cut-face-pick.on { opacity: 1; border-color: var(--accent); }
.cut-face-pick img { width: 100%; height: 90px; object-fit: contain; background: var(--paper); border-radius: var(--radius-s); }
.cut-face-pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-sheet-res img { width: 100%; height: auto; border-radius: var(--radius-s); background: var(--paper); }

/* Make views with AI (cutout/angles.js): the four panels asked for (the first always the whole place), the storyboard's panels to make views of */
.cut-ang-asks { display: flex; flex-direction: column; gap: 6px; }
.cut-ang-ask { display: flex; flex-direction: column; gap: 4px; }
.cut-ang-pick { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.cut-ang-pick .inp { flex: 1; min-width: 0; }
.cut-ang-fixed { gap: 8px; padding: 7px 9px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); background: var(--paper); font-size: 13.5px; }
.cut-ang-fixed-k { font-weight: 600; }
.cut-ang-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cut-ang-panel { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.cut-ang-pic { display: flex; justify-content: center; background: var(--paper); border-radius: var(--radius-s); overflow: hidden; }
.cut-ang-pic canvas { display: block; max-width: 100%; height: auto; }
.cut-ang-head { display: flex; align-items: center; gap: 6px; }
.cut-ang-head .inp { flex: 1; min-width: 0; }
.cut-ang-line { min-height: 1.3em; }
.cut-ang-acts { display: flex; flex-wrap: wrap; gap: 6px; }
/* a place's cameras (Places › Cameras) and a camera's page */
.cut-ang-cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cut-ang-cam { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.cut-ang-cam:hover { border-color: var(--accent); }
.cut-ang-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-ang-big { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; padding: 8px; }
.cut-ang-big canvas { display: block; max-width: 100%; height: auto; border-radius: var(--radius-s); }
.cut-ang-spots { display: flex; flex-direction: column; gap: 10px; }
.cut-ang-spot { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.cut-ang-what { display: flex; flex-direction: column; gap: 2px; }
.cut-ang-warn { color: var(--danger); }
