@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(../vendor/fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(../vendor/fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(../vendor/fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(../vendor/fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(../vendor/fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(../vendor/fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(../vendor/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(../vendor/fonts/barlow-condensed-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url(../vendor/fonts/barlow-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url(../vendor/fonts/barlow-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(../vendor/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(../vendor/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(../vendor/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(../vendor/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
/* task 047: "V3", the dark member app. Designs: design/canvas/V3Mem*.dc.html */
:root { --bg: var(--me-0d0d0e); --p1: var(--me-151517); --p2: var(--me-1c1c1f); --ln: var(--me-rgba-255-255-255-08); --ln2: var(--me-rgba-255-255-255-14); --tx: var(--me-ededea); --mu: var(--me-8c8c86); --or: var(--brand); --or2: var(--brand); --ease: cubic-bezier(.16,1,.3,1); --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/22px var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
::selection { background: var(--or); color: var(--me-0d0d0e); }
input, select { caret-color: var(--or); }
a { color: var(--tx); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.app { max-width: 520px; margin: 0 auto; padding: 0 16px 40px; position: relative; }
body.hasnav .app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }      /* guard:data: room above the tab bar (it covers the bottom), not a space; the 18.11 tidy-up had made it 48 */
.top { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.mark { font: 800 22px/1 var(--cond); }
.big { font-family: var(--cond); font-weight: 800; line-height: .9; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mu); } .small { font-size: 13px; line-height: 18px; } .err { color: var(--or2); margin: 8px 0 0; font-size: 14px; }
.err:empty { display: none; }
.sub { display: block; font-size: 13px; line-height: 18px; color: var(--mu); margin-top: 4px; overflow-wrap: anywhere; }
.min0 { min-width: 0; overflow-wrap: anywhere; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.t17 { font-size: 17px; } .t20 { font-size: 20px; } .t22 { font-size: 22px; } .t30 { font-size: 30px; } .t44 { font-size: 44px; display: block; } .mu { color: var(--mu); }
.link2 { background: none; border: 0; padding: 0; color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }
.link3 { padding: 0; border: 0; background: none; text-align: left; min-height: 36px; }

/* who is signed in */
.me { width: 36px; height: 36px; padding: 0; border: 0; background: none; border-radius: 50%; flex: none; }
.av { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 11px var(--body); background: var(--me-2a2a2e) center/cover; color: var(--tx); }
.me-av { width: 32px; height: 32px; }
.mepop { position: absolute; right: 16px; top: 54px; z-index: 20; width: 240px; background: var(--p2); border: 1px solid var(--ln2); border-radius: 14px; box-shadow: 0 16px 40px var(--dk-sh2); overflow: hidden; animation: pop .25s var(--ease); }
.mepop .small { overflow-wrap: anywhere; }
.mepop button, .mepa { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; text-align: left; border: 0; background: none; font-size: 15px; border-top: 1px solid var(--ln); text-decoration: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* family */
.crew { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.crew::-webkit-scrollbar { display: none; }
.cm { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; max-width: 180px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--ln2); background: transparent; color: var(--mu); font: 500 13px var(--body); transition: background .25s var(--ease), color .25s var(--ease); }
.cmn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm.on { background: var(--tx); color: var(--me-0d0d0e); border-color: var(--tx); }
.cm.on .av { background-color: var(--me-0d0d0e); color: var(--tx); }

/* the big card */
.hero { position: relative; overflow: hidden; padding: 20px; border-radius: 20px; background: radial-gradient(120% 90% at 85% 0%, var(--me-rgba-255-97-23-16), transparent 55%), var(--p1); border: 1px solid var(--ln); }
.hero[data-open] { cursor: pointer; }
.hero > * { position: relative; }
.hero > .radar { position: absolute; }
.radar { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid var(--ln); opacity: .9; pointer-events: none; }
.radar::before { content: ""; position: absolute; inset: 36px; border-radius: 50%; border: 1px solid var(--ln); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--me-rgba-255-97-23-35), transparent 18%); animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 0 var(--me-rgba-255-97-23-6); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--me-rgba-255-97-23-55); } 100% { box-shadow: 0 0 0 10px var(--me-rgba-255-97-23-0); } }
.lh { display: flex; align-items: center; gap: 8px; }
.when { font-size: 52px; margin-top: 14px; }
.brk { font-size: 44px; line-height: .95; margin-top: 12px; }
.bl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.cd { display: flex; gap: 14px; align-items: flex-end; min-height: 62px; margin-top: 22px; }
.cd b { display: block; font: 800 56px/.85 var(--cond); }
.cd span { font: 10px/16px var(--mono); letter-spacing: .14em; color: var(--mu); }
.cd .mono { font-size: 11px; display: flex; align-items: center; gap: 10px; }
.btns { display: flex; gap: 10px; margin-top: 22px; }
.go { flex: 1; min-width: 0; height: 56px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--or); color: var(--me-0d0d0e); font: 700 17px var(--body); letter-spacing: .02em; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 24px -8px var(--me-rgba-255-97-23-6); transition: transform .2s var(--ease), background .3s var(--ease); }
.go.in { background: var(--tx); box-shadow: none; }
.go.wide { width: 100%; flex: none; margin-top: 20px; }
.go:active, .no:active, .chip:active { transform: scale(.97); }
.go:disabled { opacity: .6; }
.no { height: 56px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--ln2); background: transparent; color: var(--tx); font: 500 15px var(--body); white-space: nowrap; transition: transform .2s var(--ease); }
.no.sel { border-color: var(--tx); }
.no.warn { color: var(--or2); border-color: var(--me-rgba-255-97-23-4); }
.counts { display: flex; gap: 18px; margin-top: 20px; }

/* calendar blocks */
.blk { display: inline-flex; align-items: center; max-width: 100%; height: 24px; padding: 0 9px; border: 1px solid var(--c); border-radius: 3px; font: 500 13px var(--body); color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, transparent) 0 1px, transparent 1px 5px); }
.blk.solid { background: var(--c); }
.blk.open { background: transparent; border-style: dashed; }
.blk.closed { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, transparent) 0 1px, transparent 1px 4px); }
.blk.off { border-color: var(--ln2); background: transparent; color: var(--mu); text-decoration: line-through; }

/* plan */
.sec2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--ln2); }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ln); }
.row[data-open], .row[data-coachopen], .row[data-cosel] { cursor: pointer; }
.row.pr { grid-template-columns: 36px minmax(0, 1fr) auto; }
.anim .row { animation: rise .6s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.d { font: 10px/14px var(--mono); letter-spacing: .12em; color: var(--mu); }
.d b { display: block; font: 800 26px/1 var(--cond); color: var(--tx); letter-spacing: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: none; font: 600 12px var(--body); white-space: nowrap; transition: transform .2s var(--ease), background .25s var(--ease); }
button.chip::after { content: ""; position: absolute; inset: -8px -4px; }
.chip.yes { background: var(--me-rgba-255-97-23-14); color: var(--or2); }
.chip.ask { border: 1px dashed var(--ln2); color: var(--mu); }
.chip.nope { color: var(--mu); }
.chip.ul { text-decoration: underline; }
.chip.paid { background: var(--me-rgba-0-160-74-15); color: var(--me-3fcb7e); }
.chip.latec { background: var(--me-rgba-255-97-23-14); color: var(--or2); }
.big-chip { height: 40px; padding: 0 16px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--ln2); border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--me-rgba-255-255-255-025) 10px 11px); position: relative; }
.qc { display: block; border: 1px solid var(--ln); border-radius: 16px; padding: 18px; margin-top: 20px; text-decoration: none; }
.payc { display: flex; justify-content: space-between; align-items: center; }
.stat { width: 10px; height: 10px; border-radius: 50%; background: var(--me-00a04a); flex: none; }
.stat.due { background: var(--or); }

/* member card */
.pc { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--ln); background: linear-gradient(160deg, var(--me-1e1e22), var(--me-141416)); padding: 18px; }
.pc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, var(--me-rgba-255-255-255-06) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pch { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.big-av { width: 64px; height: 64px; font-size: 20px; border-radius: 14px; }
.big-av.xl { width: 72px; height: 72px; font-size: 22px; border-radius: 16px; }
.call { font: 500 14px/18px var(--mono); color: var(--or); letter-spacing: .08em; overflow-wrap: anywhere; }
.nm { font-size: 32px; overflow-wrap: anywhere; }
.pcg { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--ln); border-radius: 10px; overflow: hidden; }
.pcg > div { background: var(--dk-page); padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.picl { position: relative; z-index: 1; margin-top: 14px; cursor: pointer; }

/* lists of details */
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ln); background: none; text-align: left; color: var(--tx); }
.kv .k { font-size: 13px; color: var(--mu); }
.kv.two { grid-template-columns: minmax(0, 1fr) auto; }
.kv.two2 { grid-template-columns: 90px minmax(0, 1fr); }
.kv.two2.first { border-top: 1px solid var(--ln); margin-top: 14px; }
.kv.two2.last { border-bottom: 0; }
.kv + .btns, .hero .btns { margin-top: 22px; }
.lock { font: 10px/14px var(--mono); letter-spacing: .1em; color: var(--mu); }
.miss { color: var(--or2); font-weight: 600; }
.struck { text-decoration: line-through; color: var(--mu); }
.tg { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 13px; background: var(--or); transition: background .25s var(--ease); }
.tg::after { content: ""; position: absolute; left: 21px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--me-0d0d0e); transition: left .25s var(--ease), background .25s var(--ease); }
.tg.off { background: var(--me-2a2a2e); }
.tg.off::after { left: 3px; background: var(--mu); }
.amtrow { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.amt { font-size: 56px; }
.payh { font-size: 44px; margin: 8px 0 0; }
.newm { margin-left: 4px; color: var(--or2); }
.dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--or); vertical-align: 2px; }
.dot.first { margin: 0 6px 0 0; }
.crow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ln); min-height: 44px; }
.narrow { max-width: 520px; margin-top: 16px; }

