
:root{
  --cream:#FFF6EA; --cream2:#FFEDD3; --card:#FFFFFF;
  --ink:#3B1D5E; --ink-soft:#6B5B8A; --ink-faint:#9A8BB5;
  --orange:#FF6B1A; --orange-deep:#E8540A; --orange-soft:#FFE3D1;
  --yellow:#FFC531; --yellow-soft:#FFF0C2;
  --purple:#5B2A9D; --purple-soft:#EBDFFB;
  --teal:#0FA3A3; --pink:#FF5C8A; --green:#22A06B;
  --heart:#FFB81C; --plum:#3E1B5E;
  --line:#F0DFC6;
  --shadow:0 10px 24px rgba(59,29,94,.10);
  --pop:0 4px 0 var(--ink);
  --r-lg:26px; --r-md:20px; --r-sm:14px;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{
  font-family:"Nunito",system-ui,sans-serif; color:var(--ink);
  background:
    radial-gradient(600px 300px at 12% -60px, #FFE1B8 0, transparent 60%),
    radial-gradient(700px 340px at 95% 110%, #EBDFFB 0, transparent 55%),
    #F7E8D2;
  min-height:100vh;
}
button{font-family:inherit; cursor:pointer;}
[hidden]{display:none !important;}
input,textarea,select{font-family:inherit;}
img{display:block;}
h1,h2,h3,.fred{font-family:"Fredoka","Nunito",sans-serif;}

/* ---------- App frame ---------- */
.app{max-width:430px; margin:0 auto; background:var(--cream); min-height:100vh; position:relative;
  box-shadow:0 0 0 1px #ecd9ba, 0 0 60px rgba(59,29,94,.18); overflow-x:clip;}
@media (min-width:480px){ .app{border-left:3px solid var(--ink); border-right:3px solid var(--ink);} }

/* ---------- Top bar ---------- */
.topbar{position:sticky; top:0; z-index:40; background:rgba(255,246,234,.92); backdrop-filter:blur(8px);
  display:flex; align-items:center; gap:6px; padding:10px 12px 8px; border-bottom:2px dashed var(--line);}
.brand{display:flex; align-items:center; gap:6px; text-decoration:none; color:var(--ink); background:none; border:none; padding:0;
  flex:0 1 auto; min-width:0;}
.wordmark-img{height:45px; width:auto; max-width:136px; object-fit:contain; display:block; flex:0 1 auto; min-width:0;}
/* Logo lockup: wordmark + BETA tag as one unit — the tag hugs the
   wordmark's right end, aligned to its top so it reads as a raised
   superscript tag on the logo, not a separate pill in the bar. */
.logo-lockup{display:inline-flex; align-items:flex-start; gap:3px; flex:0 1 auto; min-width:0;}
.bird-mini{display:inline-grid; place-items:center; border-radius:50%; background:#FFF9EE; overflow:hidden; flex:0 0 auto;}
.bird-mini img{width:100%; height:100%; object-fit:cover; display:block;}
.brand .bird-mini{width:42px; height:42px; border:2px solid var(--ink); padding:3px;}
.brand .bird-mini img{object-fit:contain;}
.story .bird-mini{width:100%; height:100%; border:3px solid var(--cream);}
.welcome .bird-hero{width:min(300px,80vw); margin:2px auto 0;}
.welcome .bird-hero img, .bird-done img, .deckempty .bird-hero-sm img{width:100%; height:auto; display:block; filter:drop-shadow(0 10px 16px rgba(59,29,94,.16));}
.done .bird-done{width:min(330px,88vw); margin:0 auto;}
.deckempty .bird-hero-sm{width:170px; margin:0 auto;}
.topbar .spacer{flex:1 1 0; min-width:2px;}
.pill{display:inline-flex; align-items:center; gap:4px; background:var(--yellow-soft); border:2px solid var(--ink);
  border-radius:999px; padding:5px 9px; font-weight:900; font-size:12.5px; color:var(--ink); box-shadow:0 3px 0 var(--ink);
  flex:0 0 auto; white-space:nowrap; line-height:1; text-decoration:none;}
.pill:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink);}
.iconbtn{position:relative; width:40px; height:40px; border-radius:50%; border:2px solid var(--ink); background:#fff;
  display:grid; place-items:center; padding:0; line-height:0; box-shadow:0 3px 0 var(--ink); color:var(--ink); flex:0 0 auto; text-decoration:none;}
.iconbtn svg{display:block; margin:auto; flex:0 0 auto;}
.iconbtn:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink);}
.iconbtn .dot{position:absolute; top:-3px; right:-3px; min-width:19px; height:19px; padding:0 4px; border-radius:999px;
  background:var(--pink); color:#fff; border:2px solid #fff; font-size:11px; font-weight:900; display:grid; place-items:center; line-height:1;}
.testflag{font-size:9px; font-weight:900; letter-spacing:.5px; background:var(--ink); color:var(--yellow);
  padding:3px 7px; border-radius:999px; text-transform:uppercase; white-space:nowrap; flex:0 1 auto; line-height:1.4;}
/* Compact BETA tag inside the logo lockup: small, purple with yellow
   text, tucked at the wordmark's top-right end, slightly rotated like
   a sticker so it feels attached to the logo artwork. */
.beta-tag{font-size:8px; letter-spacing:.6px; padding:2px 6px; line-height:1.3;
  flex:0 0 auto; margin-top:3px; transform:rotate(-3deg);}
@media (max-width:410px){
  .topbar{gap:5px; padding-left:10px; padding-right:10px;}
  .brand{gap:5px;}
  .brand .bird-mini{width:38px; height:38px;}
  .wordmark-img{height:40px; max-width:121px;}
  .logo-lockup{gap:2px;}
  .testflag{font-size:8.5px; letter-spacing:.4px; padding:3px 6px;}
  .beta-tag{font-size:7.5px; letter-spacing:.5px; padding:2px 5px; margin-top:2px;}
  .pill{padding:4px 8px; font-size:12px;}
  .iconbtn{width:38px; height:38px;}
}
@media (max-width:360px){
  .topbar{gap:4px; padding-left:8px; padding-right:8px;}
  .brand{gap:4px;}
  .brand .bird-mini{width:34px; height:34px; padding:2px;}
  .wordmark-img{height:35px; max-width:106px;}
  .logo-lockup{gap:2px;}
  .testflag{font-size:8px; padding:2px 5px;}
  .beta-tag{font-size:7px; letter-spacing:.4px; padding:2px 4px; margin-top:1px;}
  .pill{padding:4px 7px; font-size:11.5px; gap:3px;}
  .iconbtn{width:36px; height:36px;}
  .iconbtn svg{width:18px; height:18px;}
}

/* ---------- Layout ---------- */
main{padding:0 0 calc(118px + env(safe-area-inset-bottom));}
.view{display:none; animation:viewin .28s ease both;}
.view.active{display:block;}
#view-done{animation:none;}
@keyframes viewin{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;}}
.wrap{padding:16px;}
.sec-title{font-family:"Fredoka"; font-weight:600; font-size:21px; margin:22px 0 10px; display:flex; align-items:center; gap:8px;}
.sec-title:first-child{margin-top:4px;}
.sec-title .more{margin-left:auto; font-family:"Nunito"; font-size:13px; font-weight:900; color:var(--orange-deep); background:none;border:none;}
.muted{color:var(--ink-soft);} .small{font-size:13px;} .tiny{font-size:11.5px;}
b.num{font-variant-numeric:tabular-nums;}

/* ---------- Buttons & stickers ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:2px solid var(--ink);
  border-radius:999px; padding:13px 22px; font-weight:900; font-size:16px; background:#fff; color:var(--ink);
  box-shadow:var(--pop); transition:transform .06s, box-shadow .06s; text-decoration:none;}
.btn:active{transform:translateY(3px); box-shadow:0 1px 0 var(--ink);}
.btn.primary{background:var(--orange); color:#fff;}
.btn.purple{background:var(--ink); color:#fff;}
.btn.yellow{background:var(--yellow); color:var(--ink);}
.btn.block{width:100%;}
.btn.sm{padding:8px 16px; font-size:14px; box-shadow:0 3px 0 var(--ink);}
.btn.ghost{box-shadow:none; background:transparent;}
.sticker{display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:900; letter-spacing:.4px;
  text-transform:uppercase; background:var(--yellow); color:var(--ink); border:2px solid var(--ink);
  padding:3px 9px; border-radius:999px; transform:rotate(-2deg);}
.sticker.purple{background:var(--purple); color:#fff; transform:rotate(1.5deg);}
.sticker.pink{background:var(--pink); color:#fff;}
.sticker.white{background:#fff; transform:rotate(-1deg);}
.sticker.teal{background:var(--teal); color:#fff;}
.chip{display:inline-flex; align-items:center; gap:5px; background:#fff; border:2px solid var(--line);
  color:var(--ink); font-weight:800; font-size:12.5px; padding:4px 10px; border-radius:999px;}
.chip.on{border-color:var(--ink); background:var(--yellow-soft);}

/* ---------- Cards ---------- */
.card{background:var(--card); border:2px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow);}
.card.ink{border-color:var(--ink); box-shadow:0 5px 0 rgba(59,29,94,.9), var(--shadow);}

