/*
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 */
.sheet form > .acts, .sheet form > button.btn.full:last-child { position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); z-index: 3; margin-bottom: 0; padding-top: 14px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(19, 18, 23, 0), #131217 32%); }
.sheet form > button.btn.full:last-child { padding-top: 0; box-shadow: 0 -14px 20px 6px #131217, var(--glow); }
/* 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; }
