/* Rega — the app at «/» (16.11): four screens, dark and quiet. One accent (teal) for the one thing to do; red only for a
   failure. Every target is at least 48px; the main action sits at the bottom, under the thumb. */
@font-face {
  font-family: "Rubik";
  src: url("/static/Rubik-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

/* ---- round 4 (24.11): every colour of the app is a token. DARK is the default (the owner chose direction A, 23.11);
   :root[data-theme="light"] redefines the same tokens (theme.js sets it before the first paint, from what this phone
   chose in «מראה האפליקציה»). Three levels of text: --text (titles), --text-2 (the content), --muted (the help line).
   One colour per kind of content: --reel, --story, --car (carousel). tests/test_r4_design.py checks that no colour
   literal is left outside these blocks and that text and controls read at 4.5:1 in both themes. ---- */
:root {
  color-scheme: dark;
  --bg: #0B0E14;
  --card: #131A22;
  --card-2: #1A232D;
  --line: #232B36;
  --text: #FFFFFF;
  --text-2: #C9D1DC;
  --muted: #8A97A6;
  --accent: #2DE1C2;
  --on-accent: #04110E;
  --accent-tint: rgba(45, 225, 194, .1);
  --accent-soft: rgba(45, 225, 194, .45);
  --error: #FF6B5A;
  --error-bg: rgba(255, 107, 90, .12);
  --warn: #FFB547;
  --warn-bg: rgba(255, 181, 71, .12);
  --reel: #2DE1C2;
  --story: #FFB547;
  --car: #8FA8FF;
  --kind-ink: #0B0E14;
  --bar-bg: rgba(11, 14, 20, .92);
  --scrim: rgba(0, 0, 0, .55);
  --toast-bg: #E8EEF4;
  --toast-text: #0B0E14;
  --spin-track: rgba(4, 17, 14, .25);
  --spin-track-light: rgba(232, 238, 244, .2);
  --hatch: rgba(127, 127, 127, .25);
  --swatch-edge: rgba(255, 255, 255, .3);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F4EF;
  --card: #FFFFFF;
  --card-2: #EFEBE3;
  --line: #DDD7CB;
  --text: #15181D;
  --text-2: #3B424D;
  --muted: #5C636D;
  --accent: #0B6E5F;
  --on-accent: #FFFFFF;
  --accent-tint: rgba(11, 110, 95, .1);
  --accent-soft: rgba(11, 110, 95, .4);
  --error: #C0352B;
  --error-bg: rgba(192, 53, 43, .1);
  --warn: #9A5306;
  --warn-bg: rgba(154, 83, 6, .1);
  --reel: #0B6E5F;
  --story: #9A5306;
  --car: #3D57C4;
  --kind-ink: #FFFFFF;
  --bar-bg: rgba(246, 244, 239, .92);
  --scrim: rgba(21, 24, 29, .45);
  --toast-bg: #15181D;
  --toast-text: #F6F4EF;
  --spin-track: rgba(255, 255, 255, .35);
  --spin-track-light: rgba(21, 24, 29, .15);
  --hatch: rgba(127, 127, 127, .25);
  --swatch-edge: rgba(21, 24, 29, .25);
}
/* content, not chrome: the video and its frames, the caption and font samples, the neutral pictures drawn in code. The
   same in both themes (a reel looks the same whatever the app around it looks like) */
:root {
  --media: #000000;
  --media-dim: rgba(0, 0, 0, .45);
  --preview-bg: #14161A;
  --preview-ink: #FFFFFF;
  --preview-brand: #2DE1C2;
  --preview-shadow: rgba(0, 0, 0, .6);
  --preview-edge: rgba(255, 255, 255, .45);   /* a black line in a set chip still shows on the dark tile */
}
:root {
  /* one type scale (direction A): the screen's title, a section's label, a row's title, the help line */
  --fs-h1: 22px;
  --fs-label: 13px;
  --fs-row: 16px;
  --fs-body: 16px;
  --fs-help: 14px;
  --r: 16px;
  --r-sm: 12px;
  --bar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text-2); }
body {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* 17.11 (Avner's iPhone: «שהכפתור נגרר»): after the keyboard, the fixed bottom button stayed mid-screen over the
     page. The same thing happened to the old app on 14.10 and 20.10, with the same cure: the app is one column of
     the screen's height. The bar on top, <main> scrolls, the button row is last. Nothing is fixed, nothing drifts. */
  display: flex; flex-direction: column; height: 100%; height: 100dvh; overflow: hidden;
}
html { height: 100%; }
button, input, textarea { font: inherit; color: inherit; }
/* 17.11 (Avner's recording: a long press on a row opened Safari's link menu, «פתיחה · העתקת קישור · שיתוף»): rows and
   buttons behave like an app's, not like links on a web page. Text in fields and captions stays selectable. */
a, button, label.btn, .row-btn, .recent, .kind { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the top bar: «Rega» at the start (right), the gear at the end (left) ---- */
.bar {
  position: relative; flex: none; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 16px 0; background: var(--bar-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 19px; letter-spacing: .2px; text-decoration: none; color: var(--text); }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; margin-inline-end: -8px;
}
.icon-btn:active { background: var(--card); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the page ---- */
main { flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch; padding: 16px max(16px, calc((100% - 528px) / 2)) calc(32px + var(--safe-b)); }
main:focus { outline: none; }
h1 { font-size: var(--fs-h1); line-height: 1.25; font-weight: 700; margin: 0 0 16px; color: var(--text); text-wrap: balance; }
h2 { font-size: var(--fs-label); font-weight: 600; color: var(--muted); margin: 24px 0 8px; letter-spacing: .04em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-help); }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }

/* ---- buttons ---- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  padding: 12px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
  font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary .ic { stroke-width: 2.2; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn.busy[disabled] { opacity: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.pair .link-btn { min-height: 56px; }
.btn.big { min-height: 72px; font-size: 19px; }
.link-btn {
  display: block; width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--muted);
  font-size: 16px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.link-btn.danger { color: var(--error); }

/* the main action, at the bottom under the thumb */
.dock {
  position: relative; flex: none; z-index: 15; padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--bg); border-top: 1px solid var(--line);
}
body.kbd .dock { display: none; }   /* the keyboard is up (simple.js): the button row comes back when it goes */
.dock-in { max-width: 528px; margin: 0 auto; }
.dock-in > * + * { margin-top: 8px; }
.dock .note { font-size: 14px; color: var(--muted); text-align: center; }

/* ---- screen 1: the files ---- */
.files { list-style: none; margin: 0 0 8px; padding: 0; }
.file {
  display: grid; grid-template-columns: 56px 1fr 48px; gap: 12px; align-items: center; padding: 10px 12px;
  background: var(--card); border-radius: var(--r-sm); margin-bottom: 8px;
}
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--card-2); display: block; }
.file-main { min-width: 0; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; text-align: right; }
.file-sub { font-size: 14px; color: var(--muted); }
.file-sub.bad { color: var(--error); }
.meter { height: 4px; border-radius: 2px; background: var(--card-2); overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.add-more { min-height: 48px; }

.kinds { display: grid; gap: 10px; }
.kind {
  display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 12px; width: 100%; min-height: 72px;
  padding: 14px 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card);
  text-align: start; cursor: pointer;
}
.kind b { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.kind span { display: block; font-size: var(--fs-help); color: var(--muted); }
.kind .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
/* 24.11 (the owner's phone, «איך מפרסמים»: «אני מנסה לבחור וזה לא נבחר»): the radio groups say aria-checked since the
   review of 23.11, and only aria-pressed was drawn: the choice was saved and nothing showed it. Both are drawn. */
.kind[aria-pressed="true"], .kind[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.kind[aria-pressed="true"] .dot, .kind[aria-checked="true"] .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.kind[disabled] { opacity: .45; cursor: default; }
.kinds .more-kinds { justify-self: start; min-height: 44px; padding: 0 4px; }
.also-story { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: -4px;
  padding: 8px 16px; border-radius: var(--r); background: var(--card); cursor: pointer; font-size: 17px; }
.also-story[hidden] { display: none; }
.also-as { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: -4px; padding: 8px 16px; border-radius: var(--r);
  background: var(--card); font-size: 17px; }
.also-as[hidden] { display: none; }
.also-as .chips { margin: 0; padding: 0; flex: 1; overflow: visible; }
.also-as .chip { flex: 1; min-height: 44px; }
.also-as .sub { display: block; font-size: 14px; color: var(--muted); }
.also-story .sub { display: block; font-size: 14px; color: var(--muted); }
.voice { margin-top: 10px; }
.voice .btn { width: auto; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.voice .btn.rec { border-color: var(--error); color: var(--error); }
.voice .link-btn { width: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.why { font-size: 14px; color: var(--muted); }

textarea, input[type="text"] {
  width: 100%; min-height: 96px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card); font-size: 17px; line-height: 1.5; resize: vertical; outline: none;
}
textarea:focus, input[type="text"]:focus { border-color: var(--accent); }
textarea::placeholder { color: var(--muted); }
label.field, div.field { display: block; font-size: 15px; color: var(--muted); margin: 24px 0 8px; }
.quick-words { margin: 4px 0 12px; }
/* the files that did not go up: in the sheet that stays, and under the request (19.11) */
.files.missing { margin: 12px 0 0; max-height: 46vh; overflow-y: auto; }
.left-out { margin: 12px 0; padding: 12px 14px; background: var(--card); border-radius: var(--r); }
.left-out summary { cursor: pointer; font-weight: 600; }
.left-out .files.missing { max-height: none; }
.left-row { display: flex; align-items: center; gap: 12px; }
.left-row .left-pic { flex: none; display: block; }
.left-row .left-why { flex: 1; min-width: 0; font-size: 15px; text-align: right; overflow-wrap: anywhere; }

/* ---- the recent list ---- */
.recents { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); overflow: hidden; }
.recents li + li { border-top: 1px solid var(--line); }
.recent {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 16px;
  color: var(--text); text-decoration: none; width: 100%; background: transparent; border: 0; text-align: start;
}
.recent-main { min-width: 0; }
.recent-title { font-size: var(--fs-row); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-sub { font-size: var(--fs-help); color: var(--muted); }
.pill {
  flex: none; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--card-2);
  color: var(--muted); white-space: nowrap;
}
.pill.you { background: var(--accent); color: var(--on-accent); }
.pill.pub { color: var(--accent); background: var(--accent-tint); }
.pill.bad { color: var(--error); background: var(--error-bg); }
.empty { padding: 18px 16px; color: var(--muted); font-size: 15px; background: var(--card); border-radius: var(--r); }

/* ---- screen 2: in the making ---- */
.what { font-size: 18px; color: var(--muted); margin-top: -12px; }
.eta { font-size: 24px; font-weight: 600; margin: 24px 0 4px; }
.eta.late { color: var(--text); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 28px 0 8px; }
.step { text-align: center; font-size: 15px; color: var(--muted); }
.step::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--card-2); margin-bottom: 10px; }
.step.done::before { background: var(--accent-soft); }
.step.now { color: var(--text); font-weight: 600; }
.step.now::before { background: var(--accent); }
.calm { margin-top: 28px; padding: 14px 16px; border-radius: var(--r); background: var(--card); color: var(--muted); font-size: 15px; }
.band {
  margin: 16px 0; padding: 16px; border-radius: var(--r); background: var(--error-bg); border-inline-start: 4px solid var(--error);
}
.band b { display: block; color: var(--error); font-size: 17px; margin-bottom: 4px; }
/* a pick that waits («מחכה לך») and the way to the home screen: bands with their own buttons */
.wait-band, .install-band { margin: -4px 0 20px; }
.band-acts { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.band-acts .btn { flex: 1; }
.band-acts .link-btn { width: auto; flex: none; padding: 0 6px; }
.install-band ol { margin: 8px 0 4px; padding-inline-start: 22px; font-size: 15px; line-height: 1.5; }
.install-band .btn { width: 100%; margin-top: 10px; }
.install-band .link-btn { min-height: 44px; }
/* 24.11: a message from Rega on home (core/notes.py): the install band's shape, each line a row a finger can hit */
.note-band { margin: -4px 0 20px; }
.note-band .note-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.note-lines li { display: flex; align-items: center; min-height: 44px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; color: var(--text); }
.note-lines li:first-child { border-top: 0; }
.note-go { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.note-go .ic { width: 18px; height: 18px; flex: none; }
.note-band .btn { width: 100%; margin-top: 10px; }
/* 17.11: several bands on home: the first keeps the accent, the ones below it are quiet */
.band.ok.quiet { background: var(--card); border-inline-start-color: var(--card-2); }
.band.ok.quiet b { color: var(--text); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-link { color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 0 8px 4px;
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: flex-end; }   /* 23.11: a finger can hit «הכול» */
.cap-hint { margin: -4px 0 8px; font-size: 14px; }
.pick-sheet { width: 100%; border-radius: 8px; margin-bottom: 8px; display: block; }

/* ---- screen 3: the preview ---- */
.media {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; max-height: max(280px, calc(100vh - 410px)); max-height: max(280px, calc(100dvh - 410px));
  border-radius: var(--r); overflow: hidden; background: var(--media);
}
.media video, .media img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--media); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px auto 0; max-width: 360px; }
.pager .count { font-size: 15px; color: var(--muted); }
.pager .icon-btn { margin: 0; background: var(--card); color: var(--text); }
.pager .icon-btn[disabled] { opacity: .3; }
.item-label { text-align: center; font-size: 15px; color: var(--muted); margin-top: 10px; }
.note-box { margin-top: 20px; padding: 14px 16px; border-radius: var(--r); background: var(--card); }
.note-box h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.saved { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: 6px; }

/* ---- screen 4: published ---- */
.big-check {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 12px auto 20px;
  background: var(--accent-tint); color: var(--accent);
}
.big-check.bad { background: var(--error-bg); color: var(--error); }
.big-check .ic { width: 36px; height: 36px; stroke-width: 2.2; }
.targets { list-style: none; padding: 0; margin: 20px 0; background: var(--card); border-radius: var(--r); overflow: hidden; }
.targets li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; }
.targets li + li { border-top: 1px solid var(--line); }
.targets .ok { color: var(--accent); font-weight: 600; white-space: nowrap; }
.targets .no { color: var(--error); font-weight: 600; white-space: nowrap; }
.targets .skip { color: var(--muted); white-space: nowrap; }
.targets .busy { color: var(--muted); font-weight: 600; white-space: nowrap; }   /* 24.11: «מפרסם…» while it runs */
.targets .why { display: block; }

