/* MYB Studio (the approved UI, built on direction C: "iOS Liquid Glass native"), with the sign-in screens added.
   Light, calm screens for choosing (Home, Find, Numbers), a dark stage for making (the editor), the way Photos turns dark
   when you tap Edit. One accent: MYB red #ED1C24. No capitals-only text, no emoji. */

/* fix round 6 (SPD6-FONTS-TTF-HEAVY): the post fonts as WOFF2 (the same glyphs, lossless), under names that carry their
   content (kept for good): his words use the Latin part (about 21 KB a weight, not 156 KB); any other letter loads the
   whole font, which covers every other letter (so a page with only Latin letters never downloads it). The TTFs stay
   for the old Mac. */
@font-face { font-family: 'Inter Tight'; src: url('/img/portal/fonts/InterTight-600.35162cc636.woff2') format('woff2'), url('/img/portal/fonts/InterTight-600.ttf') format('truetype'); font-weight: 600; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-0303, U+0305-0307, U+0309-0328, U+032A-1FFF, U+2070-20AB, U+20AD-2121, U+2123-2190, U+2192, U+2194-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-10FFFF; }
@font-face { font-family: 'Inter Tight'; src: url('/img/portal/fonts/InterTight-600-latin.55e24b12cd.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; src: url('/img/portal/fonts/InterTight-700.4f629e3a9b.woff2') format('woff2'), url('/img/portal/fonts/InterTight-700.ttf') format('truetype'); font-weight: 700; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-0303, U+0305-0307, U+0309-0328, U+032A-1FFF, U+2070-20AB, U+20AD-2121, U+2123-2190, U+2192, U+2194-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-10FFFF; }
@font-face { font-family: 'Inter Tight'; src: url('/img/portal/fonts/InterTight-700-latin.f857681472.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; src: url('/img/portal/fonts/InterTight-800.e38b4a144c.woff2') format('woff2'), url('/img/portal/fonts/InterTight-800.ttf') format('truetype'); font-weight: 800; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-0303, U+0305-0307, U+0309-0328, U+032A-1FFF, U+2070-20AB, U+20AD-2121, U+2123-2190, U+2192, U+2194-2211, U+2213-2214, U+2216-FEFE, U+FF00-FFFC, U+FFFE-10FFFF; }
@font-face { font-family: 'Inter Tight'; src: url('/img/portal/fonts/InterTight-800-latin.71384b632c.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #ED1C24;
  --red-press: #C9121A;
  --red-soft: rgba(237, 28, 36, .10);
  --green: #1F8A3B;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --ink: #111113;
  --ink2: rgba(60, 60, 67, .64);
  --ink3: rgba(60, 60, 67, .34);
  --sep: rgba(60, 60, 67, .13);
  --fill: rgba(118, 118, 128, .12);
  --fill2: rgba(118, 118, 128, .08);
  --glass: rgba(255, 255, 255, .64);
  --glass-strong: rgba(250, 250, 252, .82);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-shadow: 0 12px 40px rgba(17, 17, 19, .10), 0 1px 2px rgba(17, 17, 19, .05);
  --sheet: rgba(242, 242, 247, .94);
  --sheet-solid: #F2F2F7;
  --card-sheet: #FFFFFF;
  --sbar: #111113;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --pop: cubic-bezier(.2, .9, .3, 1.2);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --rail-h: 66px;
  --dock-h: 94px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1C1C1E; --ink: #F5F5F7; --ink2: rgba(235, 235, 245, .62); --ink3: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .5); --fill: rgba(118, 118, 128, .24); --fill2: rgba(118, 118, 128, .16);
    --glass: rgba(40, 40, 44, .58); --glass-strong: rgba(36, 36, 40, .86); --glass-line: rgba(255, 255, 255, .09);
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, .5); --sheet: rgba(28, 28, 30, .94); --sheet-solid: #1C1C1E; --card-sheet: #2C2C2E; --sbar: #fff; --green: #32D74B;
    --red-soft: rgba(237, 28, 36, .2); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --ink: #F5F5F7; --ink2: rgba(235, 235, 245, .62); --ink3: rgba(235, 235, 245, .3);
  --sep: rgba(84, 84, 88, .5); --fill: rgba(118, 118, 128, .24); --fill2: rgba(118, 118, 128, .16);
  --glass: rgba(40, 40, 44, .58); --glass-strong: rgba(36, 36, 40, .86); --glass-line: rgba(255, 255, 255, .09);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, .5); --sheet: rgba(28, 28, 30, .94); --sheet-solid: #1C1C1E; --card-sheet: #2C2C2E; --sbar: #fff; --green: #32D74B;
  --red-soft: rgba(237, 28, 36, .2); color-scheme: dark;
}
/* screenshot mode: the iPhone 15 Pro's real insets */
html.shot { --sat: 47px; --sab: 34px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior: none; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
svg .solid { fill: currentColor; stroke: none; }
svg .thin { stroke-width: 0; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; }

#app { position: fixed; inset: 0; overflow: hidden; }

/* ------------------------------------------------------------------ the phone frame bits (screenshot mode only) */
#sbar, #hbar { display: none; }
html.shot #sbar { display: flex; position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: 47px; align-items: center; justify-content: space-between; padding: 3px 26px 0 52px; color: var(--sbar); pointer-events: none; transition: color .3s; }
html.shot #sbar .sb-time { font: 600 17px/1 var(--font); letter-spacing: -.2px; }
html.shot #sbar .sb-ic { width: 78px; height: 13px; }
html.shot #sbar svg { fill: currentColor; stroke: none; }
html.shot #sbar svg .ol { fill: none; stroke: currentColor; stroke-width: 1; opacity: .4; }
html.shot #hbar { display: block; position: fixed; z-index: 200; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--sbar); pointer-events: none; transition: background .3s; }
html.shot.dark-ui #sbar { color: #fff; }
html.shot.dark-ui #hbar { background: #fff; }

/* ------------------------------------------------------------------ screens */
.screen.tab { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
.screen.tab::after { content: ''; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: calc(var(--sab) + 104px); pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), color-mix(in srgb, var(--bg) 82%, transparent) 55%, var(--bg)); }
.screen.tab.on { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: calc(var(--sat) + 6px) 20px 0; overscroll-behavior-y: contain; }
.scroll > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.tab-space { height: calc(var(--sab) + 110px); }
.glow { position: absolute; left: 0; right: 0; top: 0; height: 520px; pointer-events: none;
  background:
    radial-gradient(110% 62% at 12% -4%, rgba(237, 28, 36, .22), rgba(237, 28, 36, 0) 62%),
    radial-gradient(80% 50% at 100% 6%, rgba(255, 92, 120, .12), rgba(255, 92, 120, 0) 64%); }
.glow.soft { opacity: .55; }

/* the small glass bar that fades in once the big title scrolls away */
.navbar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: calc(var(--sat) + 44px); padding-top: var(--sat); display: flex; align-items: center; justify-content: center;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); border-bottom: .5px solid var(--sep);
  opacity: 0; transition: opacity .2s; pointer-events: none; }
.navbar b { font-size: 17px; font-weight: 600; }
.screen.scrolled .navbar { opacity: 1; }

.hello-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 22px; margin-bottom: 0; box-shadow: 0 2px 10px rgba(237, 28, 36, .22), 0 0 0 .5px rgba(0, 0, 0, .06); }
.date { display: block; font-size: 15px; font-weight: 600; color: var(--ink2); }
.large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .2px; }
.large.first { margin-top: 32px; }
.lede { font-size: 17px; color: var(--ink2); margin-top: 2px; }

.card { background: var(--card); border-radius: 22px; }
.glass-card { background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.9); backdrop-filter: blur(30px) saturate(1.9);
  border: .5px solid var(--glass-line); box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .55); }

/* ------------------------------------------------------------------ home */
.newpost { margin-top: 18px; padding: 18px 14px 14px; border-radius: 30px; }
.np-head { padding: 0 6px 6px; }
.np-head h2 { font-size: 24px; line-height: 30px; font-weight: 700; }
.np-head p { font-size: 15px; color: var(--ink2); margin-top: 1px; }
.big-btn { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 72px; margin-top: 10px; padding: 12px 14px 12px 12px; border-radius: 22px;
  background: var(--card); box-shadow: 0 1px 2px rgba(17, 17, 19, .06); transition: transform .18s var(--ease), background .18s; }
.big-btn:active { transform: scale(.975); }
.big-btn.primary { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(237, 28, 36, .32), inset 0 1px 0 rgba(255, 255, 255, .2); }
.big-btn.primary:active { background: var(--red-press); }
.bb-ic { flex: 0 0 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--fill); color: var(--ink); }
.bb-ic svg { width: 25px; height: 25px; }
.primary .bb-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.bb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bb-t b { font-size: 18px; font-weight: 600; letter-spacing: -.1px; }
.bb-t small { font-size: 14px; opacity: .78; }
.big-btn:not(.primary) .bb-t small { color: var(--ink2); opacity: 1; }
.bb-chev { flex: 0 0 18px; height: 18px; opacity: .5; }

.search-field { display: flex; align-items: center; gap: 8px; width: 100%; height: 50px; margin-top: 16px; padding: 0 8px 0 16px; border-radius: 25px; background: var(--fill); color: var(--ink2); }
.search-field .sf-ic { flex: 0 0 22px; height: 22px; }
.search-field .sf-ph { font-size: 17px; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search-field input::placeholder { color: var(--ink2); }
.search-field input::-webkit-search-cancel-button { display: none; }
.sf-x { flex: 0 0 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--ink2); }
.sf-x svg { width: 18px; height: 18px; }
#homeSearch { margin-top: 14px; }