/* sheet */
.dim { position: fixed; inset: 0; z-index: 30; background: var(--x-rgba-0-0-0-6); animation: fade .25s var(--ease); }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 31; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--p2); border-radius: 20px 20px 0 0; border-top: 1px solid var(--ln2); padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); animation: sheetup .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetup { from { transform: translate(-50%, 40px); opacity: 0; } }
.grab { width: 36px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: var(--ln2); }
.dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; }
.dt { padding: 12px 0; border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--mu); }
.dd { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--ln); overflow-wrap: anywhere; }
.lbl { display: block; margin-top: 12px; font-size: 13px; color: var(--mu); }
.field { display: block; width: 100%; height: 56px; margin-top: 4px; padding: 0 16px; border: 1px solid var(--ln2); border-radius: 14px; background: var(--p1); color: var(--tx); font: 17px var(--body); outline: none; }
.field:focus { border-color: var(--or); }
select.field { appearance: auto; }

/* sign in */
.signwrap { position: relative; overflow: hidden; margin: 0 -16px -40px; padding: 0 16px 24px; min-height: 100vh; }
.signwrap > * { position: relative; }
.signwrap > .radar { position: absolute; }
.signr { right: -120px; top: 120px; width: 360px; height: 360px; }
.signh { font-size: 64px; margin: 15vh 0 0; }
.lead { font-size: 15px; line-height: 22px; margin-top: 12px; }
#fe { margin-top: 24px; }
.langs button { padding: 8px 2px; border: 0; background: none; font: inherit; letter-spacing: inherit; color: var(--mu); }
.langs button.on { color: var(--tx); }
.code { display: flex; gap: 8px; margin-top: 10px; }
.cbox { flex: 1; min-width: 0; height: 60px; padding: 0; border-radius: 12px; border: 1px solid var(--ln2); background: var(--p1); color: var(--tx); text-align: center; font: 800 28px var(--cond); font-variant-numeric: tabular-nums; outline: none; }
.cbox:focus { border-color: var(--or); box-shadow: 0 0 0 3px var(--me-rgba-255-97-23-18); }
.sharedbox { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--mu); cursor: pointer; }
.sharedbox input { width: 18px; height: 18px; flex: none; accent-color: var(--or); }

