/* RakoonAI: mobile first. Logical properties (inline/block) so one stylesheet serves RTL (he, ar) and LTR. */
:root {
  --bg: #0f0f14; --bg2: #15151c; --panel: #1c1c25; --panel2: #262631; --line: #363642;
  --text: #f3efe6; --muted: #a8a399; --accent: #d6f03c; --accent2: #b9e23a; --ink: #15151c;
  --ok: #3ddc97; --warn: #ffc65c; --bad: #ff6b81;
  --grad: linear-gradient(120deg, var(--accent), var(--accent2));
  --r: 18px; --tabs: 68px;
  --font: Heebo, "Noto Sans", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 var(--font); min-height: 100dvh; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(214, 240, 60, .07), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(185, 226, 58, .035), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  position: sticky; top: 0; z-index: 10; background: rgba(15, 15, 20, .78); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(54, 54, 66, .6); }
.brand { font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; display: flex; gap: 9px; align-items: center; direction: ltr; letter-spacing: -.01em; }
.spark { width: 32px; height: 32px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; overflow: hidden; }
.spark img { width: 26px; height: 26px; display: block; }
#nav { display: flex; gap: 6px; align-items: center; }
#nav a, #nav .link { font-size: 14px; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 10px; }
#nav a.on { color: var(--text); background: var(--panel); }
#nav .wide { display: none; }
.langpick { display: flex; align-items: center; gap: 4px; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; margin: 0; font-weight: 500; cursor: pointer; }
.langpick select { background: transparent; border: 0; padding: 4px 0; width: auto; font-size: 14px; color: var(--text); cursor: pointer; }
.langpick select option { background: var(--panel); }
.chip-btn { display: flex; align-items: center; gap: 6px; background: var(--grad); color: #15151c; border: 0; border-radius: 999px;
  padding: 7px 12px; font-size: 13px; font-weight: 800; cursor: pointer; }
.chip-btn span { display: none; }

/* bottom tabs (phones) */
.tabs { display: none; }
body.has-tabs .tabs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: fixed; inset-inline: 0; bottom: 0; z-index: 10;
  height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom);
  background: rgba(21, 21, 28, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; padding: 6px; }
.tabs a.on { color: var(--text); }
.tabs a.on svg { color: var(--accent); }
.tabs .fab { width: 58px; height: 58px; border-radius: 20px; background: var(--grad); color: #15151c; justify-content: center; margin-top: -22px;
  box-shadow: 0 10px 30px rgba(214, 240, 60, .45), 0 0 0 6px var(--bg); }
body.has-tabs main { padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 28px); }

main { max-width: 820px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 60px max(16px, env(safe-area-inset-left)); }
h1 { font-size: 27px; font-weight: 800; margin: 6px 0 14px; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 18px; margin: 26px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.desk { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 20px; min-height: 48px;
  font-weight: 700; cursor: pointer; text-decoration: none; background: var(--panel2); color: var(--text); transition: transform .12s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); color: #15151c; box-shadow: 0 8px 24px rgba(214, 240, 60, .3); }
.btn.lg { font-size: 17px; padding: 15px 24px; min-height: 54px; border-radius: 16px; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--panel2); }   /* "Another track" asked for (editor.js #mfresh) */

