/* Company > Reels (company-reels.js): the reels the Content creator made, laid out like Messages (the list, the reel,
   her chat) in Messages' look (Claude Design's message-board-dark, 2026-11-06: no outlines, tints or edges; the open
   card deep accent). Every colour a variable: light on .rl, dark on .rl[data-theme="dark"], following the same pick as
   Messages on this device. Every control at least 44px to tap. */
.rl {
  --bg: #f4f6f9; --surface: #ffffff; --mine: #dbe8f5; --chip: #e6edf5; --line: #cfd7e2; --line-soft: #e1e6ee;
  --text: #142030; --dim: #5b6b7d; --accent: #2f6fa3; --accent-text: #235a88; --warn-text: #b4441a; --ok: #2e9e54;
  --btn-bg: #2f6fa3; --btn-text: #ffffff;
  --need: #f6dc7a; --need-ink: #6b4e00;
  --card: #ffffff; --card-hover: #f3f7fc; --open: #235a88; --open-hover: #1e5079; --open-text: #ffffff; --open-dim: #d6e4f2;
  --open-shadow: 0 2px 8px rgba(35, 90, 136, 0.35);
  --field-bg: #ffffff; --field-border: #cfd7e2; --focus-ring: rgba(47, 111, 163, 0.22);
  --sec-list: #eef1f5; --sec-reel: #ffffff; --sec-chat: #ffffff; --sec-divider: #dde3eb;
  --head-list: #e6eaf0; --head-reel: #f2f5f9; --head-chat: #f2f5f9; --head-h: 84px;
  --her-bubble: #e8eef6; --her-felt: rgba(47, 111, 163, 0.04);
  --yes: #2e9e54; --yes-ink: #ffffff; --mid: #f6dc7a; --mid-ink: #6b4e00; --no: #fbe3dc; --no-ink: #9b2c10;
  --video-bg: #0b0f16; --toast-bg: #142030; --toast-text: #ffffff; --toast-link: #a9cdf0;
  --scroll-track: #e6eaf0; --scroll-thumb: #6f7d91; --scroll-thumb-hover: #4a5a6d;
  position: relative; display: flex; height: max(560px, calc(100vh - 236px)); margin: -8px -12px;
  background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  border-radius: 16px; overflow: hidden; container-type: inline-size;
}
.rl[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1c; --mine: #1e3550; --chip: #2c2c2c; --line: #3a3a3a; --line-soft: #262626;
  --text: #f5f5f5; --dim: #a8a8a8; --accent: #4f95d6; --accent-text: #7db4e6; --warn-text: #ff8f7a; --ok: #4cc27a;
  --need: #3d3214; --need-ink: #f5d272;
  --card: #161616; --card-hover: #202020; --open: #1d4f7c; --open-hover: #22598a; --open-dim: #c6d8ea; --open-shadow: none;
  --field-bg: #1c1c1c; --field-border: #333333; --focus-ring: rgba(79, 149, 214, 0.35);
  --sec-list: #000000; --sec-reel: #000000; --sec-chat: #0b0b0b; --sec-divider: #262626;
  --head-list: #000000; --head-reel: #111111; --head-chat: #111111;
  --her-bubble: #262626; --her-felt: rgba(79, 149, 214, 0.06);
  --yes: #2f8f52; --yes-ink: #ffffff; --mid: #3d3214; --mid-ink: #f5d272; --no: #3a1a14; --no-ink: #ff9b85;
  --video-bg: #050505; --toast-bg: #262626; --toast-text: #f5f5f5; --toast-link: #7db4e6;
  --scroll-track: #121212; --scroll-thumb: #6b6b6b; --scroll-thumb-hover: #8c8c8c;
  color-scheme: dark;
}
.rl button, .rl textarea, .rl input { font-family: inherit; }
/* its own Company tab, edge to edge (company.js edgeToEdge sets the box's size): square, no frame */
.co-reels.is-edge .rl:not(.is-phone) { height: 100%; margin: 0; border-radius: 0; }
#detail .rl h2, #detail .rl h3 { margin: 0; }
.rl :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the list ---- */
.rl-list { flex: 0 0 340px; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--sec-divider); background: var(--sec-list); }
.rl-h-row { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--head-h); box-sizing: border-box; padding: 0 16px 0 24px; background: var(--head-list); }
#detail .rl-h { margin: 0; font-size: 26px; font-weight: 700; color: var(--text); }
.rl-theme { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rl-theme:hover { background: var(--chip); color: var(--text); }
.rl-tabs { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px 10px 12px; background: var(--head-list); }
.rl-tab { position: relative; min-height: 44px; padding: 0 30px 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--dim);
  display: flex; align-items: center; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.rl-tab:hover { color: var(--text); background: var(--card-hover); }
.rl-tab-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-tabs .rl-tab.is-on { background: var(--open); color: var(--open-text); box-shadow: var(--open-shadow); }
.rl-tab-n { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px;
  background: var(--line-soft); color: var(--dim); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rl-tab-n.is-zero { opacity: 0.7; }
.rl-tab-n.is-need { background: var(--need); color: var(--need-ink); opacity: 1; }
.rl-tab.is-on .rl-tab-n:not(.is-need) { background: var(--surface); color: var(--text); }
.rl-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; box-sizing: border-box; }
.rl-rows > * { flex: none; }
.rl-empty { margin: 0; padding: 20px 16px; font-size: 15px; line-height: 1.45; color: var(--dim); }
/* a raw video being made into reels: what the Mac mini is doing, nothing made up */
.rl-making { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--her-felt); }
.rl-making-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); animation: rl-pulse 1.2s ease-in-out infinite; }
.rl-making-c { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-making-t { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.rl-making-s { font-size: 13px; color: var(--dim); }
/* a video whose make failed (2026-11-17): a still dot in the warning colour, why, and Make again on the right */
.rl-making.is-failed { align-items: center; }
.rl-making.is-failed .rl-making-dot { background: var(--warn-text); animation: none; }
.rl-making.is-failed .rl-making-s { color: var(--warn-text); }
.rl-making-again { flex: none; margin-left: auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.rl-making-again:disabled { opacity: 0.5; cursor: default; }
.rl-row { --card-bg: var(--card); width: 100%; min-height: 44px; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
  border: 0; border-radius: 12px; background: var(--card-bg); color: var(--text); text-align: left; cursor: pointer; transition: background-color 120ms ease; }
.rl-row:hover { --card-bg: var(--card-hover); }
.rl-row.is-open { --card-bg: var(--open); color: var(--open-text); box-shadow: var(--open-shadow); }
.rl-row.is-open:hover { --card-bg: var(--open-hover); }
.rl-row-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rl-row-hook { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rl-row-at { flex: none; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rl-row-meta { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-row-warn { font-size: 13px; font-weight: 600; color: var(--warn-text); }
.rl-row.is-open .rl-row-at, .rl-row.is-open .rl-row-meta { color: var(--open-dim); }
.rl-row.is-open .rl-row-warn { color: #ffc59e; }

/* ---- the reel ---- */
.rl-reel { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--sec-reel); }
.rl-reel-h { flex: none; display: flex; align-items: center; gap: 8px; height: var(--head-h); box-sizing: border-box; padding: 0 16px 0 24px; background: var(--head-reel); }
.rl-reel-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#detail .rl-reel-name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-reel-sub { margin: 0; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rl-x:hover { background: var(--chip); color: var(--text); }
.rl-chat-b { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; }
.rl-reel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 24px 32px; box-sizing: border-box; }
.rl-pick { margin: auto; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--dim); }
.rl-pick-h { margin: 6px 0 0; font-size: 18px; font-weight: 600; color: var(--text); }
.rl-pick-s { margin: 0; font-size: 14px; line-height: 1.45; }
.rl-player { flex: none; display: flex; justify-content: center; width: 100%; }
.rl-video { display: block; height: min(62vh, 640px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--video-bg); object-fit: contain; }
.rl-video.is-wait { display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; color: #c9d3df; font-size: 14px; text-align: center; }
.rl-acts { flex: none; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.rl-judge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rl-judge-b { min-height: 56px; padding: 0 10px; border: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: filter 120ms ease; }
.rl-judge-b:hover:not(:disabled) { filter: brightness(1.06); }
.rl-judge-b:disabled { opacity: 0.55; cursor: default; }
.rl-judge-b.is-yes { background: var(--yes); color: var(--yes-ink); }
.rl-judge-b.is-mid { background: var(--mid); color: var(--mid-ink); }
.rl-judge-b.is-no { background: var(--no); color: var(--no-ink); }
.rl-needs { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--her-felt); }
.rl-needs-l { font-size: 14px; font-weight: 700; }
.rl-needs-in, .rl-in { width: 100%; box-sizing: border-box; min-height: 76px; resize: none; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.45; }
.rl-needs-in:focus, .rl-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); }
.rl-needs-in::placeholder, .rl-in::placeholder { color: var(--dim); }
.rl-needs-row { display: flex; justify-content: flex-end; gap: 8px; }
.rl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.rl-btn.is-go { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }
.rl-btn.is-quiet { border-color: transparent; background: transparent; color: var(--dim); }
.rl-btn:disabled { opacity: 0.5; cursor: default; }
.rl-state { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--chip); font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.rl-state.is-approved { background: rgba(46, 158, 84, 0.14); color: var(--ok); }
.rl-state.is-needs_work { background: var(--her-felt); }
.rl-state.is-failed { color: var(--warn-text); }
.rl-err { margin: 0; font-size: 13px; color: var(--warn-text); }
.rl-details { flex: none; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
#detail .rl-sub-h { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.rl-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-line { display: flex; gap: 12px; font-size: 15px; line-height: 1.4; }
.rl-line-at { flex: none; width: 36px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rl-line-t { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.rl-cap-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.rl-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.rl-cap { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--chip); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.rl-why { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--dim); }

/* ---- her chat ---- */
.rl-chat { flex: 0 0 380px; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--sec-divider); background: var(--sec-chat); }
.rl-chat-h { flex: none; display: flex; align-items: center; gap: 10px; height: var(--head-h); box-sizing: border-box; padding: 0 12px 0 16px; background: var(--head-chat); }
.rl-face { display: inline-flex; flex: none; border-radius: 50%; overflow: hidden; }
.rl-face .of-face { width: 100%; height: 100%; }
.rl-chat-h .rl-face { width: 36px; height: 36px; }
.rl-chat-b .rl-face { width: 28px; height: 28px; }
.rl-face-i { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--chip); font-weight: 700; }
.rl-chat-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#detail .rl-chat-name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.rl-chat-l { margin: 0; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-chat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 12px; }
.rl-chat-list > :first-child { margin-top: auto; }
.rl-b { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.rl-b.is-her { align-self: flex-start; background: var(--her-bubble); }
.rl-b.is-owner { align-self: flex-end; background: var(--mine); white-space: pre-wrap; }
.rl-b.is-pending { opacity: 0.7; }
.rl-b-t > :first-child { margin-top: 0; } .rl-b-t > :last-child { margin-bottom: 0; }
.rl-sys { margin: 0; align-self: center; text-align: center; font-size: 13px; line-height: 1.45; color: var(--dim); padding: 2px 8px; }
/* her at work, live: what the Mac mini says she's doing */
.rl-step { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--dim); }
.rl-step::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: rl-pulse 1.2s ease-in-out infinite; }
.rl-step.is-wait::before { background: var(--dim); animation: none; }
.rl-write { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 20px; background: var(--her-felt); }
.rl-write-row { display: flex; align-items: center; gap: 8px; }
.rl-hint { flex: 1 1 auto; font-size: 12px; color: var(--dim); }
.rl-go { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; background: var(--btn-bg); color: var(--btn-text); }
.rl-go:disabled { opacity: 0.45; cursor: default; }
.rl-toast { position: absolute; left: 16px; bottom: 16px; z-index: 8; width: 368px; max-width: calc(100% - 32px); box-sizing: border-box; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--toast-bg); color: var(--toast-text); font-size: 14px;
  box-shadow: 0 6px 18px rgba(20, 32, 48, 0.25); }
.rl-toast-undo { flex: none; min-height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--toast-link); font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
@keyframes rl-pulse { 50% { opacity: 0.45; } }

/* the scrollbars, as Messages' */
@supports not selector(::-webkit-scrollbar) {
  .rl { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
  .rl-rows, .rl-reel-body, .rl-chat-list, .rl-ed-props, .rl-ed-scroll, .rl-ed-sheet, .rl textarea { scrollbar-width: thin; }
}
.rl ::-webkit-scrollbar { width: 8px; height: 8px; }
.rl ::-webkit-scrollbar-track { background: var(--scroll-track); }
.rl ::-webkit-scrollbar-thumb { min-height: 40px; border: 1px solid var(--scroll-track); border-radius: 4px; background: var(--scroll-thumb); }
.rl ::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* less room: the list and her chat get narrower; the reel keeps the middle */
@container (max-width: 1180px) { .rl-list { flex-basis: 290px; } .rl-chat { flex-basis: 320px; } .rl-reel-body { padding: 16px; } }
@container (max-width: 960px) { .rl-list { flex-basis: 250px; } .rl-chat { flex-basis: 280px; } .rl-judge-b span { font-size: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .rl-making-dot, .rl-step::before { animation: none; }
  .rl-row, .rl-judge-b { transition: none; }
}

/* ---- the editor (Hans, 2026-11-07: "edit it yourself in the tab", laid out as CapCut and Instagram's Edits): the tools and
   what's selected on the left, the preview in the middle, the timeline across the bottom; a phone gets it full screen ---- */
.rl {
  --ed-bg: #f4f6f9; --ed-panel: #ffffff; --ed-field: #eef2f7; --ed-field-hover: #e2e8f0; --ed-stage: #e8edf3; --ed-tl: #ffffff; --ed-line: #dde3eb;
  --ed-hand: #142030; --ed-hand-ink: #ffffff; --ed-head: #142030; --ed-sel: #142030; --ed-on: #142030; --ed-on-ink: #ffffff;
  --ed-play: #142030; --ed-play-ink: #ffffff; --ed-go: #2f6fa3; --ed-film: #cfd8e3; --ed-film-gap: #e4e9f0; --ed-dim: rgba(244, 246, 249, 0.62);
  --ed-hook: #2bb3a5; --ed-hook-ink: #00211e; --ed-cap: #e8a33a; --ed-cap-ink: #1a1100; --ed-label: #8b6cf0; --ed-label-ink: #ffffff;
}
.rl[data-theme="dark"] {
  --ed-bg: #000000; --ed-panel: #121212; --ed-field: #1b1b1b; --ed-field-hover: #262626; --ed-stage: #050505; --ed-tl: #0b0b0b; --ed-line: #262626;
  --ed-hand: #ffffff; --ed-hand-ink: #000000; --ed-head: #ffffff; --ed-sel: #ffffff; --ed-on: #ffffff; --ed-on-ink: #000000;
  --ed-play: #ffffff; --ed-play-ink: #000000; --ed-go: #2f81f7; --ed-film: #1d2128; --ed-film-gap: #0b0b0b; --ed-dim: rgba(0, 0, 0, 0.58);
}
.rl-reel { container-type: inline-size; container-name: reel; }
.rl-edit-b { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; }
.rl-edit-b:hover:not(:disabled) { background: var(--card-hover); }
.rl-edit-b:disabled { opacity: 0.5; cursor: default; }
.rl-acts > .rl-edit-b { align-self: center; }
.rl-reel.is-editing { background: var(--ed-bg); }
.rl-ed { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--ed-bg); color: var(--text); }
.rl-ed-bar { flex: none; height: 58px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 8px; border-bottom: 1px solid var(--ed-line); }
.rl-ed-leave { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0 12px 0 6px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.rl-ed-leave:hover, .rl-ed-ic:hover:not(:disabled), .rl-ed-tbtn:hover:not(:disabled) { background: var(--ed-field); }
.rl-ed-id { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 14px; }
#detail .rl-ed-title, .rl-ed-title { margin: 0; min-width: 0; flex: 0 1 auto; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-ed-from { flex: 0 10 auto; min-width: 0; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-ed-hist { flex: none; display: flex; gap: 2px; }
.rl-ed-ic { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rl-ed-ic:disabled { opacity: 0.35; cursor: default; }
.rl-ed-go { flex: none; min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ed-go); color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; }
.rl-ed-go:disabled { opacity: 0.55; cursor: default; }
.rl-ed-msgs { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--ed-line); }
.rl-ed-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--need); color: var(--need-ink); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.rl-ed-warn { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--warn-text); }
.rl-ed-mid { flex: 1 1 auto; min-height: 0; display: flex; }