/* skeleton */
.skel { border-radius: 8px; background: linear-gradient(100deg, var(--p1) 30%, var(--p2) 50%, var(--p1) 70%); background-size: 200% 100%; animation: shim 1.4s ease-in-out infinite; }
@keyframes shim { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* bottom bar and toast */
.nav { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 488px; margin: 0 auto; height: 64px; border-radius: 20px; background: var(--me-rgba-28-28-31-82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--ln); display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; height: 100%; font: 500 11px var(--body); color: var(--mu); text-decoration: none; }
.nav a.on { color: var(--tx); }
.nav a.on svg { stroke: var(--or); }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(16px); z-index: 50; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); min-height: 40px; padding: 8px 16px; border-radius: 20px; background: var(--tx); color: var(--me-0d0d0e); font: 600 13px/18px var(--body); box-shadow: 0 10px 30px -10px var(--x-rgba-0-0-0-6); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .4s var(--ease); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast .live { background: var(--me-0d0d0e); flex: none; }

/* computer */
body.desk .app { max-width: 1200px; padding: 0 48px 80px; }
body.desk .mepop { right: 48px; top: 66px; }
.dtop { height: 76px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--ln); }
.dtop .mark { font-size: 26px; }
.dtop .sp { flex: 1; }
.dtop .crew { margin: 0; padding: 2px; flex: 0 1 auto; min-width: 0; }
.dnav { display: flex; gap: 28px; align-self: stretch; }
.dnav a { display: flex; align-items: center; color: var(--mu); text-decoration: none; font-weight: 500; transition: color .2s var(--ease); }
.dnav a:hover { color: var(--tx); }
.dnav a.on { color: var(--tx); font-weight: 600; box-shadow: inset 0 -2px 0 var(--or); }
.dcols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 40px; align-items: start; }
.dcols aside .qc:first-child { margin-top: 0; }
body.desk .hero { padding: 28px; }
body.desk .when { font-size: 72px; }
body.desk .sec2.first { margin-top: 0; }
body.desk .sec2 .t22 { font-size: 28px; }
body.desk .cd b { font-size: 64px; }
body.desk .sheet { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: 440px; max-width: 100vw; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--ln2); padding: 28px; animation: sheetside .4s var(--ease); }
@keyframes sheetside { from { transform: translateX(40px); opacity: 0; } }
body.desk .grab { display: none; }
body.desk .toast { bottom: 32px; }
body.desk .cogrid { grid-template-areas: "h w" "n w"; grid-template-rows: auto 1fr; }
.co-h { grid-area: h; } .co-w { grid-area: w; } .co-n { grid-area: n; }
body.desk .pgrid, body.desk .cogrid, body.desk .paygrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; margin-top: 40px; }
body.desk .pgrid > div:last-child > .sec2:first-child { margin-top: 0; }
body.desk .payh { font-size: 64px; margin-top: 0; }
body.desk .hero.mt8 { margin-top: 0; }
.pgrid { min-width: 0; }
@media (min-width: 600px) and (max-width: 899px) { .app { max-width: 640px; } .sheet { max-width: 640px; } .nav { max-width: 440px; } }
@media (max-width: 374px) { .when { font-size: 44px; } .go { font-size: 15px; } .no { padding: 0 12px; font-size: 14px; } .kv { grid-template-columns: 96px minmax(0, 1fr) auto; } }
@media (max-width: 1080px) { body.desk .dcols { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .toast { transition: none; } }

::placeholder { color: var(--mu); opacity: 1; }

/* task 051: first sign-in walkthrough */
.lsw { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--ln2); border-radius: 999px; }
.lsw button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--mu); font: 600 13px var(--body); transition: background .25s var(--ease), color .25s var(--ease); }
.lsw button.on { background: var(--tx); color: var(--me-0d0d0e); }
.mel { padding: 8px 12px 12px; }
.onb { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100vh - 40px); margin: 0 -16px; padding: 0 20px 28px; }
.onb > * { position: relative; }
.onb > .radar { position: absolute; }
.onb .top { gap: 8px; }
.ofl { flex: 1; }
.oh1 { font-size: 60px; margin: 12vh 0 0; }
.oh2 { font-size: 52px; margin: 8vh 0 0; }
.oh3 { font-size: 40px; margin: 28px 0 0; overflow-wrap: anywhere; }
.ol { color: var(--mu); font-size: 16px; line-height: 22px; margin: 14px 0 0; }
.fl { margin-top: 24px; border-top: 1px solid var(--ln); }
.kv.fam { grid-template-columns: 44px minmax(0, 1fr) auto; }
.fav { width: 40px; height: 40px; }
.fav2 { width: 26px; height: 26px; font-size: 10px; }
.faces { display: flex; align-items: center; gap: 6px; }
.faces > span { display: inline-flex; border-radius: 50%; }
.faces .cur { outline: 2px solid var(--or); }
.faces .okf .av { background-color: var(--me-1f3b26); color: var(--me-3fcb7e); }
.faces .pg { flex: 1; margin-left: 8px; }
.pg { display: flex; gap: 4px; }
.pg i { flex: 1; height: 3px; border-radius: 2px; background: var(--x-rgba-255-255-255-12); transition: background .4s var(--ease); }
.pg i.on { background: var(--or); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 8px 18px; border-radius: 14px; border: 1px solid var(--ln2); background: var(--p1); color: var(--tx); font: 500 16px var(--body); text-align: left; margin-top: 10px; }
.opt.on { border-color: var(--or); box-shadow: 0 0 0 3px var(--me-rgba-255-97-23-15); }
.rd { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ln2); }
.opt.on .rd { border: 6px solid var(--or); }
.olbl { display: block; font-size: 13px; color: var(--mu); margin: 18px 0 6px; }
.why { font-size: 13px; line-height: 18px; color: var(--mu); margin: 8px 0 0; }
.why a { color: var(--tx); }
.bdg { display: grid; grid-template-columns: .8fr 1.6fr 1.2fr; gap: 8px; }
.bdg .field { margin: 0; padding: 0 12px; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.dayb { min-width: 56px; height: 56px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--ln2); background: var(--p1); color: var(--tx); font: 700 17px var(--body); transition: background .2s var(--ease), color .2s var(--ease); }
.dayb.on { background: var(--or); border-color: var(--or); color: var(--me-0d0d0e); }
.phbox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 180px; height: 180px; margin: 28px auto 0; padding: 12px; text-align: center; border-radius: 28px; border: 1.5px dashed var(--ln2); color: var(--mu); background: center/cover; cursor: pointer; }
.oback { padding: 8px 0; border: 0; background: none; color: var(--mu); font: 500 15px var(--body); white-space: nowrap; }
.ol2 { align-self: center; padding: 10px; margin-top: 4px; border: 0; background: none; color: var(--mu); font: 500 15px var(--body); text-decoration: underline; text-underline-offset: 3px; }
.tick .ring { animation: draw .8s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 214; } to { stroke-dashoffset: 0; } }
.nextl { margin-top: 4px; border-top: 1px solid var(--ln); }
.nr { display: grid; grid-template-columns: 76px auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ln); }
.nr .big { font-size: 22px; }
.nr .num { text-align: right; }
@media (max-width: 374px) { .onb .top .mono { display: none; } }

