/* SaucyReel app. Same look as saucyreel.com (colors, Bricolage + Figtree, pill buttons).
   Phone first: big text, thumb-sized targets (44px+), main action pinned at the bottom, tab bar for moving around.
   Built so a first-time 75-year-old can use it. */
:root {
  --bg: #fff7ee; --bg2: #ffeadb; --card: #fff; --ink: #24100f; --muted: #6e5a56; --line: #f0d6c4;
  --brand: #e8281e; --red: #c81f15; --gold: #ffc83d; --deep: #2b0d12; --ok: #12845a; --okbg: #dff3e6;
  --warnbg: #fff1cc; --badbg: #fde0dd;
  --f-display: "Bricolage Grotesque", system-ui, sans-serif; --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabs: 68px; --safe: env(safe-area-inset-bottom, 0px);
  /* Typing boxes have their own colours: the inside of a box is never the page colour, so a box can
     never end up dark-text-on-dark. Always set --field-ink wherever --field-bg is set. */
  --field-bg: #fff; --field-bg2: #fffdfb; --field-ink: #1d1410; --field-hint: #8a7a70;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a0e10; --bg2: #25141a; --card: #2e1a21; --ink: #fbeff0; --muted: #c7b0b5; --line: #4a2a33;
    --brand: #ff5a4a; --red: #ff6a5c; --ok: #3ecf8e; --okbg: #17331f; --warnbg: #3a2d10; --badbg: #3d1a17; color-scheme: dark;
    --field-bg: #3a2029; --field-bg2: #432530; --field-ink: #fff4f5; --field-hint: #c2a9af; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.5 var(--f-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.has-tabs { padding-bottom: calc(var(--tabs) + var(--safe)); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; } h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: 1.35rem; font-weight: 800; } h3 { font-size: 1.1rem; font-weight: 600; margin-top: 16px; }
.eyebrow { font: 600 .8rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 6px 0 8px; }
.lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 18px; }
.muted { color: var(--muted); } .small, small { font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* frame: header, top nav (desktop), tab bar (phone) */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 800 1.35rem var(--f-display); letter-spacing: -.02em; }
.logo b { color: var(--brand); }
.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.topnav a.on { background: var(--ink); color: var(--bg); }
.bal { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--okbg); color: var(--ok); font-weight: 700; text-decoration: none; font-size: 16px; white-space: nowrap; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabs) + var(--safe)); padding-bottom: var(--safe); background: var(--card); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--muted); }
.tabbar a span { font-size: 22px; line-height: 1; }
.tabbar a.on { color: var(--red); } .tabbar a.on span { transform: scale(1.1); }
main { max-width: 680px; margin: 0 auto; padding: 16px 16px 24px; }
@media (min-width: 900px) {
  .topnav { display: flex; } .bal { margin-left: 8px; }
  .tabbar { display: none; } body.has-tabs { padding-bottom: 0; }
  main { max-width: 1000px; padding: 28px 24px 40px; }
}

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; margin: 0 0 16px; box-shadow: 0 1px 0 var(--line); }
.card.narrow { max-width: 440px; margin: 32px auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--brand); border-radius: 999px; background: var(--brand); color: #fff; font: 700 1.05rem var(--f-body);
  text-decoration: none; cursor: pointer; text-align: center; }
.btn.big { width: 100%; min-height: 58px; font-size: 1.15rem; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); box-shadow: none !important; cursor: default; } .btn.sm { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; } .btnrow .btn { flex: 1 1 180px; }
.link { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; text-decoration: underline;
  display: inline-flex; align-items: center; min-height: 44px; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; }
label { display: block; margin: 0 0 14px; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 14px; font: 400 18px var(--f-body);
  border: 2px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }
.err { color: var(--red); font-weight: 700; min-height: 0; margin: 8px 0; } .err:empty { display: none; }
.ok-note { background: var(--okbg); color: var(--ink); padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.ok-note a { display: inline-flex; align-items: center; min-height: 44px; }
.warn { background: var(--warnbg); padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--line); }
.s-ok, .s-ready, .s-approved { background: var(--okbg); color: var(--ok); } .s-bad, .s-failed, .s-needs_human { background: var(--badbg); color: var(--red); }
.s-live { background: var(--warnbg); }

