/* TeleP post-recording editor (owner: tools-dev). Uses site tokens; --navy/--yellow/--blue when the new palette defines them. */
.ed {
  --ed-bg: var(--bg, #070B1A);
  --ed-card: var(--surface, #0E1630);
  --ed-card-2: var(--surface-2, #16213F);
  --ed-line: var(--border, #24314F);
  --ed-ink: var(--text, #EEF2FF);
  --ed-muted: var(--muted, #9AA6C4);
  --ed-accent: var(--accent, #FFC53D);              /* yellow fill (buttons, chips, handles) */
  --ed-accent-text: var(--accent-text, var(--ed-accent));
  --ed-link: var(--accent-2, var(--ed-accent-text)); /* blue links */
  --ed-accent-ink: var(--accent-ink, #070B1A);
  --ed-accent-soft: var(--accent-soft, rgba(25, 211, 192, .12));
  --ed-hi: var(--accent, #FFC53D);
  --ed-stage: var(--bg-2, #070B1A);
  --ed-radius: var(--radius, 14px);
  --ed-font: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-family: var(--ed-font); color: var(--ed-ink); margin: 16px 0 32px;
}
.ed *, .ed *::before, .ed *::after { box-sizing: border-box; }
.ed [hidden] { display: none !important; }
.ed-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ed-main { min-width: 0; }
.ed-side { min-width: 0; }
@media (min-width: 960px) { .ed-side { grid-column: 1; grid-row: 1; } }
@media (min-width: 960px) {
  /* Player dominates: ~38/62 split, sticky, filling the viewport height under the site header. */
  .ed-grid { grid-template-columns: minmax(300px, 38fr) minmax(0, 62fr); gap: 28px; align-items: start; }
  .ed-main { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h, 64px) + 16px); }
  .ed-stage { aspect-ratio: var(--ed-ar, 16 / 9); max-height: max(360px, calc(100vh - var(--header-h, 64px) - 32px - 60px - 72px)); }
}

/* Title */
.ed-titlebar { position: relative; display: flex; align-items: center; }
.ed-title {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ed-ink);
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 40px 8px 10px; min-height: 44px;
}
.ed-title:hover:not(:disabled) { border-color: var(--ed-line); }
.ed-title:focus { outline: none; border-color: var(--ed-accent); background: var(--ed-card); }
.ed-title:disabled { color: var(--ed-muted); }
.ed-pencil { position: absolute; right: 10px; width: 20px; height: 20px; color: var(--ed-muted); pointer-events: none; }
.ed-pencil svg, .ed-lock svg, .ed-ico svg, .ed-icon-btn svg, .ed-vol__ico svg { width: 100%; height: 100%; display: block; }
.ed-private { display: flex; gap: 8px; align-items: center; margin: 6px 0 16px; padding: 0 10px; font-size: .85rem; color: var(--ed-muted); }
.ed-lock { flex: 0 0 16px; width: 16px; height: 16px; color: var(--ed-accent-text); }

/* Cards */
.ed-cards { display: grid; gap: 10px; }
.ed-cards[aria-disabled="true"] .ed-card:not(.ed-card--static) { opacity: .55; pointer-events: none; }
.ed-card { background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-radius); overflow: hidden; }
.ed-card__h { margin: 0; font: inherit; }
.ed-card__head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ed-card__head--static { cursor: default; }
.ed-ico { flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ed-accent-soft); color: var(--ed-accent-text); }
.ed-ico--ok { color: var(--ed-accent-text); background: var(--ed-accent-soft); }
.ed-card__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ed-card__title { font-weight: 700; font-size: 1rem; }
.ed-card__sub { font-size: .85rem; color: var(--ed-muted); line-height: 1.35; }
.ed-chev { width: 10px; height: 10px; border-right: 2px solid var(--ed-muted); border-bottom: 2px solid var(--ed-muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.ed-card.is-open .ed-chev { transform: rotate(-135deg); }
.ed-card__body { padding: 0 14px 14px; }
.ed-badge { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ed-accent-ink); background: var(--ed-hi); border-radius: 999px; padding: 4px 10px; }
.ed-card--upsell { border-style: dashed; }
.ed-note { margin: 0 0 10px; font-size: .88rem; color: var(--ed-muted); line-height: 1.45; }
.ed-note--sm { font-size: .8rem; margin: 10px 0 0; }
.ed-hint { margin: 10px 0 0; font-size: .82rem; color: var(--ed-muted); }

/* Controls */
.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-chip { position: relative; }
.ed-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ed-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ed-line);
  font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.ed-chip span { border-color: var(--border-strong, var(--ed-line)); }
.ed-chip input:checked + span { background: var(--ed-accent); border-color: var(--btn-border, var(--ed-accent)); color: var(--ed-accent-ink); }
.ed-chip input:focus-visible + span { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: 2px; }
.ed-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; }
.ed-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-switch__ui { flex: 0 0 46px; width: 46px; height: 26px; border-radius: 999px; background: var(--ed-line); position: relative; transition: background .15s; }
.ed-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ed-switch input:checked + .ed-switch__ui { background: var(--ed-accent); }
.ed-switch input:checked + .ed-switch__ui::after { transform: translateX(20px); }
.ed-switch input:focus-visible + .ed-switch__ui { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: 2px; }
.ed-fieldset { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.ed-fieldset:disabled { opacity: .5; }
.ed-fieldset legend { font-weight: 600; font-size: .85rem; margin-bottom: 6px; padding: 0; }
.ed-range { display: block; margin-top: 10px; font-size: .85rem; font-weight: 600; }
.ed-range span { display: flex; justify-content: space-between; }
.ed-range output { color: var(--ed-muted); font-variant-numeric: tabular-nums; }
.ed-range input, .ed-vol input { width: 100%; height: 44px; accent-color: var(--ed-accent); }

.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid var(--ed-line); background: var(--ed-card-2); color: var(--ed-ink);
}
.ed-btn--primary { background: var(--btn-bg, var(--ed-accent)); border-color: var(--btn-border, var(--btn-bg, var(--ed-accent))); color: var(--btn-ink, var(--ed-accent-ink)); }
.ed-btn--primary:hover { background: var(--btn-bg-hover, var(--btn-bg, var(--ed-accent))); }
.ed-btn--sm { min-height: 44px; padding: 6px 12px; font-size: .85rem; }
.ed-btn--ghost { background: transparent; }
.ed-btn:disabled, .ed-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.ed-btn:focus-visible, .ed-icon-btn:focus-visible, .ed-link:focus-visible, .ed-card__head:focus-visible, .ed-handle:focus-visible, .ed-crop:focus-visible { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: 2px; }
.ed-file { position: relative; overflow: hidden; }
.ed-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.ed-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--ed-link); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ed-actions--center { justify-content: center; }
.ed-progress { height: 8px; border-radius: 999px; background: var(--ed-card-2); overflow: hidden; margin: 6px 0; }
.ed-progress__bar { height: 100%; width: 0; background: var(--ed-accent); transition: width .2s linear; }
.ed-status { margin: 4px 0 0; font-size: .88rem; min-height: 1.3em; }
.ed-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.ed-result__meta { font-size: .85rem; color: var(--ed-muted); font-variant-numeric: tabular-nums; }

/* Trim */
.ed-trim { position: relative; height: 64px; margin: 6px 14px 0; border-radius: 10px; background: var(--ed-card-2); touch-action: none; }
.ed-strip { position: absolute; inset: 0; display: flex; border-radius: 10px; overflow: hidden; }
.ed-strip canvas { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; opacity: .55; }
.ed-trim__sel { position: absolute; top: 0; bottom: 0; border: 3px solid var(--ed-hi); border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .0); pointer-events: none; background: rgba(255, 255, 255, .06); }
.ed-trim__head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ed-handle {
  position: absolute; top: 50%; width: 28px; height: 72px; transform: translate(-50%, -50%); border-radius: 8px; cursor: ew-resize;
  background: var(--ed-hi); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); touch-action: none;
}
.ed-handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 22px; transform: translate(-50%, -50%); border-left: 2px solid rgba(0,0,0,.45); border-right: 2px solid rgba(0,0,0,.45); }
.ed-trimtimes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.ed-trimtimes dt { font-size: .75rem; color: var(--ed-muted); }
.ed-trimtimes dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Player */
.ed-player { background: var(--ed-stage); border-radius: var(--ed-radius); overflow: hidden; border: 1px solid var(--ed-line); }
.ed-player:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.ed-player:fullscreen .ed-stage { flex: 1; aspect-ratio: auto; }
.ed-stage { position: relative; aspect-ratio: var(--ed-ar, 16 / 9); max-height: 70vh; width: 100%; background: #000; overflow: hidden; }
.ed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-video.is-mirror { transform: scaleX(-1); }
.ed-crop { position: absolute; border: 3px solid var(--ed-hi); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .7), 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; touch-action: none; }
.ed-crop.is-orig { border-color: transparent; box-shadow: none; cursor: default; pointer-events: none; }
.ed-logo-img { position: absolute; pointer-events: none; object-fit: contain; }
.ed-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; color: #EEF2FF; background: radial-gradient(circle at 50% 40%, #16213F, #070B1A); }
.ed-empty__title { margin: 0; font-weight: 800; font-size: 1.2rem; }
.ed-empty__text { margin: 0 0 8px; max-width: 46ch; font-size: .9rem; color: #c4cfdd; }
.ed-controls { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--ed-card); color: var(--ed-ink); flex-wrap: wrap; }
.ed-icon-btn { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ed-icon-btn[data-action="play"] { background: var(--btn-bg, var(--ed-accent)); color: var(--btn-ink, var(--ed-accent-ink)); }
.ed-icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.ed-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; min-width: 7ch; }
.ed-vol { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 1 220px; min-width: 120px; }
.ed-vol__ico { flex: 0 0 20px; width: 20px; height: 20px; color: var(--ed-muted); }
.ed-pill { flex: 0 0 auto; min-width: 3.4em; text-align: center; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ed-card-2); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .ed-vol { flex: 1 1 auto; min-width: 96px; margin-left: auto; } } /* phones: seek row on top, then play · time · volume · fullscreen */
@media (prefers-reduced-motion: reduce) { .ed * { transition: none !important; } }

