/* HK Register v1 (3 Nov 2026). Her canon: Plus Jakarta Sans, ink #0a0a0a, plum #5c1838, pastels as surfaces only.
   Dionne: "I don't get on with words" -> big colour tiles, icons first, one action per screen, taps 56px+. */
@font-face{font-family:"PJS";src:url(/fonts/pjs-latin.woff2) format("woff2");font-weight:200 800;font-display:swap}
:root{
  --ink:#0a0a0a; --plum:#5c1838; --plum-deep:#3d0f25; --soft:#6b4a5b; --line:#ecdde5; --paper:#fafafa; --white:#fff;
  --pink:#feb7d3; --lavender:#eacfff; --mint:#aae9e5; --butter:#ffeda9; --sky:#87c7f1;
  --yes:#1d7a3a; --yes-bg:#d9f5e1; --wait:#8a5a00; --wait-bg:#ffeda9; --no:#a3243f;
  --studio:#feb7d3; --ease:cubic-bezier(.22,1,.36,1);
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{background:var(--paper);color:var(--ink);font-family:"PJS",system-ui,-apple-system,sans-serif;font-size:18px;line-height:1.35;
  -webkit-font-smoothing:antialiased;min-height:100dvh;touch-action:manipulation;-webkit-user-select:none;user-select:none}
input{-webkit-user-select:text;user-select:text}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}
button:focus-visible{outline:3px solid var(--plum);outline-offset:3px}
svg{display:block}

.top{position:sticky;top:0;z-index:5;background:var(--plum);display:flex;align-items:center;justify-content:space-between;
  padding:calc(8px + var(--safe-t)) 16px 8px}
.logo{height:40px;width:auto}
.status{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border-radius:99px;font-weight:800;font-size:15px;
  background:var(--yes-bg);color:var(--yes)}
