/*
VOICE: a calm, confident studio tool — quick to read between classes.
IDEA: the studio's whiteboard schedule and member cards, made tidy.
PICTURE: the live dashboard numbers and the day's timeline.
COLOUR and TYPE: warm off-white ground, white cards, black ink, the logo's yellow as the one accent; Rubik.
LAYOUT: one phone-width column, bottom tab bar, bottom sheets for every edit.
*/
:root {
  color-scheme: light;
  --bg: #F6F5F2; --card: #FFFFFF; --line: #E7E5E0; --line2: #E2E0DA; --ink: #141414; --muted: #66666D; --faint: #9A9AA0;
  --y: #F0C03A; --y-ink: #8A6608; --y-soft: #FBF1D6; --black: #0B0B0C;
  --red: #C2412D; --red-soft: #FBE4E0; --green: #1E8048; --green-soft: #E3F3EA; --blue: #2F62C9; --blue-soft: #E5ECFB; --pink: #A23C93; --pink-soft: #F6E3F2;
  --r: 18px; --sh: 0 1px 2px rgba(20, 20, 20, .04);
}
* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font: 15px/1.45 Rubik, system-ui, -apple-system, sans-serif; overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 96px; }

/* header */
.top { background: var(--black); color: #F4F4F2; padding: max(14px, env(safe-area-inset-top)) 18px 14px; border-radius: 0 0 22px 22px; display: flex; align-items: center; justify-content: space-between; }
.top img { height: 42px; width: auto; display: block; }
.top .acts { display: flex; gap: 10px; align-items: center; }
.ibtn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.top .ibtn { background: #161618; border-color: #2A2A2E; color: #F4F4F2; }
.ibtn .dot { position: absolute; top: 9px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--y); }
.me { width: 44px; height: 44px; border-radius: 50%; background: var(--y); color: var(--black); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; border: 0; }

.ph { display: flex; align-items: center; gap: 12px; padding: max(18px, env(safe-area-inset-top)) 18px 8px; }
.ph h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.2px; line-height: 1.15; }
.ph .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ph .grow { flex: 1; }
.hello { padding: 18px 18px 6px; }
.hello .d { font-size: 13px; color: var(--muted); }
.hello h1 { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.hello .s { margin-top: 6px; font-size: 14px; color: var(--muted); }

.sec { margin: 18px 18px 8px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.sec .link { color: var(--y-ink); font-weight: 600; background: none; border: 0; padding: 4px 0; }
.wrap { padding: 0 18px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pad { padding: 16px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.k .l { font-size: 13px; color: var(--muted); }
.k .v { font-size: 26px; font-weight: 700; margin-top: 6px; line-height: 1.1; white-space: nowrap; }
.k .h { font-size: 12px; color: var(--muted); margin-top: 4px; }
.k.c { text-align: center; padding: 14px 10px; }
.k.c .v { font-size: 24px; font-weight: 800; margin-top: 0; }
.k.c .l { font-size: 12px; margin-top: 2px; }
.up { color: var(--green) !important; } .down { color: var(--red) !important; } .gold { color: var(--y-ink) !important; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill.y { background: var(--y); color: var(--black); } .pill.r { background: var(--red-soft); color: var(--red); } .pill.g { background: var(--green-soft); color: var(--green); }
.pill.b { background: var(--blue-soft); color: var(--blue); } .pill.p { background: var(--pink-soft); color: var(--pink); } .pill.n { background: #EEEDE9; color: var(--muted); }

/* bars */
.bars { direction: ltr; margin-top: 18px; height: 140px; display: flex; align-items: flex-end; gap: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; border-radius: 8px; background: #E4E2DC; min-height: 4px; }
.bars .b.on i { background: var(--y); }
.bars .b span { font-size: 11px; color: var(--muted); }
.bars .b.on span { color: var(--ink); font-weight: 600; }
.bars .b em { font-style: normal; font-size: 10px; color: var(--muted); }

/* lists */
.list > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; background: none; border: 0; text-align: start; }
.row .m { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row .e { font-size: 13px; color: var(--muted); text-align: end; white-space: nowrap; }
.chev { color: #B5B3AD; }
.av { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ac-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; width: 100%; background: none; border: 0; text-align: start; }
.ac-head .tt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.ac-head .n { font-size: 13px; font-weight: 700; }
.ac-body { padding: 2px 16px 10px; border-top: 1px solid var(--line); }
.ac-body .li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; width: 100%; background: none; border: 0; text-align: start; }
.ac-body .li span:last-child { color: var(--muted); white-space: nowrap; }
.empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.demo { text-align: center; font-size: 12px; color: var(--faint); margin: 22px 18px 0; }
.demo button { background: none; border: 0; color: var(--y-ink); font-weight: 600; padding: 4px; }

/* controls */
.btn { height: 50px; border-radius: 16px; border: 0; background: var(--y); color: var(--black); font-weight: 700; font-size: 15px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--ink); font-weight: 600; }
.btn.dark { background: var(--black); color: #fff; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { height: 40px; border-radius: 12px; font-size: 13px; padding: 0 14px; }
.btn:disabled { opacity: .45; }
.add { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--y); color: var(--black); display: inline-flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 0 12px; height: 34px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); background: var(--card); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip.on { background: var(--y); color: var(--black); border-color: var(--y); font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.seg button { height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg button.on { background: var(--y); color: var(--black); font-weight: 700; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 13px; color: var(--muted); }
.in { height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); padding: 0 14px; font-size: 16px; outline: 0; width: 100%; }
textarea.in { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.in:focus { border-color: var(--y-ink); box-shadow: 0 0 0 3px var(--y-soft); }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sw { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sw .m { flex: 1; } .sw .t { font-weight: 600; font-size: 15px; } .sw .s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.tg { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: #D6D4CE; position: relative; flex: none; margin: 0; cursor: pointer; transition: background .2s; }
.tg::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s; }
.tg:checked { background: var(--y); }
.tg:checked::after { transform: translateX(-20px); }
.days7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days7 button { height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font-weight: 600; }
.days7 button.on { background: var(--y); border-color: var(--y); color: var(--black); }
:focus-visible { outline: 2px solid var(--y-ink); outline-offset: 2px; }

/* calendar */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 12px 18px 4px; }
.week button { text-align: center; padding: 8px 0; border-radius: 14px; border: 0; background: transparent; }
.week button .w { font-size: 11px; color: var(--muted); display: block; }
.week button .n { font-size: 17px; font-weight: 600; margin-top: 4px; display: block; }
.week button .c { width: 5px; height: 5px; border-radius: 50%; background: var(--line2); margin: 4px auto 0; display: block; }
.week button.today .n { color: var(--y-ink); }
.week button.on { background: var(--y); }
.week button.on .w, .week button.on .n { color: var(--black); }
.week button.on .c { background: var(--black); }
.wnav { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.wnav b { font-size: 14px; }
.slot { display: flex; gap: 12px; }
.slot .tm { width: 46px; font-size: 13px; color: var(--muted); padding-top: 14px; flex: none; }
.slot.now .tm { color: var(--y-ink); font-weight: 600; }
.cls { flex: 1; padding: 12px 14px; text-align: start; border: 1px solid var(--line); background: var(--card); border-radius: 16px; width: 100%; }
.slot.now .cls { border: 1.5px solid var(--y); }
.slot.past .cls { opacity: .6; }
.cls .t { font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cls .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.meter { margin-top: 10px; height: 6px; border-radius: 99px; background: #E4E2DC; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.meter i.full { background: var(--y); }
.cls .f { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; color: var(--muted); }
.coachdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }

/* attendance */
.att { display: flex; gap: 6px; }
.att button { width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--faint); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.att button.yes { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.att button.no { background: var(--red-soft); border-color: var(--red-soft); color: var(--red); }

/* funnel */
.funnel { display: flex; gap: 8px; margin-top: 14px; }
.funnel > div { flex: 1; text-align: center; }
.funnel i { display: block; height: 6px; border-radius: 99px; background: var(--y); }
.funnel b { display: block; font-size: 18px; font-weight: 800; margin-top: 8px; }
.funnel span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* profile */
.prof { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 18px 4px; }
.prof .av { width: 76px; height: 76px; font-size: 26px; }
.prof h2 { margin: 10px 0 2px; font-size: 22px; font-weight: 800; }
.prof .s { color: var(--muted); font-size: 13px; }
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 18px 0; }
.qa a, .qa button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; }
.qa svg { color: var(--y-ink); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: end; }

/* nav */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav div { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px max(10px, env(safe-area-inset-bottom)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); padding: 6px 0; }
.nav a.on { color: var(--y-ink); font-weight: 600; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(11, 11, 12, .38); z-index: 40; opacity: 0; transition: opacity .22s; }
.scrim.open { opacity: 1; animation: scrimIn .22s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 520px; margin: 0 auto; background: var(--bg); border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; overflow: auto; transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); padding: 8px 18px max(22px, env(safe-area-inset-bottom)); }
.sheet.open { transform: none; animation: sheetUp .26s cubic-bezier(.2, .8, .2, 1); }
.sheet:not(.open) { transition: transform .22s ease-in; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes scrimIn { from { opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: #D6D4CE; margin: 4px auto 10px; }
.sheet h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.sheet .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.sheet form, .sheet .stack { display: flex; flex-direction: column; gap: 12px; }
.sheet .acts { display: flex; gap: 10px; margin-top: 6px; }
.sheet .acts .btn { flex: 1; }

.toast { pointer-events: none; position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; z-index: 60; opacity: 0; transition: .22s; max-width: calc(100% - 36px); text-align: center; }
.toast.open { opacity: 1; transform: translate(-50%, 0); }

.view { animation: in .22s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } .sheet, .scrim, .toast { transition: none; animation: none; } }
.cpk input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.cpk input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: pointer; }
.cpk input[type=range] { direction: rtl; }

.wa-mini { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--green); display: inline-flex; align-items: center; justify-content: center; }

/* ===== polish pass: depth, touch feedback, a floating dock ===== */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
:root { --sh: 0 1px 1px rgba(20, 18, 12, .03), 0 2px 6px rgba(20, 18, 12, .04); --sh2: 0 10px 30px rgba(20, 18, 12, .10), 0 2px 8px rgba(20, 18, 12, .06); --ease: cubic-bezier(.22, .9, .25, 1); }
#app { padding-bottom: 118px; }
.card { border-color: #ECEAE5; }
.k .v, .kv span:last-child, .bars em, .row .e, .meter + .f, .slot .tm { font-variant-numeric: tabular-nums; }

/* every tappable thing answers the finger */
.btn, .add, .ibtn, .chip, .seg button, .days7 button, .week button, .qa a, .qa button, .wa-mini, .me, button.card, a.card, button.row, a.row, .cls, .att button, .nav a {
  transition: transform .14s var(--ease), background-color .18s, border-color .18s, color .18s, box-shadow .18s, opacity .18s; }
.btn:active, .add:active, .ibtn:active, .chip:active, .wa-mini:active, .me:active, .qa a:active, .qa button:active, .att button:active { transform: scale(.96); }
button.card:active, a.card:active, .cls:active { transform: scale(.985); }
button.row:active, a.row:active { background: #F5F4F0; }
.btn { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 14px rgba(240, 192, 58, .28); letter-spacing: -.1px; }
.btn.ghost, .btn.danger, .btn.dark, .btn:disabled { box-shadow: none; }
.btn.ghost { background: var(--card); }
.btn.ghost:active { background: #F2F1ED; }
.add { box-shadow: 0 4px 14px rgba(240, 192, 58, .32); }
.chip.on, .seg button.on, .days7 button.on { box-shadow: 0 2px 8px rgba(240, 192, 58, .30); }
.seg { background: #EFEEEA; border-color: transparent; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .06); }

/* page headers stay put and blur what scrolls under them */
.ph { position: sticky; top: 0; z-index: 15; background: rgba(246, 245, 242, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); padding-bottom: 10px; }
.ph h1 { letter-spacing: -.4px; }
.ph .ibtn, .ph .add, .ph .btn.sm { flex: none; }
.ibtn { border-color: #E9E7E2; box-shadow: var(--sh); }
.top { box-shadow: 0 8px 24px rgba(11, 11, 12, .18); }
.top .ibtn { box-shadow: none; }
.ibtn .dot { box-shadow: 0 0 0 2px var(--black); animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.25); } }

/* inputs */
.in, .search { border-color: #E6E4DE; transition: border-color .18s, box-shadow .18s; }
.in:focus, .search:focus-within { border-color: var(--y); box-shadow: 0 0 0 4px rgba(240, 192, 58, .22); }
.tg { transition: background .25s var(--ease); } .tg::after { transition: transform .25s var(--ease); }

/* the dock: a floating black bar, the one bold element */
.nav { left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(11, 11, 12, .92); border: 1px solid rgba(255, 255, 255, .06); border-radius: 24px; box-shadow: 0 14px 34px rgba(11, 11, 12, .28); max-width: 496px; margin: 0 auto; }
.nav div { padding: 6px; }
.nav a { color: #9C9CA3; border-radius: 18px; padding: 8px 0 7px; gap: 4px; font-weight: 500; position: relative; }
.nav a.on { color: var(--y); font-weight: 600; background: rgba(240, 192, 58, .12); }
.nav a:active { transform: scale(.94); }

/* sheets and toasts */
.scrim { background: rgba(11, 11, 12, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(11, 11, 12, .16); transition: transform .32s var(--ease); }
.sheet.open { animation: sheetUp .34s var(--ease); }
.sheet .grab { width: 44px; background: #D9D7D1; }
.toast { background: rgba(20, 20, 20, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 12px 20px; font-weight: 500; bottom: 104px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transition: opacity .22s, transform .3s var(--ease); }

/* loading: a quiet shimmer instead of the word */
.skel { border-radius: var(--r); background: linear-gradient(90deg, #EDEBE6 0%, #F6F5F1 40%, #EDEBE6 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* small details */
.pill { letter-spacing: .1px; }
.meter { background: #ECEAE4; } .meter i { transition: width .5s var(--ease); }
.list { overflow: hidden; }
.qa a, .qa button { box-shadow: var(--sh); border-color: #ECEAE5; }
.view { animation: in .28s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
::selection { background: rgba(240, 192, 58, .45); }
@media (prefers-reduced-motion: reduce) { *, .view, .sheet, .toast, .skel, .ibtn .dot { animation: none !important; transition: none !important; } }
.sw-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- interaction polish ---------- */
:root { --t-fast: .16s; --t-mid: .28s; }
.sheet { max-height: calc(var(--vvh, 100dvh) * .92); overscroll-behavior: contain; will-change: transform; }
.sheet.swap { animation: none; }
.sheet .grab { cursor: grab; touch-action: none; padding: 6px 0; background-clip: content-box; height: 17px; margin: -2px auto 4px; }
.sheet .sx { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ECEAE4; color: #3A3A40; display: flex; align-items: center; justify-content: center; z-index: 2; transition: transform var(--t-fast), background var(--t-fast); }
.sheet .sx:active { transform: scale(.9); background: #E0DED7; }
.sheet > h2 { padding-inline-end: 44px; }
/* a button that is working: spinner instead of its label, no second tap */
.btn.busy, .ibtn.busy, button.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy svg, button.busy svg { opacity: 0; }
.btn.busy::after, button.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid currentColor; border-color: var(--black) transparent var(--black) var(--black); opacity: .75; animation: spin .7s linear infinite; }
.btn.danger.busy::after { border-color: var(--red) transparent var(--red) var(--red); }
.btn.ghost.busy::after { border-color: var(--ink) transparent var(--ink) var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
/* screens: deeper screens slide in from the side they open toward, going back reverses */
.view.fwd { animation: fromL var(--t-mid) var(--ease); }
.view.back { animation: fromR var(--t-mid) var(--ease); }
@keyframes fromL { from { opacity: .2; transform: translateX(-28%); } }
@keyframes fromR { from { opacity: .2; transform: translateX(28%); } }
/* pull to refresh */
.ptr { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translate(-50%, 0); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--muted); box-shadow: 0 4px 16px rgba(0, 0, 0, .14); display: flex; align-items: center; justify-content: center; z-index: 30; opacity: 0; transition: transform .3s var(--ease), opacity .2s; pointer-events: none; }
.ptr.ready { color: var(--black); background: var(--y); }
.ptr.spin svg { animation: spin .8s linear infinite; }
/* connection banner */
.net { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -140%); z-index: 70; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #3A3A40; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); max-width: calc(100% - 24px); }
.net.on, .net.back { transform: translate(-50%, 0); }
.net.back { background: var(--green); }
/* toast with an action (undo) */
.toast { display: flex; align-items: center; gap: 14px; justify-content: center; }
.toast.act { pointer-events: auto; padding-inline-end: 8px; }
.toast .tact { border: 0; background: rgba(255, 255, 255, .14); color: var(--y); font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.toast .tact:active { background: rgba(255, 255, 255, .26); }
@media (prefers-reduced-motion: reduce) { .view.fwd, .view.back { animation: none; } .ptr, .net { transition: none; } }
.net span { white-space: nowrap; }
.toast.act span { white-space: nowrap; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* swipe rows */
.swp { position: relative; overflow: hidden; }
.swp + .swp { border-top: 1px solid var(--line); }
.swp-acts { position: absolute; top: 0; bottom: 0; left: 0; display: flex; visibility: hidden; }
.swp-acts button { flex: 1; border: 0; font: inherit; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.swp-acts button:active { filter: brightness(.92); }
.swp-row { position: relative; background: var(--card); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.swp-row > .row { border-top: 0 !important; }

/* =====================================================================
   GLOW 2026 — the studio after dark: deep black, the logo's yellow as light,
   a warm pink/violet aura, soft white cards that float on a warm ground.
   ===================================================================== */
:root {
  --bg: #F3F2EE; --card: #FFFFFF; --ink: #0F0F11; --muted: #6E6D74; --faint: #A2A1A8;
  --line: rgba(15, 15, 17, .07); --line2: rgba(15, 15, 17, .11);
  --black: #0B0B0D; --y: #F0C03A; --y2: #FFD95E; --y-ink: #8A6608; --y-soft: #FFF4D1;
  --g-pink: #EC4899; --g-violet: #7C3AED; --g-orange: #F97316;
  --r: 24px;
  --sh: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(25, 20, 10, .04), 0 6px 20px -6px rgba(25, 20, 10, .07);
  --sh2: 0 18px 50px -12px rgba(11, 11, 13, .28);
  --glow: 0 6px 22px -4px rgba(240, 192, 58, .55);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body { letter-spacing: -.005em; }
/* a soft aura behind every screen's title */
#app::before { content: ''; position: fixed; inset: 0 0 auto; height: 320px; pointer-events: none; z-index: 0; max-width: 520px; margin: 0 auto;
  background: radial-gradient(60% 70% at 85% 0%, rgba(240, 192, 58, .26), transparent 70%), radial-gradient(50% 60% at 5% 10%, rgba(236, 72, 153, .12), transparent 70%); }
#app > div { position: relative; z-index: 1; }

/* ---------- the hero: home of the team and of the trainee ---------- */
.hero { position: relative; overflow: hidden; background: var(--black); color: #fff; border-radius: 0 0 36px 36px; padding-bottom: 20px; margin-bottom: 6px; box-shadow: 0 24px 50px -24px rgba(11, 11, 13, .55); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(2px); animation: drift 18s ease-in-out infinite alternate; }
.hero-bg i:nth-child(1) { width: 440px; height: 440px; left: -150px; top: -210px; background: radial-gradient(circle, rgba(240, 192, 58, .62), rgba(240, 192, 58, 0) 65%); }
.hero-bg i:nth-child(2) { width: 380px; height: 380px; right: -170px; top: 40px; background: radial-gradient(circle, rgba(236, 72, 153, .46), rgba(236, 72, 153, 0) 65%); animation-duration: 22s; animation-delay: -6s; }
.hero-bg i:nth-child(3) { width: 360px; height: 360px; left: 20%; bottom: -230px; background: radial-gradient(circle, rgba(124, 58, 237, .42), rgba(124, 58, 237, 0) 65%); animation-duration: 26s; animation-delay: -12s; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(28px, 18px) scale(1.08); } 100% { transform: translate(-22px, 10px) scale(.96); } }
.hero .top { background: transparent; box-shadow: none; border-radius: 0; padding-bottom: 6px; }
.hero .top img { height: 36px; }
.hero .top .ibtn { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .ibtn .dot { box-shadow: 0 0 0 2px var(--black), 0 0 12px rgba(240, 192, 58, .9); }
.hero .me { background: linear-gradient(140deg, #FFE38A, var(--y) 55%, #E7A91C); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), var(--glow); }
.hero .hello { padding: 14px 20px 4px; }
.hero .hello .d { color: rgba(255, 255, 255, .56); }
.hero .hello h1 { color: #fff; font-size: 31px; letter-spacing: -.8px; }
.hk { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.hl { font-size: 12px; color: rgba(255, 255, 255, .58); margin-bottom: 4px; }
.hv { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #FFFFFF 10%, #FFE49A 55%, var(--y)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(240, 192, 58, .35)); }
.hc { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; }
.hc.p { background: rgba(74, 222, 128, .14); color: #86EFAC; } .hc.n { background: rgba(248, 113, 113, .16); color: #FCA5A5; }
.hbars { display: flex; align-items: flex-end; gap: 6px; height: 66px; direction: ltr; }
.hbars i { width: 10px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.hbars i.on { background: linear-gradient(180deg, var(--y2), var(--y)); box-shadow: 0 0 18px rgba(240, 192, 58, .7); }
.hchips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
.hchips button { text-align: start; padding: 11px 12px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .62); font-size: 12px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .14s var(--ease), background .2s; }
.hchips button:active { transform: scale(.96); background: rgba(255, 255, 255, .12); }
.hchips b { display: block; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin-bottom: 1px; }
.hero [data-story] > span:first-child > span { border-color: var(--black) !important; }
.hero [data-story] > span:last-child { color: rgba(255, 255, 255, .55) !important; }
/* the team's other dark header (inner screens) keeps the same light */
.top:not(.hero .top) { position: relative; overflow: hidden; }

/* ---------- page titles ---------- */
.ph { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: max(20px, env(safe-area-inset-top)); }
.ph.stuck, .ph { transition: background .2s; }
.ph h1 { font-size: 29px; letter-spacing: -.9px; font-weight: 800; }
.ph .sub { font-size: 13.5px; }
.sec { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; margin: 24px 20px 10px; }
.wrap { padding: 0 16px; }

/* ---------- surfaces ---------- */
.card { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.list > * + * { border-top-color: rgba(15, 15, 17, .06); }
.row { padding: 13px 16px; }
.row .t { font-weight: 600; letter-spacing: -.15px; }
button.row:active, a.row:active { background: rgba(15, 15, 17, .035); }
/* every black card glows */
.card[style*="background:var(--black)"], [style*="background:var(--black);color"] {
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(240, 192, 58, .34), transparent 55%), radial-gradient(90% 80% at 0% 110%, rgba(236, 72, 153, .28), transparent 60%) !important;
  box-shadow: 0 18px 40px -18px rgba(11, 11, 13, .6) !important; border: 1px solid rgba(255, 255, 255, .06) !important; }
.k .v { font-weight: 800; letter-spacing: -.6px; }
.k.c .v { font-size: 26px; }
.ic { width: 40px; height: 40px; border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset; }
.pill { font-weight: 600; padding: 5px 11px; }
.pill.y { background: linear-gradient(180deg, var(--y2), var(--y)); box-shadow: 0 2px 10px -2px rgba(240, 192, 58, .6); }

/* ---------- controls ---------- */
.btn { height: 52px; border-radius: 18px; background: linear-gradient(180deg, var(--y2), var(--y) 70%); color: #111; font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset, 0 -2px 0 rgba(0, 0, 0, .06) inset, var(--glow); }
.btn.sm { height: 40px; border-radius: 14px; }
.btn.ghost { background: rgba(255, 255, 255, .9); border: 1px solid var(--line2); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.btn.dark { background: linear-gradient(180deg, #232327, var(--black)); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.btn.danger { background: #FDECEA; color: #B4321F; }
.add { width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(180deg, var(--y2), var(--y)); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, var(--glow); }
.ibtn { border-radius: 16px; border-color: var(--line); background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip { height: 36px; padding: 0 14px; border-color: var(--line2); background: rgba(255, 255, 255, .8); color: #4A4950; font-weight: 500; }
.chip.on { background: var(--black); color: var(--y); border-color: var(--black); box-shadow: 0 6px 16px -6px rgba(11, 11, 13, .55); font-weight: 600; }
.seg { background: rgba(15, 15, 17, .05); border: 0; border-radius: 16px; padding: 4px; }
.seg button { border-radius: 12px; height: 40px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 14px -6px rgba(0, 0, 0, .18); }
.search { height: 50px; border-radius: 18px; background: #fff; border-color: var(--line); box-shadow: var(--sh); }
.in { height: 52px; border-radius: 16px; background: #fff; border-color: var(--line2); }
.in:focus, .search:focus-within { border-color: var(--y); box-shadow: 0 0 0 4px rgba(240, 192, 58, .22), 0 6px 18px -8px rgba(240, 192, 58, .5); }
.tg:checked { background: linear-gradient(180deg, var(--y2), var(--y)); box-shadow: 0 0 14px -2px rgba(240, 192, 58, .7); }
.days7 button.on, .week button.on { background: var(--black); color: var(--y); border-color: var(--black); box-shadow: 0 6px 16px -6px rgba(11, 11, 13, .5); }
.week button.on .w, .week button.on .n { color: var(--y); } .week button.on .c { background: var(--y); }
.meter { background: rgba(15, 15, 17, .07); } .meter i.full, .bars .b.on i { background: linear-gradient(180deg, var(--y2), var(--y)); box-shadow: 0 0 12px rgba(240, 192, 58, .55); }
.cls { border-radius: 20px; border-color: var(--line); box-shadow: var(--sh); }
.qa a, .qa button { border-radius: 20px; }
.qa svg { color: var(--ink); }
.prof .av { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--y), var(--glow); }
.wa-mini { border-radius: 12px; }

/* ---------- the dock ---------- */
.nav { background: rgba(14, 14, 16, .82); backdrop-filter: saturate(1.6) blur(22px); -webkit-backdrop-filter: saturate(1.6) blur(22px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 20px 44px -12px rgba(11, 11, 13, .55); }
.nav a { color: rgba(255, 255, 255, .5); border-radius: 22px; }
.nav a.on { color: #111; background: linear-gradient(180deg, var(--y2), var(--y)); box-shadow: 0 0 22px -2px rgba(240, 192, 58, .65); font-weight: 700; }

/* ---------- sheets, toasts ---------- */
.scrim { background: rgba(11, 11, 13, .42); backdrop-filter: blur(6px) saturate(1.2); -webkit-backdrop-filter: blur(6px) saturate(1.2); }
.sheet { background: #F7F6F2; border-radius: 32px 32px 0 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, .9) inset, 0 -20px 60px rgba(11, 11, 13, .22); }
.sheet::before { content: ''; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none; border-radius: 32px 32px 0 0;
  background: radial-gradient(70% 100% at 90% 0%, rgba(240, 192, 58, .2), transparent 70%), radial-gradient(50% 90% at 0% 0%, rgba(236, 72, 153, .08), transparent 70%); }
.sheet > * { position: relative; }
.sheet h2 { font-size: 23px; letter-spacing: -.6px; }
.sheet .sx { background: rgba(15, 15, 17, .06); }
.toast { background: rgba(14, 14, 16, .9); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .2); }
.skel { background: linear-gradient(90deg, #ECEAE5 0%, #F7F6F2 40%, #ECEAE5 80%); background-size: 200% 100%; border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) { .hero-bg i { animation: none !important; } }
.ph { background: linear-gradient(180deg, rgba(243, 242, 238, .92), rgba(243, 242, 238, .74)); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px); }
.hero .ibtn .dot { top: 9px; left: 10px; width: 10px; height: 10px; background: var(--y); box-shadow: 0 0 0 2.5px #1a1a1c, 0 0 10px rgba(240, 192, 58, .9); }
.hbars i:not(.on) { background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)); }
/* the dock wears the same glow as the hero */
.nav { overflow: hidden; isolation: isolate; background:
    radial-gradient(70% 140% at 100% 0%, rgba(240, 192, 58, .42), transparent 60%),
    radial-gradient(60% 160% at 40% 120%, rgba(236, 72, 153, .38), transparent 62%),
    radial-gradient(55% 150% at 0% 10%, rgba(124, 58, 237, .4), transparent 62%),
    rgba(12, 12, 14, .95); }
.nav::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .1; mix-blend-mode: overlay; pointer-events: none; }
.nav a { color: rgba(255, 255, 255, .62); }

/* ---------- the app bar: same logo and shortcuts on every screen ---------- */
.appbar { position: sticky; top: 0; z-index: 18; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; margin: 0 0 4px; color: #fff; isolation: isolate; overflow: hidden; border-radius: 0 0 26px 26px; box-shadow: 0 14px 30px -16px rgba(11, 11, 13, .55); }
.ab-bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 160% at 100% 0%, rgba(240, 192, 58, .48), transparent 62%),
    radial-gradient(55% 170% at 30% 130%, rgba(236, 72, 153, .34), transparent 62%),
    radial-gradient(50% 160% at 0% 0%, rgba(124, 58, 237, .38), transparent 62%), #0C0C0E; }
.ab-bg::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; }
.ab-logo { background: none; border: 0; padding: 0; display: flex; align-items: center; }
.ab-logo img { height: 34px; width: auto; display: block; }
.ab-acts { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.ab-i, .ab-back { width: 40px; height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative; transition: transform .14s var(--ease), background .2s; }
.ab-i:active, .ab-back:active, .ab-logo:active { transform: scale(.94); }
.ab-i .dot { position: absolute; top: 8px; left: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 2.5px #1a1a1c, 0 0 10px rgba(240, 192, 58, .9); }
.appbar .me { width: 40px; height: 40px; font-size: 16px; background: linear-gradient(140deg, #FFE38A, var(--y) 55%, #E7A91C); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 0 18px -4px rgba(240, 192, 58, .8); }
/* the title now sits under the bar and scrolls with the page */
.ph { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 16px 20px 6px; }
.ph h1 { font-size: 30px; }
#app::before { top: 60px; }
.ab-logo img, .hero .top img { mix-blend-mode: screen; }

/* =====================================================================
   DARK GLOW — the whole app after dark (structure inspired by Dahan,
   colour and light from Push-Up: black, the logo's yellow, a pink/violet aura)
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #0C0B0F; --card: #16151A; --soft: rgba(255, 255, 255, .06); --soft2: rgba(255, 255, 255, .1);
  --ink: #F4F2EE; --muted: rgba(244, 242, 238, .58); --faint: rgba(244, 242, 238, .38);
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --y-ink: #F5CF5C; --y-soft: rgba(240, 192, 58, .14);
  --red: #FF8A7A; --red-soft: rgba(255, 138, 122, .13); --green: #6EE7A0; --green-soft: rgba(110, 231, 160, .12);
  --blue: #8DB4FF; --blue-soft: rgba(141, 180, 255, .13); --pink: #F49AC8; --pink-soft: rgba(244, 154, 200, .13);
  --sh: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -16px rgba(0, 0, 0, .7);
}
html, body { background: var(--bg); }
body { color: var(--ink); }
#app::before { top: 0; height: 520px; background: radial-gradient(70% 45% at 95% 0%, rgba(240, 192, 58, .16), transparent 70%), radial-gradient(60% 40% at 0% 25%, rgba(124, 58, 237, .14), transparent 70%), radial-gradient(50% 30% at 60% 60%, rgba(236, 72, 153, .07), transparent 70%); }

/* top bar: logo and shortcuts, a thin line under it (no block) */
.appbar { border-radius: 0; margin: 0; box-shadow: none; border-bottom: 1px solid var(--line); background: rgba(12, 11, 15, .72); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px); padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
.ab-bg { display: none; }
.appbar .me { border: 2.5px solid transparent; background: linear-gradient(#1A1920, #1A1920) padding-box, conic-gradient(from 210deg, #F0C03A, #EC4899, #7C3AED, #F0C03A) border-box; color: var(--y); box-shadow: 0 0 18px -4px rgba(240, 192, 58, .6); }
.appbar .me[style*="url("] { background-clip: padding-box, border-box; }

/* today strip */
.strip { display: flex; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.strip::-webkit-scrollbar { display: none; }
.strip .si { display: inline-flex; align-items: baseline; gap: 7px; background: none; border: 0; padding: 0; font-size: 14px; color: var(--ink); flex: none; }
.strip .si em { font-style: normal; color: var(--y); font-weight: 600; font-variant-numeric: tabular-nums; }
.strip .si b { font-weight: 600; }
.strip .si span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.strip .si.past { opacity: .45; }
.strip .sep { width: 1px; height: 16px; background: var(--line2); flex: none; }

/* hero: a glowing card in the page, greeting and three tiles */
.hero { margin: 16px 16px 4px; border-radius: 30px; padding: 20px 18px 18px; border: 1px solid rgba(240, 192, 58, .28); background: #141218; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3); }
.hero-bg i:nth-child(1) { width: 380px; height: 380px; left: auto; right: -140px; top: -190px; }
.hero-bg i:nth-child(2) { right: auto; left: -170px; top: 60px; }
.hero .hi { color: var(--y); font-size: 16px; font-weight: 600; }
.hero h1 { margin: 2px 0 0; font-size: 38px; font-weight: 800; letter-spacing: -1.2px; color: #fff; line-height: 1.1; }
.hero .hchips { margin-top: 16px; }
.hero .hchips button { padding: 13px 12px; border-radius: 20px; background: rgba(255, 255, 255, .08); }
.hero .hchips b { font-size: 25px; }
.hero + div [data-story] > span:first-child > span, .hero ~ div [data-story] > span:first-child > span { border-color: var(--bg) !important; }

/* page titles on dark */
.ph { background: none; }
.ph h1 { color: var(--ink); }

/* surfaces */
.card { background: var(--card); border-color: var(--line); }
.card[style*="background:var(--black)"], [style*="background:var(--black);color"] { border-color: rgba(240, 192, 58, .2) !important; }
button.row:active, a.row:active { background: rgba(255, 255, 255, .04); }
.list > * + * { border-top-color: var(--line); }
.chev { color: var(--faint); }
.ic { box-shadow: none; }
.pill.n { background: var(--soft); color: var(--muted); }
.pill.y { color: #111; }
.empty { color: var(--muted); }
.k .l, .k .h { color: var(--muted); }
.kv span:first-child { color: var(--muted); }
.gold { color: var(--y-ink) !important; }
.skel { background: linear-gradient(90deg, #17161B 0%, #211F26 40%, #17161B 80%); background-size: 200% 100%; }
.bars .b i { background: var(--soft2); }
.meter { background: var(--soft2); }
.funnel span { color: var(--muted); }

/* controls on dark */
.btn.ghost { background: rgba(255, 255, 255, .05); border-color: var(--line2); color: var(--ink); }
.btn.ghost:active { background: rgba(255, 255, 255, .09); }
.btn.danger { background: rgba(255, 138, 122, .12); color: #FF9B8A; }
.btn:disabled { opacity: .4; }
.ibtn { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--ink); }
.chip { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: var(--muted); }
.chip.on { background: var(--y); color: #111; border-color: var(--y); box-shadow: 0 0 18px -4px rgba(240, 192, 58, .6); }
.seg { background: rgba(255, 255, 255, .05); }
.seg button { color: var(--muted); }
.seg button.on { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 16px -8px rgba(0, 0, 0, .8); }
.search { background: rgba(255, 255, 255, .05); border-color: var(--line); box-shadow: none; color: var(--muted); }
.search input { color: var(--ink); }
.in { background: rgba(255, 255, 255, .05); border-color: var(--line2); color: var(--ink); }
.in::placeholder, .search input::placeholder { color: var(--faint); }
select.in option { background: #1A1920; color: var(--ink); }
.in:focus, .search:focus-within { background: rgba(255, 255, 255, .07); }
input[type=date].in, input[type=time].in { color-scheme: dark; }
.tg { background: rgba(255, 255, 255, .16); }
.days7 button { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: var(--muted); }
.days7 button.on, .week button.on { background: var(--y); color: #111; border-color: var(--y); box-shadow: 0 0 18px -4px rgba(240, 192, 58, .6); }
.week button.on .w, .week button.on .n { color: #111; } .week button.on .c { background: #111; }
.week button .c { background: var(--line2); }
.qa a, .qa button { background: var(--card); border-color: var(--line); color: var(--ink); }
.qa svg { color: var(--y); }
.att button { border-color: var(--line2); color: var(--faint); }
.wa-mini { background: rgba(110, 231, 160, .1); border-color: rgba(110, 231, 160, .2); color: var(--green); }
.prof .av { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--y), 0 0 26px -4px rgba(240, 192, 58, .6); }
.cls { background: var(--card); border-color: var(--line); }
.add { color: #111; }

/* sheets, toasts, swipe rows */
.scrim { background: rgba(0, 0, 0, .6); }
.sheet { background: #131217; border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
.sheet .grab { background: rgba(255, 255, 255, .2); }
.sheet .sx { background: rgba(255, 255, 255, .08); color: var(--ink); }
.swp-row { background: var(--card); }
.toast { background: rgba(32, 31, 38, .96); border-color: rgba(255, 255, 255, .1); }
.ptr { background: #1E1D23; color: var(--muted); }
::selection { background: rgba(240, 192, 58, .4); color: #fff; }
/* the dashboard board: KPI tiles and trend charts */
.kpis { margin-bottom: 12px; }
.kp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; min-height: 118px; }
.kh { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kh svg { color: var(--y); }
.kp b { font-size: 28px; font-weight: 800; letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kp b.neg { color: #FF8A7A; } .kp b.warn { color: var(--y); }
.ks { font-size: 12px; color: var(--muted); }
.tt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.tt.up { color: #4ADE80; } .tt.dn { color: #FF6B6B; }
.chartc { margin-bottom: 12px; padding-bottom: 8px; }
.chartc .ch { display: flex; justify-content: space-between; align-items: center; }
.chartc .more { background: none; border: 0; color: var(--y); font: inherit; font-size: 13px; font-weight: 600; }
.chartc .cv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.chartc .cv b { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
/* the board glows too */
.kp { position: relative; overflow: hidden; border-color: rgba(240, 192, 58, .16);
  background: radial-gradient(120% 90% at 100% 0%, rgba(240, 192, 58, .13), transparent 60%), radial-gradient(90% 80% at 0% 110%, rgba(124, 58, 237, .12), transparent 60%), var(--card); }
.kp:nth-child(2) { background: radial-gradient(120% 90% at 100% 0%, rgba(236, 72, 153, .12), transparent 60%), radial-gradient(90% 80% at 0% 110%, rgba(240, 192, 58, .08), transparent 60%), var(--card); }
.kp:nth-child(3) { background: radial-gradient(120% 90% at 100% 0%, rgba(124, 58, 237, .15), transparent 60%), radial-gradient(90% 80% at 0% 110%, rgba(236, 72, 153, .08), transparent 60%), var(--card); }
.kp:nth-child(4) { background: radial-gradient(120% 90% at 100% 0%, rgba(240, 192, 58, .1), transparent 60%), radial-gradient(90% 80% at 0% 110%, rgba(236, 72, 153, .12), transparent 60%), var(--card); }
.kp::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
.kp .kh svg { filter: drop-shadow(0 0 6px rgba(240, 192, 58, .6)); }
.chartc { position: relative; overflow: hidden; border-color: rgba(var(--tc), .22);
  background: radial-gradient(90% 60% at 100% 0%, rgba(var(--tc), .14), transparent 65%), radial-gradient(80% 60% at 0% 100%, rgba(124, 58, 237, .1), transparent 65%), var(--card);
  box-shadow: 0 20px 44px -24px rgba(var(--tc), .35), 0 1px 0 rgba(255, 255, 255, .04) inset; }
.chartc .cv b { text-shadow: 0 0 28px rgba(var(--tc), .35); }
.tt.up span, .tt.dn span { text-shadow: 0 0 12px currentColor; }
.tt .vs { font-style: normal; }
.kp .tt { flex-wrap: wrap; row-gap: 2px; }
.kp .tt .vs { flex-basis: 100%; color: var(--muted); font-weight: 400; }
/* someone is about to leave: the tile breathes red */
.kp.risk { border-color: rgba(255, 90, 90, .45); background: radial-gradient(120% 100% at 100% 0%, rgba(255, 80, 80, .26), transparent 62%), radial-gradient(100% 90% at 0% 110%, rgba(255, 60, 90, .18), transparent 62%), var(--card) !important; animation: riskPulse 2.6s ease-in-out infinite; }
.kp.risk b.warn { color: #FF7A7A; text-shadow: 0 0 22px rgba(255, 90, 90, .7); }
.kp.risk .kh svg { color: #FF7A7A; filter: drop-shadow(0 0 6px rgba(255, 90, 90, .8)); }
@keyframes riskPulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 90, 90, .12), 0 10px 30px -14px rgba(255, 70, 70, .45); } 50% { box-shadow: 0 0 0 1px rgba(255, 90, 90, .3), 0 14px 40px -10px rgba(255, 70, 70, .75); } }
@media (prefers-reduced-motion: reduce) { .kp.risk { animation: none; } }

/* ---------- usability pass ---------- */
/* a count on the "more" tab (new mail, freeze requests) */
.nav a { position: relative; }
.nbadge { position: absolute; top: 6px; left: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FF5A5A; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #121115, 0 0 10px rgba(255, 90, 90, .7); }
/* unsaved changes */
.dirty-bar { position: sticky; bottom: 0; margin: 14px -4px 0; padding: 14px; border-radius: 20px; background: #221F28; border: 1px solid rgba(240, 192, 58, .35); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); display: grid; gap: 4px; z-index: 5; animation: rise .2s var(--ease); }
.dirty-bar b { font-size: 15px; } .dirty-bar span { font-size: 13px; color: var(--muted); }
.dirty-bar div { display: flex; gap: 8px; margin-top: 8px; } .dirty-bar .btn { flex: 1; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
/* the main button of a long form stays in reach */
/* bigger touch areas for small text buttons, checkboxes and pills */
[data-td], [data-task], .pill[data-stage], #subC, button[style*="background:none;border:0;padding:0"], button[style*="background:none;border:0;color"] { position: relative; }
[data-td]::after, [data-task]::after, .pill[data-stage]::after, #subC::after, button[style*="background:none;border:0;padding:0"]::after, button[style*="background:none;border:0;color"]::after { content: ''; position: absolute; inset: -10px -6px; }
.pill[data-stage] { padding: 6px 12px; }
/* keyboard users see where they are */
:focus-visible { outline: 2.5px solid var(--y); outline-offset: 2px; border-radius: 12px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
/* long names never break a row */
.row .m { min-width: 0; }
.row .t:not([style*="white-space:normal"]) { overflow: hidden; text-overflow: ellipsis; }
/* content never hides behind the floating tab bar */
#app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.nbadge.ab { top: -6px; left: -6px; box-shadow: 0 0 0 2px #0C0B0F, 0 0 10px rgba(255, 90, 90, .7); }
/* rating stars: first on the right, fill up to the tapped one */
.stars { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; }
.stars.big { justify-content: center; gap: 10px; margin-top: 0; }
.stars .st { flex: 1; height: 52px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--faint); display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease), background .2s, color .2s; }
.stars.big .st { flex: none; width: 54px; height: 54px; border: 0; background: none; }
.stars .st.on { color: #F5C842; background: rgba(240, 192, 58, .12); border-color: rgba(240, 192, 58, .4); }
.stars.big .st.on { background: none; filter: drop-shadow(0 0 10px rgba(240, 192, 58, .6)); }
.stars .st:active { transform: scale(.88); }
/* the team previewing a trainee's app */
.pvbar { position: sticky; top: 0; z-index: 19; display: flex; align-items: center; gap: 8px; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); background: linear-gradient(90deg, #7C3AED, #EC4899); color: #fff; font-size: 13px; font-weight: 600; }
.pvbar span { flex: 1; }
.pvbar button { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font: inherit; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.pvbar ~ .appbar { top: 44px; }
/* badges: one look everywhere (tab, bell, menu rows) */
.nav .ni { position: relative; display: inline-flex; }
.nav .nbadge { top: -7px; left: auto; right: -11px; min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 4px; box-shadow: 0 0 0 2px #141317, 0 0 8px rgba(255, 90, 90, .55); }
.nav a.on .nbadge { box-shadow: 0 0 0 2px #F0C03A, 0 0 8px rgba(255, 90, 90, .55); }
.cbadge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #FF5A5A; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(255, 90, 90, .5); flex: none; margin-inline-start: 6px; }
.attn { border-color: rgba(255, 90, 90, .3); background: radial-gradient(100% 120% at 100% 0%, rgba(255, 90, 90, .12), transparent 60%), var(--card); }
.attn-h { display: flex; align-items: center; gap: 6px; padding: 12px 16px 2px; font-size: 13px; font-weight: 700; color: #FF8A8A; }
/* new mail: the bell glows red and rings now and then */
.ab-i.ring { color: #FF6B6B; border-color: rgba(255, 90, 90, .55); background: radial-gradient(circle at 50% 40%, rgba(255, 80, 80, .32), rgba(255, 80, 80, .1) 70%); box-shadow: 0 0 16px -2px rgba(255, 80, 80, .65), inset 0 0 10px rgba(255, 80, 80, .2); }
.ab-i.ring svg { transform-origin: 50% 12%; animation: bellRing 3.2s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255, 90, 90, .9)); }
@keyframes bellRing {
  0%, 58%, 100% { transform: rotate(0); }
  62% { transform: rotate(16deg); } 66% { transform: rotate(-14deg); } 70% { transform: rotate(11deg); }
  74% { transform: rotate(-8deg); } 78% { transform: rotate(5deg); } 82% { transform: rotate(-2deg); } 86% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .ab-i.ring svg { animation: none; } }

/* no accidental zoom: quick repeated taps stay taps (pinch zoom still works), and fields don't zoom the page on iPhone */
html, body, button, a, [data-day], .nav a, .si { touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1em); }

/* ---------- freeze: ice blue with frost ---------- */
.btn.ice { position:relative; overflow:hidden; isolation:isolate; gap:10px; color:#DFF6FF; font-weight:700;
  background:linear-gradient(160deg, rgba(125,211,252,.22), rgba(56,189,248,.08) 55%, rgba(186,230,253,.16));
  border:1.5px solid rgba(125,211,252,.6);
  box-shadow:0 0 22px -6px rgba(56,189,248,.75), inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 18px rgba(125,211,252,.12); }
.btn.ice .ice-flk { display:inline-flex; color:#BAE6FD; filter:drop-shadow(0 0 6px rgba(125,211,252,.95)); animation:flakeSpin 9s linear infinite; }
/* a frost glint that slides across every few seconds */
.btn.ice::before { content:''; position:absolute; inset:-2px; z-index:-1; pointer-events:none;
  background:linear-gradient(105deg, transparent 30%, rgba(224,247,255,.38) 47%, rgba(255,255,255,.55) 50%, rgba(224,247,255,.38) 53%, transparent 70%);
  transform:translateX(-120%); animation:iceGlint 4.2s ease-in-out infinite; }
/* tiny crystals drifting down */
.btn.ice .crys { position:absolute; top:-6px; width:4px; height:4px; border-radius:50%; background:#E0F7FF; box-shadow:0 0 6px #7DD3FC; opacity:0; pointer-events:none; animation:crysFall 3.6s linear infinite; }
.btn.ice .crys:nth-of-type(1) { right:18%; animation-delay:.2s; }
.btn.ice .crys:nth-of-type(2) { right:52%; animation-delay:1.5s; width:3px; height:3px; }
.btn.ice .crys:nth-of-type(3) { right:81%; animation-delay:2.6s; }
/* on tap: frost creeps in from the edges and the button freezes over */
.btn.ice .frost { position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:0;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(240,250,255,.75), transparent 70%),
    radial-gradient(60% 120% at 100% 50%, rgba(240,250,255,.75), transparent 70%),
    radial-gradient(40% 90% at 22% 0%, rgba(224,247,255,.55), transparent 70%),
    radial-gradient(40% 90% at 78% 100%, rgba(224,247,255,.55), transparent 70%),
    radial-gradient(30% 70% at 60% 0%, rgba(255,255,255,.4), transparent 70%),
    linear-gradient(rgba(186,230,253,.28), rgba(186,230,253,.28)); }
.btn.ice.freezing .frost { animation:frostIn .55s ease-out forwards; }
.btn.ice.freezing { animation:iceShiver .5s ease-out; color:#0B3A52; text-shadow:0 0 8px rgba(255,255,255,.7); transition:color .4s; border-color:#E0F7FF; box-shadow:0 0 34px -2px rgba(125,211,252,.95), inset 0 0 26px rgba(224,247,255,.4); }
.btn.ice.freezing .ice-flk { animation:flakeBurst .55s ease-out; color:#fff; }
@keyframes flakeSpin { to { transform:rotate(360deg); } }
@keyframes iceGlint { 0%,55% { transform:translateX(-120%); } 85%,100% { transform:translateX(120%); } }
@keyframes crysFall { 0% { opacity:0; transform:translateY(0); } 15% { opacity:.95; } 80% { opacity:.6; } 100% { opacity:0; transform:translateY(58px); } }
@keyframes frostIn { 0% { opacity:0; transform:scale(1.6); filter:blur(6px); } 100% { opacity:1; transform:scale(1); filter:blur(0); } }
@keyframes iceShiver { 0%,100% { transform:translateX(0); } 20% { transform:translateX(-2px); } 40% { transform:translateX(2px); } 60% { transform:translateX(-1px); } 80% { transform:translateX(1px); } }
@keyframes flakeBurst { 0% { transform:scale(1) rotate(0); } 50% { transform:scale(1.45) rotate(90deg); filter:drop-shadow(0 0 12px #E0F7FF); } 100% { transform:scale(1) rotate(180deg); } }
/* the card once a freeze was requested / approved */
.ice-card { border:1.5px solid rgba(125,211,252,.45) !important; background:linear-gradient(160deg, rgba(125,211,252,.14), rgba(22,21,26,.9) 60%) !important; box-shadow:0 0 20px -8px rgba(56,189,248,.7); }
.ice-ic { flex:none; width:44px; height:44px; border-radius:14px; display:grid; place-items:center; color:#BAE6FD; background:rgba(125,211,252,.16); border:1px solid rgba(125,211,252,.4); }
.ice-ic svg { filter:drop-shadow(0 0 6px rgba(125,211,252,.9)); animation:flakeSpin 12s linear infinite; }

/* ---------- sign out: red glowing frame, red text ---------- */
.btn.exit { gap:8px; color:#FF6B6B; font-weight:700; background:rgba(255,80,80,.06); border:1.5px solid rgba(255,90,90,.7);
  box-shadow:0 0 18px -4px rgba(255,70,70,.7), inset 0 0 14px rgba(255,80,80,.12); text-shadow:0 0 10px rgba(255,90,90,.45); }
.btn.exit svg { filter:drop-shadow(0 0 5px rgba(255,90,90,.8)); }
.btn.exit:active { background:rgba(255,80,80,.14); box-shadow:0 0 26px -2px rgba(255,70,70,.85), inset 0 0 18px rgba(255,80,80,.2); }

@media (prefers-reduced-motion: reduce) {
  .btn.ice .ice-flk, .btn.ice::before, .btn.ice .crys, .ice-ic svg { animation:none; }
  .btn.ice::before, .btn.ice .crys { display:none; }
}

/* the same ice look in every place a membership is frozen */
.btn.ice.sm { height:44px; gap:7px; font-size:14px; padding:0 12px; }
.btn.ice:disabled { opacity:.55; filter:saturate(.6); }
.btn.ice:disabled::before, .btn.ice:disabled .crys, .btn.ice:disabled .ice-flk { animation:none; }
.ice-strip { border-top:1px solid rgba(125,211,252,.35); background:linear-gradient(160deg, rgba(125,211,252,.16), rgba(125,211,252,.04)); box-shadow:inset 0 1px 0 rgba(186,230,253,.15); }
.ice-strip .ice-ic { width:40px; height:40px; border-radius:12px; }
.row.ice-row { background:linear-gradient(90deg, rgba(125,211,252,.12), transparent 70%); }
.row.ice-row .t { color:#BAE6FD; }
.ice-row .ice-ic { width:40px; height:40px; border-radius:12px; }
.swp-acts button.sw-ice { color:#E0F7FF; background:linear-gradient(170deg, #5FB8E8, #2B7FB5 70%, #1E6A9C); box-shadow:inset 0 0 18px rgba(224,247,255,.35); text-shadow:0 0 8px rgba(224,247,255,.6); }
.swp-acts button.sw-ice svg { filter:drop-shadow(0 0 6px rgba(224,247,255,.95)); animation:flakeSpin 9s linear infinite; }
/* the sticky save button at the bottom of forms keeps its ice look */
.sheet form > button.btn.ice.full:last-child { padding-top:0; padding-bottom:0;
  background:linear-gradient(160deg, rgba(125,211,252,.3), rgba(30,90,130,.55) 55%, rgba(125,211,252,.25)), #131217;
  box-shadow:0 -14px 20px 6px #131217, 0 0 22px -6px rgba(56,189,248,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.sheet form > button.btn.ice.full:last-child.freezing { box-shadow:0 -14px 20px 6px #131217, 0 0 34px -2px rgba(125,211,252,.95), inset 0 0 26px rgba(224,247,255,.4); }

/* hero chips: a wide number (₪2,360) gets a wider tile instead of spilling out of its frame */
.hchips { grid-auto-columns: minmax(min-content, 1fr); }
.hero .hchips b { font-size: clamp(19px, 6vw, 25px); white-space: nowrap; }

/* trainee home: classes left in the membership */
.hleft { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 8px; padding: 12px; min-height: 76px; border-radius: 20px; text-align: start; color: #fff; background: linear-gradient(120deg, rgba(240, 192, 58, .26), rgba(240, 192, 58, .07)); border: 1px solid rgba(240, 192, 58, .45); transition: transform .14s var(--ease); }
.hleft:active { transform: scale(.98); }
.hl-n { flex: none; min-width: 54px; height: 54px; padding: 0 6px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--y); color: #141414; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hl-t { flex: 1; min-width: 0; }
.hl-t b { display: block; font-size: 17px; font-weight: 700; }
.hl-t > span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .68); margin-top: 1px; }
.hl-bar { display: flex; gap: 3px; margin-top: 8px; }
.hl-bar i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.hl-bar i.on { background: var(--y); }
.hleft.low { border-color: rgba(255, 138, 101, .7); background: linear-gradient(120deg, rgba(255, 138, 101, .24), rgba(255, 138, 101, .06)); }
.hleft.low .hl-n, .hleft.low .hl-bar i.on { background: #FF9B7A; }
.hleft.off { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); }
.hleft.off .hl-n { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- sheets: the main button is always visible, also above the keyboard ---------- */
.sheet { bottom: var(--kb, 0px); }
.kb-on .sheet { padding-bottom: 12px; }
.sheet .dock { position: sticky; bottom: calc(-1 * max(22px, env(safe-area-inset-bottom)) + max(10px, env(safe-area-inset-bottom))); z-index: 4; }
.kb-on .sheet .dock { bottom: -2px; }
.sheet .acts.dock { padding: 12px 0 6px; margin-bottom: -4px; background: linear-gradient(180deg, rgba(19, 18, 23, 0), #131217 26%); }
.sheet .btn.full.dock { padding-top: 0; padding-bottom: 0; box-shadow: 0 -12px 18px 6px #131217, 0 14px 0 10px #131217, var(--glow); }
.sheet .btn.full.ice.dock { box-shadow: 0 -12px 18px 6px #131217; }
.sheet .acts.dock .btn { min-height: 50px; }

/* ---------- logo: whole arrow, and a little towards the middle ---------- */
.ab-logo { flex: 0 1 auto; min-width: 0; margin-inline: auto; padding: 2px 4px; overflow: visible; }
.ab-logo img { height: 42px; max-width: 100%; object-fit: contain; mix-blend-mode: normal; }
.ab-acts { margin-inline-start: 0; flex: none; }
.appbar { overflow: visible; }
.top img { mix-blend-mode: normal; height: 48px; }
@media (max-width: 350px) { .ab-logo img { height: 34px; } .appbar { gap: 6px; } .ab-acts { gap: 6px; } }

/* ---------- community: like WhatsApp, in the studio's colours ---------- */
.cav { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; font-weight: 700; }
.cav-g { background: linear-gradient(135deg, #F0C03A, #EC4899); color: #141414; }
.clist { padding: 4px 0; overflow: hidden; }
.crow { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; background: none; border: 0; color: inherit; text-align: start; min-height: 72px; }
.crow + .crow .cr-m { border-top: 1px solid var(--line); }
.crow:active { background: rgba(255, 255, 255, .04); }
.cr-m { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 0; }
.cr-t { display: flex; align-items: center; gap: 6px; }
.cr-t b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-t em { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--muted); flex: none; }
.cr-t em.hot { color: var(--y); font-weight: 600; }
.cr-s { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); min-width: 0; }
.cr-s > span:not(.tk) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-s .del { font-style: italic; opacity: .8; }
.cr-mute { color: var(--muted); display: inline-flex; flex: none; }
.cun { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--y); color: #141414; font-size: 12px; font-weight: 800; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.cun.off { background: rgba(255, 255, 255, .22); color: #fff; }
.tk { display: inline-flex; flex: none; color: rgba(255, 255, 255, .5); }
.tk.blue { color: #53BDEB; }
.rules-btn { margin-top: 14px; background: rgba(255, 70, 70, .08) !important; color: #FF7A7A !important; border: 1.5px solid rgba(255, 90, 90, .75) !important; box-shadow: 0 0 18px -3px rgba(255, 70, 70, .55), inset 0 0 12px rgba(255, 70, 70, .12) !important; gap: 8px; }
.rules-btn:active { transform: scale(.98); }
.nav a .nbadge[data-chatbadge] { position: absolute; top: 3px; left: 50%; right: auto; transform: translateX(8px); border-radius: 99px; background: #FF5A5A; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
[data-chatbadge][hidden] { display: none !important; }
.chat { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(120% 60% at 100% 0%, rgba(240, 192, 58, .05), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(236, 72, 153, .05), transparent 60%); }
.chat-h { position: sticky; top: 0; z-index: 18; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: rgba(18, 17, 22, .9); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px); border-bottom: 1px solid var(--line); }
.chat-h .ab-back, .chat-h .ab-i { width: 44px; height: 44px; flex: none; }
.ch-st { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-st.on { color: #5EDB8A; font-weight: 600; }
.chat-l { flex: 1; padding: 12px 10px calc(100px + env(safe-area-inset-bottom) + var(--kb, 0px)); display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.chat-d { align-self: center; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(40, 38, 46, .92); border-radius: 10px; padding: 5px 12px; margin: 10px 0 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.chat-u { align-self: stretch; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--y); background: rgba(240, 192, 58, .1); padding: 6px; margin: 8px -10px; }
.chat-e { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; padding: 40px 20px; }
.cm { display: flex; gap: 6px; align-items: flex-end; max-width: 84%; align-self: flex-start; touch-action: pan-y; position: relative; }
.cm.mine { align-self: flex-end; }
.cm:not(.same) { margin-top: 4px; }
.cm-a { width: 30px; flex: none; align-self: flex-start; }
.cm-b { width: max-content; max-width: 100%; box-sizing: border-box; background: #23212A; border-radius: 16px; border-start-start-radius: 4px; padding: 6px 10px 5px; min-width: 76px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 1px 1.5px rgba(0, 0, 0, .35); }
.cm.same .cm-b { border-start-start-radius: 16px; }
.cm.mine .cm-b { background: #3A3017; border-radius: 16px; border-start-end-radius: 4px; }
.cm.mine.same .cm-b { border-start-end-radius: 16px; }
.cm.st:not(.mine) .cm-b { box-shadow: inset 0 0 0 1px rgba(240, 192, 58, .45), 0 1px 1.5px rgba(0, 0, 0, .35); }
.cm-n { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
.cm-q { display: block; width: 100%; text-align: start; background: rgba(0, 0, 0, .28); border: 0; border-inline-start: 3px solid var(--y); border-radius: 8px; padding: 5px 8px; margin: 2px 0 4px; color: inherit; font: inherit; }
.cm-q b { display: block; font-size: 12px; color: var(--y); }
.cm-q span { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.cm-t { display: block; font-size: 15.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; color: #F4F2EE; }
.cm.gone .cm-t { color: rgba(255, 255, 255, .55); display: flex; gap: 5px; align-items: center; } .cm.gone .cm-t i { font-style: italic; }
.cm-w { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 1px; margin-inline-start: 18px; }
.cm-w i { font-style: normal; }
.cm.flash .cm-b { animation: flash 1.2s ease; } @keyframes flash { 30% { box-shadow: 0 0 0 3px rgba(240, 192, 58, .7); } }
.cm.reply-go::before { content: '↩'; position: absolute; top: 50%; inset-inline-end: -30px; transform: translateY(-50%); color: var(--y); font-size: 20px; }
.chat-down { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom) + var(--kb, 0px)); left: 16px; z-index: 19; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: #23212A; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transform: rotate(-90deg); }
.chat-down[hidden] { display: none; }
.chat-f { position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 20; max-width: 520px; margin: 0 auto; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(12, 11, 15, 0), #0C0B0F 26%); }
.kb-on .chat-f { padding-bottom: 8px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 56px; background: #23212A; border-radius: 14px; padding: 8px 10px; border-inline-start: 4px solid var(--y); }
.chat-bar[hidden] { display: none; }
.cb-l { flex: 1; min-width: 0; } .cb-l b { display: block; font-size: 12.5px; color: var(--y); } .cb-l span { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-f textarea { flex: 1; resize: none; min-height: 48px; max-height: 132px; padding: 12px 16px; border-radius: 24px; border: 1px solid var(--line2); background: #1C1B21; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; }
.chat-f textarea:focus { outline: 2px solid rgba(240, 192, 58, .55); outline-offset: 0; }
.chat-s { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--y2), var(--y)); color: #141414; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 18px -2px rgba(240, 192, 58, .6); }
.chat-s:active { transform: scale(.92); } .chat-s.busy { opacity: .5; }
.mm-p { display: flex; justify-content: center; padding: 6px 0 2px; } .mm-p span { max-width: 85%; background: #23212A; border-radius: 14px; padding: 10px 14px; font-size: 15px; white-space: pre-wrap; overflow-wrap: break-word; max-height: 120px; overflow: hidden; }

/* ---------- date and time fields: same size as every field, also on iPhone ---------- */
input[type=date].in, input[type=time].in, input[type=datetime-local].in { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; text-align: right; line-height: 50px; padding-top: 0; padding-bottom: 0; }
input[type=date].in::-webkit-date-and-time-value, input[type=time].in::-webkit-date-and-time-value { text-align: right; margin: 0; min-height: 1.4em; }
input[type=date].in::-webkit-calendar-picker-indicator, input[type=time].in::-webkit-calendar-picker-indicator { opacity: .7; filter: invert(1); }
.fld, .frow > * { min-width: 0; }
.in { box-sizing: border-box; max-width: 100%; }
.sheet { overflow-x: hidden; }
.ab-dot { position: absolute; top: 7px; left: 7px; width: 10px; height: 10px; border-radius: 50%; background: #FF5A5A; box-shadow: 0 0 0 2px #141317, 0 0 10px rgba(255, 90, 90, .8); font-size: 0; }
@media (max-width: 360px) { .ab-i { width: 36px; height: 36px; } .appbar .me { width: 36px; height: 36px; } }

/* sign in with a phone number */
.lg-link { background: none; border: 0; color: var(--y); font-size: 14px; font-weight: 600; min-height: 44px; }
.in.otp { height: 64px; font-size: 30px; text-align: center; letter-spacing: 14px; font-variant-numeric: tabular-nums; }

/* ---------- chat: files, emoji keyboard, reactions, groups ---------- */
.ab-i.ring[data-chatring] { color: #FF6B6B; border-color: rgba(255, 90, 90, .6); background: rgba(255, 70, 70, .12); box-shadow: 0 0 16px -2px rgba(255, 70, 70, .7); }
.ab-i.ring[data-chatring] svg { animation: ring 1.6s ease-in-out infinite; transform-origin: 50% 20%; }
@media (prefers-reduced-motion: reduce) { .ab-i.ring[data-chatring] svg { animation: none; } }
.cav-grp { background: linear-gradient(135deg, #2F2A44, #3B2A1A); color: var(--y); box-shadow: inset 0 0 0 1px rgba(240, 192, 58, .35); }
.cr-f { display: inline-flex; color: var(--muted); flex: none; }
.chat-in { flex: 1; display: flex; align-items: flex-end; background: #1C1B21; border: 1px solid var(--line2); border-radius: 24px; min-width: 0; }
.chat-in:focus-within { border-color: rgba(240, 192, 58, .55); }
.chat-in textarea { border: 0 !important; background: transparent !important; outline: 0 !important; padding: 12px 4px !important; min-width: 0; }
.ci-b { width: 44px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); background: none; border: 0; cursor: pointer; }
.ci-b:active { color: var(--y); }
.chat-ro { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted); background: #1C1B21; border-radius: 16px; padding: 12px; }
.chat-ro[hidden], .chat-row[hidden], .chat-emo[hidden] { display: none; }
.chat-emo { background: #18171D; border: 1px solid var(--line2); border-radius: 18px; margin-bottom: 8px; overflow: hidden; }
.emo-t { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.emo-t button { flex: none; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.emo-t .emo-x { margin-inline-start: auto; }
.emo-g { height: 236px; overflow-y: auto; padding: 0 6px 8px; overscroll-behavior: contain; }
.emo-h { font-size: 12px; color: var(--muted); padding: 10px 6px 4px; position: sticky; top: 0; background: #18171D; }
.emo-w { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
.emo-w button { height: 44px; border: 0; background: none; font-size: 27px; line-height: 1; border-radius: 10px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.emo-w button:active { background: rgba(255, 255, 255, .08); }
.chat-emo.pick { position: fixed; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom) + var(--kb, 0px)); z-index: 30; max-width: 500px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); }
.cm-bw { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.cm.mine .cm-bw { align-items: flex-end; }
.cm-r { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -6px; padding: 0 8px; position: relative; z-index: 1; }
.rch { min-height: 28px; padding: 2px 8px; border-radius: 99px; background: #2A2830; border: 1px solid #0C0B0F; color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.rch.mine { background: rgba(240, 192, 58, .2); border-color: rgba(240, 192, 58, .5); }
.mm-r { display: flex; justify-content: center; gap: 6px; margin: 12px auto 0; background: #23212A; border-radius: 99px; padding: 6px 8px; width: max-content; max-width: 100%; }
.mm-r button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 26px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.mm-r button.on { background: rgba(240, 192, 58, .25); }
.mm-r .more { background: rgba(255, 255, 255, .08); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cm-b.media { padding: 4px 4px 5px; }
.cm-b.media .cm-t { padding: 4px 6px 0; }
.cm-b.media .cm-w { padding: 0 6px; }
.cm-f img, .cm-f video { display: block; width: 100%; max-width: 260px; max-height: 340px; min-width: 160px; object-fit: cover; border-radius: 12px; background: #111; cursor: zoom-in; }
.cm-f video { cursor: auto; }
.cm-doc { display: flex; gap: 10px; align-items: center; padding: 8px 6px 6px; color: inherit; text-decoration: none; min-width: 180px; }
.cm-doc .m b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; } .cm-doc small { color: var(--muted); font-size: 12px; }
.att-p { display: flex; justify-content: center; margin-bottom: 12px; } .att-p img, .att-p video { max-width: 100%; max-height: 46vh; border-radius: 16px; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 8px max(16px, env(safe-area-inset-bottom)); }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vx { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; }
.gicons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gico { height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.gico.on { color: #141414; background: var(--y); border-color: var(--y); box-shadow: 0 0 14px -2px rgba(240, 192, 58, .6); }
.gmem { max-height: 300px; overflow-y: auto; }
/* the community rules, each time a trainee opens the app */
.gate { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; animation: gateIn .25s ease; }
.gate.out { opacity: 0; transition: opacity .2s; }
.gate-b { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: #131217; border-radius: 28px 28px 0 0; border-top: 1px solid rgba(240, 192, 58, .35); padding: 22px 18px max(22px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
@keyframes gateIn { from { opacity: 0; } }
.kid-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) 44px; gap: 8px; align-items: end; margin-top: 10px; }
.kid-row .kid-x { width: 44px; height: 52px; }

/* ---------- parents book their small children ---------- */
.who { display: flex; align-items: center; gap: 6px; padding: 8px 18px 2px; overflow-x: auto; }
.who > span { font-size: 13px; color: var(--muted); flex: none; margin-inline-end: 2px; }
.who .chip { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; }
.who .chip.kid.on { background: var(--pink); border-color: var(--pink); color: #160B12; box-shadow: 0 0 18px rgba(255, 110, 180, .35); }
.kid-strip { display: flex; align-items: center; gap: 12px; border-color: rgba(255, 110, 180, .35); }
.kid-card { padding: 14px 16px; border-color: rgba(255, 110, 180, .28); }
.kid-card + .kid-card { margin-top: 10px; }
.kc-top { display: flex; align-items: center; gap: 12px; }
.kc-next { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--soft, rgba(255,255,255,.04)); }
.kc-acts { display: flex; gap: 8px; margin-top: 12px; }
.kc-acts .btn { flex: 1; height: 44px; }

/* ---------- sign-in screens: glowing logo on the app's aura ---------- */
.lg-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; background: var(--bg, #0C0B0F); }
.lg-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lg-aura i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.lg-aura i:nth-child(1) { width: 460px; height: 460px; left: 50%; top: -230px; margin-left: -230px; background: radial-gradient(circle, rgba(240, 192, 58, .38), rgba(240, 192, 58, 0) 62%); }
.lg-aura i:nth-child(2) { width: 380px; height: 380px; right: -190px; top: 120px; background: radial-gradient(circle, rgba(236, 72, 153, .30), rgba(236, 72, 153, 0) 65%); animation-duration: 22s; animation-delay: -6s; }
.lg-aura i:nth-child(3) { width: 400px; height: 400px; left: -200px; bottom: -160px; background: radial-gradient(circle, rgba(124, 58, 237, .30), rgba(124, 58, 237, 0) 65%); animation-duration: 26s; animation-delay: -12s; }
.lg-head { display: flex; justify-content: center; padding: max(56px, calc(env(safe-area-inset-top) + 34px)) 18px 18px; background: none; }
.lg-head img { height: 78px; width: auto; display: block; filter: drop-shadow(0 0 18px rgba(240, 192, 58, .35)) drop-shadow(0 0 42px rgba(236, 72, 153, .22)); animation: lgGlow 4s ease-in-out infinite alternate; }
@keyframes lgGlow { to { filter: drop-shadow(0 0 24px rgba(240, 192, 58, .5)) drop-shadow(0 0 54px rgba(236, 72, 153, .3)); } }
.lg-page form.wrap { background: rgba(22, 21, 26, .62); border: 1px solid rgba(255, 255, 255, .07); border-radius: 26px; padding: 22px 18px; margin-left: 16px; margin-right: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .lg-aura i, .lg-head img { animation: none; } }

/* ---------- audit 2026-12: bigger tap areas for small controls (the look stays the same) ---------- */
.wa-mini, [data-td], .chartc .more, #subC, .pvbar button, [data-ck], .li > button[data-go], .strip .si, [data-cmno], [data-stage], [data-task], .lead-n { position: relative; }
.wa-mini::after, [data-td]::after, .chartc .more::after, #subC::after, .pvbar button::after, [data-ck]::after, .li > button[data-go]::after, .strip .si::after, [data-cmno]::after, [data-stage]::after, [data-task]::after, .lead-n::after { content: ''; position: absolute; inset: -10px -5px; }
.wa-mini { width: 40px; height: 40px; }
[data-td] { width: 30px !important; height: 30px !important; }
/* leads: the name shortens, the stage stays whole */
[data-stage] { flex: none; white-space: nowrap; }
.lead-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-task] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.m-acts .btn { width: 100%; height: 44px; white-space: nowrap; gap: 6px; }
.btn.ice .ice-flk { margin-inline-end: 4px; }
.btn.sm { white-space: nowrap; }
/* two fields side by side: the boxes line up even when one label wraps */
.frow { align-items: end; }
.sheet .sx::after { content: ''; position: absolute; inset: -6px; }

/* =====================================================================
   2026 — the surfaces, type and controls of a modern big-company app
   (calm glass, large tight titles, pill controls, hairlines instead of borders).
   The glow (aura, hero, KPI tiles, charts) stays exactly as it was.
   ===================================================================== */
:root { --hair: rgba(255, 255, 255, .075); --hair2: rgba(255, 255, 255, .12); --spring: cubic-bezier(.32, .72, 0, 1);
  --glass: rgba(24, 23, 29, .58); --glass-b: saturate(1.8) blur(28px); }
body { letter-spacing: -.1px; }

/* titles: large, tight, confident */
.ph { padding: 18px 20px 12px; gap: 14px; }
.ph h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.05; }
.ph .sub { font-size: 14px; margin-top: 6px; letter-spacing: -.1px; }
.sec { font-size: 20px; font-weight: 800; letter-spacing: -.6px; margin: 30px 20px 12px; color: var(--ink); }
.sheet h2 { font-size: 26px; letter-spacing: -.9px; line-height: 1.15; }
.sheet .sub { font-size: 14px; }

/* surfaces: no hard frames, a hairline and soft depth */
.card:not(.kp):not(.chartc):not(.ice-card):not([style*="border"]) { border-color: transparent; box-shadow: inset 0 0 0 1px var(--hair), 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -26px rgba(0, 0, 0, .9); }
.card { border-radius: 24px; }
/* lists: roomy rows, separators that start after the icon */
.row { min-height: 58px; padding: 12px 18px; }
.list > * + * { border-top-color: transparent !important; position: relative; }
.list > * + *::before { content: ''; position: absolute; top: 0; inset-inline: 18px 18px; height: 1px; background: var(--hair); pointer-events: none; }
.list > .row:has(> .ic) + .row::before, .list > .row:has(> .av) + .row::before { inset-inline-start: 70px; }
.kv { padding: 14px 18px; font-size: 14.5px; }
.kv + .kv { border-top-color: var(--hair) !important; }
.ic { width: 42px; height: 42px; border-radius: 14px; }
.row .t { font-size: 15.5px; letter-spacing: -.25px; }
.row .s { font-size: 12.5px; margin-top: 3px; }

/* buttons: pills, with a soft press */
.btn { border-radius: 999px; letter-spacing: -.2px; transition: transform .25s var(--spring), box-shadow .2s, background .2s; }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn.full { height: 54px; font-size: 16px; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255, 255, 255, .07); border: 0; box-shadow: inset 0 0 0 1px var(--hair2); }
.btn.ghost:active { background: rgba(255, 255, 255, .12); }
.add { width: 46px; height: 46px; border-radius: 50%; }
.lg-link { letter-spacing: -.1px; }

/* top bar: glass, round shortcuts */
.appbar { background: rgba(12, 11, 15, .55); backdrop-filter: var(--glass-b); -webkit-backdrop-filter: var(--glass-b); border-bottom: 1px solid var(--hair); }
.ab-i, .ab-back { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 0; box-shadow: inset 0 0 0 1px var(--hair2); }
.ab-i.ring { box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .55), 0 0 16px -2px rgba(255, 80, 80, .65); }

/* fields: filled, no frame until focus */
.in, .search { border: 0 !important; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s, background .2s; }
.in:focus, .search:focus-within { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(240, 192, 58, .85), 0 0 0 5px rgba(240, 192, 58, .14); }
.fld > span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -.1px; }

/* chips and segmented controls: pills on a glass track */
.chip { height: 38px; padding: 0 16px; border: 0; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--hair); color: rgba(244, 242, 238, .78); font-weight: 500; }
.chip.on { box-shadow: 0 0 0 0 transparent, 0 8px 20px -8px rgba(240, 192, 58, .7); }
.seg { border-radius: 999px; padding: 4px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); }
.seg button { border-radius: 999px; height: 40px; transition: background .25s var(--spring), color .2s; }
.seg button.on { background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px -8px rgba(0, 0, 0, .9); }
.pill { border-radius: 999px; }

/* sheets: frosted glass, big radius */
.sheet { background: rgba(19, 18, 23, .9); backdrop-filter: var(--glass-b); -webkit-backdrop-filter: var(--glass-b); border-radius: 34px 34px 0 0; border-top: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 -24px 70px rgba(0, 0, 0, .65); }
.sheet .grab { width: 38px; background: rgba(255, 255, 255, .28); }
.sheet .sx { width: 36px; height: 36px; background: rgba(255, 255, 255, .09); }
.scrim { background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* the tab bar: liquid glass, floating */
.nav { background: rgba(22, 21, 27, .52) !important; backdrop-filter: saturate(1.9) blur(30px) !important; -webkit-backdrop-filter: saturate(1.9) blur(30px) !important; border: 0 !important; border-radius: 32px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px -12px rgba(0, 0, 0, .8) !important; }
.nav a { border-radius: 26px; letter-spacing: -.1px; transition: background .3s var(--spring), color .2s, transform .25s var(--spring); }
.nav div[style*="repeat(6"] a, .nav.six a { font-size: 10.5px; }

/* toasts: a glass pill */
.toast { border-radius: 999px; background: rgba(30, 29, 36, .82); backdrop-filter: var(--glass-b); -webkit-backdrop-filter: var(--glass-b); border: 0; box-shadow: inset 0 0 0 1px var(--hair2), 0 16px 40px -12px rgba(0, 0, 0, .8); }

/* switches: the iOS size */
.tg { transition: background .25s var(--spring); }

/* 2026: the tab bar marks the active tab with a capsule around its icon (no big block) */
.nav a.on { background: none !important; box-shadow: none !important; color: var(--y) !important; font-weight: 700; }
.nav a > svg, .nav a .ni > svg { width: 58px; height: 32px; padding: 5px 17px; border-radius: 999px; box-sizing: border-box; transition: background .35s var(--spring), box-shadow .35s, color .2s; }
.nav a.on > svg, .nav a.on .ni > svg { background: linear-gradient(180deg, var(--y2, #FFD866), var(--y)); color: #111; box-shadow: 0 0 22px -3px rgba(240, 192, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.nav.six a > svg, .nav.six a .ni > svg { width: 50px; padding: 5px 14px; }
.nav a { gap: 3px; padding: 7px 0 6px; }
.nav .nbadge { top: -4px !important; }
/* the card's quick actions: round glass buttons with the label under them */
.qa { gap: 4px; padding: 16px 12px 2px; }
.qa a, .qa button { background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 0; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.qa svg { width: 56px; height: 56px; padding: 17px; border-radius: 50%; box-sizing: border-box; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--hair2), 0 10px 24px -14px rgba(0, 0, 0, .9); color: var(--y); transition: transform .25s var(--spring); }
.qa a:active svg, .qa button:active svg { transform: scale(.92); }
/* check marks: round, like a modern to-do list */
[data-td] { border-radius: 50% !important; }
/* the today strip: chips you can tap */
.strip { gap: 8px; padding: 10px 16px; border-bottom: 0; }
.strip .sep { display: none; }
.strip .si { align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); }
.strip .si::after { display: none; }

.nav a .nbadge[data-chatbadge] { top: 1px !important; transform: translateX(19px); }
.nav.six a .nbadge[data-chatbadge] { transform: none; }
.wa-mini { border-radius: 50%; }
.ab-i, .ab-back, .appbar .me { flex: none; }
@media (max-width: 340px) { .ab-i, .ab-back { width: 38px; height: 38px; } .appbar .me { width: 38px; height: 38px; } .ab-acts { gap: 6px; } }

/* ---------- the community, part 2: stories, who is online, search, pin, peek ---------- */
.c-ph { align-items: flex-end; padding-bottom: 6px; }
.c-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #4ADE80; white-space: nowrap; padding-bottom: 6px; }
.c-on i { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2), 0 0 12px rgba(34, 197, 94, .9); animation: onPulse 2.2s ease-in-out infinite; }
@keyframes onPulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0), 0 0 16px rgba(34, 197, 94, .6); } }
.st-bar { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 8px 20px 14px; }
.st-bar::-webkit-scrollbar { display: none; }
.st-i { flex: none; width: 76px; background: none; border: 0; padding: 0; text-align: center; color: var(--ink); }
.st-r { display: block; width: 74px; height: 74px; border-radius: 50%; padding: 3px; margin: 0 auto; background: rgba(255, 255, 255, .16); }
.st-r.new { background: conic-gradient(from 200deg, #F0C03A, #EC4899, #7C3AED, #F0C03A); box-shadow: 0 0 18px -4px rgba(236, 72, 153, .6); }
.st-p { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); background: #1E1D23 center/cover; overflow: hidden; color: var(--y); }
.st-p img { width: 80%; height: auto; }
.st-p b { font-size: 22px; color: #fff; }
.st-add .st-r { background: none; border: 2px dashed rgba(240, 192, 58, .55); padding: 2px; }
.st-add .st-p { border: 0; background: rgba(240, 192, 58, .08); }
.st-n { display: block; font-size: 12px; margin-top: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.st-pick { display: flex; align-items: center; justify-content: center; min-height: 220px; cursor: pointer; overflow: hidden; padding: 0; text-align: center; color: var(--muted); }
.st-pick img { max-width: 100%; max-height: 320px; }
.st-txt { border-radius: 20px; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.st-txt textarea { width: 100%; background: none; border: 0; outline: 0; font: 800 24px/1.35 Rubik, sans-serif; text-align: center; resize: none; }
.st-c { width: 36px; height: 36px; border-radius: 50%; border: 0; flex: none; }
.c-search { margin: 0 0 14px !important; height: 56px; border-radius: 999px !important; padding: 0 20px; }
.c-search input { font-size: 16px; }
.c-sec { display: flex; align-items: center; justify-content: space-between; }
.c-new { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--y); font-size: 15px; font-weight: 700; min-height: 44px; }
.c-hint { text-align: center; font-size: 12px; color: var(--faint); margin: 10px 0 0; }
.c-mine .swp + .swp { border-top: 1px solid var(--hair); }
.c-mine .swp-row { background: var(--card); }
.c-mine .swp-acts button { font-size: 12.5px; font-weight: 700; }
.cr-pin { color: var(--y); display: inline-flex; font-style: normal; }
.crow { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* the peek */
.peek { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: peekIn .22s var(--spring, ease-out); }
.peek.out { animation: peekOut .18s ease-in forwards; }
.peek-bg { position: absolute; inset: 0; background: rgba(6, 6, 9, .55); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.peek-w { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.peek-c { border-radius: 26px; overflow: hidden; background: #121116; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 80px -20px rgba(0, 0, 0, .9); transform-origin: 50% 100%; animation: peekPop .3s var(--spring, ease-out); }
.peek-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hair); font-size: 16px; }
.peek-m { max-height: min(46vh, 380px); min-height: 140px; justify-content: flex-end; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: radial-gradient(80% 60% at 100% 0%, rgba(240, 192, 58, .06), transparent 70%), #0E0D12; }
.pm { align-self: flex-start; max-width: 82%; background: #1F1E25; border-radius: 16px 16px 16px 4px; padding: 7px 11px 5px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.pm.mine { align-self: flex-end; background: linear-gradient(180deg, #3A3016, #2E2611); border-radius: 16px 16px 4px 16px; }
.pm i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--y); }
.pm em { display: block; font-style: normal; font-size: 10.5px; color: var(--faint); text-align: end; margin-top: 2px; }
.peek-a { border-radius: 20px; overflow: hidden; background: rgba(30, 29, 36, .82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); animation: peekPop .34s var(--spring, ease-out); }
.peek-a button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 18px; background: none; border: 0; color: var(--ink); font-size: 16px; }
.peek-a button + button { border-top: 1px solid var(--hair); }
.peek-a button.red { color: #FF7A6E; }
@keyframes peekIn { from { opacity: 0; } }
@keyframes peekOut { to { opacity: 0; } }
@keyframes peekPop { from { transform: scale(.92); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .peek, .peek-c, .peek-a, .c-on i { animation: none; } }

/* ---------- the tab bar glows again (glass + the studio's light) ---------- */
.nav { overflow: visible !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(240, 192, 58, .22), 0 0 34px -8px rgba(240, 192, 58, .45), 0 0 60px -18px rgba(236, 72, 153, .5), 0 22px 50px -14px rgba(0, 0, 0, .85) !important;
  background: radial-gradient(60% 140% at 85% 120%, rgba(240, 192, 58, .16), transparent 60%), radial-gradient(60% 140% at 10% 120%, rgba(236, 72, 153, .16), transparent 60%), radial-gradient(50% 120% at 45% -20%, rgba(124, 58, 237, .14), transparent 60%), rgba(22, 21, 27, .55) !important; }
.nav a.on { text-shadow: 0 0 12px rgba(240, 192, 58, .7); }
.nav a:not(.on) svg { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .12)); }

/* =====================================================================
   STORIES like Instagram: the tray, the viewer, the composer
   ===================================================================== */
body.ovl .scrim { z-index: 96 !important; } body.ovl .sheet { z-index: 97 !important; } body.ovl #toast, body.ovl .toast { z-index: 99 !important; }
/* tray */
.st-r.seen { background: rgba(255, 255, 255, .22); box-shadow: none; }
.st-r.none { background: none; padding: 3px; }
.st-me .st-r { position: relative; }
.st-plus { position: absolute; bottom: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--y); color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bg), 0 0 12px rgba(240, 192, 58, .7); font-style: normal; }
.st-me .st-p { color: var(--y); }
.st-hid { display: block; margin: -6px auto 8px; background: none; border: 0; color: var(--faint); font-size: 12px; min-height: 32px; }
/* viewer */
.sv { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; animation: svIn .22s ease-out; }
.sv.out { animation: svOut .18s ease-in forwards; }
@keyframes svIn { from { opacity: 0; transform: scale(.96); } } @keyframes svOut { to { opacity: 0; transform: scale(.96) translateY(20px); } }
.sv-stage { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); max-height: 100dvh; border-radius: 0; overflow: hidden; background: #0B0B0C; }
@media (min-width: 600px) { .sv-stage { border-radius: 18px; height: min(94dvh, calc(100vw * 16 / 9)); width: calc(min(94dvh, calc(100vw * 16 / 9)) * 9 / 16); } }
.sv-stage.slide { animation: svSlide .28s cubic-bezier(.32, .72, 0, 1); }
@keyframes svSlide { from { transform: translateX(-18%) rotateY(10deg); opacity: .4; } }
.sv-media, .sv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; font-size: 28px; font-weight: 800; line-height: 1.35; text-align: center; white-space: pre-line; }
.sv-top { position: absolute; top: 0; left: 0; right: 0; padding: max(10px, env(safe-area-inset-top)) 10px 18px; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); z-index: 3; transition: opacity .2s; }
.sv-bars { display: flex; gap: 4px; }
.sv-bars span { flex: 1; height: 2.5px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars i { display: block; height: 100%; background: #fff; transform-origin: right; }
.sv-who { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: #fff; }
.sv-av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #222 center/cover; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.sv-av img { width: 84%; }
.sv-name { font-size: 14.5px; font-weight: 700; } .sv-ago { font-size: 13px; opacity: .7; }
.sv-acts { margin-inline-start: auto; display: flex; gap: 2px; }
.sv-acts button { width: 40px; height: 40px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.sv-acts button:active { background: rgba(255, 255, 255, .15); }
.sv-tap { position: absolute; top: 90px; bottom: 90px; border: 0; background: none; z-index: 1; padding: 0; }
.sv-tap.prev { right: 0; width: 35%; } .sv-tap.next { left: 0; width: 65%; }
.sv-stk { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sv-stk > * { pointer-events: auto; }
.sv-bot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 16px 12px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); transition: opacity .2s; }
.sv-reply { flex: 1; display: flex; }
.sv-reply input { flex: 1; height: 46px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .15); color: #fff; padding: 0 18px; font-size: 16px; outline: 0; }
.sv-reply input::placeholder { color: rgba(255, 255, 255, .8); }
.sv-ib { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sv-like svg { fill: none; stroke: #fff; stroke-width: 2; }
.sv-like.on svg { fill: #FF3B5C; stroke: #FF3B5C; filter: drop-shadow(0 0 8px rgba(255, 59, 92, .7)); }
.sv-like.pop svg { animation: heartPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heartPop { 30% { transform: scale(1.35); } }
.sv-views { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-inline-end: auto; }
.sv-up { position: absolute; bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; font-weight: 600; z-index: 3; opacity: .85; animation: upHint 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes upHint { 50% { transform: translateY(-5px); } }
.sv.ui-off .sv-top, .sv.ui-off .sv-bot, .sv.ui-off .sv-up { opacity: 0; }
.sv-menu { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px max(12px, env(safe-area-inset-bottom)); }
.sv-menu-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.sv-menu-c { position: relative; width: 100%; max-width: 440px; border-radius: 22px; overflow: hidden; background: rgba(30, 29, 36, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); animation: peekPop .25s ease-out; }
.sv-menu-c button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; background: none; color: var(--ink); font-size: 16px; }
.sv-menu-c button + button { border-top: 1px solid var(--hair); }
.sv-menu-c button.red { color: #FF7A6E; }
.sv-res b { display: block; margin-bottom: 8px; } .sv-rr { display: flex; justify-content: space-between; padding: 6px 0; } .sv-rr em { font-style: normal; font-weight: 700; color: var(--y); }
.sv-heart { color: #FF3B5C; font-size: 18px; }
/* tappable stickers (viewer and composer) */
.sk { position: absolute; transform-origin: center; }
.sk-poll { width: 240px; background: #fff; color: #111; border-radius: 18px; padding: 14px 12px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center; }
.sk-poll > b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.sk-opts { display: grid; gap: 7px; }
.sk-opts button { position: relative; overflow: hidden; height: 42px; border-radius: 12px; border: 0; background: #F0EEEA; color: #111; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sk-opts button i { position: absolute; inset: 0 0 0 auto; background: linear-gradient(90deg, #F0C03A, #F7D26B); transition: width .5s cubic-bezier(.32, .72, 0, 1); }
.sk-opts button span, .sk-opts button em { position: relative; } .sk-opts button em { font-style: normal; font-weight: 800; }
.sk-opts button.me { box-shadow: inset 0 0 0 2px #111; }
.sk-q { width: 230px; border-radius: 18px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center; }
.sk-q > b { display: block; padding: 14px 14px 10px; font-size: 15.5px; font-weight: 800; background: linear-gradient(135deg, #F0C03A, #EC4899); color: #fff; line-height: 1.3; }
.sk-qin { display: block; width: calc(100% - 20px); margin: 10px; min-height: 40px; border-radius: 10px; border: 0; background: #F0EEEA; color: #8A8A90; font-size: 14px; }
.sk-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: #fff; color: #2F62C9; font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); white-space: nowrap; }
/* composer */
.sc { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; animation: svIn .22s ease-out; }
.sc-stage { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); overflow: hidden; background: #111; }
@media (min-width: 600px) { .sc-stage { border-radius: 18px; } }
.sc-bg, .sc-draw, .sc-layers { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-draw { pointer-events: none; } .sc[data-mode=draw] .sc-draw { pointer-events: auto; cursor: crosshair; } .sc[data-mode=draw] .sc-layers { pointer-events: none; }
.sl { position: absolute; transform-origin: center; touch-action: none; cursor: grab; white-space: pre; }
.sl.dying { opacity: .4; }
.sl-text { font-size: 30px; line-height: 1.25; max-width: 84%; white-space: pre-wrap; word-break: break-word; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.sl-text.bgm-1, .sl-text.bgm-2 { text-shadow: none; }
.sl-text span, .sp-edit textarea { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sl-text.bgm-1 span, .sl-text.bgm-2 span { background: var(--tb); padding: .08em .35em; border-radius: .28em; line-height: 1.55; }
.al-right { text-align: right; } .al-left { text-align: left; } .al-center { text-align: center; }
.sl-emoji { font-size: 56px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.sl-tag { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; font-size: 17px; font-weight: 800; background: #fff; color: #7C3AED; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.sl-tag svg { width: 18px; height: 18px; }
.sl-tag.tag-mention { color: #F97316; } .sl-tag.tag-hashtag { color: #EC4899; } .sl-tag.tag-time { color: #111; font-size: 22px; letter-spacing: 1px; }
.sl-tag.style-1 { background: #F0C03A; color: #111; } .sl-tag.style-2 { background: #111; color: #fff; }
.sc-trash { position: absolute; bottom: 26px; left: 50%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .7); opacity: 0; transform: scale(.7); transition: .2s; pointer-events: none; z-index: 5; }
.sc.dragging .sc-trash { opacity: 1; transform: none; } .sc-trash.hot { background: #EF4444; border-color: #EF4444; transform: scale(1.2) !important; }
.sc.dragging .sc-top, .sc.dragging .sc-bot { opacity: 0; pointer-events: none; }
.sc-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(12px, env(safe-area-inset-top)) 12px 0; z-index: 6; max-width: 620px; margin: 0 auto; transition: opacity .2s; }
.sc-tools { display: flex; gap: 6px; }
.sc-b { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.sc-b:active { transform: scale(.92); }
.sc:not([data-mode=main]) .sc-tools { display: none; }
.sc-bot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 14px 12px max(14px, env(safe-area-inset-bottom)); z-index: 6; max-width: 620px; margin: 0 auto; transition: opacity .2s; }
.sc:not([data-mode=main]) .sc-bot { display: none; }
.sc-pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; border: 0; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.sc-pill.ghost { background: rgba(0, 0, 0, .4); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.sc-pill.main { margin-inline-start: auto; background: #fff; color: #111; padding-inline-start: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.sc-pill.main.busy { opacity: .7; }
.sc-me { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #F0C03A, #EC4899) center/cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #EC4899; flex: none; }
.sc-panel { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: flex-end; }
.sc[data-mode=text] .sc-panel { background: rgba(0, 0, 0, .55); justify-content: stretch; }
.sp-text { flex: 1; display: flex; flex-direction: column; padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 14px max(16px, env(safe-area-inset-bottom)); max-width: 620px; width: 100%; margin: 0 auto; }
.sp-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.sp-chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sp-chip.on { background: #fff; color: #111; }
.sp-ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; }
.sp-ib.on { background: #fff; color: #111; } .sp-ib:disabled { opacity: .35; }
.sp-edit { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.sp-edit textarea { width: 100%; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 30px; line-height: 1.3; text-align: inherit; resize: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); caret-color: #F0C03A; }
.sp-edit.bgm-1 textarea, .sp-edit.bgm-2 textarea { background: var(--tb); border-radius: 14px; padding: 8px 14px; text-shadow: none; }
.sp-edit textarea::placeholder { color: rgba(255, 255, 255, .55); }
.sp-cols { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 10px 0 4px; }
.sp-cols button { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .9); flex: none; }
.sp-cols button.on { transform: scale(1.25); box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), 0 0 12px rgba(255, 255, 255, .5); }
.sp-sheet { position: relative; background: rgba(22, 21, 27, .9); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border-radius: 28px 28px 0 0; padding: 8px 16px max(18px, env(safe-area-inset-bottom)); max-height: 72%; overflow-y: auto; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); animation: sheetUp .3s cubic-bezier(.32, .72, 0, 1); max-width: 620px; width: 100%; margin: 0 auto; }
.sp-grab { width: 38px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .3); margin: 2px auto 14px; }
.sp-h { display: block; font-size: 17px; margin: 0 0 10px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.sp-tag { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: #fff; font-weight: 800; font-size: 14.5px; color: #7C3AED; }
.sp-tag svg { width: 16px; height: 16px; }
.sp-tag.t-mention { color: #F97316; } .sp-tag.t-hashtag { color: #EC4899; } .sp-tag.t-time { color: #111; } .sp-tag.t-question { background: linear-gradient(135deg, #F0C03A, #EC4899); color: #fff; } .sp-tag.t-poll { background: #111; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); } .sp-tag.t-link { color: #2F62C9; }
.sp-emo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sp-emo button { height: 52px; border: 0; background: none; font-size: 32px; border-radius: 12px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.sp-emo button:active { background: rgba(255, 255, 255, .1); }
.sp-form { display: flex; flex-direction: column; gap: 12px; }
.sp-people { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-people button { height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #FDBA74; font-weight: 700; }
.sp-draw { background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); padding: 30px 12px max(16px, env(safe-area-inset-bottom)); max-width: 620px; width: 100%; margin: 0 auto; }
.sp-dot { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
.sp-dot i { display: block; border-radius: 50%; background: #fff; } .sp-dot.on { box-shadow: inset 0 0 0 2px #fff; }
.sp-fx { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sp-fx button { flex: none; width: 70px; border: 0; background: none; color: #fff; font-size: 12px; text-align: center; padding: 0; }
.sp-fx i { display: block; width: 70px; height: 92px; border-radius: 12px; margin-bottom: 6px; } .sp-fx button.on i { box-shadow: 0 0 0 2.5px #F0C03A; } .sp-fx button.on { color: var(--y); font-weight: 700; }
.sp-grads { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-grads button { width: 48px; height: 48px; border-radius: 50%; border: 0; } .sp-grads button.on { box-shadow: 0 0 0 3px #16151B, 0 0 0 5.5px #fff; }
.sp-row-b { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; padding: 0 16px; font-size: 15px; font-weight: 600; }
.sc[data-mode=draw] .sc-panel { pointer-events: none; } .sc[data-mode=draw] .sp-draw { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .sv, .sc, .sv-stage.slide, .sv-up, .sp-sheet { animation: none !important; } }
.sc-pill { white-space: nowrap; }
@media (max-width: 400px) { .sc-pill.ghost { padding: 0 12px; } .sc-pill.ghost span { font-size: 13.5px; } }
.sc-panel[hidden] { display: none !important; }

/* ---------- the story text screen (like Instagram) ---------- */
.tx { position: absolute; inset: 0; }
.tx-size { position: absolute; left: 12px; top: max(90px, calc(env(safe-area-inset-top) + 74px)); height: min(32vh, 230px); width: 36px; touch-action: none; cursor: ns-resize; z-index: 2; }
.tx-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; background: rgba(255, 255, 255, .45); clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%); border-radius: 6px; }
.tx-knob { position: absolute; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.tx-edit { position: absolute; left: 58px; right: 18px; top: max(80px, calc(env(safe-area-inset-top) + 64px)); bottom: calc(var(--kb, 0px) + 200px); display: flex; align-items: center; justify-content: center; }
.tx-edit textarea { width: 100%; max-height: 100%; background: none; border: 0; outline: 0; color: inherit; font: inherit; line-height: 1.25; text-align: inherit; resize: none; caret-color: #F0C03A; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.tx-edit textarea::placeholder { color: rgba(255, 255, 255, .55); }
.tx-edit.bgm-1 textarea, .tx-edit.bgm-2 textarea { background: var(--tb); border-radius: .3em; padding: .15em .4em; text-shadow: none; }
.tx-bot { position: absolute; left: 0; right: 0; bottom: var(--kb, 0px); padding: 0 0 max(6px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); }
html.kb-on .tx-bot { padding-bottom: 0; }
.tx-ctx { min-height: 64px; display: flex; flex-direction: column; justify-content: center; }
.tx-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px; align-items: center; scroll-snap-type: x proximity; }
.tx-row::-webkit-scrollbar, .tx-pages::-webkit-scrollbar { display: none; }
.tx-font { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .25); color: #fff; font-size: 16px; scroll-snap-align: center; white-space: nowrap; }
.tx-font.on { background: #fff; color: #111; }
.tx-tag { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .16); color: #FDBA74; font-weight: 700; }
.tx-empty { color: rgba(255, 255, 255, .7); font-size: 13px; padding: 0 8px; }
.tx-colors { display: flex; align-items: center; gap: 6px; padding: 6px 12px 2px; }
.tx-drop { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .3); color: #fff; display: flex; align-items: center; justify-content: center; }
.tx-drop.on { background: #fff; color: #111; }
.tx-pages { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tx-page { flex: none; width: 100%; display: flex; justify-content: space-between; align-items: center; scroll-snap-align: start; padding: 4px 4px; }
.tx-page button { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #fff; flex: none; }
.tx-page button.on { transform: scale(1.22); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 0 12px rgba(255, 255, 255, .5); }
.tx-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0 2px; }
.tx-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); } .tx-dots i.on { background: #fff; }
.tx-none { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .3); color: #fff; display: flex; align-items: center; justify-content: center; }
.tx-none.on { background: #fff; color: #111; }
.tx-fx { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; font-weight: 800; }
.tx-fx.on { border-color: #fff; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 2px #fff; }
.tx-fx.fx-pixel span { font-family: 'Rubik Pixels', monospace; font-weight: 400; } .tx-fx.fx-typewriter span { font-family: 'Cousine', monospace; }
.tx-tools { display: flex; justify-content: center; gap: 12px; padding: 6px 12px; }
.tx-tools button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.tx-tools button b { font-size: 18px; font-weight: 800; }
.tx-tools button.on { background: #fff; color: #111; }
.tx-wheel { display: block; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#EF4444, #F0C03A, #10B981, #3B82F6, #8B5CF6, #EC4899, #EF4444); }
.tx-ml { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 4px; }
.tx-ml button { height: 46px; border: 0; background: none; color: #fff; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tx-ml button svg { width: 17px; height: 17px; }
.tx-ml i { height: 22px; background: rgba(255, 255, 255, .3); }
/* text effects: on the stage, in the editor, on the effect chips */
.fx-neon span, .tx-edit.fx-neon textarea, .tx-fx.fx-neon span { color: #fff !important; text-shadow: 0 0 .06em #fff, 0 0 .22em var(--tc, #EC4899), 0 0 .55em var(--tc, #EC4899), 0 0 1em var(--tc, #EC4899) !important; }
.tx-fx.fx-neon span { --tc: #EC4899; }
.fx-pop span, .tx-edit.fx-pop textarea, .tx-fx.fx-pop span { text-shadow: .07em .07em 0 rgba(0, 0, 0, .85) !important; }
.sl-text.fx-sparkle span, .tx-fx.fx-sparkle span { background: linear-gradient(120deg, #F7D26B, #FFF6C9 50%, #F0C03A); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 0 .2em rgba(240, 192, 58, .75)); }
.sl-text.fx-sparkle span::before, .sl-text.fx-sparkle span::after { content: '✦'; position: absolute; color: #FFF6C9; font-size: .4em; animation: spk 1.6s ease-in-out infinite; }
.sl-text.fx-sparkle span::before { top: -.3em; right: -.4em; } .sl-text.fx-sparkle span::after { bottom: -.2em; left: -.3em; animation-delay: .8s; }
.sl-text.fx-sparkle span { position: relative; }
@keyframes spk { 50% { opacity: .2; transform: scale(.6) rotate(45deg); } }
.tx-edit.fx-sparkle textarea { color: #F7D26B !important; text-shadow: 0 0 .3em rgba(240, 192, 58, .8); }
.sl-text.fx-shimmer span, .tx-fx.fx-shimmer span { background: linear-gradient(100deg, var(--ink, #fff) 35%, #fff 50%, var(--ink, #fff) 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shim 2.2s linear infinite; }
.tx-fx.fx-shimmer span { --ink: #F0C03A; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.tx-edit.fx-shimmer textarea { text-shadow: 0 0 .3em rgba(255, 255, 255, .7); }
.fx-jump span i { display: inline-block; font-style: normal; animation: jmp 1.1s ease-in-out infinite; }
@keyframes jmp { 50% { transform: translateY(-.14em); } }
.sl-text.fx-typewriter span::after, .tx-fx.fx-typewriter span::after { content: ''; display: inline-block; width: .07em; height: .9em; background: currentColor; margin-inline-start: .06em; vertical-align: -.1em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.halo-1 span, .tx-edit.halo-1 textarea { -webkit-text-stroke: .09em var(--hc); paint-order: stroke fill; }
.halo-2 span, .tx-edit.halo-2 textarea { text-shadow: 0 0 .2em #fff, 0 0 .45em #fff !important; }
.sl-text { font-size: 32px; }
@media (prefers-reduced-motion: reduce) { .fx-jump span i, .sl-text.fx-shimmer span, .sl-text.fx-sparkle span::before, .sl-text.fx-sparkle span::after { animation: none; } }
.sl-text { width: max-content; max-width: 84%; }
.sc-bg { overflow: hidden; }
.sc-bg img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sc-layers { touch-action: none; }

/* =====================================================================
   STORIES 2026: camera, create, layout, video, quiz, slider, countdown, add yours, highlights
   ===================================================================== */
.sc-camw { position: absolute; inset: 0; overflow: hidden; background: #000; display: none; }
.sc-camw.mirror { transform: scaleX(-1); }
.sc[data-mode=camera] .sc-camw { display: block; }
.sc-camv { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; pointer-events: none; }
.sc-camc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.sc[data-mode=camera] .sc-bg, .sc[data-mode=camera] .sc-draw, .sc[data-mode=camera] .sc-layers, .sc[data-mode=layout] .sc-layers { visibility: hidden; }
.sc-camfail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #fff; padding: 30px; background: radial-gradient(60% 40% at 50% 40%, rgba(240, 192, 58, .18), transparent), #0B0B0C; z-index: 1; }
.sc-camfail span { color: rgba(255, 255, 255, .7); font-size: 14px; }
.sc:not([data-mode=camera]) .sc-camfail { display: none; }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 4; } .sc-flash.on { opacity: 1; }
.sc-cam { position: absolute; inset: 0; z-index: 6; pointer-events: none; display: none; max-width: 620px; margin: 0 auto; }
.sc[data-mode=camera] .sc-cam { display: block; }
.sc[data-mode=camera] .sc-tools, .sc[data-mode=camera] .sc-bot, .sc[data-mode=layout] .sc-tools, .sc[data-mode=layout] .sc-bot { display: none; }
.sc-cam > * { pointer-events: auto; }
.sc-fl { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; } .sc-fl.on { background: #F0C03A; color: #111; }
.sc-camb { position: absolute; left: 0; right: 0; bottom: max(64px, calc(env(safe-area-inset-bottom) + 52px)); display: flex; align-items: center; justify-content: space-around; padding: 0 24px; }
.sc-gal { width: 46px; height: 46px; border-radius: 12px; border: 2px solid #fff; background: rgba(0, 0, 0, .3); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sc-shot { position: relative; width: 84px; height: 84px; border: 0; border-radius: 50%; background: none; padding: 0; touch-action: none; }
.sc-shot svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-shot .ring { fill: none; stroke: #fff; stroke-width: 5; }
.sc-shot .prog { fill: none; stroke: #EC4899; stroke-width: 6; stroke-dasharray: 251.3; stroke-dashoffset: 251.3; stroke-linecap: round; }
.sc-shot i { position: absolute; inset: 12px; border-radius: 50%; background: #fff; transition: transform .2s, background .2s, inset .2s; }
.sc-shot:active i { transform: scale(.9); }
.sc-shot.rec i { inset: 26px; border-radius: 9px; background: #EF4444; }
.sc-modes { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 22px; }
.sc-modes button { background: none; border: 0; color: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 700; letter-spacing: .5px; min-height: 40px; }
.sc-modes button.on { color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .5); }
.sc-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* layout */
.sc-layout { position: fixed; inset: 0; z-index: 5; }
.sl-grid { position: fixed; overflow: hidden; background: #0B0B0C; }
@media (min-width: 600px) { .sl-grid { border-radius: 18px; } }
.sl-cell { position: absolute; display: flex; align-items: center; justify-content: center; background: #1A1920 center/cover; color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px #000; cursor: pointer; }
.sl-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 12px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); max-width: 620px; margin: 0 auto; }
.sl-types { display: flex; gap: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.sl-types button { flex: none; width: 44px; height: 54px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .3); padding: 4px; }
.sl-types button.on { border-color: #fff; background: rgba(255, 255, 255, .15); }
.sl-types i { position: relative; display: block; width: 100%; height: 100%; }
.sl-types b { position: absolute; box-shadow: inset 0 0 0 1.5px #fff; border-radius: 2px; }
#slDone:disabled { opacity: .45; }
/* drawing */
.sp-draw .sp-row { flex-wrap: wrap; }
/* the answerable stickers */
.sl > .sk { position: static; transform: none; }
.skw { position: absolute; transform-origin: center; }
.sk-quiz { width: 250px; border-radius: 18px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center; }
.sk-quiz > b { display: block; padding: 14px 12px 12px; font-size: 16px; font-weight: 800; background: linear-gradient(135deg, #111, #2A2A35); color: #fff; line-height: 1.3; }
.qz-opts { display: grid; gap: 6px; padding: 10px; }
.qz-opts button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 12px; border: 0; background: #F0EEEA; color: #111; font-weight: 700; font-size: 15px; text-align: start; }
.qz-opts i { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; color: #555; flex: none; }
.qz-opts span { flex: 1; } .qz-opts em { font-style: normal; font-weight: 800; font-size: 13px; }
.qz-opts button.ok { background: #22C55E; color: #fff; } .qz-opts button.ok i { color: #22C55E; }
.qz-opts button.no { background: #EF4444; color: #fff; animation: qzNo .4s; } .qz-opts button.no i { color: #EF4444; }
@keyframes qzNo { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sk-slider { width: 240px; border-radius: 18px; background: #fff; color: #111; padding: 14px 16px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center; }
.sk-slider > b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.sk-track { position: relative; height: 10px; border-radius: 99px; background: #E9E6E1; touch-action: none; cursor: pointer; }
.sk-track .fill { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 99px; background: linear-gradient(270deg, #F0C03A, #EC4899); width: 0; }
.sk-track .thumb { position: absolute; top: 50%; left: 0; transform: translate(50%, -50%); font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); transition: transform .1s; }
.sk-track .thumb.done { transform: translate(50%, -50%) scale(.8); }
.sk-track .avg { position: absolute; top: -8px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #111; box-shadow: 0 0 0 3px #fff; }
.sk-track .avg::after { content: 'ממוצע'; position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: #555; white-space: nowrap; }
.sk-cd { width: 240px; border-radius: 18px; background: linear-gradient(135deg, #7C3AED, #EC4899); color: #fff; padding: 14px 14px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center; }
.sk-cd > b { display: block; font-size: 15px; font-weight: 800; opacity: .95; }
.cd-n { font-size: 30px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; margin: 4px 0 2px; direction: ltr; }
.sk-cd small { font-size: 12px; opacity: .85; }
.sk-ay { width: 230px; border-radius: 18px; background: #fff; color: #111; padding: 12px 14px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center; }
.ay-h { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #EC4899; }
.sk-ay > b { display: block; font-size: 16px; font-weight: 800; margin: 6px 0 10px; }
.ay-b { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #F0C03A, #EC4899); color: #fff; font-weight: 800; font-size: 14px; }
.sl-photo img { display: block; width: 180px; height: auto; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); pointer-events: none; }
.qz-row { display: flex; align-items: center; gap: 10px; } .qz-row input[type=radio] { width: 22px; height: 22px; accent-color: #22C55E; flex: none; }
.sp-emo.sm { grid-template-columns: repeat(8, 1fr); } .sp-emo button.on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px #fff; }
/* viewer: video, quick reactions */
.sv-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sv-ovl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sv-quick { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); display: flex; justify-content: space-around; padding: 10px 8px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; margin: 0 10px; animation: peekPop .2s ease-out; }
.sv-quick button { width: 40px; height: 44px; border: 0; background: none; font-size: 28px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.sv-quick button:active { transform: scale(1.3); }
.sv-bot { position: absolute; }
.sv-float { position: absolute; bottom: 90px; z-index: 6; pointer-events: none; animation: svFloat 1.6s ease-out forwards; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
@keyframes svFloat { from { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-60vh) scale(1.2) rotate(15deg); opacity: 0; } }
.sv .sl-tag.tag-mention { border: 0; cursor: pointer; }
/* highlights */
.hl-bar { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 12px; }
.hl-bar::-webkit-scrollbar { display: none; }
.hl-i { flex: none; width: 66px; background: none; border: 0; padding: 0; text-align: center; color: var(--ink); }
.hl-r { display: block; width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; padding: 3px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.hl-p { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #222 center/cover; color: #fff; }
.hl-n { display: block; font-size: 11.5px; margin-top: 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .sv-float, .qz-opts button.no { animation: none; } }
.sc-camfail[hidden] { display: none !important; }
.skw > .sk { position: static; transform: none; }
.sk-track .thumb { transform: translate(-50%, -50%); }
.sk-track .thumb.done { transform: translate(-50%, -50%) scale(.8); }
[hidden] { display: none !important; }
.cd-n { white-space: nowrap; font-size: 26px; letter-spacing: 0; }
/* the font's own look (slant / narrow) on the stage and in the editor */
.sl-text > span { display: inline-block; transform: var(--ft, none); }
.tx-edit textarea { transform: var(--ft, none); }

/* =====================================================================
   STORIES: the glass tray (flick up), photo shapes, Instagram motion
   ===================================================================== */
.sc[data-mode=stickers] .sc-panel { background: rgba(0, 0, 0, .25); }
.tray { position: relative; display: flex; flex-direction: column; height: min(78%, 620px); width: 100%; max-width: 620px; margin: 0 auto; border-radius: 30px 30px 0 0; overflow: hidden;
  background: rgba(30, 29, 36, .62); backdrop-filter: blur(34px) saturate(1.6); -webkit-backdrop-filter: blur(34px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 -20px 60px rgba(0, 0, 0, .5);
  animation: trayUp .42s cubic-bezier(.32, .72, 0, 1); transition: transform .3s cubic-bezier(.32, .72, 0, 1); }
.tray.out { transform: translateY(100%) !important; }
.tray.tray-sm { height: auto; padding: 0 16px max(18px, env(safe-area-inset-bottom)); }
@keyframes trayUp { from { transform: translateY(100%); } }
.tray-grab { flex: none; display: flex; justify-content: center; padding: 10px 0 8px; touch-action: none; cursor: grab; }
.tray-grab i { width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .45); }
.tray-search { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.tray-search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font-size: 16px; }
.tray-search input::placeholder { color: rgba(255, 255, 255, .6); }
.tray-body { flex: 1; overflow-y: auto; padding: 4px 14px max(18px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.tray-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; justify-items: center; padding: 6px 0 16px; }
.tray-empty { grid-column: 1 / -1; color: rgba(255, 255, 255, .7); padding: 20px; }
.tile { border: 0; background: none; padding: 0; min-height: 54px; display: flex; align-items: center; justify-content: center; transition: transform .2s cubic-bezier(.32, .72, 0, 1); }
.tile:active { transform: scale(.9); }
.tile > span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); white-space: nowrap; transform: rotate(-2deg); }
.tile-location .tl { color: #7C3AED; } .tile-mention .tl { color: #F97316; } .tile-hashtag .tl { color: #EC4899; } .tile-link .tl { color: #2F62C9; } .tile-photo .tl { color: #10B981; } .tile-addyours .tl { color: #fff; background: linear-gradient(135deg, #F0C03A, #EC4899); }
.tq { flex-direction: column; gap: 3px !important; background: linear-gradient(135deg, #F0C03A, #EC4899) !important; color: #fff; padding: 8px 12px !important; transform: rotate(2deg) !important; }
.tq b { font-size: 13px; } .tq i { font-style: normal; font-size: 10px; background: #fff; color: #999; border-radius: 6px; padding: 2px 10px; }
.tp { gap: 5px !important; padding: 6px !important; } .tp b { background: #F0EEEA; border-radius: 8px; padding: 4px 10px; font-size: 12px; color: #111; }
.tz { flex-direction: column; gap: 3px !important; padding: 7px 12px !important; background: #111 !important; color: #fff; } .tz b { font-size: 12px; } .tz i { width: 54px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.ts { gap: 6px !important; } .ts b { font-size: 18px; } .ts i { width: 46px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, #EC4899, #F0C03A); }
.tc { flex-direction: column; gap: 1px !important; padding: 6px 12px !important; background: linear-gradient(135deg, #7C3AED, #EC4899) !important; color: #fff; transform: rotate(2deg) !important; } .tc b { font-size: 11px; } .tc i { font-style: normal; font-size: 13px; letter-spacing: 1px; }
.tt { font-size: 18px !important; letter-spacing: 1px; color: #111; }
.tray-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tray-tabs::-webkit-scrollbar { display: none; }
.tray-tabs button { flex: none; width: 42px; height: 38px; border-radius: 12px; border: 0; background: none; font-size: 22px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.tray-tabs button.on { background: rgba(255, 255, 255, .18); }
/* the extra photo */
.sl-photo .phx { overflow: hidden; background: #222; }
.sl-photo .phx img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.sl-photo { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.sh-frame .phx { border: 6px solid #fff; border-radius: 14px; }
.sh-none .phx { border-radius: 6px; }
.sh-circle .phx { border: 5px solid #fff; border-radius: 50%; }
.sh-arch .phx { border: 6px solid #fff; border-radius: 999px 999px 12px 12px; }
.sh-polaroid .phx { border: 10px solid #fff; border-bottom-width: 44px; border-radius: 2px; }
.sh-heart .phx { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 100C-20 57 2.5-2.5 50 29 97.5-2.5 120 57 50 100z'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 100C-20 57 2.5-2.5 50 29 97.5-2.5 120 57 50 100z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.sh-star .phx { clip-path: polygon(50% 0%, 62.3% 33%, 97.6% 34.5%, 69.9% 56.5%, 79.4% 90.5%, 50% 71%, 20.6% 90.5%, 30.1% 56.5%, 2.4% 34.5%, 37.7% 33%); }
.sh-hex .phx { clip-path: polygon(93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%, 50% 0%, 93.3% 25%); }
.ph-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ph-shapes button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 4px 8px; color: #fff; font-size: 12px; font-weight: 600; }
.ph-shapes button.on { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 2px #fff; }
.phs { width: 34px; height: 34px; background: linear-gradient(135deg, #F0C03A, #EC4899); }
.phs-frame { border: 3px solid #fff; border-radius: 7px; } .phs-none { border-radius: 4px; } .phs-circle { border-radius: 50%; border: 3px solid #fff; } .phs-arch { border-radius: 99px 99px 5px 5px; border: 3px solid #fff; }
.phs-polaroid { border: 4px solid #fff; border-bottom-width: 10px; border-radius: 1px; }
.phs-heart { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 100C-20 57 2.5-2.5 50 29 97.5-2.5 120 57 50 100z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.phs-star { clip-path: polygon(50% 0%, 62.3% 33%, 97.6% 34.5%, 69.9% 56.5%, 79.4% 90.5%, 50% 71%, 20.6% 90.5%, 30.1% 56.5%, 2.4% 34.5%, 37.7% 33%); }
.phs-hex { clip-path: polygon(93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%, 50% 0%, 93.3% 25%); }
.ph-ratios { display: flex; gap: 8px; } .ph-ratios button { flex: 1; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; } .ph-ratios button.on { background: #fff; color: #111; } .ph-ratios button:disabled { opacity: .3; }
/* Instagram motion: layers pop in, leave into the trash, guides when centred */
.sl.pop { animation: slPop .42s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes slPop { from { opacity: 0; scale: .5; } }
.sl.dying { opacity: .5; scale: .55; transition: scale .18s, opacity .18s; }
.sl.gone { opacity: 0; scale: .2; transition: scale .2s, opacity .2s; }
.sc-bg.dying { opacity: .5; transition: opacity .2s; }
.sc-guide { position: absolute; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .12s; background: #EC4899; }
.sc-guide.gx { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; } .sc-guide.gy { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; }
.sc-guide.on { opacity: .9; }
.sc-trash { width: 60px; height: 60px; margin-left: -30px; bottom: 30px; }
.sc-trash.hot { animation: trashPulse .5s ease; }
@keyframes trashPulse { 40% { transform: scale(1.35); } }
.sc-b, .sc-pill, .tx-tools button, .sp-chip, .tx-font, .sc-modes button { transition: transform .2s cubic-bezier(.32, .72, 0, 1), background .2s, color .2s; }
.sc-b:active, .sc-pill:active, .tx-tools button:active, .tx-font:active { transform: scale(.9); }
.sc { animation: scIn .38s cubic-bezier(.32, .72, 0, 1); }
@keyframes scIn { from { transform: translateY(6%); opacity: 0; } }
.sc-hint { position: absolute; left: 0; right: 0; bottom: 96px; text-align: center; color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 600; z-index: 6; pointer-events: none; animation: upHint 1.6s ease-in-out 3, hintOut .4s ease 4.8s forwards; }
@keyframes hintOut { to { opacity: 0; } }
.sc:not([data-mode=main]) .sc-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .tray, .sl.pop, .sc, .sc-hint, .sc-trash.hot { animation: none; } }
.sl-photo .phx img { width: 100% !important; height: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
/* the viewer opens out of the tapped circle, and turns like a cube between people */
.sv.zoom { animation: svZoom .38s cubic-bezier(.32, .72, 0, 1); }
@keyframes svZoom { from { clip-path: circle(34px at var(--ox) var(--oy)); opacity: .6; } to { clip-path: circle(160% at var(--ox) var(--oy)); opacity: 1; } }
.sv { perspective: 1400px; }
.sv-stage.cube-n { animation: cubeN .42s cubic-bezier(.32, .72, 0, 1); transform-origin: right center; }
.sv-stage.cube-p { animation: cubeP .42s cubic-bezier(.32, .72, 0, 1); transform-origin: left center; }
@keyframes cubeN { from { transform: translateX(-100%) rotateY(-70deg); } }
@keyframes cubeP { from { transform: translateX(100%) rotateY(70deg); } }
@media (prefers-reduced-motion: reduce) { .sv.zoom, .sv-stage.cube-n, .sv-stage.cube-p { animation: none; } }

/* ---------- "add to story": recents, drafts, collage (a flick up on the camera) ---------- */
.sc-up { position: absolute; left: 50%; bottom: max(150px, calc(env(safe-area-inset-bottom) + 138px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: #fff; padding: 4px 10px; animation: upHint 1.6s ease-in-out 4; }
.sc-upth { display: none; }
.adds { position: fixed; inset: 0; z-index: 8; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .35); }
.adds.out .adds-in { transform: translateY(100%); }
.adds-in { position: relative; width: 100%; max-width: 620px; height: 92%; display: flex; flex-direction: column; background: #0B0B0C; border-radius: 26px 26px 0 0; overflow: hidden; animation: trayUp .42s cubic-bezier(.32, .72, 0, 1); transition: transform .26s cubic-bezier(.32, .72, 0, 1); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
.adds-grab { flex: none; display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; cursor: grab; }
.adds-grab i { width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .35); }
.adds-h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 12px; color: #fff; }
.adds-h b { font-size: 18px; font-weight: 800; }
.adds-h .sc-b { background: none; box-shadow: none; }
.adds-tiles { flex: none; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 14px 16px; }
.adds-tiles::-webkit-scrollbar { display: none; }
.adds-tiles button { flex: none; width: 104px; height: 88px; border-radius: 14px; border: 0; background: #1C1C20; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .2s; }
.adds-tiles button:active { transform: scale(.94); }
.adds-tiles svg { width: 28px; height: 28px; }
.ay-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 28px; border-radius: 999px; background: #fff; color: #EC4899; }
.lay-ic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 28px; height: 28px; } .lay-ic b { border-radius: 3px; background: linear-gradient(135deg, #F0C03A, #EC4899); }
.aa { font-size: 24px; font-weight: 800; }
.adds-r { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 10px; color: #fff; }
.adds-r b { font-size: 17px; font-weight: 800; }
.adds-r button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: #1C1C20; color: #fff; font-weight: 700; font-size: 14px; }
.adds-r button.on { background: #fff; color: #111; } .adds-r svg { width: 18px; height: 18px; }
.adds-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; padding-bottom: 90px; }
.adds-grid > * { aspect-ratio: 9 / 16; border: 0; position: relative; }
.ag-cam, .ag-all { background: #1C1C20; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ag { background: #222 center/cover; padding: 0; transition: opacity .15s; } .ag:active { opacity: .7; }
.ag em { position: absolute; bottom: 6px; left: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.ag em svg { width: 18px; height: 18px; fill: #fff; }
.ag-n { position: absolute; top: 7px; left: 7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ag-n.on { background: #3B82F6; border-color: #3B82F6; }
.ag-t { position: absolute; bottom: 6px; right: 6px; font-style: normal; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .5); border-radius: 6px; padding: 1px 6px; }
.adds-empty { color: rgba(255, 255, 255, .6); font-size: 13px; text-align: center; padding: 18px 20px; }
.adds-go { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); margin: 0; }
@media (prefers-reduced-motion: reduce) { .adds-in, .sc-up { animation: none; } }

/* =====================================================================
   STORIES · buttons in Push-Up's line: frosted glass, the yellow light, the pink/violet aura
   ===================================================================== */
:root { --st-glass: rgba(18, 17, 22, .42); --st-edge: rgba(255, 255, 255, .16); --st-grad: linear-gradient(135deg, #FFD866, #F0C03A 45%, #EC4899 80%, #7C3AED); }
/* round glass buttons (top of the editor, camera, viewer) */
.sc-b, .sc-gal, .sc-flip, .sv-acts button, .sv-ib, .sp-ib, .tx-tools button, .tx-drop, .tx-none {
  background: var(--st-glass) !important; color: #fff; border: 0 !important;
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--st-edge), inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 18px -8px rgba(0, 0, 0, .7) !important;
  transition: transform .22s cubic-bezier(.32, .72, 0, 1), box-shadow .22s, background .22s; }
.sc-b:active, .sc-gal:active, .sc-flip:active, .sv-acts button:active, .sv-ib:active, .tx-tools button:active { transform: scale(.88); }
.sc-b { width: 46px; height: 46px; }
/* the editor's tools sit together in one glass capsule */
.sc-tools { gap: 2px; padding: 4px; border-radius: 999px; background: var(--st-glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--st-edge), 0 10px 26px -12px rgba(0, 0, 0, .8); }
.sc-tools .sc-b { background: transparent !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; width: 44px; height: 44px; }
.sc-tools .sc-b:hover { background: rgba(255, 255, 255, .1) !important; }
/* switched on: the yellow light */
.sc-fl.on, .tx-tools button.on, .tx-drop.on, .tx-none.on, .sp-ib.on {
  background: #fff !important; color: #111 !important;
  box-shadow: 0 0 16px -4px rgba(255, 255, 255, .7) !important; }
/* the bottom of the editor */
.sc-pill.ghost { background: var(--st-glass) !important; backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--st-edge), inset 0 1px 0 rgba(255, 255, 255, .16) !important; height: 48px; }
.sc-pill.main { height: 52px; background: linear-gradient(180deg, rgba(40, 38, 48, .72), rgba(10, 10, 14, .82)) !important; color: #fff !important; font-weight: 800;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 26px -4px rgba(236, 72, 153, .65), 0 0 44px -10px rgba(124, 58, 237, .7), 0 10px 28px -10px rgba(0, 0, 0, .9) !important;
  animation: mainGlow 3.2s ease-in-out infinite; }
@keyframes mainGlow { 50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 34px -2px rgba(236, 72, 153, .8), 0 0 56px -8px rgba(124, 58, 237, .85), 0 10px 28px -10px rgba(0, 0, 0, .9); } }
.sc-pill.main svg { width: 18px; height: 18px; }
.sc-me { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(17, 17, 17, .85) !important; background: var(--st-grad) center/cover !important; }
.sc-pill:active { transform: scale(.95); }
/* the camera: a shutter with the aura, glass gallery and flip, modes in a capsule */
.sc-shot { width: 88px; height: 88px; }

.sc-shot::before { display: none; content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 4px; background: conic-gradient(from 210deg, #FFD866, #F0C03A, #EC4899, #7C3AED, #FFD866);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%); mask: radial-gradient(circle, transparent 61%, #000 62%); animation: shotSpin 6s linear infinite; }
@keyframes shotSpin { to { transform: rotate(360deg); } }
.sc-shot .ring { opacity: 1; stroke: #fff; }
.sc-shot i { inset: 11px; background: #fff; box-shadow: inset 0 -4px 10px rgba(0, 0, 0, .12), 0 0 0 3px rgba(0, 0, 0, .25); }
.sc-shot.rec::before { background: conic-gradient(#EF4444, #EC4899, #EF4444); }
.sc-gal { width: 52px !important; height: 52px !important; border-radius: 16px !important; }
.sc-flip { width: 52px !important; height: 52px !important; }
.sc-modes { gap: 4px; left: 50%; right: auto; transform: translateX(-50%); padding: 4px; border-radius: 999px; background: var(--st-glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--st-edge); }
.sc-modes button { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: rgba(255, 255, 255, .72); letter-spacing: .2px; }
.sc-modes button.on { color: #111; background: #fff; text-shadow: none; box-shadow: 0 0 18px -4px rgba(255, 255, 255, .6); }
.sc-up { flex-direction: row; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--st-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--st-edge); font-size: 12px; }
.sc-up::after { content: 'גלריה'; font-weight: 700; }
.sc-up svg { width: 16px; height: 16px; }
/* the text screen */
.tx-tools { gap: 10px; }
.tx-tools button { width: 46px; height: 46px; }
.tx-font { background: var(--st-glass); border: 0 !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tx-font.on { background: #fff; color: #111; box-shadow: 0 0 18px -4px rgba(255, 255, 255, .6); }
.tx-fx { background: var(--st-glass); border: 0 !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.tx-fx.on { box-shadow: inset 0 0 0 2px #fff, 0 0 18px -4px rgba(255, 255, 255, .6); }
.tx-ml { border-top-color: rgba(255, 255, 255, .1); }
.tx-ml button { border-radius: 12px; } .tx-ml button:active { background: rgba(255, 255, 255, .08); }
.sp-chip { background: var(--st-glass); box-shadow: inset 0 0 0 1px var(--st-edge); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sp-chip.on { background: #fff; color: #111; box-shadow: 0 0 16px -4px rgba(255, 255, 255, .6); }
/* the viewer */
.sv-acts { gap: 6px; }
.sv-acts button { width: 38px; height: 38px; }
.sv-reply input { height: 48px; border: 0 !important; background: var(--st-glass) !important; backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); transition: box-shadow .2s; }
.sv-reply input:focus { box-shadow: inset 0 0 0 1.5px #fff, 0 0 22px -6px rgba(255, 255, 255, .6); }
.sv-ib { width: 48px; height: 48px; border-radius: 50%; }
.sv-like.on { box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .6), 0 0 22px -4px rgba(255, 59, 92, .8) !important; }
.sv-views { background: var(--st-glass) !important; box-shadow: inset 0 0 0 1px var(--st-edge); }

.sv-quick { background: var(--st-glass); box-shadow: inset 0 0 0 1px var(--st-edge); }
.sv-menu-c { background: rgba(22, 21, 27, .72); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--st-edge), 0 -10px 40px rgba(0, 0, 0, .5); }
/* "add to story" */
.adds-tiles button { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px var(--st-edge), 0 10px 24px -14px rgba(0, 0, 0, .9); }

.adds-r button { background: var(--st-glass); box-shadow: inset 0 0 0 1px var(--st-edge); }
.adds-r button.on { background: #fff; color: #111; }
.ag-cam, .ag-all { background: linear-gradient(160deg, rgba(240, 192, 58, .12), rgba(124, 58, 237, .1)), #141318; }
.ag-n.on { background: #fff; border-color: #fff; color: #111; }
/* the "my story" plus */
.st-plus { background: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .sc-pill.main { animation: none; } }

/* the store app's camera: the phone draws it behind the page; the page is see-through over the stage only */
html.natcam, html.natcam body { background: transparent !important; }
html.natcam body > *:not(.sc) { visibility: hidden !important; }
.sc.natcam { background: transparent !important; }
.sc.natcam .sc-stage, .sc.natcam .sc-camw { background: transparent !important; }
.sc.natcam .sc-stage { box-shadow: 0 0 0 100vmax #000; }
.sc.natcam .sc-camc, .sc.natcam .sc-camv { display: none !important; }

/* ---- Stories, round 4: like Instagram — own story: Activity (swipe up) + Create; no pause/delete buttons ---- */
.st-r.seen { background: rgba(255, 255, 255, .38); }
.sv-act { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px; border: 0; background: none; color: #fff; font-weight: 700; font-size: 14px; margin-inline-end: auto; position: relative; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.sv-act .sv-chev { position: absolute; top: -12px; left: 0; right: 0; justify-content: center; opacity: .85; animation: upHint 1.6s ease-in-out infinite; display: flex; }
.sv-act .sv-chev svg { width: 16px; height: 16px; }
.sv-avs { display: inline-flex; }
.sv-avs:empty { display: none; }
.sv-avs .cav { border: 2px solid #000; margin-inline-start: -8px; }
.sv-avs .cav:first-child { margin-inline-start: 0; }
.sv-add { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: #fff; font-size: 11px; font-weight: 600; min-width: 48px; min-height: 44px; }
.sv-add i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--st-glass, rgba(255, 255, 255, .16)); box-shadow: inset 0 0 0 1px var(--st-edge, rgba(255, 255, 255, .25)); font-style: normal; }
.sv-add:active i { transform: scale(.88); }
.sv .sv-stage { transition: transform .32s cubic-bezier(.2, .8, .2, 1), border-radius .32s; }
.sv.act .sv-stage { transform: translateY(calc(-33dvh + max(12px, env(safe-area-inset-top)))) scale(.34); border-radius: 40px; overflow: hidden; }
.sv.act .sv-top, .sv.act .sv-bot, .sv.act .sv-up, .sv.act .sv-stk { opacity: 0; pointer-events: none; }
.sv-actp { position: absolute; left: 0; right: 0; bottom: 0; top: calc(max(12px, env(safe-area-inset-top)) + 34dvh + 14px); z-index: 6; background: #16151A; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); touch-action: none; }
.sv-actp.on { transform: none; }
.sv-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 10px auto 4px; flex: none; }
.sv-acth { display: flex; align-items: center; justify-content: center; position: relative; padding: 6px 16px 10px; flex: none; color: #fff; font-size: 16px; }
.sv-acth .sv-ib { position: absolute; inset-inline-end: 10px; top: 0; }
.sv-actl { flex: 1; overflow-y: auto; padding: 0 14px max(16px, env(safe-area-inset-bottom)); touch-action: pan-y; overscroll-behavior: contain; }
.sv-actn { font-size: 13px; color: var(--muted); padding: 2px 4px 0; }
@media (prefers-reduced-motion: reduce) { .sv .sv-stage, .sv-actp { transition: none; } }

/* ---- the editor's bottom row (שמירה / תמונה / הסטורי שלך): one glass style, the glow inside the frame, none outside ---- */
.sc-bot .sc-pill.ghost, .sc-bot .sc-pill.main {
  height: 50px; color: #fff !important; animation: none !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), rgba(14, 13, 18, .45) !important;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 0 16px -2px rgba(236, 72, 153, .55), inset 0 -8px 20px -8px rgba(124, 58, 237, .75) !important;
}
.sc-bot .sc-pill.main { font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 0 20px -2px rgba(236, 72, 153, .7), inset 0 -10px 24px -8px rgba(124, 58, 237, .9), inset 0 8px 18px -10px rgba(240, 192, 58, .6) !important; }

/* ---- story sticker forms (poll, question, quiz, slider, location, link, countdown…): glass with the glow inside, glass buttons ---- */
.sp-sheet {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(14, 13, 18, .5) !important;
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 0 34px -6px rgba(236, 72, 153, .45), inset 0 -24px 40px -18px rgba(124, 58, 237, .7) !important;
  overscroll-behavior: contain;
}
.sp-sheet .sp-grab { width: 44px; height: 5px; margin: 4px auto 14px; background: rgba(255, 255, 255, .45); }
.sp-sheet .fld > span, .sp-sheet .fld span:first-child { color: rgba(255, 255, 255, .72); }
.sp-sheet .in { background: rgba(255, 255, 255, .07) !important; border: 0 !important; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1); }
.sp-sheet .in:focus { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4), inset 0 0 14px -4px rgba(236, 72, 153, .6); }
.sp-sheet .btn, .sp-sheet .btn.dock {
  height: 52px; color: #fff !important; font-weight: 800; border: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), rgba(14, 13, 18, .45) !important;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 0 20px -2px rgba(236, 72, 153, .7), inset 0 -10px 24px -8px rgba(124, 58, 237, .9), inset 0 8px 18px -10px rgba(240, 192, 58, .6) !important;
}
.sp-sheet .qz-row input[type=radio] { accent-color: #EC4899; }
.sp-sheet .sp-chip { color: #fff; }

/* ---- real places: the picker (glass sheet) and the tappable place in the viewer ---- */
.sp-place { min-height: 56%; display: flex; flex-direction: column; }
.sp-place .pl-q { margin: 2px 0 10px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.sp-place .pl-q input { color: #fff; }
.pl-l { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.pl-r { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 4px; border: 0; background: none; color: #fff; text-align: start; border-radius: 14px; width: 100%; }
.pl-r:active { background: rgba(255, 255, 255, .08); }
.pl-r > i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 12px -3px rgba(236, 72, 153, .6); color: #fff; }
.pl-r > i svg { width: 18px; height: 18px; }
.pl-r > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-r b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-r em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-r em:empty { display: none; }
.pl-r small { flex: none; font-size: 12px; color: rgba(255, 255, 255, .55); }
.pl-note { font-size: 13px; color: rgba(255, 255, 255, .6); text-align: center; padding: 14px 10px; }
.sv .sl-tag.tag-location { border: 0; cursor: pointer; }
.pl-hd { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px 10px; color: #fff; font-size: 15px; }
.pl-hd svg { width: 18px; height: 18px; color: #A78BFA; }

/* ---- sticker looks (double tap): sy-1 glass with the glow inside · sy-2 a colour of your own (--skc / --skt / --ski) ---- */
.sy-1.sk, .sy-1 > .sk, .sl-tag.sy-1 {
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)), rgba(16, 14, 22, .34) !important; color: #fff !important;
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 22px -4px rgba(236, 72, 153, .65), inset 0 -12px 26px -10px rgba(124, 58, 237, .85), 0 8px 22px -10px rgba(0, 0, 0, .5) !important;
}
.sy-2.sk, .sy-2 > .sk, .sl-tag.sy-2 { background: var(--skc) !important; color: var(--skt) !important; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45) !important; }
/* the headers and the inner pieces follow the look */
.sy-1.sk > b, .sy-1 > .sk > b, .sy-2.sk > b, .sy-2 > .sk > b { background: none !important; color: inherit !important; }
.sy-1 .sk-opts button, .sy-1 .sk-qin, .sy-1 .qz-opts button, .sy-1 .sk-track { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.sy-2 .sk-opts button, .sy-2 .sk-qin, .sy-2 .qz-opts button, .sy-2 .sk-track { background: var(--ski) !important; color: var(--skt) !important; }
.sy-1 .qz-opts i, .sy-2 .qz-opts i { background: rgba(255, 255, 255, .25); color: inherit; }
.sy-1 .qz-opts button.ok, .sy-2 .qz-opts button.ok { background: #22C55E !important; color: #fff !important; } .sy-1 .qz-opts button.no, .sy-2 .qz-opts button.no { background: #EF4444 !important; color: #fff !important; }
.sy-1 .sk-qin, .sy-2 .sk-qin { opacity: .85; }
.sy-1 .ay-h, .sy-2 .ay-h { color: inherit; opacity: .85; }
.sy-1.sk-link, .sy-2.sk-link { color: inherit; }
.sy-1 .sk-track .avg::after, .sy-2 .sk-track .avg::after { color: inherit; }
.sl-tag.sy-1 svg, .sl-tag.sy-2 svg { color: inherit; }
/* the colour picker */
.sy-sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; justify-items: center; padding: 4px 0 12px; }
.sy-sw button, .sy-own { width: 42px; height: 42px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.sy-sw button.on { box-shadow: 0 0 0 3px rgba(14, 13, 18, .6), 0 0 0 5.5px #fff; transform: scale(1.06); }
.sy-own { position: relative; display: flex; align-items: center; justify-content: center; background: conic-gradient(#EF4444, #F0C03A, #A3E635, #06B6D4, #3B82F6, #8B5CF6, #EC4899, #EF4444); overflow: hidden; }
.sy-own input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sy-own i { width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; pointer-events: none; }
.sy-hint { font-size: 12.5px; color: rgba(255, 255, 255, .65); text-align: center; margin: 0 0 12px; }
/* stickers keep long words inside: cards wrap, chips shrink their letters to fit (fitChip) */
.sl.sk, .sl > .sk, .sk, .skw { white-space: normal; }
.sk > b, .sk-opts span, .qz-opts span, .sk-qin, .ay-b { overflow-wrap: anywhere; word-break: break-word; }
.sk-opts button { height: auto; min-height: 42px; padding: 8px 12px; line-height: 1.25; text-align: center; }
.sl-tag, .sk-link, .sl.sk-link, .sl.sl-tag { white-space: nowrap; }
.sl-tag > span, .sk-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.er-stack { margin: 8px 0 0; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font: 11px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; max-height: 220px; overflow: auto; }
