
/* The recording app, from the reel template: the app's own light look, driven entirely by one brand's data (what the scan takes from the
   site, and the materials made for it). Nothing in the animation is fixed: change the data, the reel changes. */
:root {
  --ink: #141414; --ink-2: #55554f; --ink-3: #6a6a65;
  --bg: #ffffff; --s2: #f0f0ef; --s3: #eef8f1; --line-2: #dcdcda; --line-3: #b8b8b5;
  --ok: #15803d;
  --page: #ededeb;
  --ui: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --b-dark: #141414; --b-accent: #ffffff; --b-head: var(--ui); --b-text: var(--ui);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--page); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
.stage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 16px 32px; }
.top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.play { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.play svg { width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { min-height: 38px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.play:focus-visible, .seg button:focus-visible, .panel :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.layout { display: flex; gap: 24px; align-items: flex-start; justify-content: center; width: 100%; }
@media (max-width: 900px) { .layout { flex-direction: column; align-items: center; } }

/* ── the phone ── */
.phone-wrap { flex: none; position: relative; }
.phone { position: absolute; left: 0; top: 0; width: 414px; height: 824px; transform-origin: 0 0; border-radius: 54px; padding: 12px; background: #0b0b0c; box-shadow: 0 0 0 1px #2b2b2e, 0 24px 60px rgb(0 0 0 / .22); }
.screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 42px; color: var(--ink);
  background: radial-gradient(120% 60% at 100% 0%, #efe9ff 0%, rgb(239 233 255 / 0) 55%), var(--bg); }
.island { position: absolute; top: 11px; left: 50%; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #0b0b0c; z-index: 60; }
.status { flex: none; display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 14px 32px 0 36px; font-weight: 600; font-size: 15px; }
.status i { display: inline-flex; gap: 4px; align-items: flex-end; }
.status i s { display: block; width: 4px; border-radius: 1px; background: var(--ink); }
.bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px 0 20px; }
.bar .logo { height: 34px; width: auto; display: block; }
.menu { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.menu svg { width: 18px; height: 18px; }

/* The field (variant 2): thin frame, small arrow; the mark on the left becomes the brand's tile. */
.field-row { flex: none; padding: 10px 14px 0; }
.field { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 12px; background: #fff; box-shadow: inset 0 0 0 1px #d4d4d1; transition: box-shadow .3s, padding .3s, background .3s; }
.field.is-typing { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fav { flex: none; display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; background: var(--s2); color: #a2a1a8; transition: background .35s, color .35s, transform .35s cubic-bezier(.2, 1.5, .4, 1), width .35s cubic-bezier(.2, .8, .3, 1), height .35s cubic-bezier(.2, .8, .3, 1); }
.fav svg { width: 17px; height: 17px; }
.fav b, .fav img { display: none; }
.fav b { font-family: var(--b-head); font-size: 15px; font-weight: 800; }
.fav img { width: 100%; height: 100%; object-fit: contain; }
.fav.is-known { background: var(--b-dark); color: var(--b-accent); transform: scale(1.05); }
.fav.is-known svg { display: none; }
.fav.is-known b { display: block; }
.fav.is-known.has-logo b { display: none; }
.fav.is-known.has-logo img { display: block; }
.typed { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; font-size: 19px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.ph { position: absolute; left: 0; color: #93929a; transition: opacity .12s; }
.ph.is-gone { opacity: 0; }
.ch { display: inline-block; }
.ch.is-new { animation: rise .14s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.caret { display: inline-block; width: 1.5px; height: 22px; margin-left: 1px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.caret.is-hidden { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: var(--ink); color: #fff; transition: transform .25s, opacity .25s; }
.go svg { width: 15px; height: 15px; }
.go.is-press { transform: scale(.84); }
.go .spin { display: none; }
.go.is-busy svg.arrow { display: none; }
.go.is-busy .spin { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.found { display: flex; align-items: center; gap: 6px; height: 18px; margin: 6px 0 0 2px; overflow: hidden; color: var(--ok); font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(-3px); transition: opacity .3s, transform .3s, height .3s, margin .3s; }
.found.is-on { opacity: 1; transform: none; }
.found svg { width: 13px; height: 13px; }
.bname { position: absolute; left: 62px; right: 0; top: 0; bottom: 0; display: grid; align-content: center; gap: 2px; opacity: 0; transform: translateX(-6px); transition: opacity .3s .12s, transform .3s .12s; pointer-events: none; }
.bname b { overflow: hidden; color: var(--b-dark); font-family: var(--b-head); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; text-overflow: ellipsis; }
.bname span { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.field-row.is-brand .field { box-shadow: none; padding-left: 0; background: transparent; }
.field-row.is-brand .fav { width: 50px; height: 50px; transform: none; }
.field-row.is-brand .fav b { font-size: 24px; }
.field-row.is-brand .typed { opacity: 0; }
.field-row.is-brand .go { opacity: 0; transform: scale(.4); }
.field-row.is-brand .bname { opacity: 1; transform: none; }
.field-row.is-brand .found { height: 0; margin-top: 0; opacity: 0; }

/* ── the week ── */
.week { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 6px 14px 22px; }
.week::-webkit-scrollbar { display: none; }
.legend { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 22px; padding: 0 0 0 4px; }
.legend .sum { min-width: 0; color: var(--ok); font-size: 12px; font-weight: 600; line-height: 1.25; opacity: 0; transition: opacity .3s; }
.legend .sum.is-on { opacity: 1; }
.legend .cols { flex: none; display: flex; padding-right: 7px; }
.legend .cols span { width: 46px; text-align: center; color: var(--ink-3); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; }
.days { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.day { position: relative; border: 1px solid var(--line-2); background: #fff; overflow: hidden; box-shadow: inset var(--bar, 0px) 0 0 var(--ok); transition: box-shadow .35s, border-color .35s; }
.day.is-today { background: var(--s2); border-color: var(--line-3); }
.day.has-mat { --bar: 3px; }
.row { display: grid; grid-template-columns: 58px 1fr auto; align-items: stretch; min-height: 64px; cursor: pointer; }
.num { position: relative; display: grid; place-items: center; border-right: 1px solid var(--line-2); font-size: 28px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.num small { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; color: var(--ink-3); font-size: 8.5px; font-weight: 600; letter-spacing: .04em; }
.is-today .num { padding-bottom: 12px; }
.is-today .num small { color: var(--ink); font-weight: 700; }
.label { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 0 10px 0 12px; }
.label b { font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.label span { color: var(--ink-3); font-size: 12.5px; line-height: 1.25; }
.label span.is-ok { color: var(--ok); font-weight: 500; }
.stats { display: flex; align-items: center; padding-right: 7px; }
.stat { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; width: 46px; height: 44px; border: 1px solid var(--line-2); color: var(--ink-3); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .3s, color .3s, box-shadow .3s; }
.stat + .stat { margin-left: -1px; }
.stat svg { width: 13px; height: 15px; flex: none; }
.stat.is-saved { z-index: 1; border-color: var(--line-3); background: var(--s3); color: var(--ok); box-shadow: inset 0 -2px 0 var(--ok); }
.stat .v { display: inline-block; }
.stat .v.is-tick { animation: tick .32s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tick { 0% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.stat.is-hit { animation: hit .34s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes hit { 30% { transform: translateY(3px); } }
.add-day { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 14px; padding: 12px; border: 0; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.add-day::before { content: "+"; font-size: 18px; font-weight: 400; line-height: 1; }

/* The opened day, as the app draws it: tiles with the name chip, description mark, ▶ on a reel; tools; upload. */
.open { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .3, 1); }
.day.is-open .open { grid-template-rows: 1fr; }
.open > div { overflow: hidden; }
.mats { padding: 14px 12px; border-top: 1px solid var(--line-2); }
.tiles { display: flex; gap: 12px; margin: -4px -12px 0; padding: 6px 12px 4px; overflow-x: auto; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile { position: relative; flex: none; width: 133px; height: 236px; cursor: pointer; }
.tile.is-post { width: 189px; }
.tile .pv { position: relative; width: 100%; height: 100%; overflow: hidden; background: #ddd; outline: 2px solid transparent; outline-offset: 2px; transition: translate .18s ease, box-shadow .18s ease, outline-color .18s ease; }
.tile.is-selected .pv { translate: 0 -2px; outline-color: var(--ink); box-shadow: 0 8px 18px -8px rgb(0 0 0 / .32); }
.media { display: block; width: 100%; height: 100%; object-fit: cover; }
.tname { position: absolute; z-index: 3; top: 5px; left: 5px; max-width: calc(100% - 34px); padding: 3px 7px; border-radius: 3px; background: rgb(23 23 26 / .86); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); color: #f2f1ed; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; cursor: text; }
.tname:focus { text-overflow: clip; box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px var(--ink); }
.tcap { position: absolute; z-index: 3; top: 5px; right: 5px; width: 18px; height: 18px; background: rgb(23 23 26 / .86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f1ed' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M5 7h14M5 12h14M5 17h9'/%3E%3C/svg%3E") no-repeat 50% 50% / 12px 12px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.tplay { position: absolute; z-index: 3; left: 5px; bottom: 5px; width: 26px; height: 26px; background: rgb(23 23 26 / .86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23f2f1ed'/%3E%3C/svg%3E") no-repeat 55% 50% / 14px 14px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
.mctx { margin: 12px 0 2px; color: var(--ink-3); font: 500 11px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.tools { display: flex; justify-content: space-between; margin: 0 -8px; }
.tools span { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 44px; padding: 7px 8px 6px; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tools span::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tools .t-dl { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M12 3.5v11.5M7 10.5l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); } .tools .t-pub { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M4.75 4.75h14.5v14.5H4.75z'/%3E%3C/svg%3E"); } .tools .t-cap { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M4 6.5h16M4 11.5h10M4 16.5h6M13.5 16.5l3 3 5-6'/%3E%3C/svg%3E"); } .tools .t-ai { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M3.75 5.75h16.5v12.5H3.75z'/%3E%3Cpath d='M7.5 15.5l2.5-7 2.5 7M8.35 13.1h3.3M15.75 8.5v7'/%3E%3C/svg%3E"); } .tools .t-del { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M4.5 7h15M9.5 7V4.5h5V7M6.5 7l1 12.5h9l1-12.5M10 10.5v6M14 10.5v6'/%3E%3C/svg%3E"); }
.upl { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 8px; border: 1px solid var(--line-2); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.upl::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M4 14v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M4 14v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ── the scan: the link sends what the site holds into four boxes; the mango writes the week from them ── */
.loading { position: absolute; left: 0; right: 0; top: 200px; bottom: 0; z-index: 20; background: #fff; opacity: 0; transition: opacity .25s; pointer-events: none; }
.loading.is-on { opacity: 1; }
/* The link as a small living globe: violet dots and parallels, turning; the link's address under it. */
#globe { position: absolute; z-index: 10; left: 50%; top: 160px; width: 180px; height: 180px; margin-left: -90px; pointer-events: auto; cursor: grab; touch-action: none; transform: scale(.7); opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1); }
#globe:active { cursor: grabbing; }
.loading.is-on #globe { opacity: 1; transform: none; }
.glink { position: absolute; z-index: 12; left: 0; right: 0; top: 344px; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-align: center; white-space: nowrap; text-overflow: ellipsis; transition: opacity .3s; }
.orbit { position: absolute; inset: 0; }
.scan-line { position: absolute; z-index: 12; left: 0; right: 0; top: 372px; color: var(--ink-3) !important; font-size: 14px !important; margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-align: center; }
.scan-line.is-new { animation: line .5s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes line { from { opacity: 0; transform: translateY(6px); } }
.sbox { position: absolute; width: 140px; height: 118px; padding: 9px 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 22px rgb(20 20 20 / .07); opacity: 0; transform: scale(.92); transition: opacity .3s, transform .3s; }
.loading.is-on .sbox { opacity: 1; transform: none; }
.sbox.b-styles { left: 12px; top: 12px; } .sbox.b-products { right: 12px; top: 12px; } .sbox.b-texts { left: 12px; bottom: 22px; } .sbox.b-photos { right: 12px; bottom: 22px; }
.sbox header { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.sbox header b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--s2); color: var(--ink-2); font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.sbox.is-bump { animation: bump .26s ease-out; }
@keyframes bump { 40% { transform: scale(1.05); } }
.tray { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; margin-top: 9px; }
.b-texts .tray { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.tray > * { animation: drop-in .25s ease-out both; }
@keyframes drop-in { from { opacity: 0; transform: scale(.6); } }
.m-img { width: 22px; height: 28px; object-fit: cover; box-shadow: 0 0 0 1.5px #fff, 0 2px 5px rgb(0 0 0 / .2); }
.m-img.is-product { width: 27px; height: 32px; }
.m-tx { display: block; overflow: hidden; color: var(--ink-2); font-family: var(--b-text); font-size: 9.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.m-sw { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(0 0 0 / .1); }
.m-aa { display: grid; place-items: center; height: 22px; padding: 0 6px; background: var(--s2); color: var(--ink); font-size: 12px; }
/* The things in flight. */
.scan-el { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; pointer-events: none; will-change: transform, opacity; }
.f-photo { width: 76px; height: 96px; border: 3px solid #fff; background: #ddd; box-shadow: 0 10px 24px rgb(20 20 20 / .22); }
.f-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f-text { max-width: 200px; padding: 9px 12px; background: #fff; color: var(--ink); font-family: var(--b-text); font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 10px 24px rgb(20 20 20 / .16), inset 0 0 0 1px rgb(0 0 0 / .05); }
.f-color { display: grid; justify-items: center; gap: 5px; padding: 7px 7px 6px; background: #fff; box-shadow: 0 10px 24px rgb(20 20 20 / .16); }
.f-color i { width: 44px; height: 44px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.f-color b { color: var(--ink-2); font: 600 10px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; text-transform: uppercase; }
.f-font { display: grid; justify-items: center; gap: 2px; min-width: 70px; padding: 8px 10px 7px; background: #fff; box-shadow: 0 10px 24px rgb(20 20 20 / .16); }
.f-font i { color: var(--ink); font-size: 30px; font-style: normal; line-height: 1.1; }
.f-font b { color: var(--ink-3); font-size: 10px; font-weight: 600; white-space: nowrap; }
.f-product { width: 104px; padding: 5px 5px 7px; background: #fff; box-shadow: 0 10px 24px rgb(20 20 20 / .18); }
.f-product img { display: block; width: 100%; height: 86px; object-fit: cover; background: #eee; }
.f-product b { display: block; margin-top: 6px; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gulp { position: absolute; z-index: 31; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle, rgb(122 92 255 / .42), rgb(122 92 255 / 0) 70%); pointer-events: none; }

/* A material opening close-up and settling into its day. */
.big { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.big .card { width: 370px; height: 658px; overflow: hidden; background: #111; box-shadow: 0 30px 70px rgb(20 20 20 / .32); will-change: transform, opacity; }
.big .card.is-post { height: 462px; }

/* The first story, opened. */
.viewer { position: absolute; inset: 0; z-index: 35; background: #0b0b0c; opacity: 0; pointer-events: none; transition: opacity .25s; }
.viewer.is-on { opacity: 1; }
.vbox { position: absolute; left: 10px; top: 71px; width: 370px; height: 658px; overflow: hidden; transform: scale(.94); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.viewer.is-on .vbox { transform: none; }
.vbox::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 96px; background: linear-gradient(rgb(0 0 0 / .38), rgb(0 0 0 / 0)); pointer-events: none; }
.vchrome { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 2; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.vchrome .pg { position: relative; height: 3px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .35); }
.vchrome .pg i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.viewer.is-on .vchrome .pg i { animation: fill 3.4s linear forwards; }
@keyframes fill { to { width: 100%; } }
.vchrome .who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.vchrome .who i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--b-dark); color: var(--b-accent); font-family: var(--b-head); font-size: 13px; font-style: normal; font-weight: 800; text-shadow: none; }
.vchrome .who em { margin-left: auto; font-size: 26px; font-style: normal; font-weight: 400; line-height: 1; }

/* Square (default) or rounded corners. */
.sq .field, .sq .go, .sq .fav, .sq .day, .sq .tile .pv, .sq .add-day, .sq .upl, .sq .big .card, .sq .vbox { border-radius: 0; }
.sq .add-day { box-shadow: inset 0 0 0 1px var(--line-2); }
.rd .field { border-radius: 14px; } .rd .go { border-radius: 9px; } .rd .fav { border-radius: 8px; } .rd .field-row.is-brand .fav { border-radius: 12px; }
.rd .day { border-radius: 16px; } .rd .tile .pv { border-radius: 4px; } .rd .sbox { border-radius: 12px; }
.rd .add-day { border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); } .rd .upl { border-radius: 12px; } .rd .big .card { border-radius: 22px; } .rd .vbox { border-radius: 20px; }

.tap { position: absolute; z-index: 70; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgb(20 20 20 / .16); box-shadow: 0 0 0 1.5px rgb(255 255 255 / .9); pointer-events: none; animation: tap .5s ease-out both; }
@keyframes tap { 0% { transform: scale(.5); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.cover { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; border-radius: 42px; transition: opacity .25s; }
.cover.is-gone { opacity: 0; pointer-events: none; }

/* ── the brand's data: everything the reel is made of, editable ── */
.panel { flex: none; width: 360px; max-width: 100%; padding: 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.panel h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.panel > p { margin: 0 0 14px; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.panel section { padding: 12px 0; border-top: 1px solid var(--line-2); }
.panel h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.panel h3 small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.panel label { display: grid; gap: 4px; margin-bottom: 8px; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.panel input[type="text"], .panel textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
.panel textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.panel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel .colors { display: flex; gap: 8px; }
.panel .colors label { flex: 1; }
.panel input[type="color"] { width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { position: relative; width: 48px; height: 60px; border-radius: 6px; overflow: hidden; background: #eee; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button, .prow button { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .65); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.thumb em { position: absolute; left: 2px; bottom: 2px; padding: 1px 4px; border-radius: 3px; background: rgb(0 0 0 / .65); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.addbtn { display: grid; place-items: center; width: 48px; height: 60px; border: 1px dashed var(--line-3); border-radius: 6px; color: var(--ink-3); font-size: 20px; cursor: pointer; }
.addbtn input { display: none; }
.prow { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.prow img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #eee; }
.prow button { position: static; }
.prow .pr-in { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.dayrow { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; margin-bottom: 8px; }
.dayrow > b { padding-top: 20px; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.textbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px dashed var(--line-3); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.textbtn input { display: none; }

@media (prefers-reduced-motion: reduce) { .caret, .go.is-busy .spin { animation: none; } }

/* ── the recording app: the reel's screen at full size on the phone, no frame, no panel ── */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: #fff; }
body { min-height: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.app { position: fixed; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; }
.app .screen { width: 100%; height: 100%; border-radius: 0; }
.app.is-desk .screen { box-shadow: 0 0 0 1px var(--line-2); }
.bar { height: 60px; padding-top: 4px; }
.legend .cols { margin-left: auto; }
button.menu { padding: 0; border: 0; color: var(--ink); cursor: pointer; }
.field { cursor: pointer; }
.week { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.vbox { left: 10px; top: 60px; }
.big .card { width: 370px; height: 658px; }

/* The menu: hidden behind ≡, only for whoever records. */
.sheet { position: fixed; inset: 0; z-index: 100; display: none; background: rgb(0 0 0 / .32); font-family: var(--ui); }
.sheet.is-on { display: block; }
.sheet-box { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; max-width: 520px; margin: 0 auto; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); background: #fff; }
.sheet-item { min-height: 52px; padding: 0 16px; border: 0; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.sheet-item.is-quiet { background: var(--s2); color: var(--ink); text-align: center; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px 0 16px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 15px; font-weight: 600; }
.sheet .seg { box-shadow: none; background: var(--s2); border-radius: 0; padding: 3px; }
.sheet .seg button { border-radius: 0; min-width: 52px; }
.sheet-tip { margin: 2px 4px; color: var(--ink-3); font-size: 13px; line-height: 1.4; }

/* Getting the materials ready. */
.prep { position: fixed; inset: 0; z-index: 110; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--page); font-family: var(--ui); -webkit-user-select: text; user-select: text; }
.prep.is-on { display: block; }
.prep-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--page); box-shadow: 0 1px 0 var(--line-2); font-size: 17px; }
.prep-done { min-height: 44px; padding: 0 18px; border: 0; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.prep .panel { width: auto; max-width: 560px; margin: 14px auto calc(24px + env(safe-area-inset-bottom)); border-radius: 0; }
.prep .panel input[type="text"], .prep .panel textarea { border-radius: 0; font-size: 16px; }
.prep .panel input[type="color"] { border-radius: 0; }
.logo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.thumb.is-logo { width: 44px; height: 44px; background: var(--s2); }
.thumb.is-logo img { object-fit: contain; }
.thumbs .thumb, .addbtn { width: 56px; height: 72px; }
.dayrow .addbtn { width: 56px; height: 72px; }
.textbtn { min-height: 40px; }

/* The link field takes real typing; the brand panel. */
.link-in { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 19px; font-weight: 500; letter-spacing: -.01em; caret-color: var(--ink); }
.typed.is-input #chars, .typed.is-input .caret { display: none; }
.typed:not(.is-input) .link-in { display: none; }
.found.is-miss { color: #b42318; opacity: 1; transform: none; }
.found.is-miss svg { display: none; }
.field.is-shake { animation: shake .36s ease-out; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.pnote { min-height: 0; margin: 0 0 10px; color: #b42318; font-size: 13px; font-weight: 600; }
.pnote:empty { display: none; }
.brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.brands button { display: grid; gap: 1px; min-height: 48px; padding: 6px 12px; border: 0; background: var(--s2); color: var(--ink); font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.brands button small { color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.brands button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.brands button[aria-pressed="true"] small { color: rgb(255 255 255 / .7); }
.newb { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newb input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px; }
.pday { padding: 10px 0; border-top: 1px dashed var(--line-2); }
.pday:first-child { border-top: 0; padding-top: 0; }
.pday > b { display: block; margin-bottom: 6px; font-size: 13px; }
.pslot { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: start; margin-top: 6px; }
.pslot > span { padding-top: 6px; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.thumb.is-busy { display: grid; place-items: center; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.textbtn.is-danger { color: #b42318; border-color: #f0b4ae; }
@media (min-width: 1000px) {
  .prep { display: block; right: auto; width: 600px; box-shadow: 1px 0 0 var(--line-2); }
  .prep-done { display: none; }
  .prep .panel { margin: 14px 18px 30px; }
}