.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-h h2 { font-size: 22px; line-height: 28px; font-weight: 700; }
.sec-h .count { font-size: 17px; color: var(--ink2); }
.link-btn { font-size: 17px; color: var(--red); min-height: 44px; display: inline-flex; align-items: center; margin: -12px 0; }

.drafts { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.drafts::-webkit-scrollbar { display: none; }
.draft { position: relative; flex: 0 0 114px; height: 203px; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: #1c1c1e; transition: transform .18s var(--ease); }
.draft:active { transform: scale(.97); }
.draft img { width: 100%; height: 100%; object-fit: cover; }
.draft::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.draft .d-ago { position: absolute; z-index: 1; left: 10px; bottom: 9px; font-size: 13px; font-weight: 600; color: #fff; }
.pill-dark { position: absolute; z-index: 1; height: 24px; padding: 0 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(20, 20, 22, .5); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6); font-variant-numeric: tabular-nums; }
.draft .pill-dark { top: 8px; right: 8px; }

.today { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 0 13px; }
.t-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 64px; padding: 0 4px; text-align: center; position: relative; }
.t-cell + .t-cell::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: .5px; background: var(--sep); }
.t-cell b { font-size: 20px; line-height: 25px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.t-cell span { font-size: 12px; line-height: 15px; color: var(--ink2); }
.t-cell em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 1px; }
.t-cell em svg { width: 12px; height: 12px; stroke-width: 2.4; }
.t-cell.add b { color: var(--red); display: inline-flex; align-items: center; gap: 3px; }
.t-cell.add b svg { width: 18px; height: 18px; stroke-width: 2.4; }
.t-cell.add small { font-size: 12px; line-height: 15px; color: var(--red); font-weight: 600; margin-top: 1px; }
.empty { font-size: 15px; color: var(--ink2); padding: 4px 2px; }
.draft .dc { width: 100%; height: 100%; object-fit: cover; display: block; }

/* warnings on Home */
.alerts:empty { display: none; }
.alerts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 14px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--al, var(--red)); }
.alert.red { --al: var(--red); }
.alert.amber { --al: #D98A00; }
.al-ic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 15px; background: var(--al); color: #fff; display: grid; place-items: center; }
.al-ic svg { width: 18px; height: 18px; stroke-width: 2.4; }
.al-t { flex: 1; min-width: 0; }
.al-t b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; }
.al-t p { font-size: 14px; line-height: 19px; color: var(--ink2); margin-top: 2px; }
.al-btn { flex: 0 0 auto; align-self: center; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--fill); font-size: 15px; font-weight: 600; }
/* fix round 6 (HP6-3): a sign-in warning's two buttons, under its words */
.al-acts { display: flex; gap: 8px; margin-top: 10px; }
.al-acts .al-btn { height: 44px; padding: 0 18px; border-radius: 22px; }

/* ------------------------------------------------------------------ tab bar (floating glass) */
#tabbar { position: fixed; z-index: 10; left: 50%; bottom: max(12px, calc(var(--sab) - 10px)); width: min(340px, calc(100% - 44px)); height: 64px; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 32px;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
  border: .5px solid var(--glass-line); box-shadow: 0 10px 34px rgba(17, 17, 19, .14), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .45s var(--ease), opacity .3s; }
#tabbar.away { transform: translate(-50%, 140%); opacity: 0; }
#tabbar button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink); border-radius: 28px; transition: color .2s; }
#tabbar button.on { color: var(--red); }
#tabbar .ti { width: 26px; height: 26px; }
#tabbar .ti svg { stroke-width: 1.9; }
.tb-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 28px; background: var(--fill); transition: transform .42s var(--ease); }