/* ---- sheets (gear, confirm, «מה לשנות?») ---- */
.sheet-back {
  position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end;
  animation: fade .15s ease;
}
.sheet {
  width: 100%; max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + var(--safe-b)); animation: up .2s ease;
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 12px; }
.sheet { position: relative; }
.sheet-x { position: absolute; top: 6px; left: 10px; min-height: 44px; padding: 0 10px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.sheet h3 { margin: 4px 0 12px; font-size: 19px; }
.sheet-x + h3 { padding-inline-end: 64px; }   /* 23.11: a long title never runs under «סגירה» */
.cta-status .band { margin: 0 0 12px; }
.sheet p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.rows { list-style: none; padding: 0; margin: 0 0 8px; }
.row-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px;
  padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: start;
  font-size: var(--fs-row); font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer;
}
.rows li:last-child .row-btn { border-bottom: 0; }
.row-btn .sub { display: block; font-size: var(--fs-help); font-weight: 400; color: var(--muted); }
.row-btn .ic { color: var(--muted); flex: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

/* ---- the quieter screens (simple-settings.js): one back control, cards of rows, switches ---- */
.back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -12px 0 2px; padding: 0 4px 0 12px;
  margin-inline-start: -8px; color: var(--muted); font-size: 15px; text-decoration: none; border-radius: 10px;
  flex: none; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.back .ic { width: 22px; height: 22px; flex: none; }
.back:active { background: var(--card); }
/* 19.11: the back link stays at the top while the screen scrolls (the shadow paints the page's colour to both sides, the
   clip keeps it to the bar's own height). Round 4 (24.11, the owner: «השליש העליון של המסך מבוזבז»): the screen's title
   sits in the same row as the back link (simple.js render moves it in), so the content starts right under the header. */
.back-bar {
  position: sticky; top: -16px; z-index: 6; margin: -16px 0 12px; padding: 4px 0; background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax);
  display: flex; align-items: center; gap: 8px; min-height: 52px;
}
.back-bar .back { margin-top: 0; margin-bottom: 0; }
.back-bar h1 { flex: 1; min-width: 0; margin: 0; font-size: 19px; line-height: 1.25; padding-inline-start: 10px;
  border-inline-start: 1px solid var(--line); }