/* Spec §5 additions */
.ed-meta { margin: -8px 0 14px; padding: 0 10px; font-size: .85rem; color: var(--ed-muted); font-variant-numeric: tabular-nums; min-height: 1.3em; }
.ed-sub { margin: 16px 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ed-muted); }
.ed-sub:first-child { margin-top: 0; }
.ed-nudges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; }
.ed-nudges .ed-btn { padding: 6px 4px; font-variant-numeric: tabular-nums; }
.ed-actions--more { margin-top: 12px; align-items: center; }
.ed-bigplay {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; padding: 20px; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: var(--btn-bg, var(--ed-accent)); color: var(--btn-ink, var(--ed-accent-ink));
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45); cursor: pointer; z-index: 2; transition: opacity .15s;
}
.ed-bigplay svg { width: 100%; height: 100%; display: block; }
.ed-bigplay.is-hidden { opacity: 0; pointer-events: none; }
.ed-bigplay:focus-visible { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: 3px; }
.ed-scrub { flex: 1 1 160px; min-width: 100px; height: 44px; accent-color: var(--ed-accent); background: transparent; }
@media (max-width: 420px) { .ed-scrub { order: -1; flex-basis: 100%; } .ed-bigplay { display: none; } } /* one play button on phones (qa-polish 8) */