/* Make (home) */
.composer { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px; margin: 0 0 14px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 12%, transparent); }
.composer textarea { border: 3px solid var(--brand); border-radius: 16px; background: var(--field-bg); color: var(--field-ink);
  -webkit-text-fill-color: var(--field-ink); caret-color: var(--brand); padding: 12px 14px; font-size: 20px;
  margin: 0 0 12px; resize: none; min-height: 112px; box-shadow: inset 0 2px 4px rgba(0,0,0,.06); }   /* a box that looks like a box: write here */
.composer textarea:focus { outline: none; background: var(--field-bg2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.composer .boxlabel { display: block; margin: 0 0 8px; font-weight: 700; font-size: 1.1rem; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }   /* wrap: all ideas visible, no hidden sideways swipe */
.examples .chip { white-space: normal; text-align: left; }
.examples::-webkit-scrollbar { display: none; }
button.chip { flex: none; white-space: nowrap; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 15px var(--f-body); cursor: pointer; }
label.inline { display: flex; align-items: center; gap: 10px; } label.inline select { width: auto; flex: 1; margin: 0; }
.promise { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.promise li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.promise li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 14px; font-weight: 800; flex: none; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; } .row-head a { color: var(--red); font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.shelf { list-style: none; display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.shelf li { flex: 0 0 140px; scroll-snap-align: start; }
.shelf a, .grid a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.shelf img, .shelf .noimg, .grid img, .grid .noimg { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: var(--line); }
.noimg { display: grid; place-items: center; font-size: 34px; }
.shelf b, .grid b { font-size: 16px; line-height: 1.25; }
.st { font-size: 14px; font-weight: 700; color: var(--muted); }
.st-ready, .st-approved { color: var(--ok); } .st-failed, .st-needs_human { color: var(--red); }

/* My reels + projects */
.grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.empty { text-align: center; padding: 30px 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); overflow-wrap: anywhere; } .list li:first-child { border-top: 0; }
.list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; text-decoration: none; }
.list.cards img, .list.cards .noimg { width: 64px; height: 86px; object-fit: cover; border-radius: 12px; flex: none; }
.rt { display: flex; flex-direction: column; flex: 1; min-width: 0; } .go { color: var(--red); font-size: 28px; font-weight: 700; }
.reels { list-style: none; padding: 0; margin: 0; } .reels li { border-top: 1px solid var(--line); } .reels li:first-child { border-top: 0; }
.reels a { display: flex; gap: 14px; align-items: center; padding: 12px 0; color: var(--ink); text-decoration: none; }
.reels img, .reels .noimg { width: 64px; height: 86px; object-fit: cover; border-radius: 12px; flex: none; }
details.add > summary { list-style: none; } details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 16px; }

/* Reel page */
.reel-title { margin-bottom: 8px; }
.bubble { position: relative; margin: 0 0 16px auto; max-width: 88%; width: fit-content; padding: 12px 16px; border-radius: 20px 20px 6px 20px;
  background: var(--brand); color: #fff; font-weight: 500; }
.progress .next { margin: 0 0 10px; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.checks .dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); flex: none; display: grid; place-items: center; }
.checks .done { color: var(--ink); } .checks .done .dot { background: var(--ok); border-color: var(--ok); }
.checks .done .dot::after { content: "✓"; color: #fff; font-weight: 800; font-size: 15px; }
.checks .todo-you { color: var(--ink); } .checks .todo-you .dot { border-color: var(--brand); }
.checks .now { color: var(--ink); } .checks .now .dot { border-color: var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; }
.addtile { flex: 0 0 112px; aspect-ratio: 9 / 16; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 3px dashed var(--brand); border-radius: 16px; color: var(--red); background: var(--bg); cursor: pointer; font-weight: 700; }
.addtile input { display: none; } .addtile .plus { font-size: 40px; line-height: 1; }
.addtile.over, .drop.over { background: var(--warnbg); }
.tiles { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.tile { position: relative; flex: 0 0 112px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--line); display: flex; flex-direction: column; }
.tile img, .tile video, .tile .noimg { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; margin: 0; border-radius: 0; max-width: none; }
.tile.busy img, .tile.busy video { opacity: .55; } .tile.bad { outline: 3px solid var(--red); outline-offset: -3px; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.tile .bar { position: absolute; left: 8px; right: 8px; top: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.5); overflow: hidden; }
.tile .bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.tile .rm { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; min-height: 44px; border: 0; border-radius: 50%; padding: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 0; cursor: pointer; }
.tile .rm::after { content: "×"; font-size: 26px; line-height: 44px; }
.hint { font-size: 15px; margin: 6px 0 0; }
details.opts > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
fieldset.choice { border: 0; padding: 0; margin: 10px 0 14px; } fieldset.choice legend { font-weight: 600; margin-bottom: 8px; }
fieldset.choice label { display: inline-block; margin: 0 6px 8px 0; } fieldset.choice input { position: absolute; opacity: 0; width: 1px; }
fieldset.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
fieldset.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
fieldset.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.switches { list-style: none; padding: 0; margin: 6px 0 14px; }
.switch { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; cursor: pointer; }
.switch .price { font-size: .85em; font-weight: 700; color: var(--red); white-space: nowrap; }
.switch input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--brand); } .switch.off { opacity: .55; }
.cost p { margin: 6px 0 0; }
.actionbar { position: sticky; bottom: calc(var(--tabs) + var(--safe) + 8px); z-index: 10; display: flex; gap: 10px; margin: 8px 0 0;
  padding: 10px; border-radius: 999px; background: var(--bg); }   /* solid: a blur over video breaks drawing in Safari */