body.has-update .back-bar { top: 44px; margin-top: 0; }   /* under the «גרסה חדשה» bar, which is fixed over the top */
.rows.group { background: var(--card); border-radius: var(--r); padding: 0 16px; margin: 0; }
.row-btn > span:first-child { min-width: 0; }
.row-btn.static { cursor: default; }
.know-row > span:first-child { overflow-wrap: anywhere; font-size: 16px; font-weight: 400; }
.know-row .link-btn { width: auto; flex: none; padding: 0 4px; font-size: 15px; }
.know-save { margin-top: 12px; }
label.field.know-field { margin-top: 8px; }
label.field.ask-q { color: var(--text); font-size: 16px; line-height: 1.45; }
.row-btn.danger { color: var(--error); }
.row-btn .ic.on { color: var(--accent); }
.row-btn[disabled] { opacity: .55; }
label.row-btn { cursor: pointer; }
.switch { position: relative; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); transition: background .15s; }
.switch i::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--muted); transition: transform .15s, background .15s;
}
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { background: var(--on-accent); transform: translateX(-20px); }
[dir="ltr"] .switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + i { opacity: .6; }
.band.ok { background: var(--accent-tint); border-inline-start-color: var(--accent); }
.band.ok b { color: var(--accent); }
.band p { color: var(--text); font-size: 16px; }
.lead { margin: -8px 0 20px; font-size: 16px; }
.fine { margin-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
.fine a { color: var(--muted); }

/* the connections */
.net { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--card); }
.net-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.net-head b { font-size: 18px; font-weight: 600; }
.net > p { margin-top: 8px; font-size: 16px; }
.net-who { color: var(--text); }
.net .rows { margin: 8px 0 0; border-top: 1px solid var(--line); }
.net .btn { margin-top: 14px; }
.net .link-btn { margin-top: 4px; width: auto; padding: 0 4px; }
.net p.small { font-size: 14px; }
.wa-code { margin-top: 12px; padding: 14px; border-radius: var(--r); background: var(--bg); text-align: center;
  font-size: 30px; font-weight: 700; letter-spacing: .18em; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.wa-steps { white-space: pre-line; }
.net label.field { margin: 16px 0 8px; }
.net .check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 8px; font-size: 16px; cursor: pointer; }
.net .check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }

/* single-line fields, and the brand's counts */
input.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card); font-size: 17px; outline: none;
}
input.input:focus { border-color: var(--accent); }
input.input::placeholder { color: var(--muted); }
textarea.short { min-height: 80px; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.field-foot .count { flex: none; }
.field-foot .count.bad { color: var(--error); font-weight: 600; }
.preview { padding: 12px; border-radius: var(--r); background: var(--card); }
.preview-frame { display: block; width: 100%; max-width: 280px; aspect-ratio: 9 / 16; margin: 0 auto 10px; border-radius: var(--r-sm); object-fit: cover; background: var(--media); }
.preview .link-btn { margin-top: 4px; }
/* 23.11: while a new picture is made the last one stays, dimmed, with the words on it */
.preview-wait { position: relative; }
.preview-wait .preview-frame { opacity: .4; }
.preview-over { position: absolute; left: 0; right: 0; top: 45%; margin: 0; padding: 0 16px; text-align: center; font-weight: 600; }

/* the music */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 15px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.tracks { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); overflow: hidden; }
.tracks li + li { border-top: 1px solid var(--line); }
.tracks .empty { border-radius: 0; }
.track { display: flex; align-items: center; gap: 2px; min-height: 64px; padding: 6px 4px; }
.track .icon-btn { flex: none; width: 44px; height: 44px; margin: 0; }
.track .play { color: var(--text); }
.track .play.on { color: var(--accent); }
.track-main { flex: 1; min-width: 0; padding: 0 6px; }
.track-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.track-sub { font-size: 14px; color: var(--muted); }
.track.off .track-title { color: var(--muted); }
.mark.favorite[aria-pressed="true"] { color: var(--accent); }
.mark.favorite[aria-pressed="true"] .ic { fill: currentColor; }
.mark.avoid[aria-pressed="true"] { color: var(--error); }

/* the full list */
.recent > .ic { flex: none; color: var(--muted); }
.post-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; margin-top: -4px; }
.post-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--card-2); color: var(--text); font-size: 15px; text-decoration: none;
}
.post-link .ic { width: 18px; height: 18px; color: var(--muted); }

/* help */
.how { margin: 0 0 8px; padding: 16px 16px 16px 16px; padding-inline-start: 36px; background: var(--card); border-radius: var(--r); }
.how li + li { margin-top: 8px; }
.how li { color: var(--muted); font-size: 16px; }
.how b { color: var(--text); font-weight: 600; }