/* task 052: phone fields */
.phw { display: flex; align-items: center; height: 56px; margin-top: 4px; border: 1px solid var(--ln2); border-radius: 14px; background: var(--p1); color: var(--tx); }
.phw:focus-within { border-color: var(--or); }
.phw i { flex: none; padding-left: 16px; font: 17px var(--body); font-style: normal; color: var(--mu); }
.phw input { flex: 1; min-width: 0; height: 100%; padding: 0 16px 0 8px; border: 0; border-radius: 14px; background: none; color: var(--tx); font: 17px var(--body); outline: none; }
.phw.ext i { display: none; }
.phw.ext input { padding-left: 16px; }
.phh { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--mu); }

/* the real logo (task 062), on-dark version — sized by width, never stretched */
img.mark { display: block; width: 128px; height: auto; }
img.big.mark { width: 168px; }
.dtop img.mark { width: 168px; }
a.go { text-decoration: none; color: var(--me-0d0d0e); }

/* task 073: Payments "Arved ja maksed" */
.prow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ln); background: none; color: var(--tx); text-align: left; font: inherit; cursor: pointer; }
div.prow { cursor: default; }
.prow .pic { width: 36px; height: 36px; border-radius: 10px; background: var(--p2); display: grid; place-items: center; color: var(--tx); }
.prow b { font-weight: 600; }
.prow .pr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.prow .pa { font-weight: 600; white-space: nowrap; }
.prow .chip { height: 24px; font-size: 11px; padding: 0 10px; }
.cotag { display: inline-block; font: 400 10px/16px var(--mono); letter-spacing: .08em; border: 1px solid var(--ln2); border-radius: 4px; padding: 0 5px; margin-left: 4px; color: var(--mu); vertical-align: 2px; }
.d-block { display: block; }
.lsw.pf { margin: 12px 0 4px; }
.small2 { font-size: 12px; }
.hopt { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; margin-top: 10px; border: 1px solid var(--ln2); border-radius: 14px; cursor: pointer; }
.hopt.on { border-color: var(--or); background: var(--me-rgba-255-97-23-08); }
.hopt input { accent-color: var(--or); width: 18px; height: 18px; }
.hopt .pic { width: 36px; height: 36px; border-radius: 10px; background: var(--p2); display: grid; place-items: center; }
/* task 074: the entry a notification points at */
.row.hl { background: var(--me-rgba-255-97-23-14); box-shadow: inset 0 0 0 1.5px var(--or); border-radius: 14px; padding-left: 10px; padding-right: 10px; }
.row.hl .sub { color: var(--or2); }
/* task 080: company search results; companies not in the register greyed out */
.prow.coPick.off { opacity: .45; cursor: not-allowed; }