.card { background: linear-gradient(180deg, rgba(38, 38, 49, .55), rgba(28, 28, 37, .85)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 12px 0; }
.card.err, .err { color: var(--bad); }
.note { background: rgba(185, 226, 58, .07); border: 1px solid rgba(185, 226, 58, .25); color: var(--text); border-radius: 14px; padding: 12px 14px;
  font-size: 14px; margin: 10px 0; display: flex; gap: 8px; align-items: flex-start; }
.notice { max-width: 760px; margin: 12px auto 0; width: calc(100% - 32px); box-sizing: border-box; font-weight: 600;
  background: rgba(255, 196, 61, .1); border-color: rgba(255, 196, 61, .4); color: #ffe7b0; }
.note.ok { background: rgba(61, 220, 151, .08); border-color: rgba(61, 220, 151, .3); color: #c9f6e2; }
.note svg { flex: none; margin-top: 2px; }

/* hero */
.hero { text-align: center; padding: 56px 4px 40px; position: relative; }
.hero h1 { font-size: clamp(30px, 8vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.hero .lead { font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.orb { width: 140px; height: 140px; margin: 0 auto 26px; border-radius: 40px; background: var(--bg2) url(/rakoon/rakoon.svg) center / 82% no-repeat; border: 2px solid var(--accent);
  position: relative; box-shadow: 0 24px 70px rgba(214, 240, 60, .22); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* new video */
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 26px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(28, 28, 37, .5); }
.drop.over, .drop:hover { border-color: var(--accent); background: rgba(185, 226, 58, .06); }
.drop input { display: none; }
.drop-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #15151c; display: grid; place-items: center; margin-bottom: 4px; }
.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files li { background: var(--panel2); border-radius: 14px; padding: 12px; margin: 8px 0; }
.files .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.files .name { font-weight: 700; overflow-wrap: anywhere; }
.files .name em { font-style: normal; font-size: 12px; background: var(--grad); color: #15151c; padding: 2px 8px; border-radius: 999px; margin-inline-end: 4px; }
.files .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 22px; min-width: 40px; min-height: 40px; }
.files input { margin-top: 8px; }
.files .clip { display: flex; gap: 12px; align-items: flex-start; }
.files .clip .grow { flex: 1; min-width: 0; }
.files .thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; background: #000; overflow: hidden;
  display: grid; place-items: center; }
/* a clip's thumbnail in its own shape (app.js clipThumb): the picture fills it, no black frame; a button that opens it */
.files .thumb.shaped { position: relative; overflow: visible; padding: 0; border: 0; cursor: zoom-in; background: #000;
  transition: width .2s ease; }
.files .thumb.shaped > img { position: absolute; left: 50%; top: 50%; object-fit: cover; border-radius: 10px;
  transition: transform .25s ease; }
.files .thumb .tplay { position: absolute; inset-inline-end: 4px; bottom: 4px; font-style: normal; font-size: 10px;
  line-height: 1; padding: 4px 5px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.files .thumb.shaped:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* grows under the pointer on a desktop (a phone: the tap opens the viewer) */
.files .thumb .tpop { display: none; position: absolute; top: 50%; inset-inline-start: calc(100% + 12px); z-index: 30;
  transform: translateY(-50%); border-radius: 14px; overflow: hidden; background: #000; pointer-events: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); }
.files .thumb .tpop img { position: absolute; left: 50%; top: 50%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .files .thumb.shaped:hover .tpop { display: block; }
  .files .thumb.shaped:hover { z-index: 30; }
  .files li:has(.thumb.shaped:hover) { position: relative; z-index: 30; }
}
/* the clip viewer (app.js clipViewer) */
.cview { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 12,.94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 12px
  max(12px, env(safe-area-inset-bottom)); }
.cview .cv-top { position: absolute; top: max(10px, env(safe-area-inset-top)); inset-inline: 12px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; color: #fff; }
.cview .cv-t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cview .cv-x { background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 26px; width: 44px; height: 44px;
  border-radius: 999px; cursor: pointer; flex: none; }
.cview .cv-stage { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; margin-top: 52px; }
.cview .cv-stage video, .cview .cv-stage img { border-radius: 12px; background: #000; transition: transform .2s ease; }
.cview .cv-nav { display: flex; gap: 12px; }
.cview .cv-nav .btn[disabled] { opacity: .35; }
.files .rot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.files .rot .small { min-width: 44px; text-align: center; }
.mode[disabled] { opacity: .5; cursor: not-allowed; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

.modes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mode { text-align: start; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mode b { display: block; margin-bottom: 4px; font-size: 16px; }
.mode span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.mode.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 240, 60, .16); background: var(--panel2); }

label { display: block; font-weight: 700; margin: 18px 0 6px; }
input[type=text], input[type=email], textarea, select { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; min-height: 48px; font-size: 16px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(214, 240, 60, .2); }
textarea { min-height: 96px; resize: vertical; }
.inline { display: flex; gap: 10px; }
.inline > * { flex: 1; min-width: 0; }
.sticky-go { position: sticky; bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); margin: 18px -16px 0; padding: 14px 16px 12px; z-index: 5;
  background: linear-gradient(to top, var(--bg) 70%, rgba(15, 15, 20, 0)); }
.sticky-go .btn:disabled { opacity: 1; background: var(--panel2); color: var(--muted); }

/* lists */
.job { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .12s; }
.job:active { transform: scale(.99); }
.job:hover { border-color: var(--accent); }
.job .meta { flex: 1; min-width: 0; }
.job .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.thumb.done { background: rgba(61, 220, 151, .14); color: var(--ok); }
.thumb.running, .thumb.queued { background: rgba(255, 198, 92, .12); color: var(--warn); }
.thumb.failed { background: rgba(255, 107, 129, .12); color: var(--bad); }
/* a still of the video (editor stage C): a vertical card picture, the frame's own crop */
.thumb.has-img { width: 48px; height: 64px; border-radius: 10px; background: #000; overflow: hidden; }
.thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill.newver { color: var(--warn); }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--panel2); font-weight: 600; }
.pill.done { color: var(--ok); } .pill.running, .pill.queued { color: var(--warn); } .pill.failed { color: var(--bad); }
.empty { text-align: center; padding: 30px 16px; }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { text-decoration: none; color: var(--muted); font-size: 14px; }
.back::before { content: "‹ "; }
[dir=rtl] .back::before { content: "› "; }

.working { display: flex; gap: 14px; align-items: center; }
.working .grow { flex: 1; min-width: 0; }
.prog { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin: 8px 0 6px; overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .6s ease; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 rgba(185, 226, 58, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(185, 226, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 226, 58, 0); } }
.skel { height: 78px; border-radius: var(--r); margin: 12px 0; background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%);
  background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.vid video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; display: block; }
.vid .cap { font-size: 14px; margin: 8px 0; font-weight: 600; }
.users { list-style: none; padding: 0; }
.users li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.users .acts { display: flex; gap: 6px; }
.users .btn { min-height: 38px; padding: 6px 12px; font-size: 14px; }

@media (min-width: 720px) {
  body.has-tabs .tabs { display: none; }
  body.has-tabs main { padding-bottom: 60px; }
  #nav .wide { display: inline-flex; align-items: center; gap: 6px; }
  .desk { display: inline-flex !important; }
  .chip-btn span { display: inline; }
  .modes { grid-template-columns: 1fr 1fr; }
  .sticky-go { position: static; margin: 18px 0 0; padding: 0; background: none; }
  main { padding-top: 28px; }
  .videos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  body.has-tabs .applybar { bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* style: genres + customize */
.genres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.genre { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: start; background: var(--panel); border: 2px solid var(--line);
  border-radius: 14px; padding: 12px; cursor: pointer; min-height: 72px; }
.genre b { font-size: 14px; line-height: 1.25; }
.genre.on { border-color: var(--accent); background: var(--panel2); box-shadow: 0 0 0 4px rgba(214, 240, 60, .16); }
.dots { display: flex; gap: 4px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.custom { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; }
.custom summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.custom summary::-webkit-details-marker { display: none; }
.custom summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.custom[open] summary::after { content: "–"; }
.custom[open] { padding-bottom: 8px; }
.custom h3 { font-size: 15px; margin: 18px 0 8px; }
.custom .lbl { font-size: 13px; color: var(--muted); font-weight: 700; margin: 12px 0 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; }
.seg button.on { background: var(--grad); color: #15151c; border-color: transparent; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); background: var(--c); cursor: pointer; padding: 0; margin: 0; position: relative; }
.sw.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.sw.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; display: block; }
.sw.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.preview { height: 92px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: .28em; font-size: 26px; font-weight: 900;
  background: linear-gradient(160deg, #2a2a33, #121216); color: var(--cap); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); overflow: hidden; }
.preview span { display: inline-block; }
.preview.karaoke .cur, .preview.pop .cur, .preview.single .cur { color: var(--hl); transform: scale(1.08); }
.preview.box .cur { background: var(--hl); color: #15151c; padding: 0 .16em; border-radius: .2em; text-shadow: none; }
.preview.pop .next { opacity: 0; }
.preview.single { font-size: 36px; }
.preview.minimal { font-weight: 800; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; font-weight: 700; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { inset-inline-start: 23px; }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 0; font-size: 14px; text-decoration: underline; }
.sub-link { display: block; text-align: center; font-size: 13px; margin-top: 6px; color: var(--muted); }
@media (min-width: 720px) { .genres { grid-template-columns: repeat(4, 1fr); } }
.failure .err { white-space: pre-wrap; word-break: break-word; background: var(--bg2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font: 13px/1.45 ui-monospace, Menlo, monospace; text-align: left; max-height: 50vh; overflow: auto; }
.reject .r-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 10px; }
.reject .bad { color: var(--bad); }
.reject .r-note { width: 100%; min-height: 72px; }
.reject .r-acts { margin-top: 10px; align-items: center; }
.reject .r-acts .btn { flex: 0 1 auto; }
.reject .fb { white-space: pre-wrap; background: var(--bg2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 15px; }
/* the admin's "what customers ask for most" (app.js adminView, app/request_kinds.py) */
.kinds .seg { margin: 8px 0; }
.kind-list { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 8px; }
.kind-list .kind { margin: 0; }
.kind .kind-n { font-size: 20px; font-weight: 700; }
.kind .bar { margin-top: 6px; }
.kind summary { cursor: pointer; margin-top: 8px; }
.kind .fb { white-space: pre-wrap; background: var(--bg2); border-radius: 12px; padding: 8px 12px; margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin: 14px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.consent h1 { margin-top: 0; }
.legal-links { text-align: center; color: var(--muted); margin-top: 26px; }
.legal-links a { color: var(--muted); }
.btn.danger { background: rgba(255, 107, 129, .14); color: var(--bad); border: 1px solid rgba(255, 107, 129, .4); }
.quota { display: flex; align-items: center; gap: 10px; margin: -4px 0 8px; }
.quota .bar { flex: 0 0 90px; margin: 0; }
.email-link { max-width: 380px; margin: 8px auto 0; display: grid; gap: 10px; }
.email-link .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.email-link .or::before, .email-link .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* a card in the two-column phone grid is ~160px: its buttons must fit inside it, never spill onto the next card
   or off the screen (Harel 2026-11-08). Narrow cards stack download/share and take compact buttons. */
.vid { min-width: 0; container-type: inline-size; }
.vid > .btn { width: 100%; }
.vid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vid .two .btn { width: 100%; }
.vid .btn { min-width: 0; }
.vid .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 280px) {
  .vid .two { grid-template-columns: 1fr; gap: 6px; }
  .vid .btn { min-height: 40px; padding: 8px 10px; font-size: 14px; gap: 6px; }
  .vid > .btn { margin-top: 2px; margin-bottom: 6px; }
}
.btn.ready { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 226, 58, .25); }

.words { line-height: 2.4; margin: 8px 0; }
.word { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px;
  font: inherit; font-size: 16px; cursor: pointer; margin: 2px; }
.word.on { border-color: var(--accent); background: rgba(185, 226, 58, .12); }
.word-edit { display: inline-block; width: 9em; margin: 2px; padding: 6px 10px; font-size: 16px; }
/* a word deleted from the captions (the video and its sound are untouched): still listed, struck through and dimmed, tap to give it back */
.word.gone { text-decoration: line-through; opacity: .6; border-style: dashed; color: var(--muted); }
.wedit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; max-width: 100%; margin: 2px; }
.panel .wedit .word-edit { width: 7.5em; flex: 0 1 7.5em; min-width: 0; min-height: 40px; margin: 0; padding: 6px 10px; }
.wbtn { white-space: nowrap; flex: none; }
.wbtn { min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wbtn.del { color: #ffb4a8; border-color: rgba(255, 180, 168, .45); }
.wbtn.restore { color: var(--accent); border-color: var(--accent); }
.wbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the Style tool: the graphics' colour and the speakers' captions */
.swatches { align-items: center; }
.swdef { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .15); background: var(--bg2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.swdef i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255, 255, 255, .35); flex: none; }
.swdef.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.acc-note { margin: 8px 0 0; }
.seg.stack { flex-direction: column; }
.seg.stack button { white-space: normal; text-align: start; }
.spkrow { padding: 12px; margin: 10px 0; }
.spkhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spk-sample { display: block; width: 100%; text-align: start; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 8px 10px; margin: 6px 0 0; font: inherit; font-size: 14px;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk-sample:focus-visible, .swdef:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spkrow select { min-height: 44px; padding: 8px 12px; }

/* a choice of 3 or 4 (music, how to add a voice-over, the AI voices): one bar, the chosen part lit */
.seg.tri, .seg.four { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--panel2); border-radius: 14px; padding: 4px; }
.seg.tri button, .seg.four button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; padding: 10px 6px; border-radius: 10px;
  cursor: pointer; white-space: normal; min-height: 42px; }
.seg.tri button.on, .seg.four button.on { background: var(--grad); color: #15151c; }
.filepick { margin-top: 10px; cursor: pointer; }
#wave { width: 100%; height: 80px; border-radius: 12px; background: var(--panel2); touch-action: none; cursor: grab; direction: ltr; }
.seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.seg.four button { font-size: .85em; padding: 9px 4px; }
#vobox textarea { margin-top: 10px; min-height: 120px; }
#vocount.warn { color: #ffb4a8; }
#vobox select { padding: 10px; border-radius: 12px; background: var(--panel2); color: inherit; border: 1px solid rgba(255,255,255,.12); font: inherit; }
.btn.danger { background: #e5484d; color: #fff; }

/* ---------------------------------------------------------------- the editor (static/editor.js), redesign stage A
   (2026-11-03, after CapCut, Captions, Instagram Edits, Descript, VEED, Submagic):
   phone: a screen of its own, as in an editing app: the top bar, the picture filling what is left, the playback row,
   the open tool's sheet, and the row of tools at the bottom (the app's own top bar and tabs are under it).
   desktop: the top bar over a studio: the tools' rail, the open tool's panel, and the picture. */
[hidden] { display: none !important; }
.videos.one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.ed { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid;
  grid-template-areas: "bar" "note" "stage" "sheet" "rail"; grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  /* the screen's width, never wider: an auto column grew to its widest item's min-content (558 px on a 390 px
     iPhone, staging 2026-11-08) and the player sat off-centre, part of it off screen */
  grid-template-columns: minmax(0, 1fr); }
.edbar { grid-area: bar; display: flex; align-items: center; gap: 6px; background: var(--bg2); border-bottom: 1px solid var(--line);
  padding: calc(8px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)); }
.ebk, .eico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: none;
  border: 0; cursor: pointer; flex: none; text-decoration: none; font-size: 18px; }
.ebk:hover, .eico:hover:not(:disabled) { background: var(--panel); }
.eico:disabled { opacity: .3; cursor: default; }
[dir="rtl"] .ebk svg { transform: scaleX(-1); }              /* back points to where the screen came from */
.etitle { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.etitle b, .ename { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
/* the name renames on a tap (editor stage C): a plain line of text, a pencil cursor on a computer */
.ename { font-weight: 700; background: none; border: 0; color: inherit; padding: 0; text-align: start; cursor: text; max-width: 100%;
  align-self: flex-start; font-family: inherit; }
.ename:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
/* 16 px: an iPhone zooms the page into a smaller field */
.etitle input.ename-edit { font-weight: 700; font-size: 16px; padding: 4px 8px; min-height: 34px; border-radius: 8px; width: 100%; min-width: 0; }
/* Download: the video or its subtitles (editor stage C), under the top bar's button */
.edbar { position: relative; }
.dlmenu { position: absolute; top: 100%; inset-inline-end: max(10px, env(safe-area-inset-right)); z-index: 30; min-width: 220px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.dlmenu .dlh { padding: 6px 10px 4px; }
.dlmenu button, .dlmenu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; background: none;
  border: 0; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; text-align: start; }
.dlmenu button:hover, .dlmenu a:hover, .dlmenu :focus-visible { background: var(--panel2); }
.etitle select { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 2px 0; max-width: 100%; cursor: pointer;
  width: auto; align-self: flex-start; }
.etitle select option { background: var(--panel); color: var(--text); }
.emain { min-height: 40px; padding: 8px 14px; white-space: nowrap; flex: none; gap: 6px; }
.emain .cnt { font-style: normal; background: rgba(15, 15, 20, .25); border-radius: 999px; padding: 0 7px; font-size: 13px; }
.emain.ghosty { background: var(--panel); color: var(--muted); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.enote { grid-area: note; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 14px; }
.enote.err { background: rgba(255, 107, 129, .12); }
.enotes { grid-area: note; }
.enote .prog { margin: 4px 0 0; }
.enote.revnote { align-items: flex-start; max-height: 34vh; overflow-y: auto; font-size: 13px; line-height: 1.35; }
.enote.revnote .revsum { flex: 1; min-width: 0; }
.enote.revnote.none { background: rgba(214, 240, 60, .08); }
.revsum p { margin: 4px 0 0; }
.revsum .revk { margin-top: 6px; }
.revsum ul { margin: 2px 0 0; padding-inline-start: 18px; }
.revsum li { margin: 1px 0; }
.revsum.none { padding-top: 6px; }
.revslot:empty { display: none; }
.revslot .revsum { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.enote.tkapply { flex-wrap: wrap; gap: 4px 10px; }
.enote.tkapply .tknote { margin: 0; }
.panel .tkest { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 6px 0 0; padding: 6px 12px; border-radius: 12px; font-size: 14px; }
.panel .tkest[hidden] { display: none; }
.enote .pulse { width: 12px; height: 12px; }
.stagep { grid-area: stage; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 6px; }
/* isolation: the player's own layers (.ltap 100, .capgrip 101) stay inside it. On a wide screen .ed has no z-index, so
   without it they sat over the page's sheets (.prep 70, .toast 40, .etip 60) and took their clicks (Harel 2026-11-12) */
.eplayer { position: relative; isolation: isolate; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.eplayer .pl { display: contents; }
/* sized by editor.js (fit): the largest 9:16 box in the space; Safari does not size an iframe by aspect-ratio here */
.eplayer > .pl > video, .eplayer .lwrap { flex: none; border: 0; border-radius: 14px; background: #000; display: block; }
/* the live player: the picture (a plain video, the clock) and the graphics/captions layer over it (live/layer.js) */
.lwrap { position: relative; overflow: hidden; }
.lwrap .lbase { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 39%; }
.lwrap .llayer { position: absolute; inset: 0; pointer-events: none; }
.ltap { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; z-index: 100; }   /* over the captions and graphics (z 40-90) */
.lctl .lplay svg { pointer-events: none; }
/* the captions' handle (editor.js livePlayer): over the caption bar, above the tap-to-play layer */
.capgrip { position: absolute; inset-inline: 3%; z-index: 101; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 12px;
  cursor: grab; touch-action: none; display: flex; align-items: flex-start; justify-content: center; }
.capgrip[hidden] { display: none; }
/* its label: above the dashed box, never on the captions inside it; under the box at the top of the frame (.under) */
.capgrip span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 5px; background: rgba(15, 15, 20, .85);
  color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.capgrip.under span { bottom: auto; top: 100%; margin: 5px 0 0; }
.capgrip:hover, .capgrip:focus-visible, .capgrip.drag { border-color: var(--accent); background: rgba(185, 226, 58, .08); outline: none; }
.capgrip.drag { cursor: grabbing; }
.capgrip.low { border-color: var(--warn); }
.capgrip.low span { background: var(--warn); color: #15151c; }
.pv-badge { position: absolute; top: 10px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--grad); color: #15151c;
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
[dir="rtl"] .pv-badge { transform: translateX(50%); }
.lctl { display: flex; align-items: center; gap: 10px; flex: none; }
.lctl .lplay { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #15151c; display: grid; place-items: center; cursor: pointer; flex: none; }
.lctl input[type=range] { flex: 1; accent-color: var(--accent); }
.lctl .ltime { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; flex: none; }
.sheet { grid-area: sheet; background: var(--panel); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; max-height: 42dvh;
  overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; box-shadow: 0 -12px 30px rgba(0, 0, 0, .35); }
.ed:not(.open) .sheet { display: none; }
.shead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 0 6px; background: var(--panel); }
.shead b { font-size: 16px; }
.rail { grid-area: rail; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--bg2); border-top: 1px solid var(--line);
  padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
.rail::-webkit-scrollbar { display: none; }
.rail button { flex: 1 0 64px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none;
  border: 0; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 7px 4px; border-radius: 12px; cursor: pointer; }
.rail button.on { color: var(--text); background: var(--panel); }
.rail button.on svg { color: var(--accent); }
.rail button:disabled { opacity: .35; cursor: default; }
.rail .dot { position: absolute; top: 5px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.toast { position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); display: flex; align-items: center;
  gap: 12px; justify-content: space-between; background: var(--panel2); border: 1px solid var(--accent); border-radius: 16px; padding: 10px 12px 10px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: rise .25s ease; }
.toast .btn { min-height: 40px; padding: 8px 14px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
/* the fetch before the share sheet (app.js prepareShare): progress over the page, which it covers so no second tap lands */
.prep { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(8, 8, 12, .6); animation: fade .2s ease; }
.prep-card { width: 100%; max-width: 440px; background: var(--panel2); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 18px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: rise .25s ease; }
.prep-card b { font-size: 17px; }
.prep-card .prog { margin: 14px 0 6px; height: 8px; }
.prep-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.prep-h { margin: 10px 0 0; }
.prep-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.prep-btns .btn { flex: 1 1 auto; white-space: nowrap; }
.prep-btns .btn.primary { flex-grow: 2; }
.prog.indet i { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
.prog.bad i { background: var(--bad); }
@keyframes indet { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
[dir="rtl"] .prog.indet i { animation-direction: reverse; }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) { .prep { align-items: center; } }
.panel h3 { font-size: 16px; margin: 18px 0 8px; }
.panel h3:first-child { margin-top: 4px; }
.panel .lbl { font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
.panel textarea { width: 100%; min-height: 110px; }
.panel .warn { color: #ffb4a8; }
/* captions as lines (stage B): the one on screen lit; the time plays it, a word opens it for fixing */
.clines { display: flex; flex-direction: column; gap: 4px; }
.cline { display: flex; align-items: flex-start; gap: 8px; padding: 6px 6px; border-radius: 12px; border: 1px solid transparent; }
.cline.on { background: var(--panel2); border-color: var(--line); }
.cline .ctime { flex: none; background: none; border: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding: 8px 4px; cursor: pointer; }
.cline.on .ctime { color: var(--accent); }
.cline .cws { display: flex; flex-wrap: wrap; gap: 4px; }
.cline .word { min-height: 36px; padding: 4px 10px; }
/* caption looks as thumbnails, fine-tuning under them */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 4px; }
.preset { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg2);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.preset.on { border-color: var(--accent); background: var(--panel2); }
.preset .preview { height: 54px; font-size: 16px; border-radius: 10px; }
.preset .preview.single { font-size: 20px; }
.custom-look { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px 12px; }
.custom-look summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.pending-voice { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pending-voice .btn { min-height: 40px; padding: 8px 14px; }

@media (min-width: 900px) {
  body.wide main { max-width: 1440px; padding-top: 16px; padding-bottom: 16px; }
  .ed { position: relative; inset: auto; z-index: auto; height: calc(100dvh - 112px); min-height: 560px; border: 1px solid var(--line);
    border-radius: 20px; overflow: hidden; grid-template-areas: "bar bar bar" "note note note" "rail sheet stage";
    grid-template-columns: 96px minmax(340px, 420px) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .edbar { padding: 10px 14px; }
  .ed:not(.open) .sheet { display: block; }
  .sheet { max-height: none; border-radius: 0; border-top: 0; border-inline-end: 1px solid var(--line); box-shadow: none; padding: 0 20px 20px; }
  #sclose { display: none; }
  .rail { flex-direction: column; overflow: auto; border-top: 0; border-inline-end: 1px solid var(--line); padding: 10px 8px; }
  .rail button { flex: none; padding: 10px 4px; }
  .stagep { padding: 20px; background: radial-gradient(600px 400px at 50% 40%, rgba(214, 240, 60, .08), transparent 70%); }
  .toast { inset-inline: auto; left: 50%; transform: translateX(-50%); bottom: 28px; width: min(520px, calc(100vw - 48px)); animation: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* owner: costs and activity (#/owner) */
.tiles { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 2px 0; text-align: start; }
.tile .stats { margin-top: 8px; color: var(--muted); } .tile .stats b { color: var(--text); } .bad, .bad b { color: var(--bad) !important; }
.card.chartbox h2, .tile h2 { margin-top: 0; }
.chart { display: flex; gap: 6px; block-size: 160px; margin-top: 8px; }
.yax { display: flex; flex-direction: column; justify-content: space-between; text-align: end; min-inline-size: 44px; }
.plot { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 2px; border-block-end: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat; }
.plot .bar { flex: 1; block-size: 100%; display: flex; align-items: flex-end; background: none; border: 0; padding: 0; cursor: pointer; min-inline-size: 0; }
.plot .bar i { display: block; inline-size: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.plot .bar.on i, .plot .bar:hover i { background: var(--accent); }
.plot .tip { position: absolute; inset-block-start: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 10px; font-size: 13px; white-space: nowrap; pointer-events: none; z-index: 2; }
.xax { display: flex; justify-content: space-between; padding-inline-start: 50px; margin-top: 4px; }
.scroll { overflow-x: auto; }
.tbl { inline-size: 100%; border-collapse: collapse; margin-top: 8px; }
.tbl th, .tbl td { text-align: start; padding: 6px 8px; border-block-end: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; }
/* the owner's per-period tables: the label column wraps, the numbers line up on the end edge */
.tbl.cmp th, .tbl.cmp td { white-space: normal; }
.tbl.cmp td, .tbl.cmp thead th:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl.cmp tbody th { color: var(--text); font-weight: 500; }
.tbl.cmp th, .tbl.cmp td { padding-inline: 4px; }
@media (max-width: 520px) { .tbl.cmp { table-layout: fixed; } .tbl.cmp thead th:first-child { inline-size: 36%; } .tbl.cmp td, .tbl.cmp thead th { font-size: 12px; } }
h3.sub { font-size: 15px; margin: 18px 0 2px; color: var(--accent); }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-block-end: 1px solid var(--line); }
.feed li > span:nth-child(2) { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }
.feed .cost { white-space: nowrap; }
.count{text-align:end;margin-top:4px}
.files .grip { flex: none; align-self: center; background: none; border: 0; color: var(--muted); cursor: grab; font-size: 20px; letter-spacing: -3px; padding: 8px 4px; min-width: 32px; min-height: 44px; touch-action: none; }
.files .grip:active { cursor: grabbing; }
.files li.dragging { position: relative; z-index: 5; opacity: .92; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.files li.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.files li.drop-after { box-shadow: inset 0 -3px 0 var(--accent); }

/* new video: the saved workflow and the rounds (app.js newJob) */
.wf { margin: 6px 0 14px; }
.wf label { margin-top: 0; }
.wf .inline { align-items: center; flex-wrap: wrap; }
.wf .inline > select { flex: 1 1 200px; }
.wf .inline > .btn { flex: 0 0 auto; }
.wf .muted { margin: 8px 0 0; }
.round { margin: 8px 0; }
.round .row-gap { align-items: center; }
.round .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#addRound { margin-top: 10px; }

/* new video: how it works, numbered steps, quick instructions (app.js newJob) */
.intro { margin: 6px 0 12px; }
.intro summary { cursor: pointer; }
.intro ol { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; color: var(--muted, #a8a399); }
h2.step { display: flex; align-items: center; gap: 10px; }
h2.step .num { flex: none; inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #15151c; font-size: 15px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chip { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { border-color: transparent; background: rgba(185, 226, 58, .16); color: var(--text); font-weight: 600; }
/* editor: what can be changed, once (editor.js) */
.etip { position: fixed; inset-inline: 12px; bottom: 96px; z-index: 60; max-width: 520px; margin-inline: auto;
  background: var(--panel, #1c1c25); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); font-size: 14px; }
.etip ul { margin: 8px 0 12px; padding-inline-start: 18px; display: grid; gap: 4px; }

/* style: explainer illustrations, level and layout (app.js stylePanel) */
.ill { margin: 14px 0; }
.ill h3 { margin: 0 0 4px; }
.layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.layout { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 14px; padding: 10px 6px;
  display: grid; justify-items: center; gap: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.layout.on { border-color: transparent; box-shadow: 0 0 0 2px var(--accent); }
.lay-pic { position: relative; inline-size: 44px; block-size: 76px; border-radius: 8px; background: #2c2c38; overflow: hidden; }
.lay-pic b { position: absolute; background: linear-gradient(135deg, #d6f03c, #b9e23a); opacity: .9; }
.lay-pic s { position: absolute; background: #e8d9c8; border-radius: 50%; }
.layout.full b { inset: 6px 5px 22px; border-radius: 4px; }
.layout.full s { inline-size: 14px; block-size: 14px; left: 15px; inset-block-end: 4px; outline: 2px solid #b9e23a; }   /* explain.BUBBLE: centred under the captions */
.layout.split b { inset: 0 0 50% 0; border-radius: 0; }
.layout.split s { inline-size: 16px; block-size: 16px; inset-inline-start: 14px; inset-block-start: 46px; border-radius: 50% 50% 4px 4px; }
.layout.card b { inset: 10px 4px 26px; border-radius: 6px; }
.layout.card s { inline-size: 18px; block-size: 18px; inset-inline-start: 13px; inset-block-start: 40px; opacity: .45; }
/* caption places (app.js capPlaces): the caption bar on a small frame */
.cpos .lay-pic b { inset-inline: 5px; block-size: 7px; border-radius: 3px; background: #fff; opacity: .95; }

/* the bell (app.js drawBell): release notes and finished videos; red dot = unread */
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 0; }
.bell .dot { position: absolute; top: 6px; inset-inline-end: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c;
  box-shadow: 0 0 0 2px var(--bg); }
.bell .dot[hidden] { display: none; }
.bellpanel { position: fixed; z-index: 30; top: calc(64px + env(safe-area-inset-top)); inset-inline-end: max(12px, env(safe-area-inset-right));
  width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 14px 8px 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.bellpanel[hidden] { display: none; }
.bellpanel h2 { margin: 0 8px 8px; font-size: 16px; }
.bellpanel p { margin: 8px; }
.bellpanel ul { list-style: none; margin: 0; padding: 0; }
.nitem { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
.nitem:hover, .nitem:focus-visible { background: var(--panel2); }
.unread .nitem { background: rgba(214, 240, 60, .12); }
.nicon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel2);
  color: var(--accent); font-size: 14px; font-weight: 800; }
.nitem.ready .nicon { color: var(--ok); } .nitem.failed .nicon { color: var(--bad); }
.ntext { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.4; }
.nt { overflow-wrap: anywhere; }
.unread .nt { font-weight: 700; }

/* "What's new" above the videos (app.js newsBox) */
.card.news { padding: 0; }
.news summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; }
.news summary::-webkit-details-marker { display: none; }
.news summary::after { content: ""; margin-inline-start: auto; width: 8px; height: 8px; border: solid var(--muted);
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.news[open] summary::after { transform: rotate(-135deg); }
.news .nh { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.news ul { list-style: none; margin: 0; padding: 0 16px 6px; }
.news li { padding: 10px 0; border-top: 1px solid var(--line); }
.news li .nt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; }
.news li .nt .muted { margin-inline-start: auto; font-weight: 400; }
.news li p { margin: 4px 0 0; }
.pill.new { color: var(--accent); font-size: 12px; padding: 2px 8px; }

/* the look preview under the look picker (app.js lookPreview): a 9:16 frame, the sample's graphics over a neutral
   background (no picture, Harel 2026-11-10) */
.look-pv { position: relative; width: min(200px, 56%); aspect-ratio: 9 / 16; margin: 12px auto 6px; border-radius: 16px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(120% 70% at 30% 25%, #34343f 0%, transparent 60%),
              radial-gradient(90% 60% at 80% 85%, #2a2b34 0%, transparent 65%), linear-gradient(165deg, #2a2a33, #121216); }
.look-pv .look-layer { position: absolute; inset: 0; }
.look-pv-l { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 99px; }

/* the new-video form as steps (app.js newJob WZ, Harel 2026-11-12): a stepper, one step in view, Back / Next */
.wz { position: sticky; top: var(--top-h, 79px); z-index: 6; margin: 0 -16px 8px; padding: 8px 16px 6px;
  background: rgba(15, 15, 20, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(54, 54, 66, .6); }
.wz[hidden] { display: none; }
.wz-of { font-weight: 700; margin-bottom: 6px; }
.wz-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wz-bar i { display: block; height: 100%; background: var(--grad); transition: width .25s; }
.wz-steps { list-style: none; display: flex; gap: 6px; margin: 8px 0 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-steps button { display: flex; align-items: center; gap: 6px; white-space: nowrap; background: transparent; border: 1px solid transparent;
  color: var(--muted); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; }
.wz-steps button .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); font-size: 12px; flex: none; }
.wz-steps button.done { color: var(--text); }
.wz-steps button.done .num { background: rgba(61, 220, 151, .18); color: var(--ok); }
.wz-steps button.done .num::before { content: "✓"; }
.wz-steps button.done .num { font-size: 0; }
.wz-steps button.done .num::before { font-size: 13px; }
.wz-steps button.on { color: var(--text); border-color: var(--accent); background: rgba(214, 240, 60, .14); }
.wz-steps button.on .num { background: var(--grad); color: #15151c; }
.wz-steps button:disabled { opacity: .45; cursor: default; }
.wz-step[hidden] { display: none; }
.wz-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 14px 0 4px; outline: none; }
.wz-title .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #15151c; font-size: 16px; flex: none; }
.wz-h { margin: 0 0 14px; }
.wz-step h3 { font-size: 16px; margin: 20px 0 8px; }
.wz-step .lbl { font-size: 13px; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.wz-step.sending .wf, .wz-step.sending .wz-send-hide, .wz-step.sending .wz-title, .wz-step.sending .wz-h { display: none; }
.wz-skip { display: block; margin: 14px auto 0; }
.wz-nav { display: flex; gap: 10px; align-items: center; }
.wz-nav .grow { flex: 1; }
.wz-nav [hidden] { display: none; }
/* the sample beside the choices it shows (style, captions): under them on a phone, at their side and in view on a wider screen */
.wz-pv { display: flex; flex-direction: column; }
.wz-pv .look-pv { width: min(140px, 40%); }
.wz-sum { margin: 0; display: grid; gap: 8px; }
.wz-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; }
.wz-row dt { grid-column: 1; font-size: 13px; color: var(--muted); font-weight: 700; }
.wz-row dd { grid-column: 1; margin: 0; overflow-wrap: anywhere; }
.wz-row button { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 720px) {
  .wz { margin: 0 0 8px; padding: 10px 0 8px; }
  .wz-nav { position: sticky; bottom: 0; padding: 14px 0 16px; background: linear-gradient(to top, var(--bg) 75%, rgba(15, 15, 20, 0)); }
  .wz-pv { display: grid; grid-template-columns: 1fr 210px; gap: 24px; align-items: start; }
  .wz-pv .wz-pv-s { position: sticky; top: calc(var(--top-h, 79px) + 110px); }
  .wz-pv .look-pv { width: 100%; margin-top: 20px; }
}
/* while sending: the files and their progress, nothing to change */
.wz-step.sending #drop, .wz-step.sending #seq, .wz-step.sending #addRound, .wz-step.sending #roundH,
.wz-step.sending .files .x, .wz-step.sending .files .rot, .wz-step.sending .files .grip, .wz-step.sending .files input { display: none; }

/* tokens and plans (docs/TOKENS.md, stage 3). The balance and the estimate are drawn by app.js from /api/me; nothing here is
   interactive but the links. Logical properties only, so the Hebrew and Arabic screens mirror by themselves. */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tkbal { padding: 14px 16px; margin: 4px 0 14px; }
.tkbal[hidden] { display: none; }
.tkbal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.tkbal-t { color: var(--muted); font-size: 14px; font-weight: 600; }
.tkbal-bonus { color: var(--accent); margin-top: 2px; }
.tkbal-bought { margin-top: 2px; }
.card.buy { margin-top: 16px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.pack { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid rgba(243, 239, 230, .12); border-radius: 12px; }
.pack b { font-size: 20px; }
.tkbal-n b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tkbal.full .tkbal-n b { font-size: 34px; }
.tkbar { height: 8px; margin: 8px 0 10px; }
.tkbal.low .tkbar > i { background: var(--warn); }
.tkbal.empty .tkbar > i { background: var(--bad); }
.tkbal.empty .tkbal-n b { color: var(--bad); }
.tkbal-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.tkbal-foot a { font-weight: 700; }
.tkbal.inplan { margin: 12px 0 4px; background: rgba(21, 21, 28, .55); border: 1px solid var(--line); border-radius: 14px; }
/* under the new-video form: about how many tokens, or why not */
.tkest { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(185, 226, 58, .07); border: 1px solid rgba(185, 226, 58, .25); }
.tkest[hidden] { display: none; }
.tkest p { margin: 0; }
.tkest p + p { margin-top: 2px; }
.tkest-n { font-weight: 700; }
.tkest.short { background: rgba(255, 107, 129, .08); border-color: rgba(255, 107, 129, .35); }
.tknote { margin: 0; }
.tknote .tklink { margin-inline-start: 6px; font-weight: 700; white-space: nowrap; }
.tk-toast { position: fixed; z-index: 60; inset-inline: 16px; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 16px); max-width: 560px; margin-inline: auto;
  padding: 12px 16px; padding-inline-end: 48px; border-radius: 14px; background: var(--panel2); border: 1px solid rgba(255, 107, 129, .45); box-shadow: 0 12px 36px rgba(0, 0, 0, .45); }
.tk-x { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; inline-size: 40px; block-size: 40px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
@media (min-width: 720px) { .tk-toast { bottom: 24px; } }
/* the plans screen: the free plan beside premium, which is shown and not for sale */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 14px; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.plan h2 { margin: 0; font-size: 22px; }
.plan h3 { margin: 16px 0 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
.plan p { margin: 6px 0 0; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.plan.mine { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(214, 240, 60, .25), 0 14px 40px rgba(214, 240, 60, .08); }
.badge { font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.badge.on { background: var(--grad); color: var(--ink); }
.badge.soon { color: var(--accent); background: rgba(214, 240, 60, .08); border: 1px solid rgba(214, 240, 60, .55); }
.plan-allow { font-size: 18px; margin: 8px 0 0; }
.pl-rows { margin: 0; display: grid; gap: 8px; }
.pl-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block-end: 8px; border-block-end: 1px solid var(--line); font-size: 15px; }
.pl-r dt { flex: 1; min-inline-size: 0; }
.pl-r dd { margin: 0; font-weight: 800; white-space: nowrap; }
.plan-ex { margin-top: 14px !important; padding: 12px 14px; border-radius: 14px; background: rgba(185, 226, 58, .07); border: 1px solid rgba(185, 226, 58, .25); font-size: 14.5px; }
.plan.soon { border-style: dashed; background: rgba(28, 28, 37, .35); }
.plan.soon h2, .plan.soon > p, .plan.soon .plan-list { opacity: .78; }
.plan.soon h2 { color: var(--muted); }
.plan-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.plan-list li { position: relative; padding-inline-start: 26px; }
.plan-list li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--accent); opacity: .7; }

/* the editor's Logo section (static/editor.js logoBlock; docs/LOGO.md): the account's logo, and a small phone frame whose corners are the choices */
.logo-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.logo-acc .filepick { margin-top: 0; }
.logo-acc .filepick.off { opacity: .6; pointer-events: none; }
.logo-prev { max-width: 96px; max-height: 64px; width: auto; height: auto; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: repeating-conic-gradient(#2b2b36 0 25%, #20202a 0 50%) 0 0 / 12px 12px; padding: 4px; }
.logo-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-pick-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.logo-pick-side .btn.on { border-color: var(--accent); background: var(--panel2); }
/* the picker: a frame in the video's own shape (tall for 9:16, wide for 16:9) with four corner targets, each a real button of at least 44 px */
.lframe { position: relative; flex: none; border: 2px solid var(--muted); border-radius: 12px; background: var(--bg2); }
.lframe.tall { width: 132px; height: 234px; }
.lframe.wide { width: 240px; height: 135px; }
.lframe .lc { position: absolute; width: 48px; height: 48px; padding: 3px; border: 0; background: none; cursor: pointer; border-radius: 8px; display: flex; }
.lframe .lc:focus-visible { outline: 2px solid var(--accent); }
.lframe .lc:disabled { opacity: .4; cursor: not-allowed; }
.lframe .lc.tl { top: 2px; left: 2px; align-items: flex-start; justify-content: flex-start; }
.lframe .lc.tr { top: 2px; right: 2px; align-items: flex-start; justify-content: flex-end; }
.lframe .lc.bl { bottom: 2px; left: 2px; align-items: flex-end; justify-content: flex-start; }
.lframe .lc.br { bottom: 2px; right: 2px; align-items: flex-end; justify-content: flex-end; }
.lframe .lslot { width: 100%; height: 100%; border: 2px dashed rgba(168, 163, 153, .45); border-radius: 6px; display: block; }
.lframe .lc:hover .lslot { border-color: var(--accent); }
.lframe .lthumb { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 3px; }
.lframe .lc.tl .lthumb { object-position: left top; } .lframe .lc.tr .lthumb { object-position: right top; }
.lframe .lc.bl .lthumb { object-position: left bottom; } .lframe .lc.br .lthumb { object-position: right bottom; }
.lframe .lmark { width: 100%; height: 100%; background: var(--accent); border-radius: 6px; display: block; }
.lframe .lc.on { outline: 2px solid var(--accent); outline-offset: -1px; }
.logo-note, .logo-apps { margin: 8px 0 0; }
/* One change for several short videos (a highlights video's page: static/app.js batchBox / wireBatch). Logical properties: he/ar. */
.cbatch h2 { margin: 0 0 4px; }
.cbatch .cb-l { display: block; margin: 14px 0 6px; font-weight: 600; }
.cbatch textarea { min-height: 84px; }
.cb-pick { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 8px; margin: 14px 0 0; min-width: 0; }
.cb-pick legend { padding: 0 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.cb-pick label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.cb-pick input { inline-size: 22px; block-size: 22px; flex: none; accent-color: var(--accent); }
.cb-pick label span { min-width: 0; overflow-wrap: anywhere; }
.cb-list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.cb-list li + li { border-block-start: 1px solid rgba(255, 255, 255, .05); }
.cb-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 14px; }
.cb-acts .btn { flex: 1 1 auto; }
.cb-quote { margin-block-start: 16px; padding: 14px; border-radius: 14px; background: rgba(185, 226, 58, .07); border: 1px solid rgba(185, 226, 58, .25); }
.cb-quote[hidden] { display: none; }
.cb-total { font-size: 17px; }
.cb-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.cb-lines li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 9px 0; border-block-start: 1px solid var(--line); }
.cb-n { min-width: 0; overflow-wrap: anywhere; }
.cb-w { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cb-skip .cb-n { opacity: .65; }
.cb-quote .note { margin: 12px 0 0; }
.cb-quote .note.ok { margin: 0; padding: 0; border: 0; background: none; }
.cb-quote .tknote { margin: 12px 0 0; }
.cb-see { font-weight: 700; white-space: nowrap; }
.cb-h3 { margin: 22px 0 0; font-size: 16px; }
.cb-prog:empty { display: none; }
@media (min-width: 720px) { .cb-acts .btn { flex: 0 1 auto; } }

/* sharing to social networks (social.js, docs/SOCIAL.md): the sheet reuses .prep; these are its own parts */
.soc .prep-card { max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden; }
.soc-body { margin-top: 12px; min-width: 0; }
.soc-body p { margin: 8px 0 0; }
.soc-accounts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.soc-acc { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.soc-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.soc-head b { font-size: 14px; flex: none; }
.soc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-drop { flex: none; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.soc-kinds { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.soc-kind { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 36px; cursor: pointer; }
.soc-kind input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.soc-kind.off { opacity: .55; cursor: default; }
.soc-cap { box-sizing: border-box; width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: inherit; font: inherit; resize: vertical; }
.soc-list { margin: 10px 0 0; padding-inline-start: 18px; }
.soc-status { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.soc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.soc-what { display: flex; flex-wrap: wrap; gap: 2px 8px; min-width: 0; align-items: baseline; }
.soc-what b { font-size: 14px; }
.soc-what bdi { min-width: 0; overflow-wrap: anywhere; }
.soc-what i { font-style: normal; color: var(--muted); }
.soc-line.published .soc-state { color: var(--accent); }
.soc-line.failed .soc-state { color: var(--bad); }
.soc-line small { grid-column: 1 / -1; }
#soc-t.err { color: var(--bad); }
/* the quick share stands beside "connect" as the second road, not as a footnote: a filled button, not an outline */
.btn.soc-quick-btn { background: var(--panel2); color: var(--text); border: 1px solid var(--accent); }
.soc-guide { border-inline-start: 2px solid var(--line); padding-inline-start: 10px; }

/* ---- less on the screen (Ayala 2026-11-22, meeting 2026-11-25): explanations open on a tap, the home screen starts with one clear action */
.hint { margin: 2px 0 8px; }
.hint summary { display: inline-block; cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hint p { margin: 6px 0 0; }
.modes.names .mode b { margin: 0; }
.mode-d { margin: 10px 2px 0; min-height: 2.9em; }
.layout:disabled { opacity: .4; cursor: not-allowed; }
.home-go { display: flex; gap: 10px; margin: 0 0 14px; }
.home-go > .btn { flex: 1 1 0; }
.home-go > .btn.primary { flex-grow: 2; }
.jobw { display: flex; align-items: center; gap: 8px; }
.jobw > .job { flex: 1; min-width: 0; }
.fav { flex: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 20px; cursor: pointer; }
.fav.on { color: var(--accent); border-color: rgba(214, 240, 60, .45); }
.fav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.favrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.favcard { display: block; text-decoration: none; color: inherit; min-width: 0; }
.favcard .thumb, .favcard .thumb.has-img { width: 100%; height: auto; aspect-ratio: 9 / 12; border-radius: 14px; }
.favcard .t { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 719px) { .favrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-h { margin: 18px 0 10px; font-size: 20px; }
.tkbal.compact { padding: 8px 14px; margin: 0 0 10px; }
.tkbal.compact .tkbal-t, .tkbal.compact .tkbal-foot { font-size: 12px; }
.tkbal.compact .tkbal-n b { font-size: 17px; }
.tkbal.compact .tkbar { height: 4px; margin: 4px 0 6px; }
.news summary { padding: 10px 16px; }
.news .news-1 { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.news[open] .news-1 { visibility: hidden; }
.news summary::after { margin-inline-start: 0; flex: none; }
.news-more summary { padding: 8px 16px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.news-more summary::after { display: none; }
.wz-more { margin-top: 10px; }
.wz-more summary { cursor: pointer; padding: 10px 2px; color: var(--muted); font-weight: 700; }
.wz-more .wz-sum { margin-top: 4px; }
.wf.tpl .inline > input { flex: 1 1 180px; margin: 0; }
.files + .tkest { margin: 10px 0 12px; }

/* a choice the plan does not include (the illustrations on the free plan): named, closed, with the plan that has it */
.ill.locked { opacity: .85; }
.badge.prem { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); vertical-align: middle; }

/* a customer's report on the admin screen: their words keep their line breaks */
.rep-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.report.done { opacity: .6; }
#repText { width: 100%; margin-top: 12px; }

/* first time on the home screen: Rakoon says hello (Ayala 2026-11-28; app.js jobsView) */
.card.welcome { text-align: center; padding: 28px 18px 26px; margin-bottom: 14px; }
.welcome .orb { width: 104px; height: 104px; border-radius: 30px; margin-bottom: 18px; }
.welcome h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.2; margin: 0 0 10px; }
.welcome .lead { font-size: 16px; max-width: 520px; margin: 0 auto 20px; }
/* "Updates": the line about daily updates and our own videos for inspiration (app.js newsBox) */
.news .upd-intro { margin: 0; padding: 0 16px 10px; }
.upd-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 16px 12px; }
@media (max-width: 719px) { .upd-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; overflow-x: auto; scroll-snap-type: x mandatory; } }
.upd-tile { margin: 0; min-width: 0; scroll-snap-align: start; }
.upd-tile video, .upd-tile.soon { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--bg2); object-fit: cover; }
.upd-tile.soon { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; border: 1px dashed var(--line); }
.upd-tile figcaption { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