/* Export bar under the player */
.ed-exportbar { margin-top: 10px; padding: 10px 12px; border-radius: var(--ed-radius); background: var(--ed-card); border: 1px solid var(--ed-line); }
.ed-exportbar .ed-actions { margin: 0; }
.ed-exportbar .ed-status:empty { display: none; }
.ed-exportbar .ed-result { margin-top: 8px; }

/* Phones/tablets: once a video is loaded, the export bar floats at the bottom of the screen (spec §5).
   Reserve its height at the end of the page (footer stays reachable) and keep player + transport above it. */
@media (max-width: 959px) {
  body.ed-has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* Stage height is capped in JS (fitStage): real stage top + transport rows + export bar, so the seek row never sits under the bar. */
  .ed.is-loaded .ed-stage { max-height: var(--ed-stage-max, calc(100dvh - 64px - 180px - 76px - env(safe-area-inset-bottom))); }
  .ed.is-loaded .ed-exportbar {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40; margin: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45); max-height: 45vh; overflow: auto; padding: 8px;
  }
  .ed.is-loaded .ed-exportbar .ed-actions { flex-wrap: nowrap; gap: 8px; }
  .ed.is-loaded .ed-exportbar .ed-actions .ed-btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; white-space: normal; line-height: 1.15; text-align: center; overflow-wrap: break-word; } /* labels wrap, never clipped (qa-phone: "Download original" was cut) */
}
@media (max-width: 380px) {
  .ed.is-loaded .ed-exportbar .ed-actions .ed-btn { font-size: .88rem; padding-left: 8px; padding-right: 8px; }
}
.ed.is-notfound .ed-empty__text { color: #FFD777; font-weight: 600; }
.ed-bigplay.is-cropping { opacity: 0; pointer-events: none; }
.ed-hint--same { color: var(--ed-ink); font-weight: 600; }
.ed-ready { flex-basis: 100%; margin: 0; font-weight: 700; }

/* Recent takes (spec: never let older takes vanish silently) */
.ed-takes { margin: -6px 0 14px; padding: 0 10px; }
.ed-takes__head { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ed-muted); }
.ed-takes__head span { font-weight: 500; text-transform: none; letter-spacing: 0; }
.ed-takes__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.ed-take { display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; max-width: 200px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong, var(--ed-line)); background: var(--ed-card); color: var(--ed-ink); font: inherit; text-align: left; cursor: pointer; }
.ed-take[aria-current="true"] { border-color: var(--ed-accent); box-shadow: inset 0 0 0 1px var(--ed-accent); }
.ed-take__t { font-weight: 700; font-size: .85rem; max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-take__m { font-size: .75rem; color: var(--ed-muted); font-variant-numeric: tabular-nums; }
.ed-warn { flex-basis: 100%; margin: 0; color: var(--warn-ink, var(--ed-accent-text)); font-weight: 600; font-size: .88rem; }
.ed.is-exporting .ed-cards { opacity: .6; }
.ed-takes__pruned { margin: 8px 0 0; font-size: .82rem; color: var(--ed-ink); background: var(--ed-accent-soft); border-radius: 8px; padding: 6px 10px; }
/* Anchor buttons keep their button colours on hover/focus (beats the site's global a:hover link colour). */
.ed a.ed-btn--primary, .ed a.ed-btn--primary:hover, .ed a.ed-btn--primary:focus, .ed a.ed-btn--primary:visited { color: var(--btn-ink, var(--ed-accent-ink)); }
.ed a.ed-btn--ghost, .ed a.ed-btn--ghost:hover, .ed a.ed-btn--ghost:focus, .ed a.ed-btn--ghost:visited, .ed a.ed-btn:not(.ed-btn--primary):hover { color: var(--ed-ink); }
/* Empty player is always dark (both themes): the ghost link must stay light on it (qa-polish P1 / qa-desk 16). */
.ed .ed-empty a.ed-btn--ghost, .ed .ed-empty a.ed-btn--ghost:visited, .ed .ed-empty a.ed-btn--ghost:hover, .ed .ed-empty a.ed-btn--ghost:focus { color: #EEF2FF; border-color: rgba(238,242,255,.45); }
.ed .ed-empty a.ed-btn--ghost:focus-visible { outline: 3px solid #FFC53D; outline-offset: 2px; }
/* No video yet: editing controls read clearly as inactive; Open file / Record stay active (qa-polish 9). */
.ed:not(.is-loaded) .ed-cards[aria-disabled="true"] .ed-card:not(.ed-card--static) { opacity: .45; }
/* Phones: while exporting, the bar shows Export (progress) + Cancel only, so nothing is clipped (qa-phone #2). */
@media (max-width: 959px) { .ed.is-exporting .ed-exportbar [data-role="original"] { display: none; } }
/* Empty state on small phones: the box grows to fit its text and buttons (qa-phone #7). */
@media (max-width: 959px) { .ed:not(.is-loaded) .ed-stage { aspect-ratio: auto; min-height: 300px; max-height: none; } }
/* Trim handles: 28px visual, ≥44px hit area. */
.ed-handle::before { content: ""; position: absolute; inset: -6px -8px; }
/* Empty editor: the title and privacy note read normally, not dimmed like the cards (qa-polish a). */
.ed:not(.is-loaded) .ed-title:disabled { color: var(--ed-ink); opacity: 1; }
.ed:not(.is-loaded) .ed-title:disabled::placeholder { color: var(--ed-ink); opacity: .85; }
/* Resize row: one line of 5 equal chips, "16:9" never wraps alone (qa-polish b). */
.ed-chips[data-role="ratios"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ed-chips[data-role="ratios"] .ed-chip { min-width: 0; }
.ed-chips[data-role="ratios"] .ed-chip span { display: flex; width: 100%; justify-content: center; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; padding-right: 4px; }
/* Hidden file inputs inside a label: show the focus ring on the label (WCAG 2.4.7). */
.ed-file:has(input:focus-visible) { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: 2px; }
.ed-empty .ed-file:has(input:focus-visible) { outline-color: #FFC53D; }
@supports not selector(:has(*)) { .ed-file:focus-within { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: 2px; } .ed-empty .ed-file:focus-within { outline-color: #FFC53D; } }
.ed-vol input:disabled { opacity: .45; }
/* Trim steppers: [−] Start [+]  [−] End [+], single line, 40px targets (hooks: .ed-steppers .ed-stepper .ed-stepper__btn .ed-stepper__lbl). */
.ed-steppers { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; }
.ed-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ed-line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.ed-stepper__btn { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ed-ink); font: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer; }
.ed-stepper__btn:hover { background: var(--ed-accent-soft, rgba(0,0,0,.05)); }
.ed-stepper__btn:focus-visible { outline: 3px solid var(--focus, var(--ed-accent)); outline-offset: -3px; }
.ed-stepper__lbl { padding: 0 4px; font-size: .85rem; font-weight: 600; white-space: nowrap; color: var(--ed-muted); }
/* Title: wraps to at most 2 lines instead of cutting mid-word (product-pm P2). */
textarea.ed-title { display: block; resize: none; overflow: hidden; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