/* task 091: the club terms screen */
.terms-list { margin: 18px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; }
.terms h1 { line-height: .95; }
/* task 098: needs your attention */
.att-sec { margin-top: 16px; } .att-sec > .mono { margin-bottom: 2px; } .att-sec .qc.att { margin-top: 10px; border-color: var(--or); }
.att-b { margin-top: 10px; } .att-b .chips { margin-top: 0; flex-wrap: wrap; } .att-later { margin-top: 10px; }
.att-f { display: grid; gap: 8px; margin-top: 10px; } .att-f[hidden] { display: none; } .att-f .field { margin-top: 0; }
.att-ta { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.4; }
.att-go { justify-self: start; height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--or); color: var(--me-0d0d0e); font: 700 15px var(--body); cursor: pointer; flex: none; }
.att-co { display: grid; gap: 6px; } .att-hit { display: grid; gap: 2px; text-align: left; border: 1px solid var(--ln2); border-radius: 12px; padding: 10px 12px; background: none; color: var(--tx); font: inherit; cursor: pointer; } .att-hit.on { border-color: var(--or); }
.att-cr { border-top: 1px solid var(--ln); padding: 14px 0 4px; margin-top: 12px; } .att-cr .chips { margin-top: 10px; }
/* task 100: the club ring on Payments */
.ring-c { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 16px; border: 1px solid var(--ln); border-radius: 16px; line-height: 1.4; }
.ring-c svg { flex: none; color: var(--tx); font-family: var(--body); }
@keyframes ringIn { from { stroke-dasharray: 0 var(--c); } } .ring-a { animation: ringIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .ring-a { animation: none; } }
/* task 102: who gets the invoice */
.who-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ln); } .who-r > div { min-width: 0; overflow-wrap: anywhere; } .who-r .chip { flex: none; }
.who-r .or { color: var(--or); }
.who-os { display: grid; gap: 8px; margin-top: 14px; }
.who-o { display: grid; gap: 2px; text-align: left; border: 1px solid var(--ln2); border-radius: 14px; padding: 14px 16px; background: none; color: var(--tx); font: inherit; cursor: pointer; } .who-o.on { border-color: var(--or); }
/* task 106: the family's payer block and the invitation card */
.fam-h { font: 600 13px var(--body); letter-spacing: .08em; color: var(--mu); }
.fam { border: 1px solid var(--ln); border-radius: 16px; padding: 14px 16px; margin-top: 10px; overflow-wrap: anywhere; } .fam .or { color: var(--or); }
.fam-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .fam-r .chip { flex: none; }
.inv-ck { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; margin-top: 4px; } .inv-ck input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--or); } .inv-ck a { color: var(--tx); }
.inv .chips { align-items: center; gap: 12px; margin-top: 6px; }
.fam-you { font-weight: 400; color: var(--mu); white-space: nowrap; }      /* "(sina)" on the name's line */
.fam-ph { margin-top: 10px; }
/* Janno 14.11: the pilot name stands apart from the real name in the coach's list */
.pr .cs { margin-left: 12px; font-size: 13px; letter-spacing: .02em; }
.ipay { margin-top: 14px; } .ipay select.field { margin-top: 4px; }      /* task 106: payer of one extra invoice */
/* task 108: app mode on an iPhone (black-translucent status bar) — everything starts below the clock / notch, a solid strip sits behind the clock so
   scrolled content never shows there, and landscape gets side room. In a normal browser tab the insets are 0, so nothing changes. */
body { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 45; pointer-events: none; }
.sheet { max-height: calc(100vh - env(safe-area-inset-top) - 24px); }
/* task 112: a real button (the dashed chip looked switched off) */
.chip.solid { border: 1px solid var(--ln2); color: inherit; background: var(--me-rgba-255-255-255-06); }
.chip.solid:hover { background: var(--x-rgba-255-255-255-12); }
/* task 116: one line under each tab title */
.tablead { margin: 10px 0 0; max-width: 60ch; }
/* task 133: in the installed app (home screen) the menu is a bar docked to the very bottom — it clears the home indicator with the
   safe-area inset and nothing shows below it. In a browser tab (Safari's own bar sits under it) it stays the floating pill above. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body.hasnav .nav { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 max(16px, calc((100vw - 520px) / 2)) env(safe-area-inset-bottom); border: 0; border-top: 1px solid var(--ln); border-radius: 0; background: var(--me-rgba-20-20-22-94); }      /* guard:data: the content width (520 phone, 640 tablet), not a space; 18.11 tidy-up had turned it into 48 */
  body.hasnav .app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }      /* guard:data: room above the tab bar (it covers the bottom), not a space; the 18.11 tidy-up had made it 48 */
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
body.standalone.hasnav .nav { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 max(16px, calc((100vw - 520px) / 2)) env(safe-area-inset-bottom); border: 0; border-top: 1px solid var(--ln); border-radius: 0; background: var(--me-rgba-20-20-22-94); }      /* guard:data: the content width (520 phone, 640 tablet), not a space; 18.11 tidy-up had turned it into 48 */
body.standalone.hasnav .app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }      /* guard:data: room above the tab bar (it covers the bottom), not a space; the 18.11 tidy-up had made it 48 */
body.standalone .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
/* Janno 15.11: the menu moved while scrolling in the installed app. There the page itself is fixed and only the content scrolls, in the
   space above the menu — the iPhone has no page scroll to shift the screen with, so the menu can't move. (body.scrollapp: set in app.js) */