/* sign-in */
.gsi { display: flex; justify-content: center; min-height: 48px; align-items: center; margin: 8px 0 16px; }
.or { text-align: center; margin: 16px 0 4px; font-size: 15px; }
.pw { margin-top: 8px; padding: 0 16px; border-radius: var(--r); background: var(--card); }
.pw summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-size: 16px; list-style: none; }
.pw summary::-webkit-details-marker { display: none; }
.pw summary::after { content: "+"; margin-inline-start: auto; color: var(--muted); font-size: 22px; }
.pw[open] summary::after { content: "−"; }
.pw[open] { padding-bottom: 16px; }
.pw > p { margin-bottom: 12px; }
.form-bad, .sheet p.form-bad { color: var(--error); font-size: 15px; font-weight: 600; }   /* `.sheet p` is grey: 17.11, a refusal read as a note */
.form-bad.nudge { animation: nudge .3s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form-bad:empty { display: none; }
#gear[hidden] { display: none; }

.toast {
  position: fixed; inset-inline: 16px; bottom: calc(16px + var(--safe-b)); z-index: 50;   /* simple.js toastBottom: over the button row */ margin: 0 auto; max-width: 480px;
  padding: 12px 16px; border-radius: var(--r-sm); background: var(--toast-bg); color: var(--toast-text); font-size: 15px; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.skeleton { height: 72px; border-radius: var(--r); background: var(--card); margin-bottom: 10px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--spin-track); border-top-color: var(--on-accent);
  animation: spin .8s linear infinite;
}
.spinner.light { border-color: var(--spin-track-light); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.update-bar {
  position: fixed; top: calc(var(--bar-h) + var(--safe-t) + 8px); inset-inline: 16px; z-index: 30; max-width: 528px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px;
  border-radius: var(--r-sm); background: var(--card-2); font-size: 15px;
}
/* #/camera: the phone's camera settings, a quiet card (not a .band: nothing here is a warning) */
.guide { margin-top: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.guide p { margin: 0 0 10px; color: var(--text); font-size: 16px; line-height: 1.55; }
.guide p:last-child { margin-bottom: 0; }
/* 24.11 (item 22): the «i» beside a word that needs it; small on screen, a 44px tap around it, never a line of its own */
.hint { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  margin-inline-start: 4px; padding: 0; border: 0; background: none; color: var(--muted); vertical-align: middle; cursor: pointer; }
.hint::after { content: ""; position: absolute; inset: -11px; }
.hint .ic { width: 18px; height: 18px; }
.hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 50%; }
.hint-text { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.guide .ltr-path { display: block; direction: ltr; unicode-bidi: isolate; text-align: left; }   /* 24.11: an English menu path, its own line */
.rows.sign-out { margin-top: 32px; }   /* 24.11: «יציאה», apart at the very end of the settings */
.guide b { font-weight: 700; color: var(--accent); }
body.has-update main::before { content: ""; display: block; height: 64px; }   /* the bar never covers the screen's title */
.update-bar button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- simple-more.js (17.11): the package screen's «לתזמן» and «עוד», Telegram, comments, «מה להכין», «המראה» ---- */
.sheet { max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; }
.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; }
.trio .btn { padding: 12px 8px; }
.trio .link-btn { min-height: 56px; }
.media.r45 { aspect-ratio: 4 / 5; }
.media-gone { display: grid; place-items: center; align-content: center; gap: 12px; height: 100%; padding: 24px; color: var(--muted); font-size: 16px; text-align: center; }
.media-gone .btn { width: auto; min-height: 48px; padding: 0 20px; }
.slide-line { margin-top: 8px; text-align: center; }
.slide-line .link-btn { width: auto; margin: 0 auto; padding: 0 8px; }
.rows.group.more { margin-top: 20px; }
.chips.days, .chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0 0 4px; padding: 0; }
input.input[type="time"] { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; }
/* 25.11 (the owner's iPhone, «לשנות את השעה» over «לתזמן את כולם»): the hour field ran out of the sheet's left edge.
   iOS draws a native time field at its own intrinsic width and ignores width:100% while its appearance is the native
   one; in the RTL sheet the extra width went out on the left. The field is a plain box now, never wider than the sheet. */
input.input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; }
input.input[type="time"]::-webkit-date-and-time-value { text-align: center; }
.sheet .or { margin: 14px 0 10px; font-size: 15px; }
.sheet .btn .spinner, .btn .spinner.light { flex: none; }
.item-row { align-items: center; }
.item-acts { display: flex; gap: 6px; flex: none; }
.small-btn { width: auto; min-height: 44px; padding: 6px 14px; font-size: 15px; border-radius: var(--r-sm); }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cover-frame { aspect-ratio: 9 / 16; height: auto; margin: 0; border-radius: var(--r-sm); }
.cover-btn { padding: 0; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--media); overflow: hidden; cursor: pointer; min-height: 44px; }
.cover-btn img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.cover-btn[aria-pressed="true"] { border-color: var(--accent); }
.cover-btn[disabled] { opacity: .6; }
.row-act { flex: none; color: var(--accent); font-size: 15px; font-weight: 600; }
.foot { margin: -4px 0 12px; }
.comment { align-items: flex-start; }
.comment-text { font-size: 15px; margin: 2px 0; overflow-wrap: anywhere; }
.gallery { display: grid; gap: 12px; }
.style-card { padding: 12px; border-radius: var(--r); background: var(--card); }
.style-card h3 { margin: 10px 0 4px; font-size: 18px; }
.style-card > p { font-size: 15px; }
.style-card > p + p { margin-top: 4px; }
.sample { width: 100%; max-width: 180px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--r-sm); overflow: hidden; background: var(--media); }
.sample video { display: block; width: 100%; height: 100%; object-fit: cover; }
.marks { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.marks .chip { display: inline-flex; align-items: center; gap: 6px; }
.marks .chip .ic { width: 18px; height: 18px; }
.marks .mark.favorite[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.marks .mark.avoid[aria-pressed="true"] { border-color: var(--error); color: var(--error); background: var(--error-bg); }
.board { display: block; width: 100%; border-radius: var(--r); margin: 0 0 16px; background: var(--card); }

/* ---- the way in (simple-entry.js, 17.11): the questionnaire, «העסק שלי», the password, the free trial, the share
   sheet, «מה אפשר להפעיל», «הפניות שלי». One question per screen, every answer a big row. ---- */
.ob-top { margin: -4px 0 20px; }
.ob-top .meter { height: 6px; border-radius: 3px; margin: 0; }
.ob-count { margin-top: 8px; font-size: 14px; color: var(--muted); }
.ob-part { font-size: 14px; color: var(--muted); margin: -8px 0 4px; }
.ob-prompt { margin: -8px 0 20px; font-size: 17px; }
.ob-prompt p + p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.ob-had { margin: -8px 0 16px; font-size: 15px; color: var(--muted); }
.ob-more { margin-top: 16px; }
.ob-more > * + * { margin-top: 8px; }
.ob-gap { margin: 10px 0 12px; }
.ob-go { margin-top: 12px; }
.choices { display: grid; gap: 10px; }
.choice {
  display: block; width: 100%; min-height: 64px; padding: 14px 16px; border-radius: var(--r); border: 2px solid var(--line);
  background: var(--card); text-align: start; cursor: pointer; color: var(--text);
}
.choice b { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.choice span { display: block; font-size: var(--fs-help); color: var(--muted); margin-top: 2px; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.choice[disabled] { opacity: .6; cursor: default; }
.btn[aria-pressed="true"] { border-color: var(--accent); }
.ob-board { display: block; width: auto; max-width: 100%; max-height: 46vh; max-height: 46dvh; margin: 0 auto 16px; border-radius: var(--r); background: var(--card); }
.ob-files { margin: 12px 0 0; }
.ob-files:empty { display: none; }
.ob-band { display: block; text-decoration: none; color: var(--text); margin: -4px 0 20px; }
.ob-band .row-act, .tr-band .row-act { display: inline-block; margin-top: 8px; }
.row-act { flex: none; font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sub.ans { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-band { margin: -4px 0 20px; }
.tr-band p + p { margin-top: 4px; }
.tr-band .btn { margin-top: 12px; min-height: 48px; }
.tr-code { letter-spacing: .3em; font-size: 22px; text-align: center; }
.tr-note > * + * { margin-top: 8px; }
.tr-note .pair .btn { min-height: 48px; }
.btn.try { margin-top: 16px; }
.contact { margin-top: 16px; }
.contact form { padding-bottom: 4px; }
.contact .btn { margin-top: 0; }
.pw-form .btn { margin-top: 16px; }
input.input[type="email"], input.input[type="password"], input.input[type="tel"], input.input[type="url"] { direction: ltr; }
.issues { list-style: none; margin: 0; padding: 0; }
.issue { padding: 14px 16px; border-radius: var(--r); background: var(--card); margin-bottom: 10px; }
.issue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.issue > p { font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.issue-reply { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--card-2); }
.issue-reply b { display: block; font-size: 14px; color: var(--accent); margin-bottom: 2px; }
.issue-reply p { white-space: pre-line; overflow-wrap: anywhere; }
/* «לערוך בעצמי» (18.11). A text of the reel is a row: its kind and where it sits above it, «למחוק» beside.
   A shot is a row: its picture, its place and length, what can be done with it. After the usability review of 18.11:
   every control is a button of 44px, «למחוק» stands apart, and the green button stays in view at the bottom. */
.sheet h4 { margin: 18px 0 8px; font-size: 16px; }
.rt-line { margin-bottom: 14px; }
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rt-head label.field { margin: 0; flex: 1; min-width: 0; }
.rt-where { color: var(--muted); }
.rt-del {
  flex: none; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--error); font-size: 15px; cursor: pointer;
}
.rt-del:disabled { opacity: .35; cursor: default; }
.rt-line.gone .input, .rt-line.gone textarea { text-decoration: line-through; opacity: .5; }
.rt-line.gone .rt-del { color: var(--accent); }
.rt-shots { list-style: none; margin: 0 0 8px; padding: 0; }
.rt-shot { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rt-shot img { width: 63px; height: 112px; object-fit: cover; border-radius: 8px; background: var(--line); flex: none; }
.rt-shot.gone img { opacity: .35; }
.rt-shot.gone .rt-shot-name { opacity: .6; }
.rt-shot.gone .rt-del { color: var(--accent); }
.rt-shot-body { flex: 1; min-width: 0; }
.rt-shot-name { font-size: 16px; }
.rt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.rt-act {
  min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: transparent;
  color: var(--text); font-size: 15px; cursor: pointer;
}
.rt-act:disabled { opacity: .35; cursor: default; }
.rt-note { width: auto; min-height: 44px; padding: 0; font-size: 15px; text-align: start; }
.rt-foot {
  position: sticky; bottom: calc(-16px - var(--safe-b)); margin: 12px -16px 0;   /* the sheet's own bottom padding */
  padding: 12px 16px calc(12px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line);
  display: grid; gap: 8px;
}
.rt-foot .form-bad:empty { display: none; }
.rt-ask { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.rt-head { flex-wrap: nowrap; }
.rt-head .rt-del { padding: 0 8px; }
.rt-say { margin: 2px 0 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.rt-say.gone { text-decoration: line-through; }
/* 20.11: the ruler of a talking shot (simple-more.js shotRuler): a strip of its pictures, two handles; past the strip,
   the seconds more of the take, hatched. Time runs left to right. */
.rt-ruler-box { margin: 8px 0 4px; }
.rt-ruler { position: relative; height: 56px; border-radius: 8px; background: var(--line); touch-action: none; user-select: none; }
.rt-strip { position: absolute; top: 0; bottom: 0; display: flex; overflow: hidden; border-radius: 8px; }
.rt-strip img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.rt-more { position: absolute; top: 0; bottom: 0; border-radius: 8px;
  background: repeating-linear-gradient(135deg, var(--hatch) 0 6px, transparent 6px 12px); }
.rt-keep { position: absolute; top: 0; bottom: 0; border: 3px solid var(--accent); border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 999px var(--media-dim); clip-path: inset(-3px); }
.rt-ruler { overflow: hidden; }
.rt-handle { position: absolute; top: -4px; bottom: -4px; width: 28px; margin-left: -14px; padding: 0; border: 0; background: transparent;
  cursor: ew-resize; touch-action: none; }
.rt-handle::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: 11px; width: 6px; border-radius: 3px; background: var(--accent); }
.rt-range { margin: 6px 0 0; }
.rt-song p { margin: 0 0 8px; }
.rt-song-open { width: 100%; margin-bottom: 8px; }
.rt-songs .chip { flex: none; }

/* 20.11: the colour looks on her own picture (simple-more.js ownLooks) */
.own-note { margin: 4px 0 8px; }
.own-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.own-looks figure { margin: 0; }
.own-looks img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--line); }
.own-looks figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }
.know-refs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }

/* 20.11: the package dock took ~320 px of 812 while publishing; the same buttons, closer */
.dock .btn.big { min-height: 56px; font-size: 18px; }
.dock .trio .btn, .dock .pair .btn { min-height: 44px; padding: 8px; font-size: 16px; }
.dock .trio .link-btn, .dock .pair .link-btn { min-height: 44px; }
.dock .also-as, .dock .kinds .kind { min-height: 48px; padding-top: 4px; padding-bottom: 4px; margin-top: 0; }
.dock-in > * + * { margin-top: 6px; }

/* «המראה שלך» (21.11): the five cards, on the first sign-in and on #/style */
.look-card { margin: 0 0 16px; padding: 4px 16px 16px; border-radius: var(--r); background: var(--card); }
.look-card h2 { margin: 16px 0 6px; font-size: 18px; color: var(--text); }
.look-card h3 { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.look-card .rows { margin: 12px -16px 0; border-radius: 0; }
.look-err { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--error-bg); color: var(--error); font-size: 15px; }
.look-err:empty { display: none; }
.look-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
/* 21.11: the font tiles are wide (640x200) and one per row, full width: on a phone they are read, not squinted at */
.look-fonts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.look-font, .look-cap {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 56px; padding: 8px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--card-2); color: var(--text); cursor: pointer; font-size: 14px; text-align: center;
}
.look-font img, .look-cap img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--preview-bg); }
.look-font { font-weight: 600; font-size: 15px; }
.look-font img { aspect-ratio: 640 / 200; }   /* 21.11: the room is kept before the picture comes (the page below did not jump) */
.look-caps.stale .look-cap img { opacity: .35; filter: grayscale(.6); }
.look-cap.has-img img { background: var(--media); aspect-ratio: 9 / 16; object-fit: cover; }
.look-font span, .look-cap span { overflow-wrap: anywhere; }
.look-font[aria-pressed="true"], .look-cap[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.look-dots { display: flex; flex-wrap: wrap; gap: 10px; }
.look-dot { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.look-dot[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent); }
.look-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-inline-end: 6px; border: 1px solid var(--swatch-edge); vertical-align: middle; }
.look-card .chips.wrap { margin-bottom: 4px; }
.look-card .chip { white-space: normal; padding-block: 6px; }
.look-other { margin-top: 12px; }
.look-other summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); }
.look-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.look-pick { width: 56px; height: 36px; padding: 0; border: 0; background: none; }
.look-chip { position: relative; margin-top: 14px; padding: 22px 14px 18px; border-radius: var(--r-sm); text-align: center; overflow: hidden;
  background: var(--preview-bg); --lk-text: var(--preview-ink); --lk-brand: var(--preview-brand); }