.actionbar .btn { flex: 1 1 0; width: auto; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 25%, transparent); }
.actionbar .btn.ghost { flex: 0 0 34%; box-shadow: none; }
@media (min-width: 900px) { .actionbar { bottom: 16px; } }
video { display: block; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; background: #000; border-radius: 20px; margin: 10px auto; }
pre { white-space: pre-wrap; font: 13px/1.4 ui-monospace, monospace; background: var(--bg); padding: 10px; border-radius: 12px; overflow-x: auto; }
pre.cap { font: 17px/1.5 var(--f-body); }
.sharebox { border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.steps { list-style: none; padding: 0; margin: 12px 0; } .steps li { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: 16px; }
.steps .dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); flex: none; display: grid; place-items: center; font-size: 11px; }
.steps .done .dot { background: var(--ok); border-color: var(--ok); } .steps .done .dot::after { content: "✓"; color: #fff; font-weight: 800; }
.steps .now { font-weight: 700; } .steps .now .dot { border-color: var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
.steps .skip { color: var(--muted); text-decoration: line-through; } .steps .todo { color: var(--muted); }
details.older > summary { list-style: none; display: flex; margin: 0 0 16px; } details.older > summary::-webkit-details-marker { display: none; }
/* desktop (business): reel on the left, everything about it on the right */
@media (min-width: 900px) {
  section.job { display: grid; grid-template-columns: 380px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  section.job > * { grid-column: 2; min-width: 0; } section.job > video { grid-column: 1; grid-row: 1 / span 30; margin: 0; }
}

/* feedback */
.fb { border-top: 2px solid var(--line); margin-top: 18px; padding-top: 4px; } .fb.done { padding: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; } label.chip { margin: 0; font-weight: 400; }
label.chip input { position: absolute; opacity: 0; width: 1px; }
label.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; }
label.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
label.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* staff-only bits */
.staffnote { background: var(--bg2); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
.aitag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 17px; color: #fff; background: #6b635b; }
.ai-claude-haiku { background: #c2410c; } .ai-claude-sonnet { background: #7c2d12; } .ai-gemini-flash { background: #1d4ed8; } .ai-claude-opus { background: #581c87; } .ai-jev-router { background: #0f766e; } .ai-auto { background: #b45309; }
.ai-gpt-luna { background: #047857; } .ai-rules { background: #57534e; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--line); white-space: nowrap; } td select { width: auto; margin: 0; padding: 4px; }
td input[type=checkbox] { width: auto; }
details.job { border-top: 1px solid var(--line); padding: 10px 0; } details.job summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.events { font-size: 13px; padding-left: 18px; }
.credit-in { color: var(--ok); font-weight: 700; }

/* reviewer's checklist and the "tell the editor" chat box */
.checked { margin: 12px 0; border: 2px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.checked summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.checked ul { list-style: none; padding: 0; margin: 4px 0 10px; }
.checked li { padding: 6px 0; border-top: 1px solid var(--line); }
.checked li.no b { color: #c81f15; }
.editbox { border-top: 2px solid var(--line); margin-top: 18px; padding-top: 4px; }
.editbox textarea { width: 100%; font-size: 17px; }
.editbox .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.askbox { background: #fff4c7; border: 2px solid #f0d36a; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
@media (min-width: 900px) { .editbox .chips { flex-wrap: wrap; overflow: visible; } }

.musicline { margin: 10px 0; line-height: 1.6; } .musicline a { display: inline-block; min-height: 44px; line-height: 44px; }
.switch .price.soon { color: var(--muted); font-weight: 600; }
/* cell-number box and the "save your reel" pop-up */
.phonebox label { display: block; margin: 0 0 12px; }
.phonebox input { width: 100%; font-size: 22px; padding: 14px; letter-spacing: .04em; }
.phonebox input[name=code] { letter-spacing: .3em; text-align: center; }
.phonebox .btn { width: 100%; }
.phonebox .cc { display: flex; align-items: stretch; margin-top: 6px; }
.phonebox .cc > span { display: flex; align-items: center; padding: 0 12px; font-size: 22px; font-weight: 700; border: 2px solid var(--line); border-right: 0; border-radius: 16px 0 0 16px; background: var(--line); color: var(--ink); }
.phonebox .cc input { margin-top: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 0; }
.phonebox .link { min-height: 44px; }
.phonebox .link:disabled { color: #767676; text-decoration: none; cursor: default; }
.small { font-size: .85em; } .center { text-align: center; }
dialog.sheet { border: 0; border-radius: 22px; padding: 22px 18px 18px; width: min(460px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.sheet::backdrop { background: rgba(20, 8, 10, .55); }
dialog.sheet .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
details.other { margin: 18px 0; } details.other summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); }
.actionbar { flex-wrap: wrap; } .uphint { flex: 1 0 100%; margin: 4px 2px 0; font-size: .85em; color: var(--muted); background: var(--card); border-radius: 12px; padding: 6px 10px; }
a.tap { display: inline-flex; align-items: center; min-height: 44px; }

/* "stay on this page" box while files upload, with a rotating joke */
.stay { margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--warnbg, #fff4d6); border: 2px solid var(--gold); }
.stay p { margin: 0; } .stay-head { font-size: 1.1rem; } .stay-count { margin-top: 4px !important; }
/* The promise while they wait: they pressed Make, so nothing else is needed from them. (Oct 14) */
.stay-go { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.joke { margin-top: 10px !important; font-size: 1.05rem; font-style: italic; }
.joke.in { animation: jokein .5s ease-out; }
@keyframes jokein { from { opacity: .15; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .joke.in { animation: none; } }

/* focus screen: one job fills the whole screen; tab bar and pinned buttons are hidden behind it */
dialog.focus { position: fixed; inset: 0; z-index: 25; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink); overflow: hidden; }
dialog.focus[open] { display: flex; flex-direction: column; }
dialog.focus::backdrop { background: var(--bg); }
.focus-top { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.focus-top h2 { margin: 0; font-size: 1.2rem; flex: 1; }
.focus-back { min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 1rem var(--f-body); cursor: pointer; }
.focus-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(var(--safe) + 24px); max-width: 640px; width: 100%; margin: 0 auto; }
.focus-body .btn.big { margin: 8px 0; }
.focus-body video { width: 100%; max-height: 50vh; border-radius: 16px; background: #000; margin-bottom: 8px; }
body.focused { overflow: hidden; }
.bigdone { font-size: 1.25rem; margin: 8px 0 16px; }
.opts-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 14px; text-align: left; cursor: pointer;
  border: 2px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); font: inherit; }
.opt:active { border-color: var(--brand); }
.opt .ic { font-size: 28px; line-height: 1; } .opt b { display: block; font-size: 1.1rem; } .opt small { color: var(--muted); }
.opt span:nth-child(2) { flex: 1; } .opt .chev { font-size: 28px; color: var(--muted); }
.uplist { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.uplist li { display: flex; gap: 12px; align-items: center; } .uplist li > div { flex: 1; }
.uplist img, .uplist video, .uplist .noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; margin: 0; }
.uplist li.ok .cap { color: var(--ok); font-weight: 700; } .uplist li.bad .cap { color: var(--red); }
.uplist .bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-bottom: 4px; }
.uplist .bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.uplist li.ok .bar i { background: var(--ok); }
.actionbar[hidden] { display: none; }
.focus-top h2:focus { outline: none; }
.focus-body .editbox { border-top: 0; margin-top: 0; padding-top: 0; } .focus-body .editbox h3 { margin-top: 0; }
/* "Make my reel" walkthrough */
.stepq { font: 800 1.45rem/1.15 var(--f-display); margin: 4px 0 14px; }
.dots { display: flex; gap: 6px; margin: 0 0 12px; } .dots i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.dots i.done { background: var(--ok); } .dots i.now { background: var(--brand); }
.opt.picked { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.wiznav { margin-top: 10px; }
.summary { list-style: none; padding: 0; margin: 0 0 12px; } .summary li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
/* edits are obvious: version tags, "edited by you" */
.job.newest { border: 3px solid var(--brand); }
.changetags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.changetags span { padding: 4px 10px; border-radius: 999px; background: var(--warnbg); border: 1px solid var(--gold); font-weight: 700; font-size: 15px; }
.youasked { background: var(--bg2); border-radius: 14px; padding: 8px 12px; font-style: italic; }
.editedtag { display: inline-block; margin: 0 0 6px; padding: 4px 10px; border-radius: 999px; background: var(--warnbg); border: 1px solid var(--gold); font-weight: 700; }
pre.cap.edited { border-left: 5px solid var(--gold); }
.focus-body textarea { width: 100%; font-size: 17px; }
details.orig { margin-top: 12px; }
.pickbtn { margin: 6px 0 14px; font-size: 1.25rem; min-height: 64px; }
.howto { padding-left: 1.4em; margin: 0 0 14px; } .howto li { margin: 6px 0; }
.pickbtn input { display: none; }
.focus-body .editbox .chips { flex-wrap: wrap; overflow: visible; } .focus-body .editbox button.chip { white-space: normal; }
.composer .skip { margin-top: 10px; }
.ideas { margin: 16px 0 6px; }
/* step bar: where you are, finished steps tappable to change */
.stepbar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; }
.stepbar li { flex: 1; } .stepbar li > * { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--muted); font: 700 15px var(--f-body); text-align: center; padding: 4px; }
.stepbar li.now > * { border-color: var(--brand); color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
.stepbar li.done button { border-color: var(--ok); color: var(--ok); cursor: pointer; } .stepbar small { font-size: 12px; text-decoration: underline; }
.btn.prev { margin-top: 18px; }
.notesbox { width: 100%; border: 3px solid var(--brand); border-radius: 16px; background: var(--field-bg); color: var(--field-ink);
  -webkit-text-fill-color: var(--field-ink); caret-color: var(--brand); padding: 12px 14px; font-size: 20px; resize: none; margin-bottom: 12px; }
.focus-back { max-width: 46%; line-height: 1.15; text-align: left; }
/* "keep this page open" pop-up when sending starts */
dialog.stayalert { text-align: center; border: 3px solid var(--gold); }
dialog.stayalert h2 { font-size: 1.6rem; } dialog.stayalert p { font-size: 1.08rem; }
.bigicon { font-size: 52px; line-height: 1; margin: 0 0 8px; }
.backnote { background: var(--okbg); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px !important; }
.vh { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; pointer-events: none; }
/* step screens stop above the bottom menu (Make, My reels, Projects, Account), which stays on top and usable */
@media (max-width: 899px) { dialog.focus { bottom: calc(var(--tabs) + var(--safe)); height: auto; } }
/* Step screens are part of the page, so the page itself scrolls: iPhone Safari then tucks its address bar and toolbar
   away. (A pinned layer with its own scroll box never let Safari shrink them.) */
dialog.focus { position: static; inset: auto; z-index: auto; height: auto; min-height: calc(100dvh - var(--tabs) - var(--safe)); overflow: visible; }
dialog.focus[open] { display: block; }
@media (max-width: 899px) { dialog.focus { bottom: auto; height: auto; } }
body.focused { overflow: visible; }
body.focused main > :not(#focus) { display: none; }
body.focused main { padding-top: 0; }
body.focused header.top { display: none; }
.focus-top { position: sticky; top: 0; z-index: 15; margin: 0 -16px; }
.focus-body { overflow: visible; padding: 16px 0 24px; }
@media (min-width: 900px) { .focus-top { margin: 0 -24px; } dialog.focus { min-height: 0; } }
/* top bar tucks away while scrolling down */
.top { transition: transform .25s ease; } .top.tuck { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .top { transition: none; } }
/* fun while sending: jokes or a game */
.funpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; } .funpick p { flex: 1 0 100%; margin: 0; }
.funpick .btn { flex: 1 1 140px; } .funpick .btn.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
#fun .joke { font-size: 1.15rem; padding: 12px 14px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 12px; }
.gamehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .gamehead .btn.sm { min-height: 44px; }
.gamemsg { font-size: 1.1rem; margin: 8px 0 0; min-height: 1.5em; text-align: center; }
.pond { position: relative; height: 300px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 15%, var(--bg)); overflow: hidden; }
.critter { position: absolute; width: 72px; height: 72px; font-size: 48px; line-height: 1; border: 0; background: none; cursor: pointer; transition: left .25s, top .25s; padding: 0; }
.pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pcard { aspect-ratio: 1; font-size: 34px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; padding: 0; min-height: 64px; }
.pcard.up { background: var(--card); } .pcard.got { border-color: var(--ok); background: var(--okbg); }
.numgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.num { min-height: 48px; font: 700 1.1rem var(--f-body); border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.num:disabled { opacity: .25; } .num.got { opacity: 1; border-color: var(--ok); background: var(--okbg); }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.sq { aspect-ratio: 1; font-size: 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; padding: 0; min-height: 80px; color: var(--ink); }
.stay.alldone { background: var(--okbg); border-color: var(--ok); }

/* accounts on one cell number */
.acctlist { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.acctlist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; min-height: 60px; }
.acctlist li.on { border-color: var(--ok); background: var(--okbg); }
.acctname { flex: 1; min-width: 0; display: flex; flex-direction: column; } .acctname b { overflow-wrap: anywhere; }
.using { color: var(--ok); font-weight: 700; white-space: nowrap; }
.acctlist .btn.sm { min-height: 44px; white-space: nowrap; }
.addacct input { width: 100%; font-size: 18px; padding: 12px; margin-top: 6px; }
.addacct .btn { width: 100%; margin-top: 8px; }
.bal { white-space: nowrap; min-width: 0; } .bal .pillacct { display: inline-block; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: pre; vertical-align: bottom; }
.makingfor { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); } .makingfor a { color: var(--red); font-weight: 700; display: inline-block; padding: 8px 4px; margin: -8px 0; }
/* Typing boxes must look like boxes: the old faint beige edge on a cream page almost disappeared.
   Same look as the notes box people liked: thick red edge, a pale inside, darker hint text.
   The inside and the text colour always come from the --field-* pair, so a phone set to Dark
   Appearance gets a dark box with LIGHT text instead of dark text you cannot see. iOS Safari
   paints with -webkit-text-fill-color, so that is set too, or the text stays invisible there. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), textarea, select {
  border: 3px solid var(--brand); background: var(--field-bg); color: var(--field-ink);
  -webkit-text-fill-color: var(--field-ink); caret-color: var(--brand);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.06); }
input::placeholder, textarea::placeholder { color: var(--field-hint); -webkit-text-fill-color: var(--field-hint); opacity: 1; }
select option { background: var(--field-bg); color: var(--field-ink); }
/* Safari/Chrome paint remembered logins with their own colours; keep our text colour. */
input:-webkit-autofill, input:-webkit-autofill:focus, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--field-ink); caret-color: var(--brand);
  -webkit-box-shadow: 0 0 0 1000px var(--field-bg) inset; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.renamesheet .btn, dialog.sheet > .btn { width: 100%; margin-top: 10px; } .renamesheet input { font-size: 20px; }
.makeown { text-align: center; border: 3px solid var(--brand); } .makeown .howto { text-align: left; display: inline-block; margin: 4px 0 14px; padding-left: 1.4em; } .makeown .howto li { margin: 4px 0; } .makeown .btn { width: 100%; }
/* shared reel page */
.sharedby { margin: 0 0 6px; color: var(--muted); }
.floatcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.floatcta.withtabs { bottom: calc(var(--tabs) + var(--safe)); padding-bottom: 10px; }
.floatcta .btn { display: flex; width: 100%; max-width: 520px; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
html.hasfloat main { padding-bottom: 110px; }
.sharesheet .opts-list { margin: 12px 0; } .sharesheet .btn { width: 100%; } .sharemsg { margin: 8px 0 0; }
@media (min-width: 900px) { .floatcta.withtabs { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); } }
/* My reels: Finished / Drafts */
.pile { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.pile a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pile a span { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--line); font-size: 14px; text-align: center; }
.pile a.on { background: var(--brand); color: #fff; } .pile a.on span { background: rgba(255,255,255,.3); }
.st.draft { color: var(--red); }
.grid li .delbtn { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--red); font: 700 15px var(--f-body); cursor: pointer; }
.btn.danger { background: var(--red); border-color: var(--red); } dialog.sheet .btn.big { width: 100%; margin-top: 10px; }
/* ---------- Music & look ---------- */
.capdemo { display: inline-block; font: 800 22px/1.15 var(--f-body); color: #fff; padding: 2px 6px; text-align: center; }
.capdemo em { font-style: normal; color: var(--hl); }
.capdemo.cap-bold { -webkit-text-stroke: 1px #000; text-shadow: 0 0 3px #000, 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.capdemo.cap-clean { font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.capdemo.cap-boxed { background: rgba(0,0,0,.68); border-radius: 6px; padding: 4px 10px; }
.capdemo.cap-neon { color: #fff; text-shadow: 0 0 4px var(--hl), 0 0 10px var(--hl), 0 0 18px var(--hl); }
.capdemo.cap-neon em { color: #fff; }
.capdemo.cap-classic { font-weight: 600; color: var(--hl); text-shadow: 1px 1px 2px #000, -1px -1px 2px #000; }
.capdemo.size-small { font-size: 18px; } .capdemo.size-big { font-size: 27px; }
.capdemo.off { color: var(--muted); font-weight: 600; font-size: 15px; text-shadow: none; }
.phoneprev { position: relative; width: min(200px, 55vw); aspect-ratio: 9 / 16; margin: 0 auto 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #6b8fa8, #c9a27a) center / cover; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; justify-content: center; }
.phoneprev .capdemo { position: absolute; left: 8px; right: 8px; font-size: 15px; }
.phoneprev .capdemo.size-small { font-size: 13px; } .phoneprev .capdemo.size-big { font-size: 18px; }
.phoneprev.place-low .capdemo { bottom: 27%; } .phoneprev.place-middle .capdemo { top: 46%; } .phoneprev.place-top .capdemo { top: 24%; }
.capstyles { display: grid; gap: 8px; }
.capopt { display: grid; grid-template-columns: 130px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 10px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.capopt.on { border-color: var(--ok); background: var(--okbg); }
.capopt .capbox { grid-row: span 2; display: grid; place-items: center; min-height: 64px; border-radius: 10px; background: linear-gradient(160deg, #6b8fa8, #c9a27a); }
.capopt .capbox .capdemo { font-size: 17px; } .capopt small { color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 6px 2px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.swatch i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.swatch.on { border-color: var(--ink); border-width: 3px; } .swatch small { font-size: 13px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.seg button { min-height: 46px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 16px var(--f-body); cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
.moodbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; } .moodbar .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.anymood { width: 100%; margin-bottom: 8px; } .anymood.on { border-color: var(--ok); background: var(--okbg); }
.songs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.songs li { display: flex; align-items: center; gap: 10px; padding: 6px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.songs li.on { border-color: var(--ok); background: var(--okbg); }
.playbtn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 18px; cursor: pointer; }
.playbtn.on { background: var(--ink); }
.songpick { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.songpick small { color: var(--muted); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.filt { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.filt.on { border-color: var(--ok); background: var(--okbg); }
.filtpic { display: block; aspect-ratio: 4 / 5; border-radius: 10px; background: linear-gradient(160deg, #6b8fa8, #c9a27a) center / cover; }
.filt small { color: var(--muted); font-size: 13px; }
/* ---------- admin dashboard ---------- */
.adminhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .adminhead h1 { margin: 0; }
.admintabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 6px 0 12px; -webkit-overflow-scrolling: touch; }
.admintabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.admintabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 2px solid; }
.alert.bad { background: var(--badbg); border-color: var(--red); } .alert.warn { background: #fff4d6; border-color: #e0a800; color: #3a2a00; }
.alert.ok { background: var(--okbg); border-color: var(--ok); } .alert b { float: right; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.kpi b { display: block; font: 800 24px/1.1 var(--f-display); } .kpi span { font-size: 14px; color: var(--muted); } .kpi.bad b { color: var(--red); }
.twocol { display: grid; gap: 16px; } @media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; } }
.mini { list-style: none; padding: 0; margin: 0 0 10px; } .mini li { padding: 8px 0; border-top: 1px solid var(--line); } .mini li:first-child { border-top: 0; }
.mini a { color: var(--ink); text-decoration: none; }
.atable th { text-align: left; white-space: nowrap; padding: 8px 10px; border-bottom: 2px solid var(--line); } .atable td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.atable tr.paused td { opacity: .6; }
/* Dates with a clock time ('Oct 14, 5:14 pm') must not break across two lines in a narrow column. */
.atable td.nowrap { white-space: nowrap; }
.searchrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .searchrow input { flex: 1; min-width: 200px; margin: 0; } .searchrow select { width: auto; margin: 0; }
.danger-text { color: var(--red); }
.mini a, .atable a, .atable .link, .card > a, .twocol .card > a { display: inline-flex; align-items: center; min-height: 44px; }
.mini li { padding: 2px 0; } .atable td input[type=checkbox] { width: 26px; height: 26px; }
.card table a { display: inline-flex; align-items: center; min-height: 44px; } .card table input[type=checkbox] { width: 26px; height: 26px; margin: 9px; }
.seg.periods a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; } .seg.periods a.on { background: var(--brand); color: #fff; }
.namecard .btn { width: 100%; margin-top: 10px; } .namecard .examples { margin: 4px 0 8px; }
.linkprev { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); overflow-wrap: anywhere; }
.namenudge { padding: 12px; margin-bottom: 12px; border-radius: 14px; border: 2px dashed var(--brand); background: var(--card); }
.namenudge input { margin: 6px 0; } .namenudge .btn { width: 100%; } .namenudge.done { border-style: solid; border-color: var(--ok); background: var(--okbg); }
.textnote { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--okbg); border: 1px solid var(--ok); }
/* buy page */
.bigbal { font-size: 20px; margin: 0; } .bigbal b { font: 800 40px var(--f-display); }
.buygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; } .buygrid.plans { grid-template-columns: 1fr; }
@media (min-width: 900px) { .buygrid { grid-template-columns: repeat(4, 1fr); } .buygrid.plans { grid-template-columns: repeat(3, 1fr); } }
.buyopt { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; min-height: 120px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
button.buyopt:hover { border-color: var(--brand); } .buyopt:disabled { opacity: .55; cursor: default; }
.buyopt .price { font: 800 28px var(--f-display); } .buyopt .price small { font: 600 15px var(--f-body); color: var(--muted); }
.buyopt small { color: var(--muted); } .buyopt .tag { position: absolute; top: -10px; right: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.buyopt.plan { cursor: default; } .buyopt.plan.on { border-color: var(--ok); background: var(--okbg); } .buyopt.plan .btn { width: 100%; margin-top: auto; }
.kpi.good b { color: var(--ok); }
.permonth { color: var(--ok); font-weight: 600; } .permonth b { font-weight: 800; }
.legal h2 { margin-top: 22px; } .legal li { margin: 6px 0; }
.legalfoot { text-align: center; font-size: 14px; color: var(--muted); padding: 18px 16px 24px; } .legalfoot a { color: var(--muted); display: inline-block; padding: 12px 6px; }
body.has-tabs .legalfoot { padding-bottom: 8px; }
.topup .opts-list { margin: 12px 0; } .topup .btn { width: 100%; margin-top: 8px; }
.lowcredits { padding: 12px 14px; margin: 0 0 14px; border-radius: 14px; background: #fff4d6; border: 2px solid #e0a800; color: #3a2a00; }
.lowcredits p { margin: 0 0 8px; } .bal.low { background: #fff4d6; color: #8a5a00; }
.balmin { margin: 2px 0 10px; color: var(--ok); font-size: 18px; }
.howfar { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); } .howfar ul { margin: 6px 0; padding-left: 1.2em; }
.permin { font-size: 15px; } .permin b { font-size: 18px; color: var(--ink); }
.fbnote { min-height: 96px; } .fbor { margin: 12px 0 6px; font-weight: 700; }
.theme { padding: 12px 14px; margin: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); } .theme h3 { margin-top: 0; }
/* Step 2 and 3 while the videos send in the background */
.sendline { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); font-size: 1rem; }
.sendline .bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sendline .bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.sendline.done { background: var(--okbg); } .sendline.bad { background: var(--warnbg); }

/* Phone check (Oct 11): small links inside sentences (legal pages, buy page fine print) get a fingertip-sized tap area.
   Padding on an inline link grows the tap box without moving any text. */
.legal p a, .legal li a, .legal .muted a, p.muted.small a { padding: 13px 4px; }