body.scrollapp.hasnav { position: fixed; inset: 0; overflow: hidden; padding: 0; }
body.scrollapp.hasnav .app { position: fixed; top: 0; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); max-width: none; margin: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: env(safe-area-inset-top) max(calc(16px + env(safe-area-inset-right)), calc((100vw - 520px) / 2)) 24px max(calc(16px + env(safe-area-inset-left)), calc((100vw - 520px) / 2)); }      /* guard:data: the content width (520 phone, 640 tablet), not a space; 18.11 tidy-up had turned it into 48 */
@media (min-width: 600px) and (max-width: 899px) { body.scrollapp.hasnav .app { padding-left: max(16px, calc((100vw - 640px) / 2)); padding-right: max(16px, calc((100vw - 640px) / 2)); } }      /* guard:data: the content width (520 phone, 640 tablet), not a space; 18.11 tidy-up had turned it into 48 */

/* task 145: bank details with a copy button on each line */
.kv.cp145 { grid-template-columns: 90px minmax(0, 1fr) auto; }
.kv.cp145.first { border-top: 1px solid var(--ln); margin-top: 14px; }
.kv.cp145 .num { overflow-wrap: anywhere; }
.cpb { border: 1px solid var(--ln); background: none; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
.cpb:active { opacity: .6; }

/* task 154: faces */
.av.nopic { box-shadow: inset 0 0 0 1.5px var(--me-e8a33d); }
.bigface { width: 132px; height: 132px; border-radius: 24px; margin: 4px auto 14px; background: var(--me-2a2a2e) center/cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.bigface.nop span { font: 600 34px var(--body); color: var(--tx); } .bigface.nop small { font-size: 12px; color: var(--me-e8a33d); }
.goers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; margin-top: 10px; }
.gp { display: flex; gap: 10px; align-items: center; min-width: 0; }
.gp .gav { width: 40px; height: 40px; font-size: 13px; }
.gp .gn { display: block; font-size: 14px; line-height: 18px; overflow-wrap: anywhere; } .gp .cs { display: block; font-size: 12px; margin: 0; }
.need154 { display: inline-block; width: fit-content; align-self: flex-start; margin: 2px 0 8px; padding: 2px 8px; border-radius: 999px; background: var(--me-rgba-255-97-23-16); color: var(--brand); font: 600 12px var(--body); letter-spacing: .02em; }
.need154.sm { margin: 0 0 0 6px; vertical-align: middle; }
.f154 .f154row { width: 100%; margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }

/* task 155: one calendar for a coach who is also a parent */
.mrow155 { align-items: start; grid-template-columns: 52px minmax(0, 1fr); }
.mrow155 .mhead { display: block; cursor: pointer; }
.corow155 { display: flex; width: 100%; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 9px 12px; border: 0; border-radius: 12px; background: var(--me-rgba-255-97-23-14); color: var(--tx); font: 500 13px var(--body); text-align: left; cursor: pointer; }
.corow155 b { color: var(--brand); } .corow155 .cgo { white-space: nowrap; font-weight: 600; }
.fam155 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fam155 .fn { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.fav3 { width: 24px; height: 24px; font-size: 10px; }
.leads155 { font: 600 12px var(--body); color: var(--brand); white-space: nowrap; }
.cnt155 { display: flex; gap: 22px; margin-top: 12px; } .cnt155 div { display: flex; flex-direction: column; } .cnt155 b { font: 800 26px/1 var(--display, inherit); } .cnt155 span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mu, var(--me-8c8c86)); }
/* tasks 155/156: the admin's view of someone's app */
.vbar155 { position: sticky; top: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--me-ffd34d); color: var(--me-1b1500); font: 600 14px var(--body); }
.vbar155 button { border: 0; border-radius: 999px; padding: 6px 14px; background: var(--me-1b1500); color: var(--me-ffd34d); font: 600 13px var(--body); cursor: pointer; }
.corow155.help162 { background: var(--me-rgba-255-255-255-06); } .corow155.help162 b { color: var(--tx); }