/* ------------------------------------------------------------------ find */
.chips { display: flex; gap: 8px; margin: 14px -20px 0; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 38px; padding: 0 15px; border-radius: 19px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; background: var(--card); box-shadow: 0 0 0 .5px var(--sep), 0 1px 2px rgba(17, 17, 19, .04); transition: background .15s, color .15s, transform .15s; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.res-h { margin-top: 24px; }
.res-h h2 { font-size: 20px; line-height: 25px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; transition: opacity .2s; }
.grid.loading { opacity: .35; }
.vid { display: flex; flex-direction: column; min-width: 0; transition: transform .18s var(--ease); }
.vid:active { transform: scale(.97); }
.vid .th { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1c1c1e; }
.vid .th img { width: 100%; height: 100%; object-fit: cover; }
.vid .th .src { top: 8px; left: 8px; }
.vid .th .src i { width: 14px; height: 14px; display: block; }
.vid .th .src i svg { stroke-width: 2.1; }
.vid .th .dur { bottom: 8px; right: 8px; }
.vid b { font-size: 15px; line-height: 20px; font-weight: 600; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid small { font-size: 13px; color: var(--ink2); margin-top: 2px; }

/* ------------------------------------------------------------------ numbers */
.add-card { margin-top: 18px; padding: 16px; }
.add-row { display: flex; gap: 14px; align-items: flex-start; }
.sq-ic { flex: 0 0 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.sq-ic svg { width: 26px; height: 26px; }
.add-row b { display: block; font-size: 17px; font-weight: 600; }
.add-row p { font-size: 15px; color: var(--ink2); margin-top: 2px; }
.add-card .cta { margin-top: 14px; height: 50px; }
.hero { padding: 16px 16px 12px; }
.lbl { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink2); }
.lbl i { flex: 0 0 17px; width: 17px; height: 17px; display: block; }
/* the contract's longer names wrap to two lines in the half-width tiles: the icon stays full size, next to the first line */
.tile .lbl { align-items: flex-start; line-height: 20px; }
.tile .lbl i { margin-top: 1.5px; }
.big-num { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.big-num b { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.delta { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-variant-numeric: tabular-nums; }
.delta.down { color: var(--ink2); }
.delta svg { width: 14px; height: 14px; stroke-width: 2.4; }
.delta small { font-weight: 400; color: var(--ink2); margin-left: 4px; font-size: 14px; }
.spark { position: relative; margin-top: 10px; height: 76px; }
.spark svg { overflow: visible; }
.spark .ln { stroke: var(--red); stroke-width: 2; fill: none; }
.spark .ar { fill: url(#sparkFill); stroke: none; }
.spark .gl { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 2 4; }
.spark .gl-t { fill: var(--ink2); stroke: none; font-size: 12px; font-family: var(--font); }
.spark .dot { fill: var(--red); stroke: var(--card); stroke-width: 2; }
.spark .cross { stroke: var(--ink3); stroke-width: 1; }
.spark-tip { position: absolute; top: -6px; transform: translateX(-50%); padding: 4px 9px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; font-variant-numeric: tabular-nums; }
.spark-tip.on { opacity: 1; }
.spark-days { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-top: 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles .tile:last-child:nth-child(odd) { grid-column: span 2; min-height: 96px; }
.tile { padding: 14px 14px 13px; min-height: 112px; display: flex; flex-direction: column; }
.tile .val { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.3px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .delta { font-size: 13px; margin-top: auto; }
.tile .delta small { font-size: 13px; }
.tile.empty .val { color: var(--ink3); }
.tile .add-mini { margin-top: auto; align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.tile .add-mini svg { width: 15px; height: 15px; stroke-width: 2.4; }
.tile .yday { font-size: 13px; color: var(--ink2); margin: 2px 0 8px; }
.list { overflow: hidden; }
.li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; position: relative; }
.li + .li::before { content: ''; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--sep); }
.rank { flex: 0 0 26px; font-size: 20px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; text-align: center; line-height: 22px; }
.li b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; }
.li small { display: block; font-size: 14px; color: var(--ink2); margin-top: 3px; }
.li .sq-ic { flex-basis: 34px; height: 34px; border-radius: 11px; }
.li .sq-ic svg { width: 20px; height: 20px; }
.li p { font-size: 15px; line-height: 20px; color: var(--ink2); margin-top: 3px; }
.when { font-size: 13px; color: var(--ink2); text-align: center; margin-top: 18px; }

/* ------------------------------------------------------------------ buttons used everywhere */
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 28px; background: var(--red); color: #fff; font-size: 17px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(237, 28, 36, .28), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .16s var(--ease), background .16s, box-shadow .16s; }
.cta:active { transform: scale(.98); background: var(--red-press); }
.cta:disabled { background: var(--fill); color: var(--ink3); box-shadow: none; transform: none; }
.cta.gray { background: var(--fill); color: var(--ink); box-shadow: none; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cta2 { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border-radius: 24px; background: var(--fill); font-size: 15px; font-weight: 600; transition: transform .16s var(--ease); }
.cta2:active { transform: scale(.97); }
.c2-ic { width: 20px; height: 20px; }
.label { font-size: 15px; font-weight: 600; color: var(--ink2); margin: 14px 4px 7px; }

/* ------------------------------------------------------------------ sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; transition: visibility 0s linear .5s; }
.sheet-wrap.on { pointer-events: auto; visibility: visible; transition: none; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .4s; }
.sheet-wrap.on .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 0 20px calc(var(--sab) + 16px); border-radius: 34px 34px 0 0; color: var(--ink);
  background: var(--sheet); -webkit-backdrop-filter: blur(40px) saturate(1.8); backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); transform: translateY(105%); transition: transform .5s var(--ease); }
.sheet-wrap.on .sheet { transform: none; }
.sheet-wrap.on .sheet.small { transform: translateY(calc(-1 * var(--kb, 0px))); }
.sheet.tall { top: calc(var(--sat) + 10px); display: flex; flex-direction: column; }
/* review 2026-10-28 (WebKit e2e): a sheet that covers the screen is solid, so the editor's words never show through it
   (where Safari does not blur behind it) */
.sheet.tall { background: var(--sheet-solid); }
.grabber { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--ink3); margin: 6px auto 0; }
.sh-head { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 12px; }
.sh-head h2 { font-size: 22px; line-height: 28px; font-weight: 700; }
.x-btn { flex: 0 0 44px; height: 44px; margin-right: -6px; display: grid; place-items: center; border-radius: 22px; color: var(--ink2); }
.x-btn::before { content: ''; position: absolute; }
.x-btn i { width: 32px; height: 32px; border-radius: 16px; background: var(--fill); display: grid; place-items: center; }
.x-btn i svg { width: 17px; height: 17px; stroke-width: 2.3; }

.field { display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 8px 0 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 .5px var(--sep); margin-top: 4px; }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; }
.field input::placeholder { color: var(--ink3); }
.paste-btn { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--red-soft); color: var(--red); font-size: 15px; font-weight: 600; }
.ls-found { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--ink2); padding: 0 4px; }
.ls-found.bad { color: var(--red); }
.ls-found i { width: 20px; height: 20px; display: block; color: var(--ink); }
.ls-found .ok { color: var(--green); }
.ls-wait { text-align: center; padding: 18px 8px 8px; }
.wait-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; background: var(--card); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(17, 17, 19, .08); }
.wait-ic svg { width: 36px; height: 36px; }
.ls-wait h2 { font-size: 22px; font-weight: 700; }
.ls-wait p { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin: 22px 10px 14px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--red); transition: width .3s linear; }

/* send sheet */
.sheet .card, .sheet .dest, .sheet .rchip { background: var(--card-sheet); }
.ss-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ss-scroll { flex: 1; overflow-y: auto; margin: 0 -20px; padding: 2px 20px 12px; overscroll-behavior: contain; }
.ss-post { display: flex; gap: 12px; padding: 10px; align-items: stretch; }
.ss-cap.writing textarea::placeholder { color: var(--ink2); animation: breathe 1.4s ease-in-out infinite; }
.ready { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 2px 0; }
.rchip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 6px; border-radius: 14px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: 0 0 0 .5px var(--sep); }
.rchip i { width: 18px; height: 18px; border-radius: 9px; background: var(--green); color: #fff; display: grid; place-items: center; }
.rchip i svg { width: 11px; height: 11px; stroke-width: 3; }
.rchip.warn i { background: var(--red); }
.ss-thumb { position: relative; flex: 0 0 68px; height: 121px; border-radius: 13px; overflow: hidden; background: #000; }
.ss-thumb canvas { width: 100%; height: 100%; display: block; }
.ss-thumb .pill-dark { left: 6px; bottom: 6px; height: 22px; font-size: 11px; padding: 0 7px; }
.ss-cap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-cap textarea { flex: 0 0 auto; display: block; width: 100%; height: 86px; border: 0; outline: none; background: none; resize: none; padding: 2px 2px 0; font-size: 16px; line-height: 21px; }
.ss-cap { justify-content: space-between; }
.ss-cap textarea::placeholder { color: var(--ink3); }
.ss-cap .desc-foot { padding: 4px 0 0; }
.sh-head h2.center { text-align: center; }
.text-btn { min-width: 64px; height: 44px; font-size: 17px; color: var(--red); text-align: left; }
.sh-sp { min-width: 64px; }
.dest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dest { display: block; overflow: hidden; border-radius: 20px; background: var(--card); }
.dtile { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px 8px 12px; text-align: left; transition: background .15s; }
.dtile + .dtile::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--sep); }
.dtile:active { background: var(--fill2); }
.dtile .d-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: var(--fill2); display: grid; place-items: center; color: var(--ink); }
.dtile .d-ic svg { width: 23px; height: 23px; }
.dr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dtile b { font-size: 16px; line-height: 21px; font-weight: 600; }
.dtile small { font-size: 13px; line-height: 17px; color: var(--ink2); }
.dtile .chk { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 15px; box-shadow: inset 0 0 0 2px var(--ink3); display: grid; place-items: center; color: #fff; transition: background .18s, box-shadow .18s; }
.dtile .chk svg { width: 18px; height: 18px; stroke-width: 2.8; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .25s var(--pop); }
.dtile.on .chk { background: var(--red); box-shadow: none; }
.dtile.on .chk svg { opacity: 1; transform: none; }
.later { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; }
.later-t { font-size: 14px; color: var(--ink2); margin-right: 2px; display: inline-flex; align-items: center; gap: 5px; }
.later-t i { width: 15px; height: 15px; display: block; }
.later-ic { display: contents; }
.later-ic span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; background: var(--fill2); color: var(--ink3); }
.later-ic i { width: 17px; height: 17px; display: block; }
.desc { padding: 0; overflow: hidden; }
.desc textarea { display: block; width: 100%; border: 0; outline: none; background: none; resize: none; padding: 14px 16px 6px; font-size: 17px; line-height: 23px; min-height: 104px; }
.desc textarea::placeholder { color: var(--ink3); }
.desc-foot { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 10px; }
.ai-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px; border-radius: 20px; background: var(--red-soft); color: var(--red); font-size: 15px; font-weight: 600; transition: transform .16s var(--ease); }
.ai-btn:active { transform: scale(.97); }
.ai-btn .ai-ic { width: 19px; height: 19px; }
.ai-btn.busy .ai-ic { animation: pulse 1s ease-in-out infinite; }
.desc-n { font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; padding-right: 6px; }
.ss-foot { padding-top: 12px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-top: .5px solid var(--sep); }
.res-top { display: grid; grid-template-columns: 62px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: end; padding: 14px 0 16px; }
.res-top .res-thumb { grid-row: 1 / 3; }
.res-top h2 { align-self: end; }
.res-top .res-sub { align-self: start; }
.res-thumb { position: relative; width: 62px; height: 110px; border-radius: 12px; overflow: visible; }
.res-thumb canvas { width: 100%; height: 100%; display: block; border-radius: 12px; background: #000; box-shadow: 0 10px 28px rgba(17, 17, 19, .22); }
.res-badge { position: absolute; right: -10px; bottom: -8px; width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--ink2); box-shadow: 0 0 0 3px var(--sheet-solid, #F2F2F7); }
.res-badge svg { width: 17px; height: 17px; stroke-width: 2.6; }
.res-badge.ok { background: var(--green); }
.res-badge.bad { background: var(--red); }
.res-badge.you { background: var(--ink); color: var(--bg); }
.res-badge.run { background: #3a3a3c; }
.res-top h2 { font-size: 26px; line-height: 32px; font-weight: 700; }
.res-sub { font-size: 15px; color: var(--ink2); margin-top: 3px; }
.res-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -20px; padding: 0 20px 14px; overscroll-behavior: contain; }
.res-list { overflow: hidden; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; position: relative; min-height: 76px; }
.rrow + .rrow::before { content: ''; position: absolute; top: 0; left: 70px; right: 0; height: .5px; background: var(--sep); }
.rrow .d-ic { flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--fill2); display: grid; place-items: center; }
.rrow .d-ic svg { width: 24px; height: 24px; }
.rrow .rt { flex: 1; min-width: 0; }
.rrow .rt b { display: block; font-size: 16px; font-weight: 600; }
.rrow .rt small { display: block; font-size: 14px; line-height: 19px; color: var(--ink2); margin-top: 2px; }
.rrow .rt .bar { margin: 8px 0 2px; height: 4px; }
.rrow .st { flex: 0 0 auto; min-width: 28px; height: 28px; display: grid; place-items: center; }
.rrow .ok { width: 28px; height: 28px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; animation: popin .35s var(--pop); }
.rrow .you { width: 28px; height: 28px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); display: grid; place-items: center; }
.rrow .you svg { width: 15px; height: 15px; stroke-width: 2.4; }
.rrow.you, .rrow.fail { align-items: flex-start; }
.rrow.you .d-ic, .rrow.you .st, .rrow.fail .d-ic, .rrow.fail .st { margin-top: 2px; }
.rrow.fail .rt small { color: var(--ink); }
.rrow .again.solid { background: var(--red); color: #fff; height: 40px; padding: 0 16px 0 12px; border-radius: 20px; font-size: 15px; }
.rrow .again.solid svg { width: 19px; height: 19px; stroke-width: 1.9; }
.rrow .ok svg { width: 17px; height: 17px; stroke-width: 2.8; }
.rrow .bad { width: 28px; height: 28px; color: var(--red); }
.rrow .bad svg { stroke-width: 2.2; }
.rrow .again { margin-top: 10px; min-height: 40px; height: 40px; padding: 0 13px; border-radius: 17px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.rrow .again svg { width: 15px; height: 15px; stroke-width: 2.2; }
.spin { display: block; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--fill); border-top-color: var(--ink2); animation: spin .8s linear infinite; }
.spin.light { border-color: rgba(255, 255, 255, .22); border-top-color: #fff; }
.res-badge .spin.light { width: 18px; height: 18px; border-width: 2.2px; }

/* numbers sheet */
.ns-sub { font-size: 15px; color: var(--ink2); margin: -6px 0 14px; }
.ns-fields { overflow: hidden; margin-bottom: 16px; }
.nf { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 8px 16px; position: relative; }
.nf + .nf::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.nf .nf-t { flex: 1; }
.nf .nf-t b { display: block; font-size: 17px; font-weight: 600; }
.nf .nf-t small { display: block; font-size: 14px; line-height: 19px; color: var(--ink2); }
.nf .nf-t small.help { font-size: 13px; color: var(--ink3); }
.nf input { width: 132px; flex: 0 0 132px; height: 46px; border: 0; border-radius: 12px; background: var(--fill2); text-align: right; padding: 0 14px; font-size: 22px; font-weight: 600; outline: none; font-variant-numeric: tabular-nums; }
.nf input:focus { box-shadow: 0 0 0 2px var(--red); }
.nf input::placeholder { color: var(--ink3); font-weight: 500; }

/* HUD + toast */
.hud { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.hud.on { opacity: 1; pointer-events: auto; background: rgba(0, 0, 0, .12); }
.hud-box { width: 210px; padding: 22px 18px 18px; border-radius: 28px; text-align: center; color: #fff; background: rgba(28, 28, 30, .78); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); transform: scale(.92); transition: transform .3s var(--pop); }
.hud.on .hud-box { transform: none; }
.hud-box b { display: block; font-size: 17px; font-weight: 600; margin-top: 12px; }
.hud-box small { display: block; font-size: 14px; color: rgba(255, 255, 255, .62); margin-top: 3px; }
.hud-stop { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 44px; margin-top: 14px; padding: 0 22px; border-radius: 22px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; font-weight: 600; }
.hud-stop[hidden] { display: none; }
.hud-stop:active { background: rgba(255, 255, 255, .26); }
.ring { width: 54px; height: 54px; margin: 0 auto; }
.ring svg circle { fill: none; stroke-width: 4.5; }
.ring .bgc { stroke: rgba(255, 255, 255, .16); }
.ring .fgc { stroke: #fff; stroke-dasharray: 145; stroke-dashoffset: 145; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .25s linear; }
.toast { position: fixed; z-index: 90; top: calc(var(--sat) + 8px); left: 50%; max-width: calc(100% - 40px); transform: translate(-50%, calc(-100% - var(--sat) - 24px)); opacity: 0; padding: 0 18px 0 12px; height: 46px; border-radius: 23px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; background: rgba(28, 28, 30, .82);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 8px 26px rgba(0, 0, 0, .2); transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 24px; height: 24px; border-radius: 12px; background: var(--green); display: grid; place-items: center; }
.toast i svg { width: 15px; height: 15px; stroke-width: 2.8; color: #fff; }
.toast i.bad { background: var(--red); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.8); opacity: .6; } }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
@keyframes breathe { 50% { opacity: .45; } }

/* ================================================================== EDITOR (always dark) */
#editor { position: fixed; inset: 0; z-index: 30; background: #000; color: #fff; opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility 0s linear .24s, transform .5s var(--ease), border-radius .5s var(--ease), filter .5s; color-scheme: dark; --ink2: rgba(235, 235, 245, .6); }
#editor.on { opacity: 1; visibility: visible; transition: opacity .24s ease, transform .5s var(--ease), border-radius .5s var(--ease), filter .5s; }
#editor .stage { opacity: 1; }
#editor:not(.on) .ed-area { transform: scale(.97); }
.ed-area { transition: transform .4s var(--ease); }
#editor.on.behind { transform: translateY(calc(var(--sat) * .25)) scale(.92); border-radius: 34px; overflow: hidden; filter: brightness(.8); }
html.dark-ui, html.dark-ui body { background: #000; }
html.ed-full .screen.tab, html.ed-full #tabbar { visibility: hidden; }
.g-btn { display: grid; place-items: center; color: #fff; transition: transform .15s var(--ease), opacity .2s, background .2s; }
.g-btn.round { width: 44px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .18); }
.g-btn svg { width: 22px; height: 22px; }
.g-btn:active { transform: scale(.92); }
.g-btn:disabled { opacity: .3; transform: none; }
.ed-top { position: absolute; z-index: 4; top: var(--sat); left: 0; right: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; pointer-events: none; }
/* final gate 2026-10-29: only its buttons take a tap; the empty bar between them lets it reach what is under it */
.ed-top button { pointer-events: auto; }
.ed-hist { display: flex; gap: 10px; }
.next-btn { height: 44px; min-width: 88px; padding: 0 22px; border-radius: 22px; background: var(--red); color: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 6px 18px rgba(237, 28, 36, .35), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .15s var(--ease); }
.next-btn:active { transform: scale(.95); background: var(--red-press); }
.ed-area { position: absolute; top: calc(var(--sat) + 58px); bottom: calc(var(--sab) + var(--rail-h) + var(--dock-h)); left: 0; right: 0; }
.stage { position: absolute; transform-origin: 50% 0; transition: transform .42s var(--ease); will-change: transform; }
.clip { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; background: #0d0d0f; touch-action: none; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* review 2026-10-28 (COR-3): render.js blurBackground's own picture (blurred and dimmed already), laid over the frame the
   way render.js drawBg does: the file has this very background */
.bgblur { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#layers { position: absolute; inset: 0; }
.ly { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.ly.media { pointer-events: none; }
.ly.media video, .ly.media img { display: block; width: 100%; height: 100%; object-fit: fill; }
.ly.sticker img { width: 100%; height: 100%; pointer-events: none; }
.ly.rect { border-radius: 26px; background: #000; }
/* the Blur cover: the browser's own blur of what is under it (as strong as render.js drawBlurBox) */
.ly.rect.blur { background: transparent; overflow: hidden; }
/* the moving circle: drawn by render.js into its canvas every frame */
.ly.sticker.moving canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
/* a company's logo on its white card (render.js drawBadge) */
.ly.sticker.co { background: #fff; padding: var(--pad, 10px); box-sizing: border-box; display: grid; place-items: center; }
.ly.sticker.co img { width: 100%; height: 100%; object-fit: contain; }
.ly.text .tl { position: absolute; white-space: pre; box-sizing: border-box; overflow: visible; }
.stage-load { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.stage.loading .stage-load { opacity: 1; }
.stage.loading .clip { background: #1c1c1e; }
.guide { position: absolute; background: var(--red); opacity: 0; pointer-events: none; transition: opacity .12s; }
.guide.on { opacity: 1; }
.gv { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; }
.gh { left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; }
.sel { position: absolute; left: 0; top: 0; pointer-events: none; border-radius: 6px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0, 0, 0, .25); transform-origin: 50% 50%; }
.sel[hidden] { display: none; }
.h-del, .h-rot { position: absolute; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; pointer-events: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transform: scale(var(--inv, 1)); touch-action: none; }
.h-del::before, .h-rot::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
.h-del { left: -14px; top: -14px; background: #fff; color: #111; }
/* final gate 2026-10-29: a box at the very top of the picture: the x goes to the bottom left corner, clear of the top buttons */
.sel.flip .h-del { top: auto; bottom: -14px; }
.sel.right .h-del { left: auto; right: -14px; }
/* re-gate 2026-10-29: no corner clear (a box nearly as tall as the picture, the panel open): the x comes inside the box */
.sel.pull .h-del { transform: translateY(var(--pull, 0px)) scale(var(--inv, 1)); }
.h-del svg { width: 15px; height: 15px; stroke-width: 2.6; }
.h-rot { right: -14px; bottom: -14px; background: #fff; color: #111; cursor: nwse-resize; }
.h-rot svg { width: 16px; height: 16px; stroke-width: 2.3; }
.stage-tip { position: absolute; z-index: 3; left: 50%; top: 2px; max-width: calc(100% - 24px); transform: translate(-50%, -8px); white-space: nowrap; height: 38px; padding: 0 14px 0 10px; border-radius: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  background: rgba(28, 28, 30, .78); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 0 .5px 0 rgba(255, 255, 255, .15); opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.stage-tip.on { opacity: 1; transform: translate(-50%, 0); }
.stage-tip.long { white-space: normal; height: auto; min-height: 38px; width: max-content; max-width: min(360px, calc(100% - 24px)); padding: 8px 14px 8px 10px; line-height: 19px; border-radius: 19px; }
.stage-tip span { overflow: hidden; text-overflow: ellipsis; }
.stage-tip i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 11px; background: var(--red); display: grid; place-items: center; }
.stage-tip i svg { width: 14px; height: 14px; stroke-width: 2.8; }

/* the timeline */
.dock { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--sab) + var(--rail-h)); height: var(--dock-h); padding: 0 14px; transition: opacity .25s, transform .4s var(--ease); }
.dock.away { opacity: 0; transform: translateY(14px); pointer-events: none; }
.dock-times { display: flex; justify-content: space-between; height: 24px; align-items: flex-end; padding: 0 56px 3px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.dock-times b { color: #fff; font-weight: 600; }
.dock-row { display: flex; align-items: center; gap: 10px; height: 60px; }
.dock-row .g-btn svg { width: 20px; height: 20px; }
.strip { position: relative; flex: 1; min-width: 0; height: 52px; touch-action: none; }
.strip canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 10px; background: #1c1c1e; }
.strip .dim { position: absolute; top: 0; bottom: 0; background: rgba(0, 0, 0, .8); }
.strip .dim.l { left: 0; border-radius: 10px 0 0 10px; }
.strip .dim.r { right: 0; border-radius: 0 10px 10px 0; }
.strip .frame { position: absolute; top: -3px; bottom: -3px; border: 3px solid #fff; border-left-width: 16px; border-right-width: 16px; border-radius: 10px; pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.strip .frame::before, .strip .frame::after { content: ''; position: absolute; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: #111; }
.strip .frame::before { left: -9.5px; }
.strip .frame::after { right: -9.5px; }
.strip .head { position: absolute; top: -7px; bottom: -7px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.strip .grip { position: absolute; top: -10px; bottom: -10px; width: 44px; margin-left: -22px; touch-action: none; cursor: ew-resize; }
.strip.big { height: 62px; }
.strip.big .frame { border-left-width: 18px; border-right-width: 18px; }

/* the panel above the tools */
.panel { position: absolute; z-index: 3; left: 6px; right: 6px; bottom: calc(var(--sab) + var(--rail-h) + 4px); max-width: 560px; margin: 0 auto; border-radius: 28px; color: #fff;
  background: rgba(30, 30, 33, .8); -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, .4), inset 0 .5px 0 rgba(255, 255, 255, .14);
  transform: translateY(30px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .42s var(--ease), opacity .2s, visibility 0s linear .42s; }
.panel.on { transform: translateY(calc(-1 * max(0px, var(--kb, 0px) - var(--rail-h) - var(--sab) - 4px))); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .42s var(--ease), opacity .2s; }
.pn-head { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 7px 0 18px; }
.pn-head b { font-size: 17px; font-weight: 600; }
.pn-head span { flex: 1; min-width: 0; font-size: 13px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-btn { height: 44px; min-width: 76px; padding: 0 18px; border-radius: 22px; background: #fff; color: #000; font-size: 15px; font-weight: 600; transition: transform .15s var(--ease); }
.done-btn:active { transform: scale(.95); }
.pn-body { padding: 0 10px 12px; }
.p-row { display: flex; gap: 8px; align-items: center; }
.p-row + .p-row { margin-top: 10px; }
.p-cap { font-size: 13px; color: rgba(255, 255, 255, .55); margin: 0 4px 8px; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -10px; padding: 3px 10px 4px; scrollbar-width: none; scroll-padding: 0 10px; }
.hscroll::-webkit-scrollbar { display: none; }
.ltile { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: transform .15s var(--ease); }
.ltile:active { transform: scale(.94); }
.lt-im { width: 100%; height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; padding: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: box-shadow .15s, background .15s; }
.lt-im img { max-width: 100%; max-height: 42px; width: auto; height: auto; object-fit: contain; }
.lt-n { font-size: 12px; line-height: 15px; font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ltile.on .lt-im { box-shadow: inset 0 0 0 2.5px var(--red); background: rgba(237, 28, 36, .16); }
.ltile.on .lt-n { color: #fff; }
.ltile.none .lt-im { color: rgba(255, 255, 255, .7); }
.ltile.none svg { width: 26px; height: 26px; }
.lp-row { margin-top: 10px; gap: 6px; }
.corners, .sizes { display: flex; gap: 6px; }
.sizes { flex: 1; }
.sizes .seg { flex: 1; min-width: 44px; }
.corners .seg.ico { flex: 0 0 44px; width: 44px; }
.seg { flex: 1; min-width: 0; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .1); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s, transform .15s var(--ease), opacity .15s; }
.seg:disabled { opacity: .32; transform: none; }
.seg.two { height: 58px; flex-direction: column; gap: 1px; }
.seg.two b { font-size: 16px; font-weight: 700; }
.seg.two small { font-size: 12px; font-weight: 600; opacity: .62; font-variant-numeric: tabular-nums; }
.seg-ic { width: 20px; height: 20px; display: block; }
.sw-mini { width: 16px; height: 16px; border-radius: 5px; flex: 0 0 16px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.sw-mini.blur { background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.12)); }
.sw-mini.black { background: #000; }
.sw-mini.white { background: #fff; }
.sw-mini.red { background: #ED1C24; }
.seg.on .sw-mini { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .3); }
.seg.on .sw-mini.blur { background: linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.08)); }
.seg.look { flex: 1 1 0; min-width: 40px; }
.pn-body[data-tool="text"] .p-row { gap: 6px; }
.pn-body[data-tool="text"] .vsep { margin: 0 1px; }
.lk { font: 800 15px/1 'Inter Tight', var(--font); padding: 5px 7px 6px; border-radius: 7px; }
.lk.solid, .lk.st-box { background: #fff; color: #000; }
.lk.none, .lk.st-plain { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.lk.soft, .lk.st-soft { background: rgba(0, 0, 0, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.lk.st-shadow { color: #fff; text-shadow: 0 2px 5px rgba(0, 0, 0, .95); }
.lk.st-outline { color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.lk.st-glow { color: #FF8A8F; text-shadow: 0 0 6px #ED1C24, 0 0 2px #ED1C24; }
.seg.on .lk.solid, .seg.on .lk.st-box { background: #111; color: #fff; }
.seg.on .lk.none, .seg.on .lk.st-plain { color: #000; text-shadow: none; }
/* fix round 4 (HP4-5): Shadow chosen, on the white tile: dark letters with the soft shadow under them, readable as the others */
.seg.on .lk.st-shadow { color: #111; text-shadow: 0 2px 4px rgba(0, 0, 0, .45); }
/* fix round 3 (HP3-5): Glow chosen, on the white tile: crisp red letters with a soft red halo, as sharp as the others */
.seg.on .lk.st-glow { color: #ED1C24; text-shadow: 0 0 5px rgba(237, 28, 36, .45); }
.p-row.looks .seg.look { flex: 1 1 0; min-width: 0; padding: 0; }
.seg.pop { flex: 1 1 auto; min-width: 104px; }
.seg.pop .seg-ic svg { width: 20px; height: 20px; }
.seg.pop.on .seg-ic { color: var(--red); }
.seg:active { transform: scale(.96); }
.seg.on { background: #fff; color: #000; }
.seg svg { width: 22px; height: 22px; }
.seg.ico { flex: 0 0 46px; }
.seg.ico svg { width: 24px; height: 24px; }
.vsep { flex: 0 0 1px; height: 26px; background: rgba(255, 255, 255, .14); margin: 0 4px; }
.speed-note, .trim-note { font-size: 15px; color: rgba(255, 255, 255, .7); text-align: center; margin-top: 12px; font-variant-numeric: tabular-nums; }
.speed-note b, .trim-note b { color: #fff; }
.trim-times { position: relative; height: 18px; margin-top: 8px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.trim-times span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ftiles { justify-content: space-between; }
.ftile { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .72); min-width: 52px; }
.ftile canvas { width: 52px; height: 72px; border-radius: 12px; background: #222; transition: box-shadow .15s; }
.ftile.on { color: #fff; }
.ftile.on canvas { box-shadow: 0 0 0 2.5px var(--red); }
.stile { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 92px; border-radius: 18px; background: rgba(255, 255, 255, .08); transition: background .15s, transform .15s var(--ease); }
.stile:active { transform: scale(.96); }
.stile .si { height: 34px; display: grid; place-items: center; }
.stile i { display: block; border: 2px solid rgba(255, 255, 255, .85); border-radius: 5px; }
.stile b { font-size: 14px; font-weight: 600; }
.stile small { font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: -4px; }
.stile.on { background: #fff; color: #000; }
.stile.on i { border-color: #000; }
.stile.on small { color: rgba(0, 0, 0, .55); }
/* Size: the four shapes, then fill or show all */
.p-row.shapes { gap: 6px; }
.stile.shape { height: 84px; gap: 4px; min-width: 0; padding: 0 2px; }
.stile.shape .si { height: 30px; }
.stile.shape b { font-size: 13px; }
.stile.shape small { font-size: 10.5px; white-space: nowrap; }
.fr-mini { position: relative; width: 14px; height: 20px; border-radius: 4px; border: 2px solid currentColor; flex: 0 0 14px; box-sizing: border-box; overflow: hidden; }
.fr-mini.fill { background: currentColor; opacity: .85; }
.fr-mini.fit::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; bottom: 4px; background: currentColor; opacity: .7; }
.cover-row { gap: 6px; }
.cover-row .seg { font-size: 14px; gap: 5px; padding: 0 4px; }
/* Stickers: the moving circle, the word stickers, a company's logo */
.ltile.mv .lt-im { padding: 4px; }
.ltile.mv canvas { width: 50px; height: 50px; }
.co-find { margin-top: 12px; }
.co-find .txin { height: 46px; }
.co-find .txin::-webkit-search-cancel-button { -webkit-appearance: none; }
.co-list { margin-top: 10px; min-height: 76px; align-items: flex-start; }
.co-list[hidden] { display: none; }
.ltile.co .lt-im { background: #fff; }
.ltile.co .lt-im img { max-height: 40px; }
.co-note { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.txin { flex: 1; min-width: 0; height: 48px; border-radius: 15px; border: 0; outline: none; background: rgba(255, 255, 255, .1); color: #fff; padding: 0 14px; font-size: 17px; }
.txin::placeholder { color: rgba(255, 255, 255, .4); }
.sw { flex: 0 0 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; }
.sw i { width: 30px; height: 30px; border-radius: 15px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: transform .15s; }
.sw.on i { box-shadow: 0 0 0 2.5px #000, 0 0 0 4.5px #fff; transform: scale(.86); }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.sgrid .ltile { flex: none; width: auto; }
.range { flex: 1; -webkit-appearance: none; appearance: none; height: 44px; background: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }

/* the tool row */
.rail { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: calc(var(--rail-h) + var(--sab)); padding: 2px 4px var(--sab); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  background: rgba(16, 16, 18, .86); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); border-top: .5px solid rgba(255, 255, 255, .08); }
.rail button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 44px; height: var(--rail-h); font-size: 11px; font-weight: 600; letter-spacing: .05px; color: rgba(255, 255, 255, .9); transition: color .15s, transform .15s var(--ease); }
.rail button:active { transform: scale(.92); }
.rail button .ri { position: relative; width: 26px; height: 26px; }
.rail button .dot { position: absolute; top: -3px; right: -6px; width: 8px; height: 8px; border-radius: 4px; background: var(--red); box-shadow: 0 0 0 2px #121214; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--pop); }
.rail button.used .dot { opacity: 1; transform: none; }
.rail button:disabled { opacity: .32; }
.rail button.on { color: var(--red); }

@media (min-width: 700px) {
  .rail { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-radius: 26px 26px 0 0; border: .5px solid rgba(255, 255, 255, .08); }
}

/* ------------------------------------------------------------------ a Mac or an iPad: the same app, laid out wider */
@media (min-width: 900px) {
  .scroll { padding-left: 40px; padding-right: 40px; }
  .scroll > .home-grid { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; align-items: start; }
  .home-grid .col-b { padding-top: 76px; }
  .home-grid .col-b .sec:first-child { margin-top: 0; }
  .drafts { margin: 0; padding: 0 0 4px; }
  #find .scroll > * { max-width: 980px; }
  #find .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 16px; }
  .chips { margin-left: auto; margin-right: auto; padding: 0 0 2px; flex-wrap: wrap; }   /* centred with the rest of Find */
  #numbers .scroll > * { max-width: 760px; }
  #numbers .tiles { grid-template-columns: repeat(3, 1fr); }
  #numbers .tiles .tile:last-child:nth-child(odd) { grid-column: auto; }
  /* sheets become centred cards */
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 520px; max-width: calc(100vw - 48px); margin: 0; padding-bottom: 20px; border-radius: 30px;
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .4s var(--ease), opacity .25s; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); }
  .sheet-wrap.on .sheet, .sheet-wrap.on .sheet.small { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.tall { top: 50%; height: min(780px, calc(100vh - 32px)); }
  .grabber { visibility: hidden; height: 2px; }
  .toast { top: 20px; }
}
/* a big Mac window: the tool panel sits beside the picture (top-aligned with it), so the picture never shrinks */
@media (min-width: 1100px) and (min-height: 600px) {
  .panel { left: min(calc(50% + var(--sw, 320px) / 2 + 32px), calc(100% - 418px)); right: auto; top: calc(var(--sat) + 72px); bottom: auto; width: 390px; max-width: none; margin: 0; transform: translateX(-12px); }
  .panel.on { transform: none; }
  .dock { left: 50%; right: auto; width: 640px; transform: translateX(-50%); }
  .dock.away { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
  .ed-top { padding: 0 24px; }
}
/* ================================================================== added for the build: sign-in, Ready for your phone,
   Settings, "Who filmed this?", More places, the Size panel's two shapes */
.avatar-btn { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 22px; transition: transform .16s var(--ease); }
.avatar-btn:active { transform: scale(.94); }
.readyc .np-head h2 { font-size: 22px; line-height: 28px; }
.rc-item .bb-ic { background: var(--red-soft); color: var(--red); }
.rc-item .bb-t b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-card .rc-item .bb-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-item .bb-chev svg { width: 18px; height: 18px; }
/* fix round 3: "From your phone" rows carry their own Delete, a round grey button at the end of the row (the row's top margin collapses through .dc-row, so 50% is the middle of the button) */
.rc-more .bb-ic { background: var(--fill); color: var(--ink); }
/* fix round 4 (HP4-4): its title may take two lines ("2 posts not in the Community yet" is cut at iPhone width otherwise) */
.rc-item.rc-more .bb-t b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 22px; }
.rc-more .bb-chev { transition: transform .2s var(--ease); }
.rc-more.open .bb-chev { transform: rotate(90deg); }
.dc-row { position: relative; }
.dc-row .big-btn { padding-right: 64px; }
.dc-del { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--fill); color: var(--ink2); transition: transform .16s var(--ease), background .15s; }
.dc-del svg { width: 19px; height: 19px; }
.dc-del:active { transform: translateY(-50%) scale(.92); background: var(--fill2); }
.home-tip { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: var(--card); }
.home-tip .sq-ic { flex: 0 0 34px; height: 34px; border-radius: 11px; }
.home-tip .sq-ic svg { width: 20px; height: 20px; }
.home-tip p { font-size: 15px; line-height: 20px; color: var(--ink); }
.t-cell b.none { color: var(--ink3); }
.t-cell em.down { color: var(--ink2); }
.t-cell em.flat { color: var(--ink2); font-weight: 500; }
.draft .pill-dark.who { top: auto; right: auto; left: 8px; bottom: 32px; }
/* review r2 (HP2-2): the post the page lost mid-edit, first in Drafts until it is opened again */
.draft.unfinished::before { content: ''; position: absolute; inset: 0; z-index: 2; border: 2px solid var(--red); border-radius: inherit; pointer-events: none; }
/* fix round 4 (HP4-1): its own class, so the Numbers sheet rows (.nf) never move it out of the tile */
.draft .pill-dark.nf-pill { top: 8px; right: auto; left: 8px; background: var(--red); }
.draft .pill-dark.who { display: block; line-height: 24px; padding: 0 7px; font-size: 11px; white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.find-status { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink2); margin: -2px 0 14px; }
.find-status .spin { width: 18px; height: 18px; flex: 0 0 18px; border-width: 2.2px; }
.find-note { font-size: 15px; line-height: 21px; color: var(--ink2); margin: -2px 2px 0; }
.grid .grp { font-size: 15px; font-weight: 600; color: var(--ink2); margin: 4px 2px -6px; }
.grid .grp:not(:first-child) { margin-top: 14px; }
.when.left { text-align: left; margin: 10px 4px 0; }
.delta.flat { color: var(--ink2); font-weight: 500; }
.lede { max-width: 560px; }

/* Send: places that cannot take this post, the More box, the share-only places */
.dtile.off { opacity: .45; }
.dtile.off .chk { box-shadow: inset 0 0 0 2px var(--ink3); background: none; }
.more-btn { width: 100%; text-align: left; min-height: 44px; }
.more-btn .later-t { color: var(--ink); font-weight: 600; font-size: 15px; }
.more-chev { width: 18px; height: 18px; margin-left: auto; color: var(--ink2); transition: transform .25s var(--ease); }
.more-btn.open .more-chev { transform: rotate(180deg); }
.more-btn .later-ic span { width: 30px; height: 30px; }
.more-box { margin-top: 6px; }
.share-only { margin-top: 10px; }
.so-row { display: flex; gap: 10px; flex-wrap: wrap; }
.so { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--card-sheet); box-shadow: inset 0 0 0 1.5px var(--sep); color: var(--ink); transition: background .15s, box-shadow .15s, transform .15s var(--ease); }
.so i { width: 22px; height: 22px; display: block; }
.so:active { transform: scale(.94); }
.so.on { background: var(--red); color: #fff; box-shadow: none; }
.so.off { opacity: .35; }
.so-note { font-size: 13px; line-height: 18px; color: var(--ink2); margin: 8px 2px 0; }
.desc-n.over { color: #D98A00; }
/* a long description: the counter takes two short lines on the right, the Write button never breaks */
.desc-foot .ai-btn { flex: none; white-space: nowrap; }
.desc-foot .desc-n { min-width: 0; text-align: right; line-height: 16px; padding-left: 8px; white-space: pre-line; }
.cta2.busy { color: var(--ink2); }
.cta2.busy .c2-ic { animation: pulse 1s ease-in-out infinite; }
.cta2.hot { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(237, 28, 36, .26); }
.cta2 .c2-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* posting rows: two buttons for the phone, a clock for "later" */
.rrow .pair { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rrow .pair .again { margin-top: 0; }
.rrow .again:disabled { opacity: .45; }
.rrow .again.soft { background: var(--fill); color: var(--ink); }
.rrow .wt { width: 28px; height: 28px; color: var(--ink2); }
.rrow .wt svg { stroke-width: 2; }
.rrow.wait, .rrow.phone { align-items: flex-start; }
.rrow.wait .d-ic, .rrow.wait .st, .rrow.phone .d-ic, .rrow.phone .st { margin-top: 2px; }
.res-notes:empty { display: none; }
.res-notes { padding: 10px 6px 0; }
.res-notes p { font-size: 14px; line-height: 19px; color: var(--ink2); }
.text-link { display: block; width: 100%; min-height: 44px; margin-top: 6px; text-align: center; font-size: 16px; font-weight: 600; color: var(--red); }
#readySheet .res-list { margin-bottom: 6px; }
.cta.gray:active { background: var(--fill); }
.cta.danger { background: var(--red); }
.ask-no { margin-top: 10px; }
.sheet-wrap.top { z-index: 75; }
.toast span { overflow: hidden; text-overflow: ellipsis; }
.toast.long { white-space: normal; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; border-radius: 20px; width: max-content; max-width: min(420px, calc(100% - 32px)); line-height: 20px; }
.toast.long i { flex: 0 0 24px; align-self: flex-start; }

/* "Who filmed this?" */
#whoSheet .big-btn { margin-top: 10px; }
#whoSheet .big-btn:last-child { margin-bottom: 6px; }

/* the Size panel: two shapes of the picture in the Status frame */
.stile .fr { position: relative; width: 22px; height: 34px; border-radius: 5px; overflow: hidden; }
.stile .fr u { position: absolute; left: -4px; right: -4px; background: currentColor; opacity: .55; }
.stile .fr.fill u { top: -2px; bottom: -2px; }
.stile .fr.fit u { top: 11px; height: 12px; left: 0; right: 0; }

/* Settings */
.set-card { overflow: hidden; }
.set-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px 8px 12px; }
.set-row + .set-row::before, .set-row + .set-act::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--sep); }
.set-row .d-ic, .set-act .d-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: var(--fill2); display: grid; place-items: center; color: var(--ink); }
.set-row .d-ic svg, .set-act .d-ic svg { width: 21px; height: 21px; }
.set-row b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; }
.set-row b em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); margin-left: 6px; }
.set-row small { display: block; font-size: 13px; line-height: 17px; color: var(--ink2); }
.set-row.small { min-height: 48px; }
.set-act { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px 8px 12px; font-size: 16px; font-weight: 600; color: var(--red); text-align: left; }
.set-act .d-ic { color: var(--red); background: var(--red-soft); }
.set-act:active { background: var(--fill2); }
.set-card.danger { margin-top: 18px; }
.mini { flex: 0 0 auto; height: 34px; padding: 0 13px; border-radius: 17px; background: var(--fill); font-size: 14px; font-weight: 600; }
.mini:disabled { opacity: .45; }
/* review 2026-10-28 (flow-test p81): a full 44 px to tap in Settings' rows (Remove a key) */
.set-row .mini { height: 44px; border-radius: 22px; padding: 0 16px; }
.set-wait { display: grid; place-items: center; height: 160px; }
.empty.pad { padding: 14px 16px; }
#setSheet .label:first-child { margin-top: 4px; }

/* ================================================================== sign-in: Face ID only */
.gate { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(var(--sat) + 20px) 24px calc(var(--sab) + 20px); opacity: 0; transition: opacity .3s ease; }
.gate.on { opacity: 1; }
.gate .glow { position: fixed; }
.gate-in { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; max-width: 440px; margin: 0 auto; padding-top: 24px; }
.gate-logo { width: 92px; height: 92px; border-radius: 46px; box-shadow: 0 10px 30px rgba(237, 28, 36, .22), 0 0 0 .5px rgba(0, 0, 0, .06); }
.gate-title { font-size: 30px; line-height: 36px; font-weight: 700; margin-top: 20px; letter-spacing: .2px; }
.gate-sub { font-size: 17px; line-height: 23px; color: var(--ink2); margin-top: 6px; max-width: 320px; }
.gate-body:empty { display: none; }
.gate-body { width: 100%; margin-top: 18px; text-align: left; }
.gate-foot { position: relative; flex: 0 0 auto; width: 100%; max-width: 440px; margin: 0 auto; padding-top: 18px; text-align: center; }
.gate-err { min-height: 22px; font-size: 15px; line-height: 20px; color: var(--red); margin: 0 4px 10px; }
.gate-err:empty { min-height: 0; margin: 0; }
.gate-note { font-size: 14px; line-height: 19px; color: var(--ink2); margin-top: 12px; }
.gate[data-mode="guide"] .gate-in { justify-content: flex-start; padding-top: 4px; }
.gate[data-mode="guide"] .gate-logo { width: 64px; height: 64px; }
.gate[data-mode="guide"] .gate-title { font-size: 26px; line-height: 32px; margin-top: 14px; }
html.gated #app { visibility: hidden; }
.cta .c-ic { width: 24px; height: 24px; display: block; }
.cta .c-ic svg { stroke-width: 2; }
.cta.busy .c-ic { animation: pulse 1s ease-in-out infinite; }
.cta.busy:disabled { background: var(--red); color: #fff; opacity: .8; }

/* the Add to Home Screen pictures */
.a2hs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.a2hs li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 2px rgba(17, 17, 19, .05); }
.gd-n { position: absolute; z-index: 1; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px var(--card); }
.gd-pic { flex: 0 0 132px; width: 132px; height: 85px; }
.gd-pic .gd-scr { fill: var(--bg); stroke: var(--sep); stroke-width: 1; }
.gd-pic .gd-line { fill: var(--fill); stroke: none; }
.gd-pic .gd-bar { fill: var(--glass-strong); stroke: none; }
.gd-pic .gd-ink { stroke: var(--ink); stroke-width: 1.6; fill: none; }
.gd-pic .gd-ink.faint { stroke: var(--ink3); }
.gd-pic .gd-hi { fill: var(--red-soft); stroke: var(--red); stroke-width: 2; }
.gd-pic .gd-row { fill: var(--card); stroke: var(--sep); stroke-width: 1; }
.gd-pic .gd-row.hi { fill: var(--red-soft); stroke: var(--red); stroke-width: 1.6; }
.gd-pic .gd-hi-box { fill: var(--red-soft); stroke: var(--red); stroke-width: 1.6; }
.gd-pic .gd-t { font-family: var(--font); font-weight: 600; font-size: 9.5px; fill: var(--ink); stroke: none; }
.gd-pic .gd-t.faint { fill: var(--ink3); font-weight: 500; }
.gd-pic .gd-t.red { fill: var(--red); }
.gd-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gd-txt b { font-size: 16px; line-height: 21px; font-weight: 600; }
.gd-txt small { font-size: 13px; line-height: 17px; color: var(--ink2); }

/* the 40 px pill buttons keep their look, but a finger gets the full 44 px (Apple's smallest tap target) */
.paste-btn, .ai-btn, .rrow .again, .chip, .sf-x, .mini, .tile .add-mini { position: relative; }
.paste-btn::after, .ai-btn::after, .rrow .again::after, .chip::after, .mini::after, .tile .add-mini::after { content: ''; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.chip::after { top: -3px; bottom: -3px; }
.mini::after { top: -5px; bottom: -5px; }
.tile .add-mini::after { top: -6px; bottom: -6px; }
.sf-x::after { content: ''; position: absolute; inset: -4px; border-radius: 22px; }
/* the chips row scrolls sideways, which clips anything outside it: room for the taller tap area, same look and place */
.chips { margin-top: 11px; margin-bottom: -3px; padding-top: 3px; padding-bottom: 5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================================================================== 2026-10-28 (the finish): one button per platform, the
   places that go by themselves, Ready for your phone, the Sent list (js/places.js) */
.pl-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 4px 8px; }
.pl-head .label { margin: 0; }
.pl-words { min-height: 44px; padding: 0 2px; font-size: 15px; font-weight: 600; color: var(--red); }
.pl-making { display: flex; align-items: center; gap: 12px; margin: -2px 4px 10px; font-size: 14px; line-height: 19px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.pl-making .pm-t { flex: none; }
.pl-making .bar { flex: 1; height: 4px; margin: 0; }
.pl-making.mac, .pl-making.bad { color: var(--ink); }
.pl-making.mac .pm-t, .pl-making.bad .pm-t { flex: 1; }
/* review r2 (HP2-5): "It didn't finish on this phone." with its Try again */
.pl-making .pm-retry { flex: none; margin: 4px 0; }
.pl-making .pm-retry[hidden] { display: none; }

/* WhatsApp: two big rows */
.pl-wa { overflow: hidden; }
.pl-wa:empty { display: none; }
/* fix round 5 (HP5-5): WhatsApp while it is off: one small muted line under the tiles, not two big rows over them */
.pl-wa.pl-wa-off { margin-top: 10px; background: none; box-shadow: none; border-radius: 14px; }
.pw-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px 6px 12px; border-radius: 14px; background: var(--fill2); text-align: left; transition: background .15s; }
.pw-line:active { background: var(--fill); }
.pwl-ic { flex: 0 0 22px; height: 22px; display: grid; place-items: center; color: var(--ink3); }
.pwl-ic svg { width: 20px; height: 20px; }
.pwl-t { flex: 1; min-width: 0; font-size: 14px; line-height: 19px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-line .pw-off { height: 24px; padding: 0 9px; font-size: 12.5px; }
.pw { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 12px 14px 12px 12px; text-align: left; transition: background .15s; }
.pw + .pw::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; height: .5px; background: var(--sep); }
.pw:active { background: var(--fill2); }
.pw-ic, .pt-ic, .pa-ic, .wd-ic { display: grid; place-items: center; background: var(--fill2); color: var(--ink); }
.pw-ic { flex: 0 0 42px; height: 42px; border-radius: 13px; }
.pw-ic svg { width: 25px; height: 25px; }
.pw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pw-t b { font-size: 16px; line-height: 21px; font-weight: 600; }
.pw-t small { font-size: 13.5px; line-height: 18px; color: var(--ink2); }
.pw-go { flex: 0 0 38px; height: 38px; display: grid; place-items: center; }
.pw-go .go { width: 38px; height: 38px; border-radius: 19px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(237, 28, 36, .28); }
.pw-go .go svg { width: 19px; height: 19px; stroke-width: 2.1; }
.pw-go .ok, .pa-s .ok { width: 30px; height: 30px; border-radius: 15px; background: var(--green); color: #fff; display: grid; place-items: center; animation: popin .35s var(--pop); }
.pw-go .ok svg, .pa-s .ok svg { width: 17px; height: 17px; stroke-width: 2.8; }
.pw-go .wt, .pa-s .wt { width: 26px; height: 26px; color: var(--ink2); }
.pw-go .spin, .pa-s .spin { width: 22px; height: 22px; border-width: 2.2px; }
.pw.off .pw-ic, .pw.off .pw-t b { opacity: .5; }
.pw.done .pw-t small, .pt.done .pt-t small { color: var(--green); font-weight: 600; }

/* the other apps: a two-column grid of tiles (an odd last one takes the whole row) */
.pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pt { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 64px; padding: 11px 12px; border-radius: 18px; background: var(--card-sheet); text-align: left; transition: transform .16s var(--ease), background .15s; }
.pt:active { transform: scale(.97); }
.pl-grid .pt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pt-ic { position: relative; flex: 0 0 38px; height: 38px; border-radius: 12px; }
.pt-ic svg { width: 22px; height: 22px; }
.pt-ok { position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card-sheet); animation: popin .35s var(--pop); }
.pt-ok svg { width: 11px; height: 11px; stroke-width: 3; }
.pt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pt-t b { font-size: 15px; line-height: 19px; font-weight: 600; }
.pt-t small { font-size: 12.5px; line-height: 16px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* fix round 3 (HP3-4): "Shared 10:34 pm" stays on one line in the half-width tiles (a little less space after the icon
   and at the right edge of a grid tile, and the time a touch smaller once it is shared) */
.pl-grid .pt { gap: 9px; padding-right: 8px; }
.pl-grid .pt.done .pt-t small { font-size: 12px; letter-spacing: -.12px; }
.pt.off .pt-ic, .pt.off .pt-t b, .pt.muted .pt-ic { opacity: .5; }
.pl-hint { font-size: 13px; line-height: 18px; color: var(--ink2); margin: 10px 4px 0; }

/* the places that go by themselves: a switch, then a live state */
.pl-auto { overflow: hidden; }
.pa { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 11px 14px 11px 12px; text-align: left; }
.pa + .pa::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--sep); }
button.pa:active { background: var(--fill2); }
.pa-ic { flex: 0 0 36px; height: 36px; border-radius: 12px; align-self: flex-start; margin-top: 1px; }
.pa-ic svg { width: 21px; height: 21px; }
.pa-ic .pi-img, .wd-ic .pi-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pa-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pa-t b { font-size: 16px; line-height: 21px; font-weight: 600; }
.pa-t small { font-size: 13px; line-height: 18px; color: var(--ink2); }
.pa.fail .pa-t small { color: var(--ink); }
.pa-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.pa-s { flex: 0 0 30px; min-height: 30px; display: grid; place-items: center; align-self: flex-start; margin-top: 3px; }
.pa-s .bad { width: 28px; height: 28px; color: var(--red); }
.pa-s .bad svg { stroke-width: 2.2; }
.psw { position: relative; flex: 0 0 51px; width: 51px; height: 31px; border-radius: 16px; background: var(--fill); transition: background .2s; }
.psw i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .25s var(--ease); }
.sw-row.on .psw { background: var(--red); }
.sw-row.on .psw i { transform: translateX(20px); }
.sw-row { align-items: center; }
.sw-row .pa-ic { align-self: center; margin-top: 0; }
.sw-row.off .pa-ic, .sw-row.off .pa-t b, .sw-row.off .psw { opacity: .45; }
.sw-row[aria-disabled="true"] .psw { opacity: .5; }
.mini { display: inline-flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; color: var(--ink); }
.mini.red { background: var(--red-soft); color: var(--red); }
.mini svg { width: 15px; height: 15px; stroke-width: 2.2; }
a.mini { position: relative; }
a.mini::after { content: ''; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
.more-btn[hidden] { display: none; }
.send-line { font-size: 14px; line-height: 19px; color: var(--ink2); text-align: center; margin: 0 8px 10px; }
.send-line.bad { color: var(--red); }
.cta-row.one { grid-template-columns: 1fr; }
#readySheet .pl-wa { margin-top: 2px; }
#readySheet .text-link { margin-top: 10px; }

/* Home: the Ready list's pictures, and the Sent list */
.rc-item .bb-ic.th { overflow: hidden; background: #000; }
.rc-item .bb-ic.th img { width: 100%; height: 100%; object-fit: cover; }
.sent-list { overflow: hidden; }
.srow { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 92px; padding: 12px 14px 12px 12px; text-align: left; transition: background .15s; }
.srow + .srow::before { content: ''; position: absolute; top: 0; left: 70px; right: 0; height: .5px; background: var(--sep); }
.srow:active { background: var(--fill2); }
.s-th { position: relative; flex: 0 0 46px; width: 46px; height: 82px; border-radius: 10px; overflow: hidden; background: #1c1c1e; color: #fff; display: grid; place-items: center; }
.s-th img { width: 100%; height: 100%; object-fit: cover; }
.s-th svg { width: 22px; height: 22px; }
.s-th.none { background: var(--fill); color: var(--ink2); }
.s-th.big { flex-basis: 72px; width: 72px; height: 128px; border-radius: 14px; }
.s-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-t b { font-size: 15.5px; line-height: 20px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-t small { font-size: 13px; line-height: 18px; color: var(--ink2); margin-top: 1px; }
.s-t small em { font-style: normal; font-weight: 600; color: var(--red); }
.s-marks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.s-marks small { margin: 0; }
.mk { width: 24px; height: 24px; border-radius: 7px; background: var(--fill2); color: var(--ink); display: grid; place-items: center; }
.mk svg { width: 14px; height: 14px; }
.mk.wait { color: var(--ink3); }
.mk.bad { background: var(--red-soft); color: var(--red); }
.s-n { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.s-n b { font-size: 17px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-n small { font-size: 12px; color: var(--ink2); }
.tab-space.small { height: 18px; }

/* the week */
.week { padding: 14px 16px 14px; margin-top: 4px; }
.wk-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wk-top > div { display: flex; flex-direction: column; min-width: 0; }
.wk-top .lbl { font-size: 13px; line-height: 17px; }
.wk-big { font-size: 25px; line-height: 31px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.wk-top small { font-size: 12px; line-height: 16px; color: var(--ink2); }
.wk-per { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: .5px solid var(--sep); }
.wk-p { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 7px; border-radius: 15px; background: var(--fill2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-p i { width: 17px; height: 17px; display: block; }
.wk-best { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; font-size: 15px; line-height: 20px; }
.wk-best i { flex: 0 0 18px; width: 18px; height: 18px; color: var(--green); }
.wk-best i svg { stroke-width: 2.4; }
.wk-best b { font-weight: 600; }
.wk-note { font-size: 12.5px; line-height: 17px; color: var(--ink2); margin-top: 11px; }

/* one post */
.ps-top { display: flex; align-items: center; gap: 15px; margin: 4px 2px 6px; }
.ps-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-t b { font-size: 18px; line-height: 23px; font-weight: 700; }
.ps-t small { font-size: 14px; color: var(--ink2); }
.ps-words p { font-size: 15px; line-height: 21px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Words for each app */
#wordsSheet .ns-sub { margin: -4px 0 10px; }
.wd { padding: 12px 14px 12px; margin-bottom: 10px; }
.wd-h { display: flex; align-items: center; gap: 9px; }
.wd-h b { font-size: 15px; font-weight: 600; }
.wd-ic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; }
.wd-ic svg { width: 18px; height: 18px; }
.wd-ic .pi-img { width: 24px; height: 24px; }
.wd-l { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 10px; }
.wd-ta, .wd-in { display: block; width: 100%; margin-top: 8px; border: 0; outline: none; border-radius: 12px; background: var(--fill2); color: var(--ink); font-size: 16px; line-height: 21px; padding: 10px 12px; resize: none; -webkit-appearance: none; appearance: none; }
.wd-l .wd-ta, .wd-l .wd-in { margin-top: 5px; font-weight: 400; }
.wd-in { height: 46px; }
.wd-ta:focus, .wd-in:focus { box-shadow: 0 0 0 2px var(--red); }
.wd-n { display: block; text-align: right; font-size: 12px; color: var(--ink3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.wd-n.over { color: #D98A00; font-weight: 600; }
.why-text { color: var(--ink); line-height: 21px; margin: -4px 0 16px; }
#whySheet .cta { margin-bottom: 4px; }
.wk-p b { margin-left: 2px; }
.wk-best span { flex: 1; min-width: 0; }
.ps-list { margin-top: 12px; }
.wk-best { align-items: flex-start; }
.wk-best i { margin-top: 1px; }

/* review r2 2026-10-28 (HP2-3): "Where it went" shares a sent post again */
.ps-share { margin: 14px 0 4px; }
.ps-share .c-ic { width: 22px; height: 22px; }

/* 2026-10-29: the sign-in code (the lock screen leads with it; Face ID is a small second choice) */
.code-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.code-form[hidden] { display: none; }
.gate-code { margin-top: 26px; max-width: 360px; text-align: center; }
.code-field { display: block; position: relative; height: 68px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 .5px var(--sep), 0 6px 22px rgba(17, 17, 19, .06); transition: box-shadow .18s; }
.code-field:focus-within { box-shadow: 0 0 0 2px var(--red), 0 6px 22px rgba(237, 28, 36, .12); }
.code-form.bad .code-field { box-shadow: 0 0 0 2px var(--red); animation: nudge .32s var(--ease); }
.code-field input { width: 100%; height: 100%; border: 0; outline: none; background: none; color: var(--ink); text-align: center;
  font: 600 32px/1 var(--font); letter-spacing: 3px; font-variant-numeric: tabular-nums; padding: 0 16px; -webkit-appearance: none; appearance: none; caret-color: var(--red); }
.code-field input::placeholder { color: var(--ink3); letter-spacing: 3px; }
.code-form .gate-err { margin: -2px 4px 0; min-height: 0; }
.code-form .gate-err:empty { display: none; }
.code-form .cta.busy { opacity: .8; }
#stepSheet .code-form { margin-top: 2px; }
#stepSheet .code-field { height: 62px; background: var(--card-sheet); box-shadow: 0 0 0 .5px var(--sep); }
#stepSheet .code-field:focus-within { box-shadow: 0 0 0 2px var(--red); }
#stepSheet .code-field input { font-size: 28px; }
#stepSheet .gate-err { margin: 12px 4px 0; }
#stepSheet .gate-err:empty { margin: 0; }
/* fix round 5 (HP5-3): where a new code comes from, under the box */
.st-hint { font-size: 14px; line-height: 19px; color: var(--ink2); margin: 12px 6px 0; text-align: center; }
.st-hint[hidden] { display: none; }
.text-link.small { font-size: 15px; font-weight: 600; margin-top: 2px; }
.gate[data-mode="lock"] .gate-note { font-size: 13.5px; line-height: 19px; }
.gate[data-mode="lock"] .gate-foot { padding-top: 10px; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .code-form.bad .code-field { animation: none; } }

/* a short note with one OK (WhatsApp off for now, Turn on Face ID) */
.info-ic { width: 60px; height: 60px; margin: 18px auto 4px; border-radius: 20px; background: var(--fill2); color: var(--ink2); display: grid; place-items: center; }
.info-ic[hidden] { display: none; }
.info-ic svg { width: 32px; height: 32px; }
.sh-head.center { justify-content: center; text-align: center; }
.ns-sub.center { text-align: center; margin: -6px 6px 18px; line-height: 21px; }
#infoSheet .cta { margin-bottom: 2px; }

/* 2026-10-29, the WhatsApp lock: WhatsApp Status, the Community and the website switch shown off ("Off for now") */
.pw.locked .pw-ic, .pw.locked .pw-t b { opacity: .45; }
.pw.locked .pw-t small { color: var(--ink3); }
.pw-off { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 14px; background: var(--fill); color: var(--ink2); font-size: 13px; font-weight: 600; }
.pa.locked .pa-ic, .pa.locked .pa-t b { opacity: .45; }
.pa.locked .pa-t small { color: var(--ink3); }
.pa.locked .pw-off { flex: 0 0 auto; }
.rd-save { width: 100%; margin-top: 12px; }