/* the tool rail and what it shows */
.rl-ed-side { flex: none; width: 300px; display: flex; border-right: 1px solid var(--ed-line); background: var(--ed-panel); }
.rl-ed-rail { flex: none; width: 66px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-right: 1px solid var(--ed-line); }
.rl-ed-tool { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0;
  background: transparent; color: var(--text); font-size: 11px; cursor: pointer; }
.rl-ed-tool-g { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.rl-ed-tool:hover:not(.is-on) .rl-ed-tool-g { background: var(--ed-field); }
.rl-ed-tool.is-on .rl-ed-tool-g { background: var(--ed-on); color: var(--ed-on-ink); }
.rl-ed-props { flex: 1 1 auto; min-width: 0; overflow-y: auto; box-sizing: border-box; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
#detail .rl-ed-h4, .rl-ed-h4 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.rl-ed-field { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: var(--ed-field); color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.4; resize: none; }
.rl-ed-field.is-cap { min-height: 200px; resize: vertical; }
.rl-ed-field:focus, .rl-ed-time-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.rl-ed-field::placeholder { color: var(--dim); }
.rl-ed-as { display: flex; flex-direction: column; gap: 8px; }
.rl-ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-ed-chip { min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--ed-field); color: var(--text); font-size: 13px; cursor: pointer; }
.rl-ed-chip:hover:not(:disabled):not(.is-on) { background: var(--ed-field-hover); }
.rl-ed-chip.is-on { background: var(--ed-on); color: var(--ed-on-ink); font-weight: 700; }
.rl-ed-chip:disabled { opacity: 0.4; cursor: default; }
.rl-ed-why { margin: 0; font-size: 12px; line-height: 1.45; color: var(--dim); }
/* a carousel's slides (#252): one at a time, Previous and Next under it */
.rl-slides { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rl-slide { display: block; max-width: 100%; max-height: min(70vh, 640px); border-radius: 12px; object-fit: contain; background: #000; }
.rl-slide.is-wait { width: 100%; aspect-ratio: 4 / 5; max-width: 420px; display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.rl-slide-cap { display: flex; align-items: center; gap: 12px; }
.rl-slide-b { min-width: 36px; min-height: 36px; border: 0; border-radius: 999px; background: var(--ed-field); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.rl-slide-b:disabled { opacity: 0.35; cursor: default; }
.rl-slide-n { font-size: 13px; color: var(--dim); min-width: 48px; text-align: center; }
.rl-slide-txt { margin: 0; font-size: 13px; color: var(--dim); text-align: center; white-space: pre-line; }
/* the Style, Category and Look pickers (#250) */
.rl-ed-pick { display: flex; flex-direction: column; gap: 6px; }
.rl-ed-field.is-pick { min-height: 40px; cursor: pointer; }
.rl-ed-times { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.rl-ed-time-in, .rl-ed-time-ro { width: 72px; min-height: 40px; box-sizing: border-box; padding: 0 10px; border: 1px solid transparent; border-radius: 10px;
  background: var(--ed-field); color: var(--text); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
.rl-ed-time-ro { opacity: 0.75; }
.rl-ed-read { font-size: 12.5px; line-height: 1.3; }
.rl-ed-read.is-short { color: var(--warn-text); font-weight: 600; }
.rl-ed-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-ed-pill { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--ed-field);
  color: var(--text); font-size: 13px; cursor: pointer; }
.rl-ed-pill:hover:not(:disabled) { background: var(--ed-field-hover); }
.rl-ed-pill:disabled { opacity: 0.4; cursor: default; }
.rl-ed-hint { margin: auto 0 0; padding-top: 8px; font-size: 12px; line-height: 1.5; color: var(--dim); }
.rl-ed-add { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--ed-field);
  color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; }
.rl-ed-add:hover { background: var(--ed-field-hover); }
.rl-ed-caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-ed-cap-b { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; }
.rl-ed-cap-b:hover, .rl-ed-cap-b.is-sel { background: var(--ed-field); }
.rl-ed-cap-b.is-out { opacity: 0.5; }
.rl-ed-cap-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--ed-cap); }
.rl-ed-cap-b.is-hook .rl-ed-cap-dot { background: var(--ed-hook); }
.rl-ed-cap-b.is-label .rl-ed-cap-dot { background: var(--ed-label); }
.rl-ed-cap-at { flex: none; min-width: 36px; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rl-ed-cap-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-ed-opts { display: flex; flex-direction: column; gap: 8px; }
.rl-ed-opt { min-height: 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px; border: 2px solid transparent;
  border-radius: 12px; background: var(--ed-field); color: var(--text); text-align: left; cursor: pointer; }
.rl-ed-opt b { font-size: 14px; }
.rl-ed-opt span { font-size: 12.5px; color: var(--dim); }
.rl-ed-opt.is-on { border-color: var(--ed-on); }
.rl-ed-count { align-self: flex-end; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rl-ed-sum { margin: 0; font-size: 13.5px; }
.rl-ed-nudge { display: flex; align-items: center; gap: 8px; }
.rl-ed-nudge-l { width: 40px; font-size: 13px; color: var(--dim); }
.rl-ed-nudge-v { width: 56px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* the preview: the 1080 × 1920 frame, scaled; text sizes in cqw (1080 px wide = 100cqw), as reel-text.swift draws them */
.rl-ed-view { flex: 1 1 auto; min-width: 0; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 16px 8px; background: var(--ed-stage); }
.rl-ed-stage { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; container-type: size; }
.rl-ed-prev { position: relative; flex: none; height: min(100cqh, 177.7cqw); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--video-bg);
  container-type: inline-size; cursor: pointer; }
.rl-ed-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-ed-prev.is-fit .rl-ed-vid, .rl-ed-prev.is-plugin .rl-ed-vid { object-fit: contain; }
.rl-ed-bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(14px) brightness(0.82); display: none; }
.rl-ed-prev.is-fit .rl-ed-bg, .rl-ed-prev.is-plugin .rl-ed-bg { display: block; }
/* Plugin (Hans, 2026-11-16): the preview can't cut the window out; the whole picture, darker, says the cut will differ */
.rl-ed-prev.is-plugin .rl-ed-bg { filter: blur(14px) brightness(0.5); }
.rl-ed-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; color: #c9d3df; font-size: 14px; text-align: center; }
.rl-ed-over { position: absolute; inset: 0; pointer-events: none; }
/* 80 px each side at 1080 wide (7.4 %), bold Helvetica Neue, white, a black outline (16 % of the size, half of it outside) */
.rl-ed-t { --w: calc(var(--fs) * 0.08); position: absolute; left: var(--x, 50%); width: 85.2%; top: var(--y); transform: translate(-50%, -50%); text-align: center; overflow-wrap: anywhere;
  font: 700 var(--fs) / 1.12 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #ffffff; pointer-events: none; }
/* a line break where the text has one; dragged anywhere on the picture (Hans, 2026-11-08) */
.rl-ed-tt { position: relative; display: inline-block; max-width: 100%; vertical-align: top; pointer-events: auto; cursor: grab; white-space: pre-line;
  touch-action: none; -webkit-user-select: none; user-select: none; }
.rl-ed-t.is-moving .rl-ed-tt { cursor: grabbing; }
.rl-ed-guide { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 1px dashed rgba(255, 255, 255, 0.7); pointer-events: none; display: none; }
.rl-ed-guide.is-on { display: block; }
/* the playhead outside the reel (trimmed off, or in a part taken out): the picture says so */
.rl-ed-prev.is-gone::after { content: 'Not in the reel'; position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12%;
  background: rgba(8, 12, 20, 0.55); color: #e5ebf2; font: 600 13px/1 var(--font-sans, sans-serif); letter-spacing: 0.02em; pointer-events: none; }
.rl-ed-t.is-outline .rl-ed-tt { text-shadow: var(--w) 0 0 #000, calc(var(--w) * -1) 0 0 #000, 0 var(--w) 0 #000, 0 calc(var(--w) * -1) 0 #000,
  calc(var(--w) * 0.7) calc(var(--w) * 0.7) 0 #000, calc(var(--w) * -0.7) calc(var(--w) * 0.7) 0 #000, calc(var(--w) * 0.7) calc(var(--w) * -0.7) 0 #000,
  calc(var(--w) * -0.7) calc(var(--w) * -0.7) 0 #000, 0 calc(var(--fs) * 0.04) calc(var(--fs) * 0.18) rgba(0, 0, 0, 0.55); }
.rl-ed-t.is-box .rl-ed-tt { padding: 0.2em 0.45em; border-radius: 0.3em; background: rgba(0, 0, 0, 0.62); }
/* the selected text outlined; typing in it, a caret */
.rl-ed-t.is-sel .rl-ed-tt, .rl-ed-tt.is-typing, .rl-ed-tt.is-input { outline: 2px solid #ffffff; outline-offset: 0.3em; border-radius: 0.12em; }
.rl-ed-t.is-box.is-sel .rl-ed-tt, .rl-ed-t.is-box .rl-ed-tt.is-typing { border-radius: 0.3em; }
.rl-ed-tt.is-typing { min-width: 1em; cursor: text; caret-color: #ffffff; white-space: pre-wrap; -webkit-user-select: text; user-select: text; touch-action: auto; }
.rl-ed-tt.is-typing:empty::before { content: 'Type here'; opacity: 0.6; }
.rl-ed-tt.is-input { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; background: transparent; color: #ffffff; font: inherit;
  text-align: center; resize: none; overflow: hidden; caret-color: #ffffff; cursor: text; }
.rl-ed-t.is-box .rl-ed-tt.is-input { padding: 0.2em 0.45em; background: rgba(0, 0, 0, 0.62); }
.rl-ed-tt.is-input::placeholder { color: rgba(255, 255, 255, 0.6); }
/* a phone's handles on the picked text: ✕ deletes it, ✎ types in it (44 px to tap, a 24 px white dot) */
.rl-ed-hd { position: absolute; top: calc(-0.3em - 22px); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #000000;
  text-shadow: none; cursor: pointer; }
.rl-ed-hd::before { content: ''; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.rl-ed-hd svg { position: relative; }
.rl-ed-hd.is-del { left: calc(-0.3em - 22px); }
.rl-ed-hd.is-pen { right: calc(-0.3em - 22px); }
.rl-ed-prow { flex: none; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; font-size: 13px; color: var(--dim); }
.rl-ed-time { min-width: 120px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-ed-now { color: var(--text); font-weight: 700; }
.rl-ed-prow-end { min-width: 120px; display: flex; }
.rl-ed-prow .rl-ed-ic { color: var(--dim); }
.rl-ed-play { flex: none; width: 44px; height: 44px; padding: 0 0 0 2px; border: 0; border-radius: 50%; background: var(--ed-play); color: var(--ed-play-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rl-ed-play:disabled { opacity: 0.45; cursor: default; }

/* the timeline: the frames, the cut between two white handles, the text as bars, a playhead with a triangle head */
.rl-ed-tl { flex: none; height: 250px; box-sizing: border-box; display: flex; flex-direction: column; padding: 4px 14px 8px; border-top: 1px solid var(--ed-line); background: var(--ed-tl); }
.rl-ed-tools { flex: none; min-height: 40px; display: flex; align-items: center; gap: 2px; }
.rl-ed-tbtn { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: var(--text);
  font-size: 12.5px; cursor: pointer; }
.rl-ed-tbtn:disabled { opacity: 0.4; cursor: default; }
.rl-ed-soon { color: var(--dim); }
.rl-ed-zoom { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.rl-ed-zoom .rl-ed-ic { width: 32px; height: 32px; color: var(--dim); }
.rl-ed-zoom input { width: 130px; accent-color: var(--ed-hand); }
.rl-ed-tlb { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.rl-ed-names { flex: none; width: 64px; box-sizing: border-box; padding: 24px 8px 0 0; display: flex; flex-direction: column; font-size: 11px; color: var(--dim); }
.rl-ed-name { height: 26px; margin-bottom: 7px; display: flex; align-items: center; justify-content: flex-end; }
.rl-ed-name.is-video { height: 46px; }
.rl-ed-scroll { position: relative; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.rl-ed-track { position: relative; min-height: 100%; user-select: none; -webkit-user-select: none; }
.rl-ed-ruler { position: relative; height: 24px; font-size: 10.5px; color: var(--dim); cursor: pointer; }
.rl-ed-tick { position: absolute; top: 4px; transform: translateX(-50%); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.rl-ed-dot { position: absolute; top: 10px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--dim); opacity: 0.7; pointer-events: none; }
.rl-ed-lane { position: relative; height: 26px; margin-bottom: 7px; }
.rl-ed-lane.is-video { height: 46px; cursor: pointer; }
.rl-ed-film { position: absolute; top: 0; bottom: 0; display: flex; overflow: hidden; border-radius: 6px; background: var(--ed-film); pointer-events: none; }
.rl-ed-film.is-wait { background: repeating-linear-gradient(90deg, var(--ed-film) 0 32px, var(--ed-film-gap) 32px 34px); }
.rl-ed-tile { flex: none; height: 100%; display: block; }
.rl-ed-dim { position: absolute; top: 0; bottom: 0; background: var(--ed-dim); pointer-events: none; }
.rl-ed-range { position: absolute; top: 0; bottom: 0; box-sizing: border-box; border: 2px solid var(--ed-hand); border-radius: 6px; pointer-events: none; }
.rl-ed-h { position: absolute; top: -2px; bottom: -2px; z-index: 2; width: 14px; padding: 0; border: 0; border-radius: 5px; background: var(--ed-hand); cursor: ew-resize; touch-action: none; }
.rl-ed-h.is-start { margin-left: -12px; }
.rl-ed-h.is-end { margin-left: -2px; }
.rl-ed-h::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; right: -10px; }
.rl-ed-h-bar { position: absolute; left: 6px; top: 50%; width: 2px; height: 12px; margin-top: -6px; border-radius: 1px; background: var(--ed-hand-ink); }
.rl-ed-h:focus-visible, .rl-ed-h.is-sel { outline: none; box-shadow: 0 0 0 2px var(--ed-tl), 0 0 0 4px var(--accent); }
.rl-ed-blk { position: absolute; top: 1px; height: 24px; box-sizing: border-box; padding: 0 8px; border-radius: 5px; display: flex; align-items: center;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; cursor: grab; touch-action: none; }
.rl-ed-blk.is-caption { background: var(--ed-cap); color: var(--ed-cap-ink); }
.rl-ed-blk.is-hook { background: var(--ed-hook); color: var(--ed-hook-ink); cursor: pointer; }
.rl-ed-blk.is-label { background: var(--ed-label); color: var(--ed-label-ink); }
.rl-ed-blk.is-out { opacity: 0.4; }
.rl-ed-blk:active { cursor: grabbing; }
.rl-ed-blk.is-sel { z-index: 2; padding: 0 12px; outline: 2px solid var(--ed-sel); outline-offset: 1px; }
.rl-ed-blk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rl-ed-blk-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.rl-ed-grip { position: absolute; top: 0; bottom: 0; width: 6px; display: none; background: var(--ed-sel); cursor: ew-resize; }
.rl-ed-grip::before { content: ''; position: absolute; top: -4px; bottom: -4px; left: -6px; right: -6px; }
.rl-ed-grip.is-at { left: 0; border-radius: 4px 0 0 4px; }
.rl-ed-grip.is-until { right: 0; border-radius: 0 4px 4px 0; }
.rl-ed-blk.is-sel .rl-ed-grip { display: block; }
/* the playhead: grabbed (a wide invisible strip round it, the triangle on top) and dragged, it follows as it moves */
.rl-ed-head { position: absolute; top: 2px; bottom: 0; z-index: 4; width: 2px; margin-left: -1px; background: var(--ed-head); pointer-events: auto; cursor: ew-resize; touch-action: none; }
.rl-ed-head::after { content: ''; position: absolute; top: -4px; bottom: 0; left: -7px; right: -7px; }
.rl-ed-head.is-drag { width: 3px; margin-left: -1.5px; }
.rl-ed-ruler { touch-action: none; }
/* the video's parts once split: a mark at each split, a part taken out hatched over, the picked part outlined */
.rl-ed-parts { position: absolute; inset: 0; pointer-events: none; }
.rl-ed-cut { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(8, 12, 20, 0.78) 0 6px, rgba(8, 12, 20, 0.5) 6px 12px); }
.rl-ed-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #ffffff; border-radius: 1px; }
.rl-ed-part { position: absolute; top: 0; bottom: 0; box-sizing: border-box; border: 2px solid var(--ed-sel); border-radius: 6px; }
.rl-ed-part.is-cut { border-style: dashed; }
.rl-ed-where { display: flex; flex-direction: column; gap: 8px; }
.rl-ed-head::before { content: ''; position: absolute; top: -2px; left: -6px; border-style: solid; border-width: 9px 7px 0; border-color: var(--ed-head) transparent transparent; }
@container (max-width: 1100px) { .rl-ed-side { width: 264px; } .rl-ed-from { display: none; } }

/* ---- phone: the list, one reel, or her chat ---- */
.rl.is-phone { --head-h: 60px; display: block; height: auto; margin: -8px -16px; border-radius: 0; min-height: calc(100vh - 110px); }
.rl.is-phone .rl-list { border-right: 0; min-height: calc(100vh - 110px); }
.rl.is-phone .rl-h-row { height: auto; padding: 16px 16px 10px 20px; }
#detail .rl.is-phone .rl-h { font-size: 28px; }
.rl.is-phone .rl-reel, .rl.is-phone .rl-chat { height: calc(100vh - 110px); min-height: 480px; border-left: 0; }
.rl.is-phone .rl-reel-h, .rl.is-phone .rl-chat-h { padding: 0 8px 0 4px; }
.rl.is-phone .rl-reel-body { padding: 12px 12px 24px; gap: 12px; }
.rl.is-phone .rl-video { height: min(58vh, 560px); }
.rl.is-phone .rl-judge-b { min-height: 52px; flex-direction: column; gap: 2px; font-size: 13px; }
.rl.is-phone .rl-chat-list { padding: 14px 12px 10px; }
.rl.is-phone .rl-write { padding: 10px 12px 16px; }
.rl.is-phone .rl-toast { position: fixed; left: 12px; right: 12px; bottom: 16px; width: auto; max-width: none; }

/* the editor on a phone: full screen; the playhead stays in the middle and the timeline slides under it, the tools along the
   bottom (with a text picked, its own), a sheet for what a tool shows, and typing on the video with the phone's keyboard */
.rl.is-phone.is-editing { container-type: normal; overflow: visible; }
.rl.is-phone.is-editing .rl-reel { container-type: normal; height: auto; min-height: 0; }
.rl-ed.is-phone { position: fixed; inset: 0; z-index: 1000; }
.rl-ed.is-phone .rl-ed-bar { height: 56px; padding: 0 12px 0 4px; border-bottom: 0; }
#detail .rl-ed.is-phone .rl-ed-title, .rl-ed.is-phone .rl-ed-title { flex: 1 1 auto; text-align: center; font-size: 17px; }
.rl-ed.is-phone .rl-ed-view { padding: 6px 16px 0; gap: 2px; background: var(--ed-bg); }
.rl-ed.is-phone .rl-ed-prow { width: 100%; justify-content: space-between; gap: 8px; }
.rl-ed.is-phone .rl-ed-time { flex: 1 1 0; min-width: 0; text-align: left; font-size: 14px; }
.rl-ed.is-phone .rl-ed-hist { flex: 1 1 0; justify-content: flex-end; }
.rl-ed.is-phone .rl-ed-chip, .rl-ed.is-phone .rl-ed-pill, .rl-ed.is-phone .rl-ed-time-in, .rl-ed.is-phone .rl-ed-time-ro { min-height: 44px; }
.rl-ed.is-phone .rl-ed-chip { padding: 0 16px; font-size: 14px; }
.rl-ed-tl.is-phone { height: auto; padding: 2px 0 8px; border-top: 0; background: var(--ed-bg); }
.rl-ed-tl.is-phone .rl-ed-scroll { overflow-x: scroll; touch-action: pan-x; scrollbar-width: none; }
.rl-ed-tl.is-phone .rl-ed-scroll::-webkit-scrollbar { display: none; }
.rl-ed-tl.is-phone .rl-ed-lane { height: 30px; margin-bottom: 6px; }
.rl-ed-tl.is-phone .rl-ed-lane.is-video { height: 50px; }
.rl-ed-tl.is-phone .rl-ed-blk { height: 28px; font-size: 12px; }
.rl-ed-tl.is-phone .rl-ed-h::before { left: -15px; right: -15px; }
.rl-ed-head.is-fixed { left: 50%; top: 2px; }
.rl-ed-sheet { position: relative; flex: none; max-height: 42%; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; border-top: 1px solid var(--ed-line); background: var(--ed-panel); }
.rl-ed-sheet-x { position: absolute; top: 2px; right: 4px; }
.rl-ed-sheet .rl-ed-field.is-cap { min-height: 120px; }
.rl-ed-dock { flex: none; display: flex; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ed-line); background: var(--ed-bg); }
.rl-ed-dk { flex: 1 1 0; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
  border: 0; background: transparent; color: var(--text); font-size: 11.5px; cursor: pointer; }
.rl-ed-dk-g { height: 24px; display: flex; align-items: center; font-size: 19px; font-weight: 600; }
.rl-ed-dk.is-on { color: var(--accent); }
.rl-ed.is-typing .rl-ed-view { flex: 0 0 auto; height: 44%; padding-bottom: 10px; }
.rl-ed-type { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ed-line); background: var(--ed-panel); }
.rl-ed-type .rl-ed-read { margin-left: auto; }