.status.wait{background:var(--wait-bg);color:var(--wait)}
.status.busy{background:#fff;color:var(--plum)}
.status svg{width:22px;height:22px}

main{max-width:1100px;margin:0 auto;padding:16px 16px calc(120px + var(--safe-b))}
.band{display:flex;align-items:center;gap:12px;margin:4px 0 16px}
.band h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.01em}
.band .sub{color:var(--soft);font-weight:700;font-size:17px}
.back{width:56px;height:56px;border-radius:18px;background:#fff;border:2px solid var(--line);display:grid;place-items:center;flex:none}
.back svg{width:28px;height:28px}
.dot{width:22px;height:22px;border-radius:50%;background:var(--studio);flex:none;border:2px solid rgba(0,0,0,.08)}

/* tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.tile{position:relative;min-height:150px;border-radius:26px;background:var(--studio);padding:18px;text-align:left;display:flex;flex-direction:column;
  justify-content:space-between;box-shadow:0 2px 0 rgba(0,0,0,.06);transition:transform .15s var(--ease)}
.tile:active{transform:scale(.97)}
.tile .big{font-size:34px;font-weight:800;line-height:1.05}
.tile .small{font-size:17px;font-weight:700;color:rgba(10,10,10,.72)}
.tile .ico{width:44px;height:44px}
.tile.today{outline:5px solid var(--plum);outline-offset:-5px}
.tile .badge{position:absolute;top:14px;right:14px;background:var(--plum);color:#fff;font-size:14px;font-weight:800;padding:5px 11px;border-radius:99px}
.tile.ghost{background:#fff;border:2px dashed var(--line);box-shadow:none}
.section{font-size:15px;font-weight:800;color:var(--soft);letter-spacing:.06em;text-transform:uppercase;margin:24px 2px 10px}

/* keypad */
.pad{max-width:380px;margin:0 auto;text-align:center}
.dots{display:flex;justify-content:center;gap:14px;margin:18px 0 22px;min-height:24px}
.dots i{width:20px;height:20px;border-radius:50%;border:3px solid var(--plum)}
.dots i.on{background:var(--plum)}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.keys button{height:80px;border-radius:22px;background:#fff;border:2px solid var(--line);font-size:32px;font-weight:800}
.keys button:active{background:var(--studio)}
.keys .go{background:var(--plum);color:#fff;border-color:var(--plum)}
.keys .go svg{margin:auto;width:36px;height:36px}
.msg{min-height:30px;font-weight:800;color:var(--no);margin-top:14px;font-size:18px}
.shake{animation:shake .35s}
@keyframes shake{25%{transform:translateX(-10px)}75%{transform:translateX(10px)}}

/* tabs */
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.tab{min-height:64px;border-radius:20px;background:#fff;border:2px solid var(--line);font-weight:800;font-size:20px;display:flex;
  align-items:center;justify-content:center;gap:10px}
.tab.on{background:var(--studio);border-color:var(--plum)}
.tab svg{width:28px;height:28px}
.tab .n{background:var(--plum);color:#fff;border-radius:99px;font-size:15px;padding:2px 10px}

.stats{display:flex;gap:12px;margin:0 0 14px;flex-wrap:wrap}
.stat{background:#fff;border:2px solid var(--line);border-radius:20px;padding:10px 18px;min-width:130px}
.stat b{display:block;font-size:34px;font-weight:800;line-height:1.1;color:var(--plum)}
.stat span{font-size:15px;font-weight:700;color:var(--soft)}

/* month grid */
.month{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.month b{font-size:22px;font-weight:800;min-width:150px;text-align:center}
.month button{width:56px;height:56px;border-radius:18px;background:#fff;border:2px solid var(--line);display:grid;place-items:center}
.month svg{width:26px;height:26px}
.gridwrap{overflow-x:auto;background:#fff;border:2px solid var(--line);border-radius:22px;-webkit-overflow-scrolling:touch}
table.reg{border-collapse:separate;border-spacing:0;width:100%}
.reg th,.reg td{border-bottom:1px solid var(--line);padding:0}
.reg thead th{font-size:15px;font-weight:800;color:var(--soft);padding:10px 4px;text-align:center;white-space:nowrap}
.reg thead th.now{background:var(--studio);color:var(--ink)}
.reg th.name{position:sticky;left:0;background:#fff;z-index:1;text-align:left;padding:0 10px 0 14px;font-size:19px;font-weight:700;
  min-width:190px;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.reg thead th.name{color:var(--soft);font-size:15px}
.reg th.name .nm{display:inline-flex;align-items:center;gap:8px}
.reg td{text-align:center}
.reg td.now{background:color-mix(in srgb,var(--studio) 35%,#fff)}
.cell{width:64px;height:60px;display:grid;place-items:center;margin:auto}
.cell i{width:46px;height:46px;border-radius:14px;border:2.5px solid var(--line);display:grid;place-items:center;background:#fff;transition:background .15s}
.cell.on i{background:var(--yes);border-color:var(--yes)}
.cell.on i svg{width:30px;height:30px;color:#fff}
.cell.off i{border-style:dashed}
.cell.pending i{box-shadow:0 0 0 3px var(--wait-bg)}
.noicon{width:24px;height:24px;color:var(--no);flex:none}
.noteicon{width:24px;height:24px;color:#b26b00;flex:none}

/* trials */
.cards{display:grid;gap:12px}
.card{background:#fff;border:2px solid var(--line);border-radius:22px;padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.card .who{flex:1 1 220px;min-width:0}
.card .who b{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:800}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:800;padding:5px 12px;border-radius:99px;background:var(--lavender)}
.chip.ad{background:var(--butter)}
.chip svg{width:18px;height:18px}
.note{margin-top:8px;font-size:17px;font-weight:700;color:#7a4a00;background:#fff4dc;padding:6px 12px;border-radius:12px}
.act{min-height:64px;min-width:150px;border-radius:20px;font-weight:800;font-size:20px;display:flex;align-items:center;justify-content:center;gap:10px;
  background:#fff;border:2.5px solid var(--line)}
.act svg{width:28px;height:28px}
.act.came{background:var(--yes);color:#fff;border-color:var(--yes)}
.act.join{background:var(--plum);color:#fff;border-color:var(--plum)}
.act.joined{background:var(--butter);border-color:var(--butter)}
.empty{text-align:center;padding:36px 10px;color:var(--soft);font-weight:700}
.empty svg{width:72px;height:72px;margin:0 auto 10px;color:var(--studio)}

/* add button + sheet */
.fab{position:fixed;right:20px;bottom:calc(20px + var(--safe-b));z-index:6;min-height:72px;padding:0 26px;border-radius:99px;background:var(--plum);color:#fff;
  font-weight:800;font-size:21px;display:flex;align-items:center;gap:10px;box-shadow:0 10px 30px rgba(92,24,56,.35)}
.fab svg{width:32px;height:32px}
.sheet{position:fixed;inset:0;z-index:20;background:rgba(20,5,12,.45);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.panel{background:var(--paper);width:100%;max-width:640px;border-radius:30px 30px 0 0;padding:22px 20px calc(24px + var(--safe-b));max-height:92dvh;overflow:auto;
  animation:up .3s var(--ease)}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.panel h2{margin:0 0 14px;font-size:26px;font-weight:800;display:flex;align-items:center;gap:10px}
.panel h2 svg{width:32px;height:32px}
.field{width:100%;min-height:64px;font:inherit;font-size:22px;font-weight:700;padding:12px 18px;border-radius:18px;border:2.5px solid var(--line);background:#fff;margin:0 0 14px}
.field:focus{outline:none;border-color:var(--plum)}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.opt{min-height:76px;border-radius:20px;background:#fff;border:2.5px solid var(--line);font-weight:800;font-size:19px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px}
.opt svg{width:30px;height:30px}
.opt.on{background:var(--studio);border-color:var(--plum)}
.save{width:100%;min-height:72px;border-radius:22px;background:var(--plum);color:#fff;font-weight:800;font-size:22px;display:flex;align-items:center;justify-content:center;gap:10px}
.save:disabled{opacity:.4}
.save svg{width:32px;height:32px}
.cancel{width:100%;min-height:56px;margin-top:10px;font-weight:800;color:var(--soft)}
.hint{background:#fff;border:2px solid var(--line);border-radius:22px;padding:18px;display:flex;gap:16px;align-items:center;margin:0 0 16px;font-weight:700}
.hint svg{width:48px;height:48px;flex:none;color:var(--plum)}
.link{font-weight:800;color:var(--plum);text-decoration:underline;min-height:48px;padding:10px}
.footer{display:flex;justify-content:center;gap:10px;margin-top:30px;flex-wrap:wrap}
.toast{position:fixed;left:50%;bottom:calc(110px + var(--safe-b));transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:800;
  padding:14px 22px;border-radius:99px;z-index:30;font-size:18px;animation:up .25s var(--ease)}
@media (max-width:600px){
  body{font-size:17px}.band h1{font-size:25px}.tile{min-height:120px}.tile .big{font-size:28px}
  .reg th.name{min-width:140px;font-size:17px}.cell{width:54px}.cell i{width:42px;height:42px}
  .fab{right:14px;left:14px;justify-content:center}
  .tab{font-size:17px;gap:6px;padding:0 6px}.tab svg{width:22px;height:22px}
}

/* ---- v3 (3 Nov, Director: "make it fun") : her Fraunces italic accents, studio photos, motion ---- */
@font-face{font-family:"Fraunces";src:url(/fonts/fraunces-italic.woff2) format("woff2");font-style:italic;font-weight:300 900;font-display:swap}
h1 em,h2 em,.ph-name,.hero h1,.lead em,.welcome em{font-family:"Fraunces",Georgia,serif;font-style:italic;font-weight:600;letter-spacing:-.01em}
.keys button svg{width:34px;height:34px;margin:auto}
.welcome{margin:6px 0 14px}
.welcome h1{margin:0;font-size:40px;font-weight:800;line-height:1.05}
.welcome h1 em{color:var(--plum)}
.how{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.how div{display:flex;align-items:center;gap:10px;background:#fff;border:2px solid var(--line);border-radius:99px;padding:8px 18px 8px 8px;font-weight:800;font-size:18px}
.how b{width:40px;height:40px;border-radius:50%;background:var(--plum);color:#fff;display:grid;place-items:center;font-size:20px}
.how svg{width:26px;height:26px;color:var(--plum)}
.tile.photo{padding:0;overflow:hidden;min-height:230px;background:var(--c);border:0;justify-content:flex-end}
.tile.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.tile.photo:active img{transform:scale(1.06)}
.tile.photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(30,6,18,.78) 100%)}
.tile.photo .ph-band{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;color:#fff}
.ph-name{font-size:40px;line-height:1}
.ph-band .go{width:52px;height:52px;border-radius:50%;background:var(--c);color:var(--ink);display:grid;place-items:center;flex:none}
.ph-band .go svg{width:26px;height:26px}
.tile.photo .stripe{position:absolute;left:0;right:0;top:0;height:10px;background:var(--c);z-index:1}
.hero{position:relative;border-radius:28px;overflow:hidden;min-height:170px;margin:4px 0 8px;display:flex;align-items:flex-end;background:var(--studio)}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(30,6,18,.82) 0%,rgba(30,6,18,.25) 70%)}
.hero > div{position:relative;z-index:1;padding:18px 22px;color:#fff}
.hero span{font-weight:800;font-size:17px;opacity:.9}
.hero h1{margin:2px 0 0;font-size:46px;line-height:1}
.hero .swap{position:absolute;z-index:1;top:14px;right:14px;background:rgba(255,255,255,.92);color:var(--plum);font-weight:800;font-size:15px;border-radius:99px;padding:10px 16px;min-height:44px}
.lead{font-size:24px;font-weight:800;margin:6px 0 2px}.lead em{color:var(--plum);font-size:28px}
.padhint{color:var(--soft);font-weight:700;font-size:16px;margin:0}
.padphoto{width:84px;height:84px;border-radius:50%;object-fit:cover;border:5px solid var(--studio);display:block;margin:4px auto 6px}

/* motion: tiles arrive one by one, ticks pop, new children slide in with confetti */
.tiles > *{animation:tileIn .45s var(--ease) both;animation-delay:calc(var(--i,0) * 60ms)}
@keyframes tileIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.cell.pop i{animation:pop .42s var(--ease)}
.cell.pop i::after{content:"";position:absolute;inset:-8px;border-radius:18px;border:3px solid var(--yes);animation:ring .5s ease-out forwards}
.cell i{position:relative}
@keyframes pop{0%{transform:scale(.6)}55%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes ring{from{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.35)}}
tr.new th.name,tr.new td,.card.new{animation:newIn .9s var(--ease)}
@keyframes newIn{0%{background:var(--butter);transform:translateX(-18px);opacity:0}40%{opacity:1;transform:none}100%{background:#fff}}
.act.came{animation:pop .42s var(--ease)}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden}
.confetti i{position:absolute;width:12px;height:16px;border-radius:3px;top:-20px;animation:fall 1.6s cubic-bezier(.2,.6,.4,1) forwards}
@keyframes fall{to{transform:translate(var(--dx),110vh) rotate(var(--r));opacity:.9}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.confetti{display:none}}
@media (max-width:600px){.welcome h1{font-size:32px}.ph-name{font-size:32px}.hero h1{font-size:36px}.tile.photo{min-height:190px}}
.ph-band{gap:10px}.ph-name{font-size:34px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-band .go{width:46px;height:46px}
.padphoto{width:72px;height:72px}

/* ---- v4 (3 Nov) from the Grok + Kimi review ---- */
.ph-name{white-space:normal;overflow:visible;text-overflow:clip;font-size:clamp(26px,3.1vw,34px)}
.tile,.tab.on,.card,.act,.opt.on,.pillbtn,.stat{border:2px solid var(--ink)!important;box-shadow:5px 5px 0 var(--sh,var(--plum))}
.tile.photo{box-shadow:6px 6px 0 var(--c)}
.tile:active,.act:active,.pillbtn:active{transform:translate(3px,3px);box-shadow:2px 2px 0 var(--sh,var(--plum))}
.tile{--sh:var(--plum)}
.pillbtn{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:0 22px;border-radius:99px;background:var(--lavender);font-weight:800;font-size:18px}
.pillbtn svg{width:24px;height:24px}
.av{width:40px;height:40px;border-radius:50%;background:var(--a);color:var(--ink);font-weight:800;font-size:15px;display:inline-grid;place-items:center;flex:none;border:2px solid var(--ink)}
.card .av{width:52px;height:52px;font-size:18px}
.nmt{overflow:hidden;text-overflow:ellipsis}
.reg tbody tr:nth-child(even) th.name,.reg tbody tr:nth-child(even) td{background:#fff3f8}
.reg tbody tr:nth-child(even) td.now,.reg td.now{background:#fff6cf}
.reg thead th.now{background:var(--butter);color:var(--ink);border-top:4px solid var(--plum)}
.reg thead th.now em{display:block;font-family:"Fraunces",Georgia,serif;font-style:italic;color:var(--plum);font-size:17px}
.reg tbody tr{height:64px}
.reg td.past .cell i{opacity:.45}
.noicon{color:var(--plum);background:var(--lavender);border-radius:50%;padding:3px;width:28px;height:28px}
.gridwrap{box-shadow:inset -14px 0 12px -12px rgba(0,0,0,.18)}
.act{background:var(--butter);border-color:var(--ink);min-height:60px}
.act.came{background:var(--yes);color:#fff}
.act.join{background:var(--plum);color:#fff}
.keys button{background:#f7eeff;border-color:#e6d6f5;color:var(--plum);transition:transform .08s}
.keys button:active{transform:scale(.92);background:var(--lavender)}
.keys .go{background:var(--plum);color:#fff}
.dots i.pop{animation:pop .3s var(--ease)}
.welcome h1 em::after{content:" ✦";color:var(--pink);font-style:normal}

/* ---- v5 (3 Nov): health question, child card, studio switch, sending explainer ---- */
.q{font-weight:800;font-size:19px;margin:6px 2px 8px}
.hgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
.hopt{min-height:60px;border-radius:16px;background:#fff;border:2px solid var(--line);font-weight:800;font-size:16px;display:flex;align-items:center;gap:8px;padding:0 10px}
.hopt span{font-size:24px}
.hopt.on{background:var(--butter);border-color:var(--ink);box-shadow:3px 3px 0 var(--plum)}
.hopt.small{min-height:46px;font-size:16px;display:inline-flex}
.hshow{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.hb{font-size:18px;line-height:1;flex:none}
.hb.warn{filter:saturate(1.3)}
.sheetname{display:flex;align-items:center;gap:12px;margin:0 0 12px}.sheetname b{font-size:22px;font-weight:800}
.sheetname.big .av{width:60px;height:60px;font-size:20px}.sheetname.big b{font-size:28px}
.note.big{font-size:19px;margin:0 0 12px}
.act.sos{width:100%;background:#fff;margin:4px 0 8px}
.sosin{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fff;border:2px solid var(--line);border-radius:18px;padding:12px 14px;margin:0 0 10px;font-weight:800}
.sosin a{text-decoration:none}
.slist{display:grid;gap:10px}
.srow{display:flex;align-items:center;gap:14px;min-height:72px;border-radius:20px;background:#fff;border:2px solid var(--line);padding:8px 14px 8px 8px;font-size:20px;text-align:left}
.srow img{width:56px;height:56px;border-radius:14px;object-fit:cover}
.srow b{flex:1}.srow svg{width:26px;height:26px}.srow span{font-size:14px;font-weight:800;color:var(--yes)}
.srow.on{border-color:var(--ink);box-shadow:4px 4px 0 var(--plum)}
.cancel.danger{color:var(--no)}
.hero .swap{display:flex;align-items:center;gap:6px;border:2px solid var(--ink)}.hero .swap svg{width:18px;height:18px}
.flow{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.flow div{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:2px solid var(--line);border-radius:18px;padding:12px;min-width:120px;text-align:center;font-weight:800;font-size:14px}
.flow div svg{width:38px;height:38px;color:var(--plum)}.flow div{font-size:14px}.flow i svg{width:22px;height:22px;color:var(--soft)}
.flow div:last-child{font-size:14px}
@media (max-width:600px){.hgrid{grid-template-columns:repeat(2,1fr)}.flow div{min-width:96px}}