.look-chip-t { display: block; font-size: 24px; font-weight: 800; color: var(--lk-text); text-shadow: 0 1px 6px var(--preview-shadow); }
.look-chip-t b { color: var(--lk-brand); font-weight: 800; }
.look-chip-bar { display: block; width: 64px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--lk-brand); }
.look-logo { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.look-logo img, .look-logo-none { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line); }
.look-logo-none { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.look-designs { display: flex; flex-wrap: wrap; gap: 10px; }
.look-design { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.look-design .chip[disabled] { opacity: .5; cursor: default; }
.look-design .sub { font-size: 13px; color: var(--muted); padding-inline: 8px; }
.look-design .chip { white-space: nowrap; }   /* 23.11: «לוגו (צריך להעלות לוגו)» on one line at 375 px */
.look-design .chip-note { font-size: 13px; }
.look-endprev { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 9 / 16; margin: 14px auto 0; border-radius: var(--r-sm); background: var(--media); }
.look .ob-go { margin-top: 8px; }
.look-card .row-btn .link-btn { width: auto; flex: none; min-height: 44px; padding: 0 6px; }
.look-logo .btn { width: auto; flex: 1; min-width: 140px; }

/* 21.11: slow answers — the room for the words under the skeleton is kept from the start; the stripe says «מתעדכן» */
.skel-note { min-height: 3.2em; margin: 4px 0 0; text-align: center; font-size: 15px; }
.skel-note .link-btn { display: inline; }
.look-skel { height: 380px; }
.upd { position: fixed; top: 0; inset-inline: 0; z-index: 60; height: 3px; pointer-events: none; overflow: hidden; }
.upd::before { content: ""; position: absolute; inset-block: 0; width: 38%; background: var(--accent); animation: updslide 1.1s ease-in-out infinite; }
.upd span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.upd[hidden] { display: none; }
@keyframes updslide { from { inset-inline-start: -40%; } to { inset-inline-start: 102%; } }
.band textarea.cap-copy { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; }
.band ol { margin: 6px 0; padding-inline-start: 22px; }

/* 22.11 «להקליט קריינות» (simple-more.js narrationSheet): the reel plays, muted, above the recorder */
.narr-video { display: block; width: auto; max-width: 100%; max-height: 46vh; margin: 0 auto 12px; border-radius: 12px; background: var(--media); }
.voice.narr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.voice.narr .note, .voice.narr .form-bad { flex-basis: 100%; margin: 0; }
/* the recording bar stays on top of the sheet while the reel plays under it (375 px: the timer never scrolls away) */
.rec-top:empty { display: none; }
.rec-top { position: sticky; top: 0; z-index: 2; margin: 0 -4px 10px; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.rec-bar .rec-left { flex: 1; font-variant-numeric: tabular-nums; }
.rec-bar .btn.rec { width: auto; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-color: var(--error); color: var(--error); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--error); }
.rec-bar.late { border-color: var(--error); }
.rec-bar.late .rec-left { font-weight: 700; }
.narr-audio { display: block; width: 100%; margin: 8px 0; }
.narr-missing { display: block; margin: 0 auto 8px; }
/* 22.11 the story lab (simple-story.js): the quiet way in under «לבחור מהגלריה», a card's opening in two lines */
.dock .note.story-link a { display: inline-block; padding: 12px 8px; }
.row-btn .sub.idea-open { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.band ul { margin: 6px 0; padding-inline-start: 22px; }

/* 23.11 (a phone-width walk): a switch that alone flips (not its whole row), with room for a finger */
.switch-hit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 52px; cursor: pointer; flex: none; }
/* the package's «לא לפרסם» stands apart from «לשנות», so one is not hit for the other */
.dock-apart { margin-top: 18px !important; text-align: center; }
.dock-apart .link-btn { min-height: 44px; }
/* «הסיפור שלי» read as text; an idea's gap for him; the folded script */
.story-read { margin: 8px 0; line-height: 1.6; }
.story-read h3 { font-size: 17px; margin: 16px 0 4px; }
.story-read h4 { font-size: 15px; margin: 12px 0 4px; }
.story-read p, .story-read ul { margin: 4px 0; }
mark.gap { background: var(--card-2); color: inherit; border: 1px dashed var(--line); border-radius: 6px; padding: 0 4px; }
.idea-acts { margin: 12px 0 16px; }
.idea-film { margin: 4px 0 0; }
.next-more { display: block; margin: 8px auto 0; min-height: 44px; }
.perf-num { color: var(--muted); font-weight: 600; }

/* 24.11 phone test round 2, package UPLOAD (brief-round2-upload.md): a picture for every file (drawn one at a time into
   a small canvas; a tap shows the file), «להשמיע», the comment word under the chosen card, «נעצר» with what it holds */
.thumb-btn { border: 0; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.thumb-btn canvas, .thumb-btn img { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumb-icon { width: 26px; height: 26px; }
.file-preview { display: block; width: 100%; max-height: 62vh; border-radius: var(--r-sm); background: var(--media); object-fit: contain; margin-top: 8px; }
.voice-play { margin: 6px 0; }
.voice-play audio { width: 100%; }
.cta-maybe { margin: -4px 4px 10px; }
.kind-slot:empty { display: none; }
.kind-slot .rows.group { margin-top: 6px; }
.stop-holds { list-style: none; margin: 8px 0; padding: 0; line-height: 1.6; }
.hold-k { color: var(--muted); }
.stop-thumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }
.file.file-off { opacity: .55; }
/* brief-round2-replies (23.11): the comment word's sheet in two parts, the account's public replies, and the drawing of
   what the commenter sees (simple-more.js ctaForm, repliesBox, ctaPreview) */
.cta-part { margin: 20px 0 4px; font-weight: 700; font-size: 1.05rem; }
.cta-replies .reply-lines { list-style: none; margin: 8px 0; padding: 0; }
.cta-replies .reply-row { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.cta-replies .reply-row .input { flex: 1; min-width: 0; margin: 0; }
.cta-replies .reply-del { flex: none; width: 44px; height: 44px; font-size: 1.3rem; }
.cta-replies .reply-tools { align-items: center; }
.cta-pv { margin: 16px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-2); }
.cta-pv-label { margin: 8px 0 4px; color: var(--muted); font-size: .85rem; }
.cta-pv-cmt { margin: 0 0 6px; overflow-wrap: anywhere; }
.cta-pv-cmt.reply { margin-inline-start: 20px; color: var(--muted); }
.cta-pv-dm { max-width: 85%; padding: 8px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cta-pv-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cta-pv-btn { margin-top: 8px; padding: 6px; border-top: 1px solid var(--line); text-align: center; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- brief-round3-settings (23.11): «אפקטים ואנימציות», the second opening, #/liked by link ---- */
.fx-list.fx-off .style-card { opacity: .55; }
.fx-list .note-box { grid-column: 1 / -1; }
.kicker-two { margin-top: 8px; }
.liked-add { margin-top: 10px; }
.liked-or { margin: 6px 0 16px; }
.liked-row .row-btn.static { gap: 8px; }
/* ---- brief-round3-look (24.11): «המראה» as rows, live font samples, neutral pictures drawn in code ---- */
.look-rows .look-sw { margin-inline-end: 4px; }
.look-sheet .look-card { margin: 0; padding-inline: 0; background: none; }
.look-sheet .look-card h2 { margin-top: 4px; }
.look-font { text-align: start; }
.look-font-name { font-size: 14px; color: var(--muted); }
.look-font-live { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 12px; border-radius: 8px; background: var(--preview-bg); color: var(--preview-ink); }
.look-font-d { font-size: 26px; line-height: 1.25; }
.look-font-b { font-size: 16px; line-height: 1.35; opacity: .85; }
/* 24.11: the samples sit on two photographs the owner gave (web/static/samples: a landscape, close flowers; nobody in
   them). The photo fills the frame (object-fit: cover); what is drawn on it sits above it */
.lk-pic { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  width: 100%; aspect-ratio: 9 / 12; padding: 0 8px 18%; border-radius: 8px; overflow: hidden; text-align: center; background: var(--media); }
.lk-pic > .lk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.lk-pic > :not(.lk-photo) { position: relative; }
.look-chip .lk-pic { aspect-ratio: 16 / 9; padding: 7% 10px 6%; justify-content: space-between; }
.look-chip-open { display: block; }
.look-chip-cap { display: block; max-width: 100%; }
.look-chip-cap .lk-cap { font-size: 15px; }
.look-chip { padding: 0; background: none; }
.look-chip-bar { background: var(--lk-second, var(--lk-brand)); }
.look-legend { margin: 6px 0 0; }
.look-faint { margin: 6px 0; color: var(--error); font-size: 14px; }
.look-faint:empty { display: none; }
/* 24.11 (P5d): the outline as thick as the engine's for this font size (--lk-ow, in em, set by capText), drawn with
   the stroke UNDER the letters (paint-order) so it never eats a space; the old four shadows stay where text-stroke is
   missing. Normal word spacing, the lines balanced: no «דוד,מהנדס», no lone last word */
.lk-cap { display: inline; padding: 2px 6px; border-radius: 6px; color: var(--lk-c, #fff); font-weight: 800; font-size: 17px; line-height: 1.35;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; word-spacing: .06em; letter-spacing: 0; text-wrap: balance;
  text-shadow: calc(-1 * var(--lk-ow, 1px)) 0 0 var(--lk-o, #000), var(--lk-ow, 1px) 0 0 var(--lk-o, #000),
    0 calc(-1 * var(--lk-ow, 1px)) 0 var(--lk-o, #000), 0 var(--lk-ow, 1px) 0 var(--lk-o, #000); }
@supports (paint-order: stroke fill) and (-webkit-text-stroke: 1px #000) {
  .lk-cap { text-shadow: none; -webkit-text-stroke: calc(2 * var(--lk-ow, 1px)) var(--lk-o, #000); paint-order: stroke fill; }
  .lk-cap.no-ol { -webkit-text-stroke: 0; }
}
.look-cap .lk-pic { text-wrap: balance; }
.lk-cap.no-ol { text-shadow: none; }
.lk-cap.lk-small { font-size: 13px; font-weight: 600; }
.lk-cap.lk-big { font-size: 19px; }
.lk-cap .lk-later { opacity: .2; }
.lk-cap .lk-now { display: inline-block; transform: scale(1.12); margin-inline: .08em; }   /* its growth has room: no overlap */
.look-cap .lk-pic { aspect-ratio: 9 / 14; }

/* ---- round 4 (24.11): the design round. Direction A (dark, with hierarchy), extended to every screen as one system:
   cards with room between them, one colour per kind of content, three levels of text, nothing below 13px ---- */
/* the kind of content: a coloured square with its picture (simple.js kindMark), the same everywhere */
.kmark { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--kind-ink); background: var(--reel); }
.kmark .ic { width: 19px; height: 19px; stroke-width: 2; }
.kmark.k-story { background: var(--story); }
.kmark.k-car { background: var(--car); }
.kmark.k-auto { background: var(--accent); }
.kind:has(> .kmark) { grid-template-columns: auto 1fr 24px; min-height: 64px; padding: 12px 14px; }   /* the upload choices (kindButtons) */
.kind .kmark { width: 36px; height: 36px; }
.recent > .kmark { margin-inline-end: -2px; }
.recent-main { flex: 1; }
.pager .count, .item-label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.item-label { display: flex; }
.pager .count .kmark, .item-label .kmark { width: 24px; height: 24px; border-radius: 7px; }
.pager .count .kmark .ic, .item-label .kmark .ic { width: 15px; height: 15px; }
/* what is still being made (an outline) apart from what is ready for him (filled, .you) */
.pill.work { background: transparent; border: 1px solid var(--line); color: var(--text-2); }

/* home: «מה לצלם» and «מה עבד» as cards with a taste of what is in them; the list right under them */
.home-cards { display: grid; gap: 12px; margin: 0 0 4px; }
.home-card {
  display: flex; flex-direction: column; gap: 4px; min-height: 88px; padding: 14px 16px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent);
  color: var(--text-2); text-decoration: none;
}
.home-card:active { background: var(--card-2); }
.home-card.idea { border-inline-start-color: var(--story); }
.home-card.won { border-inline-start-color: var(--reel); }
.hc-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.hc-label .ic { width: 18px; height: 18px; }
.home-card.idea .hc-label .ic { color: var(--story); }
.home-card.won .hc-label .ic { color: var(--reel); }
.hc-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-num { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.hc-sub { font-size: var(--fs-help); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-cards + .sec-head h2, .sec-head h2 { margin-top: 20px; }

/* settings: four cards, two by two, then a few plain rows; the whole screen in one look at 375x812 */
.set-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.set-card {
  display: flex; flex-direction: column; gap: 2px; min-height: 108px; padding: 12px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; min-width: 0;
}
.set-card:active { background: var(--card-2); }
.set-card b { font-size: var(--fs-row); font-weight: 600; color: var(--text); }
.sc-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); }
.sc-icon .ic { width: 20px; height: 20px; }
.sc-what { font-size: var(--fs-label); line-height: 1.35; color: var(--muted); }
.sc-state { margin-top: auto; padding-top: 6px; font-size: var(--fs-label); font-weight: 600; line-height: 1.35; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-state.warn { color: var(--warn); }
.set-first { margin-bottom: 12px; }
.set-rows .row-btn { min-height: 52px; padding-block: 6px; }
.rows.group.sign-out { margin-top: 12px; }
/* «מראה האפליקציה»: two choices side by side, the chosen one filled (never a switch whose state must be guessed) */
.theme-row { gap: 12px; }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 2px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 76px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer;
}
.seg button .ic { width: 18px; height: 18px; }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the line under a title in the bar starts right under it */
.back-bar + .lead, .back-bar + p { margin-top: 0; }
.lead { margin: -8px 0 16px; font-size: var(--fs-help); color: var(--muted); }
/* the music: the songs first, the standing choice and where the music comes from under them */
.music-lead { margin: 0 0 12px; }
.music-under { margin-top: 20px; padding: 4px 16px 12px; border-radius: var(--r); background: var(--card); }
.music-under h2 { margin-top: 12px; }
.music-under .chips { margin: 8px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
#music-source { margin: 16px 0 0; }
/* the look choosers: the drawn sample is a strip, not half the sheet; the caption samples shorter */
.look-sheet .look-chip .lk-pic { aspect-ratio: 16 / 9; }   /* 24.11: the opening line on top, a caption line under it */
.look-cap .lk-pic { aspect-ratio: 4 / 5; }
.look-own { margin: 4px 0 8px; }
.look-card h2 { color: var(--text); }

/* 24.11 (the owner's phone, the guide screen «דחוסה»): two actions side by side with air around them. `.btns` had no
   rule at all: the buttons stacked edge to edge, the description touched them and the numbers were pulled under them. */
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.btns .btn { margin: 0; width: 100%; }
.btns + .lead, .btns + p { margin-top: 0; }
#gd-numbers { margin-bottom: 6px; }
#gd-numbers + .muted { margin-bottom: 14px; }
/* the same on every screen: a line of explanation never touches the card or list under it */
main > p.muted + ul.rows, main > p.muted + nav, main > p.muted + details, main > p.muted + .gallery,
main > p.small + ul.rows, main > p.lead + ul.rows { margin-top: 14px; }
main > p.muted + p.muted { margin-top: 10px; }

/* 24.11 (the owner's phone, «מילה בתגובה, הודעה בפרטי»): what is sent in private is two clear choices */
.cta-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.cta-mode {
  display: block; min-height: 76px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-align: start; cursor: pointer; font: inherit;
}
.cta-mode b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.cta-mode span { display: block; margin-top: 4px; font-size: var(--fs-help); color: var(--muted); line-height: 1.35; }
.cta-mode[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.cta-mode[aria-checked="true"] b { color: var(--accent); }
.cta-guide-none { margin: 0 0 12px; }
.cta-guide-none .btn { margin-top: 10px; width: 100%; }
.cta-guide-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 12px; }
.cta-guide-links .link-btn { text-align: center; display: flex; align-items: center; justify-content: center; }

/* 24.11 (the owner's iPhone: the very top «לא חד… מתחיל להיעלם»): the bar sits above the page, nothing scrolls under
   it, so the see-through background and the blur behind it only softened its own text on the phone. A solid bar. */
.bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* «כהה / בהיר» beside the gear */
#theme-btn { margin-inline-start: auto; margin-inline-end: 0; }

/* ---- look polish (24.11, the owner's iPhone: «הצבעים», «הכתב», «הכתוביות») ---- */
.look-said { margin: 0 0 8px; }
/* a colour set is a pair: two columns of chips, each with the two colours as they are used (a regular letter, the
   emphasised one in the main colour, the line under it in the second) on a dark tile; never taller than 48px */
.set-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 4px; }
.look-card .set-chip { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; max-height: 48px; padding-block: 4px; padding-inline: 4px 10px; border-radius: var(--r-sm);
  text-align: start; font-size: 14px; line-height: 1.25; white-space: normal; }
.set-chip[disabled] { cursor: default; opacity: 1; }
.set-name { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.set-prev { flex: none; display: inline-grid; grid-template-columns: auto auto; align-items: end; column-gap: 1px; width: 40px; height: 38px;
  padding: 5px 0 4px; border-radius: 8px; background: var(--preview-bg); justify-content: center; font-size: 17px; font-weight: 800; line-height: 1; }
.set-prev span { color: var(--lk-text); }
.set-prev b { color: var(--lk-brand); }
.set-prev i { grid-column: 1 / -1; display: block; width: 22px; height: 3px; margin: 4px auto 0; border-radius: 2px; background: var(--lk-second); box-shadow: 0 0 0 1px var(--preview-edge); }
.set-off { color: var(--muted); }
.look-cap-note { font-size: 13px; color: var(--muted); line-height: 1.3; }
/* waiting for the samples from her own video: what is happening, how long, with the app's spinner */
.look-wait { margin: 10px 0 4px; }
.look-wait p { margin: 0 0 4px; }
.look-wait-1 { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; }
.look-wait-1 .spinner { width: 16px; height: 16px; border-width: 2px; flex: none; }
.look-wait .link-btn { min-height: 44px; }
/* «צבעוניות הסרטון» from the settings (P7): the four looks start under the bar with their names, the chosen one marked */
.taste-set .own-looks img { aspect-ratio: 4 / 5; }
.taste-set .own-note { margin-top: 0; }
.own-looks figure.on img { outline: 3px solid var(--accent); outline-offset: 2px; }
.own-looks figure.on figcaption { color: var(--accent); font-weight: 600; }
/* 24.11 (the owner, «אפקטים ואנימציות»: the explanation is pressed between the switch and the first card): a line of
   text that follows a card, a list or a group of buttons keeps its distance from it, on every screen */
main > :is(ul, nav, details, form, .gallery, .btns, .set-cards) + p { margin-top: 14px; }
main > p.foot + :is(ul, nav, details, .gallery, div) { margin-top: 14px; }
main > :is(ul, nav, details, form, .gallery, .btns) + p.foot { margin-top: 10px; }

/* 24.11 (the owner's phone, «פתיחה וסיום»): each fixed opening is one card: its words, and when it is used */
.open-lead { margin: 0 0 12px; }
.open-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 6px; margin: 0 0 14px; }
.open-card.solo { background: transparent; border: 0; padding: 0; margin: 0; }
.open-card .open-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text); }
.open-card .field { margin-top: 8px; }
.open-card .field-foot { margin-bottom: 10px; }
.open-card .input { background: var(--bg); }
.open-card + .rows, .open-card + .link-btn + .rows, .open-card.kicker-two + .rows { margin-top: 4px; }
/* ---- story-single (24.11, brief «כמה קבצים, סטורי אחד» per upload + one example business) ----
   «איך הסטורי ייערך» under «סטורי» / «ריל + גם סטורי» with two files or more: the app's .seg, full width, and the line
   that says what comes out. A greyed example in every empty box reads at 3:1 or more on the field in both themes
   (--muted on --card; app/tests/test_example_business.py measures it). */
.story-one { margin-top: -4px; padding: 10px 16px 12px; border-radius: var(--r); background: var(--card); }
.story-one[hidden] { display: none; }
.story-one-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 15px; color: var(--text-2); }
.story-one-head > span { display: inline-flex; align-items: center; gap: 6px; }
.story-one .seg { display: flex; width: 100%; }
.story-one .seg button { flex: 1; min-width: 0; }
.story-one-says { margin: 8px 0 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

/* 24.11 (the measured walk, qa/ui_audit.js): every control is at least 44 px to the finger. The name in the bar was
   29 px high, the legal links 16, and the folded lists' titles 24-26. */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.fine a { display: inline-block; padding: 14px 6px; }
.left-out > summary, .story-more > summary, details > summary { padding-block: 10px; }

/* 24.11 (the owner's phone, the upload screen): the line under «מילה בתגובה» touched the row above it. It belongs to
   that row: a small gap, the row's own inset, and air before the next choice (it had a negative top margin). */
.cta-maybe { margin: 8px 16px 14px; line-height: 1.45; }

/* 24.11 «לבקש חלוקה אחרת» on the plan of a sorted upload (simple-sort.js sortAskBox): his words, then the button */
.sort-ask { display: grid; gap: 8px; margin: 14px 0; }
.sort-ask textarea { width: 100%; }

/* 24.11 «לערוך בעצמי», part 2 (simple-more.js rtPlayer): the reel plays in the sheet, pinned on top while the list scrolls */
.rt-player { position: sticky; top: -8px; z-index: 2; display: flex; gap: 12px; align-items: flex-start;
  margin: -8px -16px 8px; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.rt-frame { flex: none; }
.rt-video { display: block; width: 101px; height: 180px; object-fit: cover; border-radius: 10px; background: var(--media); }
.rt-player.small .rt-video { width: 54px; height: 96px; }   /* the keyboard is open: the line being typed stays in sight */
.rt-player.small .rt-player-side p { display: none; }
.rt-player-side { flex: 1; min-width: 0; display: grid; gap: 8px; }
.rt-player-side p { margin: 0; font-size: 14px; }
.rt-sound { justify-self: start; }
.rt-show { min-height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.rt-count { margin: 16px 0 8px; }
.rt-group { margin: 14px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.rt-line input, .rt-line textarea { scroll-margin-top: 200px; scroll-margin-bottom: 120px; }
.rt-own { margin: 0 0 14px; display: grid; gap: 8px; }
.rt-own p { margin: 0; color: var(--text); }
/* 24.11 «לתזמן את כולם» (simple-sort.js schedAllSheet): a row per reel and story, its picture, time and two taps */
.sched-rows { list-style: none; padding: 0; margin: 8px 0 0; }
.sched-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.sched-row + .sched-row { border-top: 1px solid var(--line); }
.sched-row .thumb { flex: none; }
.sched-row.out .thumb, .sched-row.out b, .sched-row.off .thumb { opacity: .45; }
.sched-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.sched-main .sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.sched-main .band-acts { display: flex; gap: 16px; margin: 0; }
.sched-unseen { font-size: 14px; }