/* ---------- Welcome ---------- */
.welcome{padding:26px 22px 8px; text-align:center;}
.welcome .bird{width:min(240px,62vw); margin:2px auto 0; border-radius:36px;}
.welcome h1{font-size:42px; font-weight:700; line-height:1.02; margin:10px 0 6px;}
.welcome h1 .o{color:var(--orange);}
.welcome p.lede{font-size:16.5px; font-weight:700; color:var(--ink-soft); margin:0 auto 4px; max-width:300px;}
.howrow{display:flex; gap:8px; margin:18px 0 4px;}
.how{flex:1; background:#fff; border:2px solid var(--line); border-radius:18px; padding:10px 6px; box-shadow:var(--shadow);}
.how .n{width:24px;height:24px;margin:0 auto 5px;border-radius:50%;background:var(--orange);color:#fff;font-weight:900;display:grid;place-items:center;font-size:13px;border:2px solid var(--ink);}
.how p{margin:0; font-size:11.5px; font-weight:800; line-height:1.3; color:var(--ink-soft);}
.welcome .cta{margin-top:18px; display:grid; gap:12px;}

/* ---------- Stories ---------- */
.stories{display:flex; gap:14px; overflow-x:auto; padding:14px 16px 4px; scrollbar-width:none;}
.stories::-webkit-scrollbar{display:none;}
.story{flex:0 0 auto; text-align:center; width:66px; background:none; border:none; padding:0; text-decoration:none;}
.story span{text-decoration:none;}
.story .ring{width:62px; height:62px; border-radius:50%; padding:3px; margin:0 auto;
  background:conic-gradient(from 210deg, var(--orange), var(--yellow), var(--pink), var(--purple), var(--orange));}
.story .ring.seen{background:var(--line);}
.story img{width:100%; height:100%; border-radius:50%; border:3px solid var(--cream); object-fit:cover; object-position:top center; background:#fff;}
.story span{display:block; margin-top:5px; font-size:11.5px; font-weight:800; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.story .plus{position:relative;}
.story .plus::after{content:"+"; position:absolute; right:2px; bottom:16px; width:19px; height:19px; border-radius:50%;
  background:var(--orange); color:#fff; border:2px solid var(--cream); font-weight:900; font-size:13px; line-height:16px;}

/* ---------- Feed ---------- */
.feedcard{margin:0 16px 18px; overflow:hidden;}
.feedcard .fhead{display:flex; align-items:center; gap:10px; padding:12px 14px 8px;}
.avatar{width:44px; height:44px; border-radius:50%; object-fit:cover; object-position:top center; border:2px solid var(--ink); background:#fff; flex:0 0 auto;}
.avatar.sm{width:34px;height:34px;} .avatar.lg{width:74px;height:74px;border-width:3px;}
.fhead .who{min-width:0;}
.fhead .who b{font-size:15px;}
.fhead .who div{font-size:12px; color:var(--ink-soft); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.fhead .time{margin-left:auto; font-size:11.5px; font-weight:800; color:var(--ink-faint); flex:0 0 auto;}
.treatline{margin:0 14px 10px; background:var(--cream); border:2px dashed #EAC98F; border-radius:16px; padding:9px 12px;
  font-size:13.5px; font-weight:700; display:flex; gap:8px; align-items:flex-start;}
.treatline svg{flex:0 0 auto; margin-top:1px;}
.feedcard .photo{width:100%; aspect-ratio:4/3; object-fit:cover;}
.feedcard .note{padding:11px 14px 4px; font-size:14.5px; line-height:1.45; margin:0;}
.feedcard .note b{color:var(--orange-deep);}
.factions{display:flex; align-items:center; gap:6px; padding:8px 10px 12px;}
.fbtn{display:inline-flex; align-items:center; gap:6px; background:none; border:none; font-weight:900; font-size:13.5px;
  color:var(--ink); padding:7px 9px; border-radius:999px;}
.fbtn:active{background:var(--cream2);}
.fbtn.liked{color:var(--heart);}
.fbtn .cnt{color:var(--ink-soft); font-weight:800;}
.factions .sp{flex:1;}
.passon{border:2px solid var(--ink); background:var(--yellow-soft); box-shadow:0 3px 0 var(--ink);}

/* ---------- Quick actions / balance ---------- */
.balance{margin:14px 16px 0; padding:16px; display:flex; align-items:center; gap:14px;
  background:linear-gradient(120deg, #4A2380, var(--ink)); color:#fff; border-color:var(--ink);}
.balance .amt{font-family:"Fredoka"; font-size:32px; font-weight:700; line-height:1;}
.balance .lbl{font-size:12px; font-weight:800; opacity:.85; text-transform:uppercase; letter-spacing:.6px;}
.balance .btn{margin-left:auto;}
.quick{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:14px 16px 0;}
.quick button, .quick a{background:#fff; border:2px solid var(--line); border-radius:20px; padding:12px 4px 10px; box-shadow:var(--shadow); text-decoration:none;
  font-weight:900; font-size:12px; color:var(--ink); display:grid; justify-items:center; gap:7px;}
.quick button:active, .quick a:active{transform:scale(.96);}
.quick .ic{width:40px; height:40px; border-radius:14px; display:grid; place-items:center; border:2px solid var(--ink);}

/* ---------- Discover ---------- */
.deck{padding:6px 16px 0; position:relative;}
.decksize{aspect-ratio:4/4.4;}
.deck .dcard{position:absolute; top:6px; left:16px; right:16px; box-sizing:border-box; transition:transform .3s ease;}
.deck .dcard.top{z-index:3;}
/* Deck stack (owner's reference video, 2026-11-03): the NEXT profile
   sits underneath the current card at the EXACT same full size — no
   scale, no offset, no peek while the top card is centred. Dragging
   or passing the top card reveals it already in place; it never
   animates in (no fade, no zoom, no rise). Cards beyond next stay
   hidden in the DOM so advancing needs no reload. */
.deck .dcard.next{z-index:1;}
.deck .dcard.queued{z-index:1; visibility:hidden;}
.deck .dcard.top{will-change:transform;}
.deck .dcard.gone{display:none;}
.dcard{position:relative; border-radius:30px; overflow:hidden; border:3px solid var(--ink);
  box-shadow:0 8px 0 rgba(59,29,94,.9), var(--shadow); background:#fff; touch-action:none; user-select:none; -webkit-touch-callout:none; -webkit-user-select:none; will-change:transform;}
.dcard.dragging{box-shadow:0 8px 0 rgba(59,29,94,.9);}
.dcard img.hero{width:100%; aspect-ratio:4/4.4; object-fit:cover; object-position:top center; -webkit-user-drag:none;}
.dcard .shade{position:absolute; inset:auto 0 0 0; padding:44px 16px 14px; color:#fff;
  background:linear-gradient(transparent, rgba(30,10,55,.88) 55%);}
.dcard .shade h3{margin:0; font-size:27px; font-weight:600;}
.dcard .shade .meta{font-weight:800; font-size:13px; opacity:.92;}
.dcard .tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px;}
.dcard .tags span{background:rgba(255,255,255,.18); border:1.5px solid rgba(255,255,255,.65); backdrop-filter:blur(3px);
  padding:3px 9px; border-radius:999px; font-size:12px; font-weight:800;}
.dcard .favmeal{display:flex; gap:9px; align-items:center; margin-top:10px; background:rgba(255,255,255,.14);
  border:1.5px solid rgba(255,255,255,.5); border-radius:14px; padding:7px 9px; font-size:12.5px; font-weight:800;}
.dcard .favmeal img{width:38px; height:38px; border-radius:10px; object-fit:cover;}
.dcard .dist{position:absolute; top:12px; right:12px;}
.dcard .stamp{position:absolute; top:20px; font-family:"Fredoka"; font-weight:700; font-size:24px; padding:4px 14px;
  border:3.5px solid; border-radius:12px; opacity:0; pointer-events:none; letter-spacing:1px;}
.dcard .stamp.treat{left:14px; color:var(--yellow); border-color:var(--yellow); transform:rotate(-12deg);}
.dcard .stamp.pass{right:14px; color:#fff; border-color:#fff; transform:rotate(12deg);}
.deckbtns{display:flex; justify-content:center; align-items:center; gap:16px; margin-top:16px;}
.dbtn{width:58px; height:58px; border-radius:50%; border:2.5px solid var(--ink); display:grid; place-items:center;
  box-shadow:0 4px 0 var(--ink); background:#fff; color:var(--ink);}
.dbtn:active{transform:translateY(3px); box-shadow:0 1px 0 var(--ink);}
.dbtn.big{width:70px; height:70px; background:var(--orange); color:#fff;}
.dbtn.heart{background:#fff; color:var(--heart); transition:background .15s ease;}
/* Owner's rule (2026-11-03): the all-yellow button with the purple
   heart is the TAP EFFECT only — it flashes while you love, then the
   button goes back to its normal look (white, yellow heart). It is
   never a permanent state. A match keeps only its pink ring cue. */
.dbtn.heart.flash{background:var(--yellow);}
.dbtn.heart.matched{box-shadow:0 0 0 3px #FF5C8A, 0 4px 0 var(--ink);}
@keyframes hbpop{40%{transform:scale(1.16)}}
.dbtn.heart.pop{animation:hbpop .32s ease;}
.matchtoast{margin:10px auto 0; width:fit-content; background:var(--ink); color:#fff; font-weight:900; font-size:13px; padding:8px 14px; border-radius:999px; border:2px solid #fff; box-shadow:0 4px 0 rgba(59,29,94,.35);}
.deckdots{display:flex; justify-content:center; gap:6px; margin-top:14px;}
.deckdots i{width:8px; height:8px; border-radius:99px; background:var(--line);}
.deckdots i.on{width:22px; background:var(--orange);}
.deckempty{text-align:center; padding:26px 10px;}
.deckempty img{width:130px; margin:0 auto; border-radius:28px;}

/* ---------- People list / search ---------- */
.searchbar{display:flex; align-items:center; gap:8px; background:#fff; border:2px solid var(--ink); border-radius:999px;
  padding:10px 14px; box-shadow:0 3px 0 var(--ink);}
.searchbar input{border:none; outline:none; flex:1; font-size:15px; font-weight:700; color:var(--ink); background:transparent; min-width:0;}
.searchbar input::placeholder{color:var(--ink-faint);}
.person{display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#fff; border:2px solid var(--line);
  border-radius:22px; padding:11px 13px; margin-bottom:10px; box-shadow:var(--shadow); color:var(--ink);}
.person:active{transform:scale(.99);}
.person .who{min-width:0; flex:1;}
.person .who b{font-size:15.5px; display:flex; align-items:center; gap:6px;}
.person .who div{font-size:12.5px; color:var(--ink-soft); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.verify{color:var(--teal); flex:0 0 auto;}
.vbadge{vertical-align:-3px; flex:0 0 auto;}

/* ---------- Status badges ---------- */
.hbbadge{vertical-align:-3px; flex:0 0 auto;}
.badgesec{margin:14px 16px; padding:15px 16px;}
.badgesec .brow{display:flex; align-items:center; gap:13px;}
.badgesec .binfo{min-width:0;}
.badgesec .bigtier{font-family:"Fredoka"; font-size:20px; font-weight:600; line-height:1.1;}
.badgesec .progline{margin-top:13px; font-size:14px; font-weight:800;}
.badgesec .prog{height:11px; border-radius:99px; background:var(--cream2); border:2px solid var(--line); overflow:hidden; margin-top:7px;}
.badgesec .prog i{display:block; height:100%; border-radius:99px;}
.badgesec .ladder{display:flex; gap:7px; margin-top:13px;}
.badgesec .rung{flex:1; text-align:center; border:2px solid var(--line); border-radius:14px; padding:8px 2px 7px; background:#fff; min-width:0;}
.badgesec .rung .rk{font-family:"Fredoka"; font-weight:700; font-size:14px; margin-top:3px;}
.badgesec .rung .rt{font-size:10.5px; font-weight:900; text-transform:uppercase; letter-spacing:.3px; color:var(--ink-soft);}
.badgesec .rung.earned{border-color:var(--ink);}
.badgesec .rung.now{box-shadow:0 3px 0 var(--ink); background:var(--yellow-soft);}
.badgesec .giftline{display:flex; gap:10px; align-items:flex-start; background:var(--yellow-soft); border:2px dashed var(--ink); border-radius:14px; padding:10px 12px; margin-top:12px;}
.badgesec .giftline .gic{width:36px; height:36px; border-radius:12px; background:#fff; border:2px solid var(--ink); display:grid; place-items:center; flex:0 0 auto;}
.story .ring.founder{background:conic-gradient(from 210deg, var(--yellow), var(--orange), var(--purple), var(--yellow));}
.founder-note{margin:14px 16px 0; padding:15px 16px; border-color:var(--ink); background:linear-gradient(120deg,#FFF6EA,#FFEDD3);}
.founder-note p{margin:6px 0 10px; font-size:13.5px; font-weight:700; color:var(--ink-soft); line-height:1.5;}
.founder-note .fcount{background:#fff; border:2px dashed var(--purple); border-radius:12px; padding:8px 11px; font-weight:900; font-size:13.5px; color:var(--purple);}

/* ---------- Profile ---------- */
.phead{text-align:center; padding:20px 16px 4px;}
.phead .avatar{margin-left:auto; margin-right:auto;}
.phead h2{margin:8px 0 2px; font-size:26px; font-weight:600;}
.phead .handle{font-weight:800; color:var(--orange-deep);}
.phead .bio{margin:8px auto 0; max-width:320px; font-size:14px; font-weight:600; color:var(--ink-soft); line-height:1.45;}
/* Location line (pin + text as one inline group) */
.locline{display:inline-flex !important; align-items:center; gap:5px; flex-wrap:nowrap;}
.locline > svg{flex:0 0 auto;}
.locline > span{min-width:0;}
.locline-center{display:flex !important; justify-content:center; width:100%; text-align:center; flex-wrap:wrap;}
.stats{display:flex; margin:16px; overflow:hidden;}
.stat{flex:1; padding:13px 4px; text-align:center;}
.stat + .stat{border-left:2px dashed var(--line);}
.stat .n{font-family:"Fredoka"; font-size:21px; font-weight:700;}
.stat .l{font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; color:var(--ink-soft);}
.pactions{display:flex; gap:10px; margin:0 16px;}
.pactions .btn{flex:1;}
.pactions .btn.treat-cta{justify-content:center; align-items:center; text-align:center; white-space:nowrap;}
.pactions .btn.treat-cta svg{flex:0 0 auto; display:block;}
.pactions .btn.treat-cta .treat-text{display:inline-block; text-align:center; white-space:nowrap; line-height:1.1;}
.wish{display:flex; align-items:center; gap:12px; padding:10px; margin:0 16px 10px;}
.wish img{width:64px; height:64px; border-radius:16px; object-fit:cover; border:2px solid var(--line);}
.wish .winfo{flex:1; min-width:0;}
.wish .winfo b{font-size:15px;}
.wish .winfo div{font-size:12.5px; color:var(--ink-soft); font-weight:700;}
.tagrow{display:flex; flex-wrap:wrap; gap:7px; margin:0 16px;}

/* ---------- Meals ---------- */
.catrow{display:flex; gap:8px; overflow-x:auto; padding:2px 16px 6px; scrollbar-width:none;}
.catrow::-webkit-scrollbar{display:none;}
.catrow button{flex:0 0 auto; border:2px solid var(--line); background:#fff; border-radius:999px; padding:8px 15px;
  font-weight:900; font-size:13.5px; color:var(--ink);}
.catrow button.on{background:var(--orange); border-color:var(--ink); color:#fff; box-shadow:0 3px 0 var(--ink);}
.rest{display:flex; gap:12px; margin:0 16px 12px; padding:11px; width:calc(100% - 32px); text-align:left; color:var(--ink); align-items:center;}
.rest img{width:78px; height:78px; border-radius:18px; object-fit:cover; border:2px solid var(--line); flex:0 0 auto;}
.rest .ri{flex:1; min-width:0;}
.rest .ri b{font-size:16px; font-family:"Fredoka"; font-weight:600;}
.rest .ri .sub{font-size:12.5px; color:var(--ink-soft); font-weight:700;}
.tiers{display:flex; gap:6px; margin-top:7px;}
.tier{flex:1; text-align:center; border:2px solid var(--line); border-radius:12px; padding:5px 2px; font-size:11px; font-weight:800; color:var(--ink-soft);}
.tier b{display:block; font-size:14px; color:var(--ink);}
.tier.hot{border-color:var(--orange); background:var(--orange-soft);}
.mealrow{display:flex; gap:12px; align-items:center; margin:0 16px 12px; padding:11px;}
.mealrow img{width:70px; height:70px; border-radius:16px; object-fit:cover; border:2px solid var(--line);}
.mealrow .mi{flex:1; min-width:0;}
.mealrow .mi b{font-size:15.5px;}
.mealrow .mi div{font-size:12.5px; color:var(--ink-soft); font-weight:700;}
.price{font-family:"Fredoka"; font-weight:700; font-size:17px;}

/* ---------- Restaurant page ---------- */
.rhero{position:relative;}
.rhero > img{width:100%; height:210px; object-fit:cover;}
.rhero .back{position:absolute; top:14px; left:14px;}
.rlogo{width:74px; height:74px; border-radius:22px; border:3px solid var(--ink); object-fit:cover; background:#fff;
  margin:-34px 0 0 16px; position:relative; box-shadow:var(--shadow);}
.tabs{display:flex; gap:6px; margin:14px 16px 4px; border-bottom:2.5px solid var(--line);}
.tabs button{background:none; border:none; font-weight:900; font-size:15px; color:var(--ink-faint); padding:9px 12px;}
.tabs button.on{color:var(--ink); box-shadow:inset 0 -3.5px 0 var(--orange);}

/* ---------- Send flow ---------- */
.steps{display:flex; gap:6px; margin:4px 16px 14px;}
.steps i{flex:1; height:7px; border-radius:99px; background:var(--line);}
.steps i.on{background:var(--orange);}
.fstep{display:none;} .fstep.on{display:block; animation:viewin .25s ease both;}
.pickrow{display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#fff; border:2.5px solid var(--line);
  border-radius:22px; padding:11px 13px; margin-bottom:10px; color:var(--ink); font-weight:800;}
.pickrow.sel{border-color:var(--ink); background:var(--yellow-soft); box-shadow:0 4px 0 var(--ink);}
.pickrow .radio{margin-left:auto; width:24px; height:24px; border-radius:50%; border:2.5px solid var(--ink-faint); flex:0 0 auto; display:grid; place-items:center; color:#fff;}
.pickrow.sel .radio{background:var(--orange); border-color:var(--ink);}
.amts{display:grid; grid-template-columns:repeat(4,1fr); gap:9px;}
.amts button{border:2.5px solid var(--line); background:#fff; border-radius:18px; padding:13px 2px; font-family:"Fredoka";
  font-weight:700; font-size:19px; color:var(--ink);}
.amts button.sel{border-color:var(--ink); background:var(--orange); color:#fff; box-shadow:0 4px 0 var(--ink);}
textarea.note, input.note{width:100%; border:2.5px solid var(--line); border-radius:18px; padding:13px 14px; font-size:15px;
  font-weight:700; color:var(--ink); background:#fff; resize:none; outline:none;}
textarea.note:focus, input.note:focus{border-color:var(--ink);}
.switchrow{display:flex; align-items:center; gap:12px; background:#fff; border:2px solid var(--line); border-radius:20px; padding:13px 14px;}
.switchrow .tx{flex:1;} .switchrow .tx b{font-size:15px;} .switchrow .tx div{font-size:12.5px; color:var(--ink-soft); font-weight:700;}
.switch{width:56px; height:32px; border-radius:99px; border:2.5px solid var(--ink); background:var(--cream2); position:relative; flex:0 0 auto; padding:0;}
.switch::after{content:""; position:absolute; top:2.5px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; border:2.5px solid var(--ink); transition:left .15s;}
.switch[aria-checked="true"]{background:var(--orange);}
.switch[aria-checked="true"]::after{left:25px;}
.sumrow{display:flex; justify-content:space-between; align-items:baseline; padding:7px 2px; font-weight:800; font-size:14.5px;}
.sumrow .hint{font-size:12px; color:var(--ink-soft); font-weight:700;}
.sumrow.total{border-top:2.5px dashed var(--line); margin-top:6px; padding-top:12px; font-size:17px;}
.sumrow.total .v{font-family:"Fredoka"; font-size:23px; font-weight:700;}
.nestline{background:var(--purple-soft); border:2px dashed var(--purple); border-radius:14px; padding:9px 12px; margin:8px 0;
  display:flex; justify-content:space-between; font-weight:900; font-size:14px; color:var(--purple);}
.fnav{display:flex; gap:10px; margin-top:18px;}
.fnav .btn{flex:1;}
.partner{display:flex; align-items:center; gap:11px; width:100%; text-align:left; background:#fff; border:2.5px solid var(--line);
  border-radius:20px; padding:12px 13px; margin-bottom:10px; color:var(--ink);}
.partner.sel{border-color:var(--ink); box-shadow:0 4px 0 var(--ink);}
.partner .plogo{width:42px; height:42px; border-radius:13px; display:grid; place-items:center; font-family:"Fredoka"; font-weight:700; color:#fff; flex:0 0 auto;}
.partner .pt{flex:1;} .partner .pt b{font-size:15px;} .partner .pt div{font-size:12px; color:var(--ink-soft); font-weight:700;}

/* ---------- Confirmation ---------- */
.done{text-align:center; padding:26px 22px 10px; position:relative; overflow:hidden;}
.done .bird{width:170px; margin:0 auto; border-radius:32px;}
.done h2{font-size:33px; font-weight:700; margin:12px 0 6px; line-height:1.1;}
.done p{font-weight:700; color:var(--ink-soft); margin:0 auto; max-width:300px;}
.done .receipt{margin:18px 0; text-align:left; padding:15px 16px;}
.confetti{position:absolute; inset:0; pointer-events:none; overflow:hidden;}
.confetti i{position:absolute; top:-14px; width:9px; height:14px; border-radius:3px; opacity:0; animation:fall linear forwards;}
@keyframes fall{
  0%{transform:translateY(0) rotate(0deg); opacity:0;}
  6%{opacity:1;}
  70%{opacity:1;}
  100%{transform:translateY(1200px) rotate(660deg); opacity:0;}
}

/* ---------- Credits ---------- */
.creditcard{margin:0 16px 12px; padding:14px; display:flex; gap:12px; align-items:center;}
.creditcard .amt{font-family:"Fredoka"; font-size:24px; font-weight:700;}
.creditcard .ci{flex:1; min-width:0;}
.creditcard .ci div{font-size:12.5px; color:var(--ink-soft); font-weight:700;}

/* ---------- Messages ---------- */
.thread{display:flex; gap:12px; width:100%; text-align:left; background:none; border:none; padding:13px 16px; color:var(--ink); align-items:center;}
.thread + .thread{border-top:2px solid var(--line);}
.thread .ti{flex:1; min-width:0;}
.thread .ti b{font-size:15.5px;}
.thread .ti div{font-size:13px; color:var(--ink-soft); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.thread .tt{text-align:right; flex:0 0 auto;}
.unread{background:var(--pink); color:#fff; font-size:11px; font-weight:900; min-width:20px; height:20px; border-radius:99px;
  display:inline-grid; place-items:center; padding:0 5px; margin-top:4px;}
.chatbox{padding:16px; display:flex; flex-direction:column; gap:9px;}
.bubble{max-width:78%; padding:10px 14px; border-radius:20px; font-size:14.5px; font-weight:600; line-height:1.4;
  background:#fff; border:2px solid var(--line); align-self:flex-start; border-bottom-left-radius:7px;}
.bubble.me{background:var(--orange); border-color:var(--ink); color:#fff; align-self:flex-end; border-bottom-left-radius:20px; border-bottom-right-radius:7px;}
.bubble .btime{display:block; font-size:10.5px; font-weight:800; opacity:.65; margin-top:4px; text-align:right;}
.bubble p{margin:0;}
.giftbubble{align-self:flex-start; width:78%; overflow:hidden; padding:0;}
.giftbubble img{width:100%; height:110px; object-fit:cover;}
.giftbubble .gb{padding:9px 13px; font-size:13.5px;}
.composer{flex:0 0 auto; display:flex; gap:9px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--cream); border-top:2px solid var(--line); box-shadow:0 -4px 14px rgba(59,29,94,.06);}
/* Chat screen (owner's rule, 2026-11-07): the header and the composer
   are FIXED — only the message box scrolls between them. The thread
   screen is a full-height column; the page itself never scrolls. */
.screen.chatlive{display:flex; flex-direction:column; height:100vh; height:100dvh; animation:none;}
.chatlive .backbar{flex:0 0 auto; border-bottom:2px solid var(--line); padding-bottom:14px; background:var(--cream); box-shadow:0 4px 14px rgba(59,29,94,.06);}
.chatlive .backbar h2.fred{display:flex; align-items:center; gap:5px; white-space:nowrap;}
.chatlive .chatbox{flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding-top:26px;}
body.hidenav main:has(> .chatlive){padding-bottom:0;}
.composer input{flex:1; border:2.5px solid var(--ink); border-radius:999px; padding:11px 16px; font-size:15px; font-weight:700; outline:none; background:#fff; min-width:0;}
.sendbtn{width:47px; height:47px; border-radius:50%; border:2.5px solid var(--ink); background:var(--orange); color:#fff; display:grid; place-items:center; box-shadow:0 3px 0 var(--ink); flex:0 0 auto;}
.sendbtn:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink);}

/* ---------- Activity / alerts ---------- */
.act{display:flex; gap:12px; padding:13px 16px; align-items:flex-start;}
.act + .act{border-top:2px solid var(--line);}
.act .aic{width:42px; height:42px; border-radius:15px; border:2px solid var(--ink); display:grid; place-items:center; flex:0 0 auto;}
.act .atx{flex:1; font-size:14px; font-weight:600; line-height:1.45;}
.act .atx .when{font-size:11.5px; color:var(--ink-faint); font-weight:800;}

/* ---------- Nest page ---------- */
.nesthero{margin:16px; padding:20px 18px; background:linear-gradient(130deg,#5B2A9D,#3B1D5E); color:#fff; border-color:var(--ink); overflow:hidden; position:relative;}
.nesthero h2{margin:0 0 6px; font-size:27px; font-weight:700;}
.nesthero p{margin:0; font-weight:700; opacity:.9; font-size:14.5px; line-height:1.5;}
.nesthero .bigpct{font-family:"Fredoka"; font-size:64px; font-weight:700; color:var(--yellow); line-height:1;}
.feeviz{display:flex; align-items:stretch; gap:0; margin:0 16px; overflow:hidden;}
.feeviz .seg{padding:14px 10px; text-align:center;}
.feeviz .seg .v{font-family:"Fredoka"; font-size:23px; font-weight:700;}
.feeviz .seg .l{font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; opacity:.85;}
.calc{margin:0 16px; padding:18px;}
.calc label{font-weight:900; font-size:13.5px; display:flex; justify-content:space-between; margin:14px 0 6px;}
.calc label output{color:var(--orange-deep); font-family:"Fredoka"; font-size:16px;}
input[type=range]{width:100%; accent-color:var(--orange); height:28px;}
.calc .result{margin-top:14px; background:var(--yellow-soft); border:2.5px dashed var(--ink); border-radius:18px; padding:14px; text-align:center;}
.calc .result .rv{font-family:"Fredoka"; font-size:34px; font-weight:700; color:var(--ink);}
.calc .presets{display:flex; gap:7px; flex-wrap:wrap; margin-top:10px;}
.phase{display:flex; gap:12px; margin:0 16px 12px; padding:14px;}
.phase .pn{width:38px; height:38px; border-radius:50%; border:2.5px solid var(--ink); display:grid; place-items:center;
  font-family:"Fredoka"; font-weight:700; flex:0 0 auto; background:var(--yellow);}
.phase b{font-size:15.5px;} .phase p{margin:3px 0 0; font-size:13.5px; color:var(--ink-soft); font-weight:700; line-height:1.45;}

/* ---------- Dashboard ---------- */
.dgrid{display:grid; grid-template-columns:1fr 1fr; gap:11px; margin:0 16px;}
.dstat{padding:14px;}
.dstat .dv{font-family:"Fredoka"; font-size:25px; font-weight:700;}
.dstat .dl{font-size:12px; font-weight:900; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.4px;}
.dstat .dd{font-size:12px; font-weight:900; color:var(--green);}

/* ---------- Bottom nav ---------- */
.bottomnav{position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:min(430px,100%); z-index:50;
  background:rgba(255,255,255,.97); border-top:2px solid var(--ink); display:flex; padding:8px 8px calc(10px + env(safe-area-inset-bottom)); gap:2px;}
.navbtn{flex:1; background:none; border:none; display:grid; justify-items:center; gap:2px; padding:5px 2px; text-decoration:none;
  font-size:11px; font-weight:900; color:var(--ink-faint); border-radius:14px;}
.navbtn.on{color:var(--orange-deep);}
.navbtn svg{display:block;}
.fab{flex:0 0 auto; width:62px; height:62px; margin-top:-30px; border-radius:50%; background:var(--orange);
  border:3px solid var(--ink); box-shadow:0 5px 0 var(--ink), var(--shadow); color:#fff; display:grid; place-items:center; position:relative; text-decoration:none;}
.fab:active{transform:translateY(3px); box-shadow:0 2px 0 var(--ink);}
.fab span{position:absolute; bottom:-19px; font-size:11px; font-weight:900; color:var(--orange-deep); white-space:nowrap;}
.hidenav .bottomnav{display:none;}
.hidenav main{padding-bottom:26px;}
.hidenav .composer{bottom:0;}

/* ---------- Toast ---------- */
.toast{position:fixed; left:50%; bottom:118px; transform:translate(-50%,20px); z-index:90; background:var(--ink); color:#fff;
  font-weight:900; font-size:14px; padding:12px 18px; border-radius:999px; border:2px solid #fff; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:.25s; max-width:88vw; text-align:center;}
.toast.show{opacity:1; transform:translate(-50%,0);}
.backbar{display:flex; align-items:center; gap:10px; padding:14px 16px 0;}
.backbar h2{margin:0; font-size:22px; font-weight:600;}
.backbtn{width:40px; height:40px; border-radius:50%; border:2px solid var(--ink); background:#fff; display:grid; place-items:center; box-shadow:0 3px 0 var(--ink); color:var(--ink); flex:0 0 auto;}
.backbtn:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink);}
@media (prefers-reduced-motion: reduce){ *{animation-duration:.001s !important; transition-duration:.001s !important;} }

/* ---------- Stage 1 additions: real-app forms, payments, chat ---------- */
.form label{display:block;margin:10px 0;font-weight:600}
.form input,.form select,.form textarea{display:block;width:100%;margin-top:6px;padding:12px 14px;border:2px solid var(--line);border-radius:14px;background:#fff;font:inherit;color:var(--ink)}
.form textarea{min-height:80px;resize:vertical}
/* Verified badge tap target + info sheet */
.vbadge{display:inline-grid; place-items:center; cursor:pointer; border-radius:50%; vertical-align:-2px;}
.vbadge svg, .vcheck{display:block; overflow:visible;}
.vbadge:active{transform:scale(.85);}
.badge-sheet{position:fixed; inset:0; z-index:120; display:grid; place-items:end center;}
.badge-sheet[hidden]{display:none;}
.badge-sheet-backdrop{position:absolute; inset:0; background:rgba(30,10,55,.55);}
.badge-sheet-card{position:relative; width:min(430px,100%); max-height:86vh; overflow:auto; background:var(--cream,#FFF6EA); border:3px solid var(--ink); border-bottom:none; border-radius:26px 26px 0 0; box-shadow:0 -8px 0 rgba(59,29,94,.25); padding:22px 20px 26px; text-align:center;}
.badge-sheet-x{position:absolute; top:10px; right:12px; width:36px; height:36px; border-radius:50%; border:2px solid var(--ink); background:#fff; font-weight:900; cursor:pointer;}
.badge-sheet-badge{display:grid; place-items:center; margin-bottom:6px;}
.badge-sheet-card h3{margin:4px 0 8px; font-family:"Fredoka"; font-size:21px; color:var(--ink);}
.badge-sheet-card p{margin:0 0 12px; font-size:14.5px; line-height:1.45; color:var(--ink);}
.badge-ladder{list-style:none; margin:0 auto 12px; padding:0; max-width:280px; text-align:left;}
.badge-ladder li{display:flex; align-items:center; gap:9px; padding:6px 10px; font-weight:800; font-size:14px; color:var(--ink);}
.badge-ladder li b{margin-left:auto;}
.badge-ladder li i{width:15px; height:15px; border-radius:50%; border:2px solid var(--ink); flex:none;}
.badge-sheet-note{font-size:13px !important; opacity:.85;}
/* Password show/hide eye (JS wraps every password input in .pwwrap) */
.pwwrap{position:relative; display:block;}
.pwwrap input{padding-right:52px;}
.pweye{position:absolute; right:6px; top:50%; transform:translateY(-50%); width:40px; height:40px; display:grid; place-items:center; background:none; border:none; border-radius:12px; color:#8A7F96; cursor:pointer;}
.pweye svg{width:22px; height:22px;}
.pweye:active{transform:translateY(-50%) scale(.9);}
.err{color:#B3261E;font-weight:600}
.oknote{color:#1E7A34;font-weight:700}
.cardbox{margin-top:6px;padding:12px 14px;border:2px solid var(--line);border-radius:14px;background:#fff}
.cardfields{display:flex;align-items:center;gap:12px;padding:14px}
.cardfields .cf-num{flex:1 1 auto;min-width:0}
.cardfields .cf-exp{flex:0 0 88px}
.cardfields .cf-cvc{flex:0 0 74px}
.btn.big{width:100%;text-align:center;padding:14px}
.btn.small{padding:6px 12px;font-size:.9em}
.bird-hero{display:block;width:min(240px,60vw);margin:8px auto}
.feedimg{width:100%;border-radius:16px;display:block}
.pfp{display:block;margin:0 auto;width:120px;height:120px;object-fit:cover;border-radius:50%}
.bubble.mine{margin-left:auto;background:var(--ink);color:#FFF6EA}
.lockbox{text-align:center}
.lockbox .btn{display:inline-block}
.health-note{font-size:.9em}
select,input[type="number"]{font:inherit}
.fpanel .sumrow{padding:6px 0}

/* ---------- Parity additions (2026-10-29): top bar, switches, bundles ---------- */
/* Wordmark ~45px tall; BETA tag tucked at its top-right as one lockup */


/* SwitchToggle standard: 60x34 track, whole-pixel 3px ink border, 24px
   round knob inset 2px, 26px transform travel, pale OFF / orange ON */
.switch{appearance:none; -webkit-appearance:none; width:60px; height:34px; border-radius:999px;
  border:3px solid var(--ink); background:var(--cream2); position:relative; flex:0 0 auto; padding:0; cursor:pointer; margin:0;}
.switch::after{content:""; position:absolute; top:2px; left:2px; width:24px; height:24px; border-radius:50%;
  background:#fff; border:3px solid var(--ink); transition:transform .16s ease; box-sizing:border-box;}
.switch:checked{background:var(--orange);}
.switch:checked::after{transform:translateX(26px);}

/* Auth landing: gift banner, hero bird ~198px, Sign up / Sign in tabs */
.giftbanner{display:inline-block; background:var(--yellow-soft); border:2px dashed var(--ink); border-radius:999px;
  padding:7px 14px; font-weight:900; font-size:13.5px; margin:10px auto 2px;}
.welcome .auth-bird{width:198px;}
.authtabs{display:flex; gap:6px; margin:16px 0 12px; border-bottom:3px solid var(--line);}
.authtab{flex:1; text-align:center; font-family:"Fredoka"; font-weight:600; font-size:16px; color:var(--ink-faint);
  padding:9px 6px; text-decoration:none;}
.authtab.on{color:var(--ink); box-shadow:inset 0 -3px 0 var(--orange);}
.emailpreview{border:2px dashed var(--purple); background:var(--purple-soft); margin:12px 0; padding:14px;}
.codebox{font-family:"Fredoka"; font-size:30px; font-weight:700; letter-spacing:6px; text-align:center;
  background:#fff; border:2px solid var(--ink); border-radius:14px; padding:8px 4px;}
.paidcard{background:var(--yellow-soft); border:2px dashed var(--ink); border-radius:14px; padding:10px 12px; margin:12px 0;}
.okmsg{color:var(--green); font-weight:800;}

/* Bundle steppers: whole-pixel 3px strokes, round buttons */
.stepper{display:inline-flex; align-items:center; gap:2px; margin-left:auto; flex:0 0 auto; background:#fff;
  border:3px solid var(--ink); border-radius:999px; padding:3px; box-shadow:0 3px 0 var(--ink);}
.stepper button{width:34px; height:34px; border-radius:50%; border:2px solid var(--ink); display:grid; place-items:center;
  font-family:"Fredoka"; font-weight:700; font-size:19px; line-height:1; color:var(--ink); background:var(--cream); padding:0;}
.stepper button:active{transform:translateY(1px);}
.stepper button.plus{background:var(--orange); color:#fff;}
.stepper button:disabled{opacity:.35;}
.stepper .qn{min-width:30px; text-align:center; font-family:"Fredoka"; font-weight:700; font-size:17px; color:var(--ink);}
.qtybadge[hidden]{display:none !important;}
.creditamt{display:inline-flex; align-items:center; gap:4px; font-weight:900;}
.creditamt input{width:76px; padding:8px 10px; border:3px solid var(--line); border-radius:12px; font:inherit;}
.treatitem .pmeta{flex:1; min-width:0; display:grid; gap:2px;}

/* Location pin + text: one centred inline-flex group */
.pinmeta{display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap;}

/* Slim home composer (~84px, auto-grows to ~4 lines) */
.slimcomposer{display:flex; align-items:flex-start; gap:9px; margin:0 16px 14px; padding:10px 12px;}
.slimcomposer .composer-input{flex:1; border:none; outline:none; resize:none; font:inherit; font-size:15px;
  font-weight:600; color:var(--ink); background:transparent; line-height:20px; max-height:104px; padding:7px 0 0;}
.slimcomposer .mealpill{flex-basis:100%; border:2px solid var(--line); background:var(--cream); border-radius:999px;
  padding:5px 10px; font-weight:800; font-size:12.5px; color:var(--ink-soft); width:auto;}
.slimcomposer{flex-wrap:wrap;}
.slimcomposer .mealpill.on, .slimcomposer .mealpill:not([value=""]){background:var(--yellow-soft); color:var(--ink);}
.delform{display:inline;}
.delbtn{color:#B3261E;}

/* Restaurant dashboard states */
.livebanner{border-color:var(--green); background:#E7F7EE; font-weight:800; margin-bottom:12px; padding:13px 15px;}
.warnbanner{border-color:var(--orange); background:var(--orange-soft); font-weight:800; margin-bottom:12px; padding:13px 15px;}

/* Founder previews */
.previewbanner{position:sticky; top:64px; z-index:30; display:flex; justify-content:space-between; align-items:center; gap:10px;
  background:var(--ink); color:#fff; font-weight:900; font-size:13.5px; border-radius:14px; padding:10px 13px; margin-bottom:12px;}
.previewbanner a{color:var(--yellow); font-weight:900; white-space:nowrap;}

/* Chat lock pill + notifications */
.lockpill{background:var(--ink); color:var(--yellow); font-size:10.5px; font-weight:900; letter-spacing:.6px;
  padding:2px 8px; border-radius:999px; text-transform:uppercase;}
.notiflink{display:flex; text-decoration:none; color:inherit;}
.addrbox{margin-top:12px; padding:14px;}
.card.form .paidcard h3, .paidcard h3{margin-top:0;}

/* ---------- Welcome parity (approved final, 2026-10-30) ----------
   Values ported from the approved build's own stylesheet: large centred
   wordmark (248px), compact hero bird (198px), 42px two-tone headline,
   lede, one white card with the Sign up / Sign in pill toggle, the
   "Who's joining?" pick cards, the photo-picker tile, the dashed gift
   box and the how-steps. Fonts load via <link> in app/views.php. */
.welcome{padding:14px 22px 8px; text-align:center;}
.welcome-wordmark{display:block; width:min(248px,68vw); height:auto; margin:0 auto 10px; object-fit:contain;}
.welcome-bird{display:block; width:min(198px,52vw); height:auto; margin:8px auto 0;
  filter:drop-shadow(0 10px 16px rgba(59,29,94,.16));}
.welcome h1{font-size:42px; font-weight:700; line-height:1.02; margin:4px 0 6px;}
.welcome h1 .o{color:var(--orange);}
.welcome p.lede{font-size:16.5px; font-weight:700; color:var(--ink-soft); margin:0 auto 4px; max-width:300px;}
.authcard{margin:12px 0 4px; padding:18px; text-align:left;}
.authtoggle{display:flex; gap:8px; margin-bottom:6px;}
.authtoggle .btn{flex:1;}
.joinq{font-weight:900; font-size:13.5px; margin:6px 0 5px;}
.joinrow{display:flex; gap:10px;}
.joincard{flex:1; display:block; border:2px solid var(--line); border-radius:22px;
  padding:11px 13px; background:#fff; text-decoration:none; color:var(--ink);}
.joincard b{font-weight:800; font-size:15.5px; display:block;}
.joincard div{font-size:13px; color:var(--ink-soft); font-weight:700; margin-top:2px;}
.joincard.on{border-color:var(--ink); background:var(--yellow-soft); box-shadow:0 4px 0 var(--ink);}
.codenote{display:block; font-size:13px; color:var(--ink-soft); font-weight:700; margin-top:5px;}
.fieldlabel{font-weight:900; font-size:13.5px; display:block; margin:12px 0 5px;}
.photonote{font-size:13px; color:var(--ink-soft); font-weight:700; margin:4px 0 0; line-height:1.5;}
.photo-picks{display:flex; gap:14px; margin-top:12px; align-items:flex-start; flex-wrap:wrap;}
.photo-pick{position:relative; flex:0 0 auto; width:80px; background:none; border:none; padding:0; margin:0;
  display:flex; flex-direction:column; align-items:center; text-align:center; color:var(--ink); cursor:pointer;}
.photo-pick-circle{width:74px; height:74px; border-radius:50%; border:3px solid var(--ink);
  background:#fff; box-shadow:0 4px 0 var(--ink); overflow:hidden; display:grid; place-items:center; flex:0 0 auto;}
.photo-pick-circle .pp-emoji{font-size:32px; line-height:1;}
.photo-pick > .lbl{display:block; margin-top:7px; font-size:12px; font-weight:800; color:var(--ink); line-height:1.25;}
.photo-pick input[type=file]{position:absolute; width:1px; height:1px; opacity:0; overflow:hidden;}
.authnote{font-size:13px; color:var(--ink-soft); font-weight:700; margin:14px 0 0; line-height:1.5;}
.secnote{font-size:13px; color:var(--ink-soft); font-weight:700; margin:0; line-height:1.5;}
.authcard h3.sech{font-family:"Fredoka"; font-weight:600; font-size:17px; margin:18px 0 2px;}
.paidbox{background:var(--purple-soft); border:2px solid var(--purple); border-radius:18px;
  padding:12px 14px; font-weight:700; line-height:1.5; margin-top:10px; color:var(--ink);}
.starbox{background:var(--orange-soft); border:2px solid var(--ink); border-radius:18px;
  padding:12px 14px; font-weight:700; line-height:1.5; margin-top:10px; color:var(--ink);}
.giftbox{display:flex; gap:10px; align-items:flex-start; background:var(--yellow-soft);
  border:2px dashed var(--ink); border-radius:14px; padding:10px 12px; margin-top:14px; text-align:left;}
.giftchip{width:36px; height:36px; border-radius:12px; background:#fff; border:2px solid var(--ink);
  display:grid; place-items:center; flex:0 0 auto; font-size:19px;}
.giftbox p{margin:0; font-weight:700; line-height:1.45; font-size:13px;}
.authcard .form label:not(.switchrow):not(.photo-pick), .card.form label:not(.switchrow):not(.photo-pick){font-weight:900; font-size:13.5px; margin:12px 0 5px;}
.authcard .form input:not([type=file]):not([type=checkbox]), .card.form input:not([type=file]):not([type=checkbox]){border-radius:18px; padding:13px 14px; font-size:15px; font-weight:700; margin-top:5px;}
.codeinput{font-size:22px !important; letter-spacing:6px; text-align:center; font-family:"Fredoka"; padding-left:20px !important;}
.welcome .howrow{margin:14px 0 4px;}
.guesthead{text-align:center; padding:6px 16px 2px;}
.guesthead img{height:46px; width:auto; margin:0 auto;}

/* Form toggles: the compact 60x34 pill must beat the generic .form
   input/label rules on specificity, or switches render as full bars. */
.form label.switchrow{display:flex;}
.form input.switch{width:60px; height:34px; display:inline-block; padding:0; margin:0; flex:0 0 auto;}

/* ---------- Design-system completion (approved values) ---------- */
.screen{animation:none;}
.feed-composer{margin:14px 16px 0; padding:9px 12px 8px;}
.feed-composer-row{display:flex; gap:9px; align-items:flex-start;}
.feed-composer-row .avatar{flex:0 0 auto; margin-top:1px;}
.feed-composer-input{flex:1; min-width:0; width:100%; border:2px solid var(--line); border-radius:999px; padding:8px 13px; font-size:14.5px; font-weight:700; color:var(--ink); background:#fff; resize:none; outline:none; line-height:1.35; min-height:38px; max-height:102px; overflow-y:hidden; font-family:inherit;}
.feed-composer-input:focus{border-color:var(--ink);}
.feed-composer-input::placeholder{color:var(--ink-faint);}
.feed-composer-post{flex:0 0 auto; height:38px; padding:0 16px !important; align-items:center;}
.feed-composer-mealrow{display:flex; align-items:center; margin:5px 0 0 45px; min-height:24px;}
.feed-composer-meal-wrap{position:relative; display:inline-flex; max-width:100%;}
.feed-composer-meal{appearance:none; -webkit-appearance:none; border:2px solid var(--line); background:var(--cream); color:var(--ink-soft); border-radius:999px; padding:3px 24px 3px 10px; font-size:12.5px; font-weight:800; line-height:1.3; max-width:250px; outline:none; cursor:pointer; text-overflow:ellipsis; font-family:inherit;}
.feed-composer-meal:focus{border-color:var(--ink); color:var(--ink);}
.feed-composer-meal.has-meal{background:var(--yellow-soft); border-color:var(--ink); color:var(--ink);}
.feed-composer-meal-chevron{position:absolute; right:8px; top:50%; transform:translateY(-50%); pointer-events:none; color:var(--ink-soft); display:grid; place-items:center; line-height:0;}
.feed-composer-error{margin-top:8px; margin-left:45px;}
@media (max-width:360px){
  .feed-composer{padding:9px 10px 8px;}
  .feed-composer-row{gap:8px;}
  .feed-composer-mealrow{margin-left:42px;}
  .feed-composer-error{margin-left:42px;}
  .feed-composer-meal{max-width:210px;}
}
.errbox{background:#FFF0EC; border:2px solid var(--orange-deep); color:#8A2B00; border-radius:16px; padding:10px 13px; font-size:13.5px; font-weight:800; margin-top:12px; text-align:left;}
.okbox{background:#E4F6EC; border:2px solid var(--green); color:#14532D; border-radius:16px; padding:10px 13px; font-size:13.5px; font-weight:800; margin-top:12px; text-align:left;}
.testmode{background:var(--yellow-soft); border:2px dashed var(--ink); border-radius:14px; padding:10px 12px; font-size:12.5px; font-weight:800; color:var(--ink);}
.modetabs{display:flex; gap:8px; margin-bottom:6px;}
.modetabs .btn{flex:1;}
.hb-dot{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--ink-faint); animation:hb-typing 1.1s infinite ease-in-out;}
.hb-dot:nth-child(2){animation-delay:.15s;}
.hb-dot:nth-child(3){animation-delay:.3s;}
@keyframes hb-typing{0%,60%,100%{transform:translateY(0); opacity:.35;} 30%{transform:translateY(-3px); opacity:1;}}
@keyframes hb-pop{0%{transform:scale(.6); opacity:0;} 70%{transform:scale(1.08);} 100%{transform:scale(1); opacity:1;}}
.hb-pop{animation:hb-pop .35s ease-out;}
.stepper .qn{min-width:30px; text-align:center; font-family:"Fredoka"; font-weight:700; font-size:17px; color:var(--ink);}
.pickrow .qtybadge{display:inline-flex; align-items:center; background:var(--orange); color:#fff; border:2px solid var(--ink); border-radius:999px; padding:1px 8px; font-size:11.5px; font-weight:900; margin-left:6px; vertical-align:2px;}
.bundlesum{background:var(--card); border:2px solid var(--ink); border-radius:var(--r-md); box-shadow:0 4px 0 var(--ink); padding:13px 15px; margin-top:4px;}
.bundlesum .bhead{display:flex; justify-content:space-between; align-items:baseline; gap:10px;}
.bundlesum .bhead b{font-family:"Fredoka"; font-size:18px; font-weight:700;}
.bundlesum .bhead .btotal{font-family:"Fredoka"; font-size:20px; font-weight:700; color:var(--orange-deep);}
.bundlesum ul{list-style:none; margin:9px 0 0; padding:9px 0 0; border-top:2px dashed var(--line); display:grid; gap:5px;}
.bundlesum li{display:flex; justify-content:space-between; gap:10px; font-size:13.5px; font-weight:800;}
.bundlesum li .lt{color:var(--ink-soft); font-weight:700;}

.person .prow{display:flex; align-items:center; gap:12px; flex:1; min-width:0; text-decoration:none; color:inherit;}
.thread{text-decoration:none;}

/* Visually hidden (accessibility labels) — matches the approved build */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Order evolution tracker (2026-11-12, approved preview design) */
.tracker{margin:14px 0 6px;}
.tracker .dotsrow{display:flex;position:relative;}
.tracker .dotsrow::before{content:'';position:absolute;top:50%;transform:translateY(-50%);height:3px;background:var(--line);z-index:1;}
.tracker .dotsrow.n4::before{left:12.5%;right:12.5%;}
.tracker .dotsrow.n5::before{left:10%;right:10%;}
.tracker .fill{position:absolute;top:50%;transform:translateY(-50%);height:3px;background:var(--green);z-index:1;}
.tracker .dotsrow .cell{flex:1;display:flex;justify-content:center;}
.tracker .dot{width:30px;height:30px;border-radius:50%;border:2px solid var(--ink);background:#fff;display:grid;place-items:center;font-size:15px;font-weight:900;position:relative;z-index:2;}
.tracker .dot.tdone{background:var(--green);border-color:var(--ink);color:#fff;}
.tracker .dot.tnow{background:var(--orange);border-color:var(--ink);color:#fff;box-shadow:0 0 0 4px var(--orange-soft);}
.tracker .dot.tnext{background:#fff;color:var(--ink-faint);border-color:var(--ink-faint);}
.tracker .lblrow{display:flex;margin-top:6px;}
.tracker .lblrow .cell{flex:1;text-align:center;font-size:11px;font-weight:800;line-height:1.3;color:var(--ink-faint);}
.tracker .lblrow .cell.tdone{color:var(--ink-soft);}
.tracker .lblrow .cell.tnow{color:var(--ink);}