/* task 207: holidays and school breaks are information, not trainings: a plain band */
.band.ov207{background:transparent;border-style:dashed}

/* task 206 #36: a focused field never hides under the bottom bar */
html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }      /* guard:data: room above the tab bar (it covers the bottom), not a space; the 18.11 tidy-up had made it 48 */

/* task 213: one code field that still looks like a code — big, spaced digits; six faint dots show where they go */
.cbox1 { width: 100%; height: 68px; padding: 0 0 0 .6em; border-radius: 14px; border: 1px solid var(--ln2); background: var(--p1); color: var(--tx); text-align: center; font: 800 34px var(--cond); letter-spacing: .6em; font-variant-numeric: tabular-nums; outline: none; caret-color: var(--or); }
.cbox1::placeholder { color: var(--mu); opacity: .55; }
.cbox1:focus { border-color: var(--or); box-shadow: 0 0 0 3px var(--me-rgba-255-97-23-18); }

/* task 258: To do for coaches and helpers */
.td-row{display:flex;gap:12px;align-items:center}.td-ck{width:28px;height:28px;border-radius:8px;border:2px solid currentColor;background:none;flex:none;opacity:.7}.td-m{display:flex;flex-direction:column;gap:4px;min-width:0}.td-way{display:flex;gap:8px;align-items:center;padding:8px 0}
