/* Desk Flow · Editor — the phone-first studio direction (stage over a white work sheet, fixed centre playhead,
   transport bar, tool dock, thumb drawer) on the boxes geometry: controls 36 / touch 44 / field 48–56, radius 8,
   groups 10, cards 16, labels 24 radius 6, tabs 48 with a 2px underline. Ink and white; red is the playhead and live. */
.ed { gap: 16px; padding-bottom: 24px; }
.ed-bar { display: flex; align-items: center; gap: 8px; padding-top: 16px; flex-wrap: wrap; }
.ed-ttl h1 { margin: 4px 0 0; font-size: 24px; line-height: 32px; color: var(--df-ink); }
.ed-item { font-size: 15px; font-weight: 600; color: var(--df-ink-2); margin-inline-start: 8px; font-variant-numeric: tabular-nums; }
.ed-fmt { min-width: 92px; }
.ed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--df-live); }

.ed-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; min-height: 0; }
.ed-stage { position: relative; height: clamp(240px, calc(100dvh - 560px), 440px); border-radius: 16px; background: #0b0b0c; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.ed-frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; container-type: inline-size; touch-action: none; }
.ed-frame[data-f="16:9"] { aspect-ratio: 16 / 9; height: auto; width: 100%; max-height: 100%; }
.ed-frame[data-f="1:1"] { aspect-ratio: 1; }
.ed-frame[data-f="4:5"] { aspect-ratio: 4 / 5; }
.ed-img { position: absolute; inset: 0; background: #11151b center / cover no-repeat; transition: filter .15s; }
.ed-zone { position: absolute; top: 16px; inset-inline-start: 16px; }
.ed-bug { position: absolute; top: 4cqw; inset-inline-end: 4cqw; display: flex; align-items: center; gap: 1.6cqw; height: 7cqw; min-height: 18px; padding: 0 2cqw; border-radius: 6px; background: rgb(11 11 12 / 86%); color: #fff; font: 700 clamp(9px, 3cqw, 14px) var(--gt-font-body, Assistant, sans-serif); pointer-events: none; }
.ed-bug img { height: 60%; width: auto; }
.ed-bug[hidden] { display: none; }
.ed-grid { position: absolute; inset: 0; pointer-events: none; }
.ed-grid i { position: absolute; background: rgb(255 255 255 / 22%); }
.ed-grid i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; } .ed-grid i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.ed-grid i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; } .ed-grid i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.ed-grid b { position: absolute; inset: 6% 5%; border: 1px dashed rgb(255 255 255 / 45%); border-radius: 6px; }
.ed-gx, .ed-gy { position: absolute; pointer-events: none; background: var(--df-live); }
.ed-gx { left: 50%; top: 0; bottom: 0; width: 1px; } .ed-gy { top: 50%; left: 0; right: 0; height: 1px; }
.ed-snap { position: absolute; top: 2cqw; left: 50%; transform: translateX(-50%); height: 24px; padding: 0 8px; border-radius: 6px; background: rgb(11 11 12 / 86%); color: #fff; font: 700 11px/24px var(--gt-font-body, Assistant, sans-serif); font-variant-numeric: tabular-nums; pointer-events: none; }

/* text layers on the picture — NF graphics, sized by the frame (cqw) */
.ed-ovs { position: absolute; inset: 0; }
.ed-ov { position: absolute; transform: translate(-50%, -50%); width: 86%; cursor: grab; touch-action: none; font-family: var(--gt-font-body, Assistant, sans-serif); direction: ltr; }
.ed-ov.on { outline: 1.5px dashed #fff; outline-offset: 4px; }
.ed-ov:active { cursor: grabbing; }
.ov-lt { display: flex; background: #fff; border-radius: 1.6cqw; overflow: hidden; box-shadow: 0 1cqw 3cqw rgb(0 0 0 / 30%); }
.ov-lt i { width: 1.8cqw; background: var(--df-live); flex: none; }
.ov-lt div { padding: 2.2cqw 3cqw; min-width: 0; }
.ov-lt b { display: block; font-size: 4.6cqw; line-height: 1.15; color: #0b0b0c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-lt span { display: block; font-size: 3.1cqw; color: #454f5b; margin-top: .6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tk { display: flex; height: 8cqw; border-radius: 1.4cqw; overflow: hidden; background: #0b0b0c; color: #fff; font-size: 3.5cqw; font-weight: 600; align-items: center; }
.ov-tk em { align-self: stretch; display: grid; place-items: center; padding: 0 2.4cqw; background: var(--df-live); font-style: normal; font-weight: 800; letter-spacing: .02em; }
.ov-tk span { padding: 0 2.4cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-hl em { display: inline-block; padding: .8cqw 2cqw; border-radius: 1.2cqw 1.2cqw 0 0; background: var(--df-live); color: #fff; font-style: normal; font-size: 3cqw; font-weight: 800; }
.ov-hl b { display: block; padding: 2.4cqw 3cqw; border-radius: 0 1.6cqw 1.6cqw 1.6cqw; background: rgb(11 11 12 / 92%); color: #fff; font-size: 5cqw; line-height: 1.2; }

/* tools panel (PC) */
.ed-panel { display: flex; flex-direction: column; background: var(--df-card); border-radius: 16px; box-shadow: var(--df-shadow); min-height: 0; height: clamp(240px, calc(100dvh - 560px), 440px); overflow: hidden; }
.ed-grip { display: none; }
.ed-tabs { display: flex; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--df-line); flex: none; overflow-x: auto; scrollbar-width: none; }
.ed-tabs button { height: 48px; border: 0; background: none; padding: 0; color: var(--df-ink-2); font: 500 14px inherit; font-family: inherit; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; white-space: nowrap; }
.ed-tabs button[aria-selected="true"] { color: var(--df-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--df-ink); }
.ed-pb { flex: 1; overflow: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.ed-pf { display: none; }
.ed-pb h4 { margin: 0; font-size: 14px; color: var(--df-ink); }
.ed-words { display: flex; flex-direction: column; gap: 2px; }
.ed-w { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border: 0; border-radius: 8px; background: none; text-align: start; font: 14px/22px inherit; font-family: inherit; color: var(--df-ink-3); cursor: pointer; }
.ed-w:hover { background: var(--df-hover); }
.ed-w time { font-size: 12px; font-weight: 700; color: var(--df-ink-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ed-w.in { color: var(--df-ink); }
.ed-w.now { background: var(--df-sel); color: var(--df-ink); font-weight: 600; }
.ed-adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-adds button { height: 64px; border: 0; border-radius: 10px; background: var(--df-neutral); color: var(--df-ink); font: 700 13px inherit; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ed-adds button:hover { background: var(--df-sel); }
.ed-adds svg { width: 20px; height: 20px; }
.ed-fl2 { display: flex; flex-direction: column; gap: 8px; }
.ed-fl2 .df-fld { height: 48px; cursor: text; }
.ed-pos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: var(--df-neutral); }
.ed-pos button { height: 32px; border: 0; border-radius: 6px; background: none; color: var(--df-ink-2); font: 600 12px inherit; font-family: inherit; cursor: pointer; }
.ed-pos button:hover { background: var(--df-card); color: var(--df-ink); }
.ed-layers { display: flex; flex-direction: column; gap: 4px; }
.ed-layer { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 12px; border-radius: 8px; background: var(--df-neutral); font-size: 14px; color: var(--df-ink); cursor: pointer; }
.ed-layer.on { box-shadow: inset 0 0 0 1.5px var(--df-ink); }
.ed-layer span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-pre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ed-pre button { border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; font: 600 12px inherit; font-family: inherit; color: var(--df-ink-2); }
.ed-pre i { width: 100%; aspect-ratio: 1; border-radius: 10px; background: center / cover no-repeat; box-shadow: inset 0 0 0 2px transparent; }
.ed-pre button[aria-pressed="true"] { color: var(--df-ink); }
.ed-pre button[aria-pressed="true"] i { box-shadow: inset 0 0 0 2px var(--df-ink), inset 0 0 0 4px #fff; }
.ed-sl { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 13px; color: var(--df-ink-2); }
.ed-sl output { text-align: end; color: var(--df-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ed-sl input { width: 100%; height: 20px; margin: 0; appearance: none; background: none; }
.ed-sl input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: var(--df-ink); }
.ed-sl input::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: var(--df-ink); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgb(11 11 12 / 45%); }
.ed-sl input::-moz-range-track { height: 3px; border-radius: 3px; background: var(--df-ink); }
.ed-sl input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--df-ink); border: 2.5px solid #fff; }
.ed-sw { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; color: var(--df-ink); }
.ed-sw button { width: 44px; height: 24px; border: 0; border-radius: 12px; background: var(--df-sel); position: relative; cursor: pointer; }
.ed-sw button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); transition: transform .2s var(--df-ease); }
.ed-sw button[aria-pressed="true"] { background: var(--df-inv); }
.ed-sw button[aria-pressed="true"]::after { transform: translateX(20px); }

/* the work sheet */
.ed-sheet { background: var(--df-card); border-radius: 16px; box-shadow: var(--df-shadow); padding: 12px 0 0; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ed-sh { display: flex; align-items: center; gap: 10px; padding: 0 16px 0 20px; min-height: 44px; flex-wrap: wrap; }
.ed-sh > b { font-size: 15px; color: var(--df-ink); }
.ed-pill { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--df-sel); font-size: 12px; font-weight: 700; line-height: 24px; color: var(--df-ink); font-variant-numeric: tabular-nums; }
.ed-nudge { display: flex; gap: 24px; padding: 4px 20px 8px; flex-wrap: wrap; }
.ed-ng { display: flex; align-items: center; gap: 6px; }
.ed-ng .df-fl { margin: 0 6px 0 0; width: 36px; }
.ed-ng .df-btn { height: 32px; min-width: 44px; padding: 0 8px; font-size: 13px; }
.ed-tc { min-width: 84px; text-align: center; font: 800 15px/32px var(--gt-font-body, Assistant, sans-serif); font-variant-numeric: tabular-nums; color: var(--df-ink); }

.ed-tl { position: relative; height: 184px; user-select: none; }
.ed-needle { position: absolute; top: 2px; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ed-needle i:first-child { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--df-live); }
.ed-needle b { width: 2px; flex: 1; background: var(--df-live); }
.ed-needle i:last-child { width: 6px; height: 6px; border-radius: 50%; background: var(--df-live); }
.ed-scroll { height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; }
.ed-scroll::-webkit-scrollbar { display: none; }
.ed-scroll:active { cursor: grabbing; }
.ed-content { position: relative; height: 100%; display: grid; grid-template-rows: 20px 56px 12px 28px 24px; gap: 6px; align-content: center; box-sizing: content-box; }
.ed-zones { position: absolute; inset: 0; pointer-events: none; }
.ed-zones div { position: absolute; top: 0; bottom: 0; }
.ed-zones .pad { background: repeating-linear-gradient(135deg, rgb(145 158 171 / 10%) 0 6px, transparent 6px 12px); }
.ed-zones .nr { background: repeating-linear-gradient(135deg, rgb(145 158 171 / 22%) 0 3px, transparent 3px 9px); }
.ed-zones span { position: absolute; top: 2px; margin-inline-start: 8px; font-size: 11px; font-weight: 700; color: var(--df-ink-3); white-space: nowrap; }
.ed-zones .it span { color: var(--df-ink); }
.ed-zones .edge { position: absolute; top: 16px; bottom: 0; width: 0; border-left: 1px dashed var(--df-ink-3); }
.ed-ruler { position: relative; border-bottom: 1px solid var(--df-line); }
.ed-ruler span { position: absolute; bottom: 3px; font-size: 11px; font-weight: 600; color: var(--df-ink-2); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.ed-ruler i { position: absolute; bottom: 0; width: 1px; height: 4px; background: var(--df-ink-3); }
.ed-video { position: relative; }
.ed-clip { position: absolute; top: 0; bottom: 0; border-radius: 10px; overflow: hidden; display: flex; background: #2b3642; cursor: pointer; }
.ed-clip i { flex: none; height: 100%; background: center / cover no-repeat; }
.ed-clip.off { opacity: .28; }
.ed-clip.off::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(255 255 255 / 50%) 0 4px, transparent 4px 10px); }
.ed-clip.sel { box-shadow: inset 0 0 0 2px var(--df-ink); }
.ed-nr { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: var(--df-neutral); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--df-ink-3); }
.ed-marks { position: relative; border-bottom: 1px dotted var(--df-ink-3); height: 8px; align-self: center; }
.ed-marks i { position: absolute; top: 4px; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: var(--df-ink); }
.ed-marks i.m { background: var(--df-live); }
.ed-lane { position: relative; }
.ed-cap span { position: absolute; top: 2px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--df-neutral); font-size: 11px; line-height: 24px; color: var(--df-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ed-cap span.in { background: var(--df-sel); color: var(--df-ink); }
.ed-txl span { position: absolute; top: 0; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--df-inv); color: #fff; font-size: 11px; font-weight: 700; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ed-txl span.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--df-inv); }
.ed-range { position: absolute; top: 26px; height: 56px; border: 2px solid var(--df-ink); border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 9999px rgb(255 255 255 / 0%); }
.ed-h { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 0; border-radius: 50%; background: var(--df-ink); color: #fff; display: grid; place-items: center; cursor: ew-resize; pointer-events: auto; touch-action: none; box-shadow: 0 2px 6px rgb(0 0 0 / 25%); }
.ed-h svg { width: 16px; height: 16px; }
.ed-h.a { left: -15px; } .ed-h.b { right: -15px; }
.ed-h::after { content: ""; position: absolute; inset: -8px; }

.ed-tr { display: flex; align-items: center; gap: 8px; margin: 4px 16px 12px; padding: 4px; border-radius: 12px; background: var(--df-neutral); }
.ed-tb { height: 36px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--df-ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 13px inherit; font-family: inherit; cursor: pointer; }
.ed-tb:hover { background: var(--df-card); color: var(--df-ink); }
.ed-tb svg { width: 20px; height: 20px; }
.ed-tb[aria-pressed="true"] { background: var(--df-card); color: var(--df-ink); box-shadow: 0 1px 2px 0 rgb(145 158 171 / 24%); }
.ed-tb:nth-of-type(2) svg, .ed-tb:nth-of-type(3) svg { fill: currentColor; stroke: none; }
#edBack svg, #edFwd svg { fill: currentColor; stroke: none; }
.ed-play { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--df-inv); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 10px rgb(11 11 12 / 25%); }
.ed-play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.ed-add { background: var(--df-inv); color: #fff; border-radius: 50%; width: 36px; }
.ed-add:hover { background: #454f5b; color: #fff; }
.ed-dock { display: none; }

/* export dialog */
.ed-scrim { z-index: 2100; }
.ed-modal { position: fixed; inset: 0; z-index: 2101; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.ed-modal[hidden] { display: none; }
.ed-mc { pointer-events: auto; width: min(440px, 100%); background: var(--df-card); border-radius: 16px; box-shadow: var(--df-drop); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ed-mc h3 { margin: 0; font-size: 18px; color: var(--df-ink); }
.ed-mc .df-hint { margin: 0; }
.ed-ex { display: flex; flex-direction: column; gap: 8px; }
.ed-ex button { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--df-neutral); color: var(--df-ink); font: 14px inherit; font-family: inherit; cursor: pointer; text-align: start; }
.ed-ex button span { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--df-card); font-size: 12px; font-weight: 700; line-height: 24px; }
.ed-ex button[aria-pressed="true"] { background: var(--df-inv); color: #fff; }
.ed-ex button[aria-pressed="true"] span { background: rgb(255 255 255 / 16%); color: #fff; }
.ed-mf { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

@media (max-width: 1199px) { .ed-top { grid-template-columns: minmax(0, 1fr) 320px; } }

/* phones: the reference layout — stage, sheet, dock, thumb drawer */
@media (max-width: 767px) {
  .ed { padding: 0 0 0; gap: 0; height: calc(100dvh - var(--hh, 60px)); }
  .ed-bar { padding: 8px 12px; gap: 6px; }
  .ed-ttl { display: none; }
  .ed-hide-s { display: none !important; }
  .ed-bar .df-btn { height: 36px; }
  .ed-top { display: block; flex: 1; min-height: 0; padding: 0 12px 8px; }
  .ed-stage { height: 100%; min-height: 200px; padding: 8px; border-radius: 16px; }
  .ed-zone { top: 8px; inset-inline-start: 8px; }
  .ed-sheet { border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgb(11 11 12 / 6%); padding-top: 10px; flex: none; }
  .ed-sh { padding: 0 8px 0 16px; min-height: 36px; }
  .ed-cross { order: 9; flex-basis: 100%; justify-content: center; }
  .ed-nudge { gap: 8px; padding: 2px 12px 4px; justify-content: space-between; }
  .ed-ng .df-fl { display: none; }
  .ed-ng .df-btn { min-width: 40px; }
  .ed-tc { min-width: 72px; font-size: 14px; }
  .ed-tl { height: 168px; }
  .ed-tr { margin: 2px 12px 8px; }
  .ed-tbi { display: none; }
  .ed-dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--df-line); }
  .ed-dock button { min-height: 56px; border: 0; border-radius: 10px; background: none; color: var(--df-ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 600 11px inherit; font-family: inherit; cursor: pointer; }
  .ed-dock button svg { width: 20px; height: 20px; }
  .ed-dock button[aria-pressed="true"] { color: var(--df-ink); }
  /* the panel becomes the thumb drawer: closed / half / full */
  .ed-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2001; height: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -16px 48px rgb(11 11 12 / 22%); transition: height .36s cubic-bezier(.22, 1, .36, 1); }
  .ed-panel[data-snap="half"] { height: 46dvh; } .ed-panel[data-snap="full"] { height: 72dvh; }
  .ed-panel.drag { transition: none; }
  .ed-grip { display: grid; place-items: center; height: 24px; flex: none; cursor: grab; touch-action: none; }
  .ed-grip i { width: 44px; height: 5px; border-radius: 3px; background: var(--df-ink-3); opacity: .6; }
  .ed-tabs { padding: 0 16px; gap: 20px; }
  .ed-pb { padding: 16px; }
  .ed-pf { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--df-line); flex: none; }
  .ed-pf .df-btn { width: 100%; }
  .ed-scrim { z-index: 2000; }
  .ed-mc { align-self: end; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ed-panel, .ed-img, .ed-sw button::after { transition: none; } }
@media (max-width: 400px) { .ed-tr { gap: 2px; margin-inline: 8px; } .ed-tb { min-width: 34px; padding: 0 5px; } .ed-add { width: 34px; } }
@media (max-height: 520px) and (min-width: 768px) { .ed-stage, .ed-panel { height: max(200px, calc(100dvh - 150px)); } }

/* ---------- framing ---------- */
.ed-img { background-size: cover; }
.ed-safe { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ed-safe i { position: absolute; left: 0; right: 0; background: rgb(231 25 50 / 22%); }
.ed-safe .t { top: 0; border-bottom: 1px dashed rgb(255 255 255 / 70%); }
.ed-safe .b { bottom: 0; border-top: 1px dashed rgb(255 255 255 / 70%); }
.ed-safe .l { left: 0; right: auto; border-right: 1px dashed rgb(255 255 255 / 70%); }
.ed-safe .r { right: 0; left: auto; border-left: 1px dashed rgb(255 255 255 / 70%); }
.ed-safe span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; padding: 0 8px; height: 24px; line-height: 24px; border-radius: 6px; background: rgb(11 11 12 / 72%); color: #fff; font-size: 11px; font-weight: 600; }
.ed-fseg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ed-fnote { margin: -8px 0 0; }
.ed-src { position: relative; flex: none; aspect-ratio: 16 / 9; border-radius: 10px; background: #11151b center / 100% 100% no-repeat; overflow: hidden; touch-action: none; }
.ed-crop { position: absolute; box-shadow: 0 0 0 999px rgb(11 11 12 / 55%); outline: 2px solid #fff; outline-offset: -1px; border-radius: 2px; cursor: grab; }
.ed-crop:active { cursor: grabbing; }
.ed-crop i { position: absolute; background: rgb(255 255 255 / 35%); pointer-events: none; }
.ed-crop i:first-child { left: 50%; top: 0; bottom: 0; width: 1px; }
.ed-crop i:last-child { top: 50%; left: 0; right: 0; height: 1px; }
.ed-face { position: absolute; z-index: 2; width: 24px; height: 24px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--df-live); color: #fff; font: 700 11px/20px inherit; font-family: inherit; cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgb(0 0 0 / 40%); }
.ed-face::after { content: ""; position: absolute; inset: -10px; }
.ed-pos3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-fol { display: flex; flex-direction: column; gap: 8px; }
.ed-kfs { flex: none; display: flex; flex-direction: column; gap: 4px; }
.ed-kfh { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.ed-kfh b { font-size: 14px; }
.ed-kf { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 0 8px; border-radius: 8px; background: var(--df-neutral); }
.ed-kft { border: 0; background: none; padding: 0; font: 700 13px inherit; font-family: inherit; color: var(--df-ink); font-variant-numeric: tabular-nums; cursor: pointer; }
.ed-marks i.k { background: #fff; outline: 1.5px solid var(--df-ink); width: 6px; height: 6px; }
/* export: one row per network */
.ed-ex button { justify-content: flex-start; gap: 12px; padding: 8px 16px; }
.ed-ex .ed-ck { flex: none; width: 20px; height: 20px; padding: 0; border-radius: 6px; background: var(--df-card); border: 1.5px solid var(--df-ink-3); position: relative; }
.ed-ex button[aria-pressed="true"] .ed-ck { background: #fff; border-color: #fff; }
.ed-ex button[aria-pressed="true"] .ed-ck::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--df-inv); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ed-ex .ed-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; height: auto; padding: 0; background: none; font-size: 14px; font-weight: 400; line-height: 1.3; }
.ed-ex button[aria-pressed="true"] .ed-nm { background: none; }
.ed-ex .ed-nm small { font-size: 12px; opacity: .7; }
.ed-ex .ed-nm em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .8; }
.ed-ex .ed-nm em.bad { color: var(--df-live); opacity: 1; }
.ed-ex button[aria-pressed="true"] .ed-nm em.bad { color: #ff8a98; }
.ed-exn { margin: 12px 0 0; }
#edModalGo:disabled { opacity: .4; cursor: not-allowed; }
.ed-sw button { height: 24px !important; min-height: 0 !important; min-width: 44px !important; flex: none; }
.ed-sw button::before { content: ""; position: absolute; inset: -10px 0; }
