@font-face{font-family:'Sao Chingcha';src:url(/fonts/saochingcha-400.3cc062e500.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:'Sao Chingcha';src:url(/fonts/saochingcha-700.de3d4144a7.woff2) format("woff2");font-weight:700;font-display:swap}@font-face{font-family:'Anuphan';src:url(/fonts/anuphan-400.c89763cec6.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:'Anuphan';src:url(/fonts/anuphan-500.c6c0092e6c.woff2) format("woff2");font-weight:500;font-display:swap}@font-face{font-family:'Anuphan';src:url(/fonts/anuphan-600.6658645263.woff2) format("woff2");font-weight:600;font-display:swap}@font-face{font-family:'Anuphan';src:url(/fonts/anuphan-700.2d46be1c7f.woff2) format("woff2");font-weight:700;font-display:swap}@font-face{font-family:'Atkinson Hyperlegible';src:url(/fonts/atkinson-400.d64ba838ef.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Atkinson Hyperlegible';src:url(/fonts/atkinson-700.140e2bd25a.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Atkinson Hyperlegible';src:url(/fonts/atkinson-ext-400.61eeb0eb8b.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Atkinson Hyperlegible';src:url(/fonts/atkinson-ext-700.840ced16f9.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}:root{--bg:#fff9f0;--surface:#ffffff;--surface-2:#f1f9f3;--line:#f0e2cc;--field-line:#8c7a66;--switch-off:#56635a;--ink:#1e2b22;--ink-2:#46564b;--ink-3:#56635a;--brand:#11763f;--brand-ink:#ffffff;--brand-strong:#0b5a30;--brand-soft:#e3f5ea;--fresh:#2fb866;--sel:#11763f;--sel-ink:#ffffff;--ok:#11763f;--ok-soft:#e3f5ea;--warn:#9a5100;--warn-soft:#fff0d2;--err:#c2261d;--err-soft:#fde8e6;--info:#0a6390;--info-soft:#e3f2fc;--on-info:#ffffff;--teal:#0b6b66;--teal-soft:#dff7f4;--mango:#ffa53a;--mango-1:#ffc766;--mango-2:#ffa53a;--mango-ink:#9a5100;--on-mango:#3b2400;--love:#e23744;--love-ink:#c0222f;--love-soft:#fde3e5;--cat-green:#acecb4;--cat-teal:#8ff2ea;--cat-sky:#c6dcfa;--cat-mint:#effcf6;--cat-green-2:#2fb866;--cat-teal-2:#22a99f;--cat-sky-2:#5cb8e6;--cat-mint-2:#a8dcc0;--deep:#06492a;--deep-2:#0b5a30;--on-deep:#ffffff;--on-deep-2:#e3f5ea;--on-deep-accent:#8ff2ea;--hero:linear-gradient(135deg,#2fb866 0%,#acecb4 60%,#c6dcfa 120%);--shadow:0 1px 2px rgba(120,80,30,.06),0 10px 28px rgba(160,110,40,.10);--focus:color-mix(in srgb,var(--brand) 55%,transparent)}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]){--bg:#0e1712;--surface:#202f26;--surface-2:#2a3c31;--line:#3a5244;--field-line:#7d9a88;--switch-off:#9fb6a7;--ink:#eef6f0;--ink-2:#c3d5c9;--ink-3:#a3b9ab;--brand:#4cc884;--brand-ink:#062112;--brand-strong:#86e0ac;--brand-soft:#1b3d29;--fresh:#3fd17f;--sel:#4cc884;--sel-ink:#062112;--ok:#86e0ac;--ok-soft:#1b3d29;--warn:#ffc766;--warn-soft:#3d2e12;--err:#ff8a80;--err-soft:#401c1a;--info:#7cc8f0;--info-soft:#13324a;--on-info:#062112;--teal:#6fe0d6;--teal-soft:#0f3a38;--mango:#ffb347;--mango-1:#ffc766;--mango-2:#ffa53a;--mango-ink:#ffc766;--on-mango:#3b2400;--love:#f0505c;--love-ink:#ff6b74;--love-soft:#3a1a1e;--cat-green:#19431d;--cat-teal:#0b4c50;--cat-sky:#0b3250;--cat-mint:#1a231f;--cat-green-2:#14683f;--cat-teal-2:#0f6e6a;--cat-sky-2:#1d5a80;--cat-mint-2:#2d4a3b;--deep:#0b3520;--deep-2:#0e4429;--on-deep:#ffffff;--on-deep-2:#a7e9bf;--on-deep-accent:#8ff2ea;--hero:linear-gradient(135deg,#0b5a30 0%,#13703f 60%,#0f6e6a 130%);--shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.25);--focus:color-mix(in srgb,var(--brand) 60%,transparent)}}html[data-theme="dark"]{--bg:#0e1712;--surface:#202f26;--surface-2:#2a3c31;--line:#3a5244;--field-line:#7d9a88;--switch-off:#9fb6a7;--ink:#eef6f0;--ink-2:#c3d5c9;--ink-3:#a3b9ab;--brand:#4cc884;--brand-ink:#062112;--brand-strong:#86e0ac;--brand-soft:#1b3d29;--fresh:#3fd17f;--sel:#4cc884;--sel-ink:#062112;--ok:#86e0ac;--ok-soft:#1b3d29;--warn:#ffc766;--warn-soft:#3d2e12;--err:#ff8a80;--err-soft:#401c1a;--info:#7cc8f0;--info-soft:#13324a;--on-info:#062112;--teal:#6fe0d6;--teal-soft:#0f3a38;--mango:#ffb347;--mango-1:#ffc766;--mango-2:#ffa53a;--mango-ink:#ffc766;--on-mango:#3b2400;--love:#f0505c;--love-ink:#ff6b74;--love-soft:#3a1a1e;--cat-green:#19431d;--cat-teal:#0b4c50;--cat-sky:#0b3250;--cat-mint:#1a231f;--cat-green-2:#14683f;--cat-teal-2:#0f6e6a;--cat-sky-2:#1d5a80;--cat-mint-2:#2d4a3b;--deep:#0b3520;--deep-2:#0e4429;--on-deep:#ffffff;--on-deep-2:#a7e9bf;--on-deep-accent:#8ff2ea;--hero:linear-gradient(135deg,#0b5a30 0%,#13703f 60%,#0f6e6a 130%);--shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.25);--focus:color-mix(in srgb,var(--brand) 60%,transparent)}
:root{color-scheme:light dark}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
:root{
  /* Colours live in ui/palette.ts. */
  --radius:18px;
  /* The BMA type system (ui/fonts.ts): Anuphan for body, subheadings and UI
     labels, Sao Chingcha for headings. Each covers Thai and Latin. */
  --font:'Anuphan',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --sub:'Anuphan',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:radial-gradient(1200px 500px at 50% -120px,var(--brand-soft),transparent 70%),var(--bg);background-attachment:fixed;color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;padding-bottom:84px}
body.admin{padding-bottom:0}
a{color:var(--brand)}
h1{font-size:1.6rem;line-height:1.25;margin:.5rem 0 1rem;letter-spacing:-.02em}
h2{font-size:1.2rem;margin:1.8rem 0 .8rem;letter-spacing:-.01em}
h3{font-size:1.02rem;margin:.2rem 0 .3rem}
p{margin:.4rem 0}
small,.muted{color:var(--ink-3);font-size:.86rem}
.proto-banner{background:var(--info-soft);color:var(--info);font-size:.78rem;text-align:center;padding:4px 12px}
.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.brand{font-weight:700;font-size:1.08rem;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:6px}
.brand-mark{display:inline-flex;width:30px;height:30px}.brand-mark svg{width:100%;height:100%}
.brand small{font-weight:500;color:var(--ink-3);font-size:.78rem;margin-left:2px}
.top-actions{display:flex;gap:6px;align-items:center}
.chip{display:inline-block;padding:4px 10px;border:1px solid var(--line);border-radius:999px;font-size:.82rem;color:var(--ink-2);text-decoration:none;background:var(--surface)}
.icon-link{text-decoration:none;font-size:1.1rem;padding:2px 6px}
.wrap{max-width:640px;margin:0 auto;padding:20px 20px 36px}
.wrap.wide{max-width:1100px}
.foot{max-width:1100px;margin:24px auto 0;padding:16px;display:flex;flex-wrap:wrap;gap:12px;font-size:.82rem;color:var(--ink-3)}
.foot a{color:var(--ink-3)}
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:6;display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:.72rem;color:var(--ink-3);text-decoration:none;padding:4px 2px;border-radius:10px;min-height:44px;justify-content:center}
.tabbar a span{font-size:1.15rem}
.tabbar a.center{position:relative;margin:-22px 6px 0;min-height:64px;border-radius:18px;background:var(--brand);color:var(--brand-ink);font-weight:700;box-shadow:0 8px 22px color-mix(in srgb,var(--brand) 45%,transparent)}
.tabbar a.center span{font-size:1.5rem}
.tabbar a{white-space:nowrap}.tabbar a.center{font-size:.68rem;padding:4px 2px}
.tabbar a.center.on{background:var(--brand);color:var(--brand-ink);outline:3px solid color-mix(in srgb,var(--mango) 70%,transparent)}
.tabbar a.on{color:var(--sel-ink);font-weight:700;background:var(--sel)}
.adminnav{max-width:1100px;margin:8px auto 0;padding:0 16px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.adminnav a{white-space:nowrap;padding:6px 12px;border-radius:999px;text-decoration:none;color:var(--ink-2);border:1px solid var(--line);background:var(--surface);font-size:.88rem}
.adminnav a.on{background:var(--sel);color:var(--sel-ink);border-color:var(--sel)}
.card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 20px;margin:16px 0;box-shadow:var(--shadow);color:inherit}
.card.link{text-decoration:none;transition:transform .12s ease}
.card.link:hover{transform:translateY(-1px)}
.card.hero{background:var(--hero);color:#fff;border:none}
.card.hero a{color:#fff}
.event-cover{height:120px;margin:-14px -16px 10px;border-radius:var(--radius) var(--radius) 0 0;background:linear-gradient(135deg,var(--brand-soft),var(--info-soft));display:flex;align-items:center;justify-content:center;font-size:2.4rem;overflow:hidden}
.event-cover img{width:100%;height:100%;object-fit:cover}
.meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--ink-2);font-size:.88rem}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.tag{display:inline-block;padding:2px 9px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-size:.78rem}
.tag.accent{background:var(--brand-soft);color:var(--brand)}
.tag.warn{background:var(--warn-soft);color:var(--warn)}
.tag.ok{background:var(--ok-soft);color:var(--ok)}
.tag.love{background:var(--love-soft);color:var(--love-ink)}
.tag.muted{color:var(--ink-3)}
.notice{border-radius:12px;padding:10px 14px;margin:10px 0;font-size:.94rem}
.notice.ok{background:var(--ok-soft);color:var(--ok)}
.notice.error{background:var(--err-soft);color:var(--err)}
.notice.info{background:var(--brand-soft);color:var(--ink)}
.notice.warn{background:var(--warn-soft);color:var(--warn)}
.empty{color:var(--ink-3);text-align:center;padding:24px 8px}
form{margin:0}
.field{display:flex;flex-direction:column;gap:6px;margin:18px 0}
.field label,fieldset legend{font-weight:600;font-size:.94rem}
.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}
.social{display:flex;flex-direction:column;gap:10px;margin:16px 0 4px}
.social-btn{justify-content:center;gap:10px;font-weight:700}
.social-line{background:#06c755;color:#fff;border-color:#06c755}
.social-google{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.social-apple{background:#000;color:#fff;border-color:#000}
.social-apple .social-mark{display:inline-flex}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) .social-apple{background:#fff;color:#000;border-color:#fff}}html[data-theme="dark"] .social-apple{background:#fff;color:#000;border-color:#fff}
.social-mark{font-weight:900;font-size:.78rem;letter-spacing:.02em}
.social-google .social-mark{font-size:1.05rem;color:#4285f4}
.social-or{display:flex;align-items:center;gap:12px;color:var(--ink-3);font-size:.85rem;margin:8px 0 0}
.social-or::before,.social-or::after{content:"";flex:1;height:1px;background:var(--line)}
.pw{position:relative;display:flex}
.pw input{flex:1;padding-right:76px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-height:36px;padding:0 12px;border:none;border-radius:999px;background:var(--surface-2);color:var(--brand);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
input[type=text],input[type=password],input[type=date],input[type=datetime-local],input[type=number],input[type=search],input[type=url],select,textarea{
  width:100%;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent);outline-offset:1px}
fieldset{border:none;padding:0;margin:14px 0}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pill{position:relative}
.pill input{position:absolute;opacity:0;inset:0}
.pill span{display:inline-block;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;min-height:44px;font-size:.92rem}
.pill input:checked+span{background:var(--sel);border-color:var(--sel);color:var(--sel-ink)}
.pill input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent)}
.toggle{display:flex;gap:10px;align-items:flex-start;margin:10px 0;cursor:pointer}
.toggle input{width:22px;height:22px;margin-top:2px;accent-color:var(--brand)}
.toggle small{display:block}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.row.end{justify-content:flex-end}
.spread{display:flex;justify-content:space-between;align-items:center;gap:8px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}
.stat-v{font-size:1.5rem;font-weight:700}
.stat-l{font-size:.84rem;color:var(--ink-2)}
table{width:100%;border-collapse:collapse;font-size:.9rem;background:var(--surface);border-radius:var(--radius);overflow:hidden}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--surface-2);font-weight:600;font-size:.84rem}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);margin:10px 0}
.pass{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.pass svg{width:min(280px,80vw);height:auto;background:#fff;padding:12px;border-radius:12px}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;font-size:1.3rem}
.bar{height:10px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.bar > i{display:block;height:100%;background:var(--brand)}
.person{display:flex;gap:12px;align-items:center}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.steps{display:flex;gap:4px;margin:6px 0 14px}
.steps i{flex:1;height:5px;border-radius:3px;background:var(--line)}
.steps i.on{background:var(--brand)}
details{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:10px 0}
summary{cursor:pointer;font-weight:600}
dl.facts{display:grid;grid-template-columns:minmax(110px,auto) 1fr;gap:6px 14px;margin:10px 0}
dl.facts dt{color:var(--ink-3);font-size:.88rem}
dl.facts dd{margin:0}
.faq details{margin:8px 0}
.faq summary{list-style:none;display:flex;justify-content:space-between;gap:10px;min-height:28px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--brand);font-weight:700}
.faq details[open] summary::after{content:"−"}
.faq details p{color:var(--ink-2);margin:8px 0 2px}
.helplines{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.helplines li{display:flex;gap:12px;align-items:center}
.helplines small{display:block}
.hotline{flex:none;min-width:64px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:var(--brand-soft);color:var(--brand);font-weight:700;font-size:1.1rem;text-decoration:none}
.learn section{margin-top:6px}
.learn ul{padding-left:20px}
.learn li{margin:6px 0}
.legend ul{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.legend li{display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.legend li.on{border-color:var(--brand);background:var(--brand-soft)}
.legend li b{font-size:1.4rem;line-height:1}
.legend li small{display:block;color:var(--ink-3);font-size:.8rem}
.code-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:8px 0 2px}
.code-chips span{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:var(--surface-2);font-weight:700;letter-spacing:.06em;font-size:.86rem}
.code-chips span.flavour{font-weight:600;letter-spacing:0;background:var(--info-soft);color:var(--info)}
.type-moves{text-align:center;max-width:34ch;margin:10px auto 4px;line-height:1.55;font-size:1.02rem;text-wrap:pretty}
.type-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem;letter-spacing:.12em;color:var(--brand)}
.type-grid .code-chips{justify-content:flex-start;margin:4px 0}
.type-grid .code-chips span{padding:2px 7px;font-size:.78rem;gap:2px}
.type-grid .code-chips b{font-size:.85rem!important;line-height:1}
/* intro (first visit) */
.intro{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--bg)}
.intro-skip{position:absolute;top:calc(14px + env(safe-area-inset-top));right:16px;z-index:2;padding:6px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink-2);text-decoration:none;font-weight:600}
.intro-track{flex:1;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;outline:none}
.intro-track::-webkit-scrollbar{display:none}
.intro-slide{flex:0 0 100%;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:72px 28px 24px;gap:6px}
.intro-slide h1{font-size:1.9rem;margin:10px 0 4px}
.intro-slide p{max-width:30ch;color:var(--ink-2);font-size:1.05rem}
.intro-slide p.intro-foot{font-size:.85rem;font-weight:600;color:var(--ink-3)}
.trust-line{display:block;margin-top:6px;font-weight:600;opacity:.92}
.foot-trust{font-weight:600}
.intro-art{width:min(62vw,240px);aspect-ratio:1;border-radius:36%;display:grid;place-items:center;box-shadow:0 18px 50px color-mix(in srgb,var(--fresh) 30%,transparent)}
.intro-art b{font-size:min(28vw,108px);line-height:1}
.intro-mark{display:block;width:72%;height:72%}.intro-mark svg{width:100%;height:100%;filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))}
.s1 .intro-art{background:none;box-shadow:none}.s1 .intro-mark{width:100%;height:100%}
.s2 .intro-art{background:linear-gradient(135deg,var(--cat-green),var(--fresh))}
.s3 .intro-art{background:linear-gradient(135deg,var(--info-soft),var(--cat-sky-2))}
.s4 .intro-art{background:linear-gradient(135deg,var(--teal-soft),var(--cat-teal))}
.s5 .intro-art{background:linear-gradient(135deg,var(--cat-green),var(--fresh) 60%,var(--cat-sky-2) 130%)}
.intro-cta{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:14px}
.intro-cta .btn{min-width:220px}
.intro-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 20px calc(14px + env(safe-area-inset-bottom))}
.intro-dots{display:flex;gap:8px}
.intro-dots i{width:8px;height:8px;border-radius:999px;background:var(--line);transition:width .25s ease,background .25s ease}
.intro-dots i.on{width:26px;background:var(--brand)}
.intro-lang{position:absolute;top:calc(18px + env(safe-area-inset-top));left:18px;margin:0;font-size:.85rem}
.hero-mark{display:inline-flex;width:64px;height:64px;margin-bottom:6px}.hero-mark .brand-mark{width:64px;height:64px}

.card h3>span[aria-hidden]{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:8px;border-radius:12px;background:var(--brand-soft);vertical-align:middle}
hr{border:none;border-top:1px solid var(--line);margin:18px 0}
@media (min-width:900px){body:not(.admin){padding-bottom:84px}}
/* ---- native polish ---- */
[hidden]{display:none!important}
a,button,label,summary,.btn,.card.link,.pill span,.chip{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.card.link,.pill span,.answer span,.tile,.rail a,.chip,.tabbar a{transition:transform 60ms ease,background-color .15s ease,border-color .15s ease}
.card.link:active,.pill:active span,.answer:active span,.tile:active,.rail a:active,.chip:active,.tabbar a:active{transform:scale(.97)}
main.wrap{animation:page-in .22s ease both}
@keyframes page-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.topbar{padding:8px 16px}
.proto-banner{padding:2px 12px;font-size:.72rem}
@media (max-width:520px){
  h1{font-size:1.4rem;margin:.3rem 0 .6rem}
  h2{margin:1.5rem 0 .7rem}
  .card{padding:18px 18px;margin:14px 0}
  .wrap{padding:16px 18px 28px}
}
body.bare{padding-bottom:0}
body.bare .foot{display:none}
details.info{display:inline-block;background:none;border:none;padding:0;margin:0 0 6px;vertical-align:middle}
details.info summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:999px;color:var(--brand);font-weight:600;font-size:1rem}
details.info summary::-webkit-details-marker{display:none}
details.info[open]{display:block;background:var(--brand-soft);border-radius:12px;padding:6px 12px 10px}
details.info div{font-size:.9rem;color:var(--ink-2)}
/* ---- card flow ---- */
.flow{display:flex;flex-direction:column;min-height:calc(100svh - 120px)}
.flow-top{display:flex;align-items:center;gap:10px;margin:4px 0 14px}
.flow-progress{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.flow-progress i{display:block;height:100%;background:var(--brand);border-radius:3px;transition:width .3s ease}
.flow-close{text-decoration:none;color:var(--ink-3);font-size:1.1rem;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px}
.flow-steps{flex:1}
.flow-step{padding-bottom:18px}
.flow:not(.is-js) .flow-step+.flow-step{border-top:1px solid var(--line);padding-top:12px}
.flow.is-js .flow-step[hidden]{display:none}
.flow-step fieldset{margin:0}
.flow-title{font-size:1.4rem;font-weight:700;line-height:1.3;margin:0 0 6px;padding:0;outline:none}
.flow-emoji{display:block;font-size:2.4rem;line-height:1.2;margin-bottom:4px}
.flow-hint{color:var(--ink-3);font-size:.92rem;margin:0 0 8px}
.flow-need{color:var(--err);font-size:.9rem}
.flow-error{margin-bottom:6px}
.flow-bar{position:sticky;bottom:0;z-index:4;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0 calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 78%,transparent)}
body:has(.tabbar) .flow-bar{bottom:calc(62px + env(safe-area-inset-bottom))}
.flow-bar .flow-next,.flow-bar>.btn:first-child{flex:1}
.flow-bar .flow-back{min-width:52px;font-size:1.2rem}
.flow-bar .skip{flex-basis:100%;background:none;border:none;color:var(--ink-3);font:inherit;font-size:.9rem;min-height:44px;cursor:pointer;text-decoration:underline}
.flow-step.in-f{animation:slide-f .26s cubic-bezier(.2,.8,.2,1) both}
.flow-step.in-b{animation:slide-b .26s cubic-bezier(.2,.8,.2,1) both}
@keyframes slide-f{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes slide-b{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
.flow-step.shake{animation:shake .3s ease}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.flow .field input,.flow .field select{min-height:52px;font-size:1.05rem}
.flow .pills{gap:10px}
.flow .pill span{min-height:48px;display:inline-flex;align-items:center;padding:10px 16px}
.flow .toggle{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:8px 0;min-height:52px;align-items:center}
.flow .toggle small{margin-top:2px}
.tap-hint{display:inline-block;font-size:.82rem;color:var(--brand);background:var(--brand-soft);border-radius:999px;padding:2px 10px;margin:0 0 8px}
/* answer cards (choice) and scale pills */
.answers{display:grid;gap:10px;margin-top:10px}
.answer{position:relative;display:block}
.answer input{position:absolute;opacity:0;inset:0}
.answer span{display:flex;align-items:center;gap:12px;min-height:72px;padding:14px 16px;border-radius:16px;border:1.5px solid var(--line);background:var(--surface);box-shadow:var(--shadow);cursor:pointer;font-weight:500;line-height:1.35}
.answer-emoji{font-size:1.5rem;flex:none}
.answer-badge{flex:none;width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--brand);font-size:.9rem}
.answer input:checked+span .answer-badge{background:var(--sel-ink);color:var(--sel)}
.answer input:checked+span{border-color:var(--sel);background:var(--sel);color:var(--sel-ink)}
.answer input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent)}
.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:14px}
.scale .answer span{min-height:56px;justify-content:center;font-weight:700;font-size:1.1rem;padding:6px;border-radius:14px}
.scale-ends{display:flex;justify-content:space-between;gap:12px;font-size:.84rem;color:var(--ink-3);margin-top:6px}
.scale-ends span:last-child{text-align:right}
/* splash and tiles */
.splash{text-align:center;padding:12px 0 0}
.splash-mark{font-size:3.4rem;color:var(--brand);line-height:1}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}
.tile{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 6px;font-size:.84rem;line-height:1.3;color:var(--ink-2);text-decoration:none}
.tile b{font-size:1.6rem;line-height:1.2}
.hero-lite{padding:18px 0 4px}
.hero-lite h1{font-size:1.75rem;margin:0 0 4px}
.hero-lite p{color:var(--ink-2);margin:0 0 14px}
.hero-lite .row{gap:12px}
.teaser{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,var(--brand-soft),var(--info-soft));border:1px solid var(--line);border-radius:16px;padding:14px 16px;text-decoration:none;color:var(--ink);margin:14px 0}
.teaser b.big{font-size:2rem}
.teaser strong{display:block}
.teaser small{display:block}
.teaser::after{content:"→";margin-left:auto;color:var(--brand);font-weight:700}
/* horizontal snap rail */
.rail-wrap{position:relative;margin:0 -16px}
.rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 16px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rail::-webkit-scrollbar{display:none}
.rail a{flex:0 0 72%;max-width:260px;scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.rail a b{display:block;font-size:1.8rem;line-height:1.3}
.rail a small{display:block;margin-top:4px}
.rail-wrap::after{content:"";position:absolute;top:0;right:0;bottom:10px;width:32px;background:linear-gradient(to left,var(--bg),transparent);pointer-events:none}
.swipe-hint{font-size:.8rem;color:var(--ink-3);font-weight:400;margin-left:6px}
/* Bangkok Types */
.type-hero{text-align:center;padding:8px 0 4px}
.type-emoji{font-size:4.2rem;line-height:1.1;display:block}
.type-hero.reveal .type-emoji{animation:pop .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
.type-hero h1{margin:.2rem 0}
.type-hero p{color:var(--ink-2);margin:0}
.meter{list-style:none;padding:0;margin:8px 0;display:grid;gap:10px}
.meter li{display:grid;gap:3px}
.meter .ends{display:flex;justify-content:space-between;font-size:.8rem;color:var(--ink-3)}
.meter .ends b{color:var(--ink);font-weight:600}
.meter .track{position:relative;height:10px;border-radius:5px;background:var(--surface-2)}
.meter .track::before{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:var(--line)}
.meter .track i{position:absolute;top:0;bottom:0;border-radius:5px;background:var(--brand)}
.meter .track i.leans{opacity:.65}
.meter .track i.balanced{background:var(--ink-3);opacity:.45}
.meter .track em.band{position:absolute;top:-3px;bottom:-3px;border-radius:6px;background:var(--brand);opacity:.16}
.meter li.unsure .ends span:nth-child(2){color:var(--warn)}
.meter .pm{color:var(--ink-3);font-weight:400}
.type-range{font-weight:600;color:var(--ink)!important;margin:.2rem 0!important}
.type-range a{text-decoration:none}
.buddy-head{display:flex;gap:12px;align-items:flex-start;margin:6px 0 10px}
.buddy-head .type-emoji{font-size:2.4rem;line-height:1}
.buddy-head h2{margin:0}
.buddy-head p{margin:.2rem 0}
.buddy-safety{margin:10px 0;padding:10px 14px;border-radius:14px;background:var(--surface)}
.buddy-safety summary{font-weight:600;cursor:pointer}
.passport-bar{height:10px;border-radius:5px;background:var(--surface-2);overflow:hidden;margin:6px 0 10px}
.passport-bar i{display:block;height:100%;background:var(--brand)}
.passport{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.passport li{font-size:.9rem;color:var(--ink-3)}
.passport li.on{color:var(--ink);font-weight:600}
.together p{margin:.3rem 0}
.buddy-wrap{margin:10px 0;padding:10px 14px;border-radius:14px;background:var(--surface)}
.buddy-wrap summary{font-weight:600;cursor:pointer}
.circle-buddy p{margin:.3rem 0}
.sos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin:10px 0 14px}
.sos-btn{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 8px;border-radius:16px;background:var(--surface);text-decoration:none;color:var(--ink);text-align:center}
.sos-btn strong{font-size:1.3rem;color:var(--brand)}
.sos-btn small{font-size:.78rem;color:var(--ink-2);line-height:1.2}
.plan{display:grid;gap:8px}
.plan label{display:grid;gap:2px;font-size:.85rem;color:var(--ink-2)}
.plan input{font:inherit;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.checklist{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.checklist li{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;background:var(--surface)}
.checklist b{font-size:1.2rem}
.features{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}
.feature{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:20px;background:var(--surface);text-decoration:none;color:var(--ink)}
.feature b{font-size:1.6rem;line-height:1.2}
.feature small{color:var(--ink-2);font-size:.82rem}
details.how{margin:10px 0;padding:10px 14px;border-radius:14px;background:var(--surface)}
details.how>summary{font-weight:600;cursor:pointer}
details.how ul{margin:8px 0 0;padding-left:0;list-style:none;display:grid;gap:6px}
.answers-six{gap:8px}
.answers-six .answer-card,.answers-six label{font-size:.95rem;line-height:1.35}
.blend{list-style:none;padding:0;margin:10px 0;display:grid;gap:10px}
.blend li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center}
.blend li a{font-weight:600;text-decoration:none;color:var(--ink)}
.blend li small{color:var(--ink-3);text-align:right}
.blend-track{grid-column:1;position:relative;height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden}
.blend-track i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--brand)}
.blend li:not(:first-child) .blend-track i{opacity:.55}
.blend li strong{font-variant-numeric:tabular-nums}
.type-facts{display:grid;gap:8px;margin:10px 0 0}
.type-facts div{display:grid;gap:2px}
.type-facts dt{font-size:.8rem;color:var(--ink-3);font-weight:600}
.type-facts dd{margin:0}
.spots{list-style:none;padding:0;margin:10px 0;display:grid;gap:12px}
.spots li{display:grid;grid-template-columns:2rem 1fr;gap:8px;align-items:start}
.spots li>b{font-size:1.4rem;line-height:1.2}
.spots p{margin:2px 0 0;color:var(--ink-2)}
.matches{display:grid;gap:8px}
.matches a{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.matches a b{font-size:1.4rem}
.matches small{display:block}
.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.type-grid a{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.type-grid a b{font-size:1.8rem}
.type-grid a small{line-height:1.35}
.type-grid a.me{border-color:var(--brand);background:var(--brand-soft)}
.inline-toggle{display:flex;align-items:center;gap:10px;justify-content:space-between}
/* ==== Bangkok livery ====================================================
 * The signature layer. Bangkok's city colour is green, so the app is dressed
 * in deep BMA green with fresh-green and lime accents, set in the BMA type
 * system (ui/fonts.ts).
 * Clean and flat: no stripes or patterns. Everything
 * here overrides the plain base above, so pages need no new classes.
 * ===================================================================== */
:root{
  --display:'Sao Chingcha','Anuphan',system-ui,sans-serif;
  --radius:22px;
}

body{background:radial-gradient(900px 420px at 85% -60px,color-mix(in srgb,var(--cat-sky-2) 14%,transparent),transparent 70%),radial-gradient(1000px 520px at 0% -80px,var(--brand-soft),transparent 70%),var(--bg);background-attachment:fixed;padding-bottom:104px}
h1,h2,.flow-title,.me-hi{font-family:var(--display);letter-spacing:-.025em}
h1{font-size:1.85rem;font-weight:800;line-height:1.12}
h2{font-weight:700}

/* Top bar */
.topbar{background:var(--deep);color:var(--on-deep);border-bottom:none;backdrop-filter:none;padding:12px 16px 14px}
.topbar .brand{color:var(--on-deep);font-weight:800;font-size:1.15rem;letter-spacing:-.02em}
.topbar .brand small{color:var(--on-deep-accent);font-weight:600;letter-spacing:0}
.topbar .brand-mark svg>rect:first-child{fill:var(--fresh)}
.topbar .chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);color:var(--on-deep)}
.topbar .icon-link{color:var(--on-deep)}
.proto-banner{background:var(--info-soft);color:var(--info);font-weight:600}
main.wrap{padding-top:26px}

/* Cards: softer and greener */
.card{border-radius:var(--radius);border-color:color-mix(in srgb,var(--brand) 14%,var(--line))}
.card.link{position:relative;overflow:hidden}
.card.link:hover{transform:translateY(-2px);box-shadow:0 14px 34px color-mix(in srgb,var(--brand) 18%,transparent)}
.card.hero{background:var(--deep);box-shadow:var(--shadow)}

/* Teasers: deep green tickets */
.teaser{position:relative;background:var(--deep);color:var(--on-deep);border:none;border-radius:20px;overflow:hidden}
.teaser small,.teaser .muted{color:var(--on-deep-2)}
.teaser::after{color:var(--on-deep-accent);font-size:1.2rem}

/* Inputs */
input[type=text],input[type=password],input[type=date],input[type=datetime-local],input[type=number],input[type=search],input[type=url],select,textarea{border-radius:14px;border-width:1.5px;min-height:48px}
input:focus,select:focus,textarea:focus{border-color:var(--brand);outline:3px solid var(--focus)}

/* Pills and answers: picked = livery */
.pill span{border-width:1.5px}
.pill input:checked+span,.answer input:checked+span{background:var(--sel);border-color:var(--sel);color:var(--sel-ink)}
.tag.accent{background:var(--brand-soft);color:var(--brand-strong)}

/* Progress */
.flow-progress,.bar,.me-bar{height:10px;border-radius:999px}
.flow-progress i,.bar>i,.me-bar i{background:linear-gradient(90deg,var(--fresh),var(--cat-teal-2))}

/* Tab bar: a floating deep-green carriage */
.tabbar{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));padding:6px;border:none;border-radius:26px;background:var(--deep);box-shadow:0 14px 34px rgba(4,40,22,.35)}
.tabbar a{color:color-mix(in srgb,var(--on-deep) 72%,transparent);border-radius:18px}
.tabbar a.on{color:var(--sel-ink);background:var(--sel);font-weight:700}
.tabbar a.center{background:linear-gradient(160deg,var(--mango-1),var(--mango-2));color:var(--on-mango);border-radius:22px;margin:-26px 4px 0;box-shadow:0 0 0 5px var(--bg),0 10px 22px rgba(4,40,22,.3)}
.tabbar a.center.on{background:linear-gradient(160deg,var(--mango-1),var(--mango-2));color:var(--on-mango);outline:none;box-shadow:0 0 0 5px var(--bg),0 0 0 8px var(--sel)}
body:has(.tabbar) .flow-bar{bottom:calc(112px + env(safe-area-inset-bottom))}
/* The tab bar sits above the page: an open accessibility menu must end above it. */
body:has(.tabbar) .topbar .a11y-panel{max-height:calc(100dvh - 200px - env(safe-area-inset-bottom))}

/* Flow cards */
.flow-emoji{display:grid;place-items:center;width:64px;height:64px;font-size:2.1rem;margin-bottom:10px;border-radius:22px;background:var(--brand-soft);transform:rotate(-4deg)}
.flow-title{font-size:1.6rem;font-weight:800;line-height:1.15}

/* Footer */
.foot{border-top:1px solid var(--line);margin-top:36px;padding-top:18px}
/* Notifications dropdown (src/ui/notif-menu.tsx) */
.notif{position:relative;display:inline-block;background:none;border:0;padding:0;margin:0;border-radius:0}
.topbar .notif{position:static}
.notif>summary{list-style:none;cursor:pointer;color:inherit;font-weight:400;position:relative;display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:999px;font-size:1.1rem}
.notif>summary::-webkit-details-marker{display:none}
.notif-dot{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--info);color:var(--on-info);font-size:.68rem;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--deep)}
.notif-panel{position:absolute;right:12px;top:calc(100% + 6px);z-index:40;width:min(360px,calc(100vw - 24px));padding:12px;border-radius:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 50px rgba(0,0,0,.28);text-align:left;font-size:.95rem;max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain}
body:has(.tabbar) .notif-panel{max-height:calc(100dvh - 200px - env(safe-area-inset-bottom))}
.notif-h{margin:2px 6px 8px;font-weight:700}
.notif-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.notif-list a,.notif-list div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:14px;color:var(--ink);text-decoration:none}
.notif-list a:hover,.notif-list a:focus-visible{background:var(--surface-2)}
.notif-list li.unread .notif-title{font-weight:700}
.notif-list li.unread a,.notif-list li.unread div{background:var(--info-soft)}
.notif-list small{color:var(--ink-3);font-size:.8rem}
.notif-empty{margin:6px 6px 10px}
.notif-all{display:block;margin-top:8px;padding:10px 12px;border-radius:14px;text-align:center;font-weight:700;text-decoration:none;background:var(--surface-2)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* ==== Open City ==========================================================
 * Layered on the livery: same deep BMA green and lime, plus river teal and
 * a little sun from the Chao Phraya and the parks.
 * Scene covers, segmented controls, bottom-sheet event pages and a
 * boarding-pass ticket.
 * ===================================================================== */
:root{--gx:20px}
body{font-size:1rem}
main.wrap{padding-inline:var(--gx)}
@media (max-width:520px){:root{--gx:18px}}
.eyebrow{margin:0 0 2px;font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--brand)}

/* Segmented control (This week / Weekend…, Map / List) */
.seg{display:flex;gap:2px;padding:4px;margin:12px 0;border-radius:14px;background:var(--surface-2);overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg a{flex:1 1 0;text-align:center;line-height:1.2;padding:8px 10px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:11px;color:var(--ink-2);text-decoration:none;font-size:.9rem;font-weight:500}
.seg.views a{flex:0 0 auto;white-space:nowrap;padding-inline:16px}
.seg a.on{background:var(--sel);color:var(--sel-ink);font-weight:700;box-shadow:none}
.seg-row{display:flex;flex-wrap:wrap;gap:0 10px;align-items:center}
.seg-row .seg{flex:1 1 260px}
.seg-row .seg.views{flex:0 0 auto}

/* Scenes: the cover behind every event. A photo when there is one, otherwise a
   flat landscape in the category's colours with the emoji on a badge. */
.event-cover{position:relative;overflow:visible;height:132px;margin:0;border-radius:0;font-size:1.8rem;background:var(--scene,linear-gradient(180deg,var(--cat-mint) 0 55%,var(--cat-mint-2) 55% 100%))}
.event-cover .scene-badge{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:var(--surface);box-shadow:0 6px 18px rgba(0,0,0,.14)}
/* Four category colours (ui/palette.ts): green outdoors and active, teal food and nights,
   sky river, culture and language, light mint the city. --cat is the tint, --cat-2 the ground. */
.scene-park{--cat:var(--cat-green);--cat-2:var(--cat-green-2)}
.scene-food,.scene-play{--cat:var(--cat-teal);--cat-2:var(--cat-teal-2)}
.scene-river,.scene-art{--cat:var(--cat-sky);--cat-2:var(--cat-sky-2)}
.scene-city{--cat:var(--cat-mint);--cat-2:var(--cat-mint-2)}
.event-cover[class*=scene-]{--scene:linear-gradient(180deg,var(--cat) 0 55%,var(--cat-2) 55% 100%)}
.ev-date{position:absolute;left:12px;bottom:-18px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:52px;padding:6px 8px;border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 6px 16px rgba(0,0,0,.14);line-height:1;font-family:var(--display)}
.ev-date b{font-size:1.3rem;font-weight:700}
.ev-date small{font-size:.66rem;color:var(--ink-3);margin-top:3px;text-transform:uppercase;letter-spacing:.04em}

/* Event cards */
.card.ev-card{padding:0;overflow:hidden}
.ev-body{padding:26px 16px 16px}
.ev-body h3{margin:2px 0 4px;font-size:1.08rem;line-height:1.3}
.ev-line{margin:2px 0;color:var(--ink-2);font-size:.88rem}
.ev-card.feat .event-cover{height:178px}
.ev-card.feat h3{font-size:1.25rem}
.discover-list{display:grid;gap:4px}

/* Event page: a scene across the top, details in a sheet over it */
.ev-scene{height:210px;margin:8px calc(-1 * var(--gx)) 0;font-size:2.6rem}
main.wrap>.ev-scene:first-child{margin-top:-26px}
.ev-scene .scene-badge{width:76px;height:76px;border-radius:24px}
.card.ev-sheet{position:relative;margin-top:-34px;border-radius:26px 26px var(--radius) var(--radius)}
.ev-sheet h1{margin:2px 0 12px}
.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}
.kv div{min-width:0;background:var(--surface-2);border-radius:14px;padding:9px 12px;font-size:.8rem;color:var(--ink-2);line-height:1.35}
.kv b{display:block;color:var(--ink);font-size:.95rem;font-weight:600;overflow-wrap:anywhere}
.safe-line{display:flex;gap:10px;align-items:flex-start;margin:10px 0;padding:10px 12px;border-radius:14px;background:var(--info-soft);color:var(--ink);font-size:.9rem}
.safe-line svg{flex:none;width:22px;height:22px;color:var(--info);margin-top:1px}
@media (min-width:680px){.ev-scene{margin:0;border-radius:var(--radius) var(--radius) 0 0}.card.ev-sheet{margin-top:-28px}}

/* Pass: a boarding-pass ticket and what happens next */
.ticket{max-width:420px;margin:8px auto 16px;background:var(--surface);border-radius:24px;box-shadow:var(--shadow);overflow:hidden;border:1px solid var(--line)}
.ticket-top{background:var(--deep);color:var(--on-deep);padding:16px 18px}
.ticket-top .eyebrow{color:var(--on-deep-accent)}
.ticket-top h1{margin:2px 0 4px;font-size:1.4rem;color:var(--on-deep)}
.ticket-top p{margin:0;color:var(--on-deep-2);font-size:.9rem}
.ticket-perf{position:relative;height:0;border-top:2px dashed var(--line);margin:0 18px}
.ticket-perf::before,.ticket-perf::after{content:"";position:absolute;top:-12px;width:22px;height:22px;border-radius:50%;background:var(--bg);border:1px solid var(--line)}
.ticket-perf::before{left:-30px}.ticket-perf::after{right:-30px}
.ticket-body{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px;text-align:center}
.ticket-body svg{width:min(240px,70vw);height:auto;background:#fff;padding:12px;border-radius:14px}
.ticket .code{font-family:var(--display);font-weight:700;letter-spacing:.22em;font-size:1.7rem;margin:0}
.next-steps{list-style:none;padding:0;margin:4px auto 18px;max-width:420px;display:grid;gap:2px}
.next-steps li{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;padding:8px 4px}
.next-steps li::before{content:"";width:20px;height:20px;margin:2px 4px;border-radius:50%;border:2px solid var(--line);box-sizing:border-box}
.next-steps li.done::before{background:var(--brand);border-color:var(--brand);box-shadow:inset 0 0 0 3px var(--surface)}
.next-steps b{display:block;font-weight:600}
.next-steps small{display:block}

/* My events: dated rows */
.dated{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.dated .ev-date{position:static;box-shadow:none;background:var(--info-soft)}

/* Tab bar: the green carriage, line icons, the current tab as a white pill */
.tabbar a span{display:grid;place-items:center;height:24px}
.tabbar a span svg{width:22px;height:22px}
.tabbar a.on{background:var(--sel);color:var(--sel-ink);font-weight:700}
.tabbar a.center span svg{width:26px;height:26px}

/* ---- Accessibility menu ---- */
.a11y{position:relative;display:inline-block;background:none;border:0;padding:0;margin:0;border-radius:0}
.a11y>summary{list-style:none;display:grid;place-items:center;width:40px;height:40px;border-radius:999px;cursor:pointer;color:var(--on-deep);background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22)}
.a11y>summary::-webkit-details-marker{display:none}
.a11y[open]>summary{background:var(--sel);color:var(--sel-ink);border-color:var(--sel)}
.a11y-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:40;width:min(330px,calc(100vw - 24px));display:grid;gap:4px;padding:14px;border-radius:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 50px rgba(0,0,0,.28);font-size:.95rem;font-weight:400;text-align:left;max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
/* In the top bar the panel hangs from the bar's right edge, so it always fits the screen */
.topbar .a11y{position:static}
.topbar .a11y-panel{right:12px;top:calc(100% + 6px)}
.a11y-h{margin:0 0 4px;font-family:var(--display);font-weight:700;font-size:1.1rem}
.a11y-size{margin:0 0 6px}
.a11y-size legend{font-size:.85rem;color:var(--ink-2);margin-bottom:6px}
.a11y-size div{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:6px}
.a11y-size label{position:relative}
.a11y-size input{position:absolute;opacity:0;inset:0}
.a11y-size span{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;min-height:64px;padding:6px;border-radius:14px;border:1.5px solid var(--line);font-size:.78rem;color:var(--ink-2);cursor:pointer}
.a11y-size b{font-family:var(--display);color:var(--ink);line-height:1.1}
.a11y-size input:checked+span{border-color:var(--sel);background:var(--sel);color:var(--sel-ink);font-weight:700}
.a11y-size input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent);outline-offset:1px}
.a11y-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:6px 2px;border-top:1px solid var(--line);cursor:pointer}
.a11y-row small{display:block;font-size:.8rem;color:var(--ink-3)}
.a11y-row input{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:46px;height:28px;margin:0;border-radius:999px;background:var(--line);cursor:pointer;transition:background .15s ease}
.a11y-row input::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s ease}
.a11y-row input:checked{background:var(--sel)}
.a11y-row input:checked::after{transform:translateX(18px)}
.a11y-row input:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent);outline-offset:2px}
.a11y-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;border-top:1px solid var(--line)}
.a11y-reset{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
/* On the map the button matches the other floating buttons */
.fd-top .a11y>summary{width:var(--top-h);height:var(--top-h);border-radius:16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow)}
.fd-top .a11y[open]>summary{background:var(--brand);color:var(--brand-ink)}
.fd-top:has(.a11y[open]){z-index:20}
.fd-top .a11y-panel{position:fixed;right:10px;top:calc(var(--tk-h) + var(--top-h) + var(--gap) * 2)}

/* ---- Accessibility modes (classes on <html>, set by the menu) ---- */
html.a11y-large{font-size:112.5%}
html.a11y-xl{font-size:125%}
html.a11y-xl .tabbar a{white-space:normal;line-height:1.1;text-align:center}
html.a11y-contrast{--ink-2:var(--ink);--ink-3:color-mix(in srgb,var(--ink) 82%,var(--bg));--line:color-mix(in srgb,var(--ink) 50%,var(--bg));--shadow:none}
html.a11y-contrast body{background:var(--bg)}
html.a11y-contrast .card,html.a11y-contrast .ticket,html.a11y-contrast .stat,html.a11y-contrast details,html.a11y-contrast input,html.a11y-contrast select,html.a11y-contrast textarea{border-width:2px;border-color:var(--line)}
html.a11y-contrast .tag,html.a11y-contrast .chip{border:1.5px solid currentColor}
html.a11y-contrast .seg a.on{outline:2px solid var(--ink)}
html.a11y-contrast .kv div,html.a11y-contrast .safe-line{border:1.5px solid var(--line)}
html.a11y-contrast :focus-visible{outline:4px solid var(--mango)!important;outline-offset:2px}
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-motion .fd-ticker{overflow-x:auto}
html.a11y-readable body{font-family:'Atkinson Hyperlegible','Anuphan',system-ui,sans-serif;line-height:1.8;letter-spacing:.015em;word-spacing:.1em}
html.a11y-readable h1,html.a11y-readable h2,html.a11y-readable h3,html.a11y-readable .flow-title{font-family:'Atkinson Hyperlegible','Anuphan',system-ui,sans-serif;letter-spacing:0;line-height:1.3}
html.a11y-readable p,html.a11y-readable li{max-width:65ch}
html.a11y-links main a:not(.btn):not(.card):not(.seg a):not(.tile):not(.teaser),html.a11y-links .foot a,html.a11y-links .fd-sheet a:not(.card){text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}

.q-art{position:relative;margin:2px 0 10px;border-radius:16px;overflow:hidden;height:118px;box-shadow:var(--shadow)}
.q-art svg{display:block;width:100%;height:100%}
.q-art-icons{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;pointer-events:none}
.q-art-icons b{font-size:2.6rem;line-height:1;filter:drop-shadow(0 3px 6px rgba(0,0,0,.25));animation:qpop .5s ease both}
.q-art-icons.n3 b:nth-child(2){font-size:1.6rem;opacity:.9}
.q-art figcaption{position:absolute;left:10px;bottom:8px;padding:2px 10px;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font-size:.78rem}
.answer-icon{font-size:1.5rem;line-height:1;flex:none}
@keyframes qpop{from{transform:scale(.6) translateY(6px);opacity:0}to{transform:none;opacity:1}}
.q-count{display:block;font-size:.8rem;margin-bottom:4px}
.q .tap-hint{margin-right:8px}
@media (prefers-reduced-motion:reduce){.q-art-icons b{animation:none}}
html.a11y-motion .q-art-icons b{animation:none}

.bento{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:minmax(118px,auto);gap:10px;margin:12px 0}
@media (min-width:720px){.bento{grid-template-columns:repeat(4,1fr)}}
.tile2{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-height:118px;padding:16px;border-radius:24px;overflow:hidden;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);isolation:isolate;transition:transform .18s ease}
a.tile2:hover{transform:translateY(-2px)}
a.tile2:active{transform:scale(.98)}
.tile2.hero{grid-column:span 2;grid-row:span 2;min-height:250px}
.tile2.wide{grid-column:span 2}
.tile2.tall{grid-row:span 2}
.tile2.t-brand{background:var(--hero);color:#fff;border:0}
.tile2.t-deep{background:linear-gradient(160deg,var(--deep),var(--deep-2));color:#fff;border:0}
.tile2.t-gold{background:linear-gradient(135deg,var(--info-soft),var(--surface));}
.tile2-art{position:absolute;inset:0;z-index:-1}
.tile2-art .q-art{height:100%;margin:0;border-radius:0;box-shadow:none}
.tile2-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.65),rgba(0,0,0,.05) 70%)}
.tile2:has(.tile2-art){color:#fff;border:0}
.tile2-body{display:flex;flex-direction:column;gap:4px}
.tile2:has(.tile2-art) .tile2-body{text-shadow:0 1px 10px rgba(0,0,0,.55)}
.tile2 h2,.tile2 h3{margin:0;line-height:1.1}
.tile2.hero h2{font-size:1.9rem;letter-spacing:-.02em}
.tile2 .ico{font-size:1.9rem;line-height:1}
.tile2 small{opacity:.85}
.tile2 .go{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);color:inherit;font-weight:700}
.big-n{font-size:2.3rem;font-weight:900;line-height:1;letter-spacing:-.03em}
.big-l{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;opacity:.8}
.pill2{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.2);backdrop-filter:blur(6px);font-size:.78rem;font-weight:700}
.pill2-dot{width:8px;height:8px;border-radius:50%;background:var(--on-deep-accent)}
.avstack{display:inline-flex;align-items:center}
.av{width:var(--av);height:var(--av);margin-left:calc(var(--av) * -.3);border-radius:50%;display:grid;place-items:center;font-size:calc(var(--av) * .5);font-weight:800;color:#fff;background:linear-gradient(135deg,hsl(var(--h) 50% 30%),hsl(calc(var(--h) + 30) 50% 30%));border:3px solid var(--surface);box-shadow:var(--shadow)}
.av:first-child{margin-left:0}
.av.more{background:var(--surface-2);color:var(--ink);font-size:calc(var(--av) * .32)}
.t-brand .av,.t-deep .av,.tile2:has(.tile2-art) .av{border-color:rgba(255,255,255,.6)}
.fan{position:relative;height:150px;margin:6px 0 14px}
.fan-card{position:absolute;top:0;left:50%;width:min(56%,220px);transform-origin:50% 120%;transition:transform .3s ease}
.fan-card .q-art{height:130px;margin:0;border:4px solid var(--surface);border-radius:18px}
.fan.n3 .fan-card:nth-child(1){transform:translateX(-50%) translateX(-28%) rotate(-8deg)}
.fan.n3 .fan-card:nth-child(2){transform:translateX(-50%) translateY(-6px);z-index:2}
.fan.n3 .fan-card:nth-child(3){transform:translateX(-50%) translateX(28%) rotate(8deg)}
.fan.n2 .fan-card:nth-child(1){transform:translateX(-50%) translateX(-22%) rotate(-6deg)}
.fan.n2 .fan-card:nth-child(2){transform:translateX(-50%) translateX(22%) rotate(6deg);z-index:2}
.fan.n1 .fan-card{transform:translateX(-50%);width:min(90%,340px)}
.fan:hover .fan-card:nth-child(1){transform:translateX(-50%) translateX(-34%) rotate(-11deg)}
.fan:hover .fan-card:nth-child(3){transform:translateX(-50%) translateX(34%) rotate(11deg)}
.stamps{list-style:none;padding:0;margin:10px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px}
.stamps li{aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:.62rem;font-weight:800;letter-spacing:.02em;color:var(--ink-3);border:2px dashed var(--line);text-transform:uppercase}
.stamps li.on{border:2px solid rgba(255,255,255,.55);outline:2px solid var(--brand);outline-offset:-6px;color:#fff;background:var(--hero);transform:rotate(-8deg);box-shadow:var(--shadow)}
.stack-card{position:relative;margin:18px 4px 14px}
.stack-card::before,.stack-card::after{content:"";position:absolute;left:12px;right:12px;height:100%;border-radius:24px;background:var(--surface-2);border:1px solid var(--line)}
.stack-card::before{top:-14px;left:24px;right:24px;opacity:.55}
.stack-card::after{top:-7px;opacity:.85}
.stack-card>.tile2{position:relative;z-index:1;min-height:170px}
.rail2{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;margin:0 -2px}
.rail2>*{flex:0 0 min(70%,260px);scroll-snap-align:start}
.place-card{display:block;border-radius:20px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-decoration:none;color:var(--ink)}
.place-card .q-art{height:120px;margin:0;border-radius:0;box-shadow:none}
.place-card div{padding:10px 12px}
.place-card strong{display:block;line-height:1.2}
.place-card small{color:var(--ink-3)}
.chips2{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.passport-card>h2{margin:0 0 6px}
.passport-count{display:block;margin:2px 0 8px}
.quest-title{font-size:1.15rem;line-height:1.3;margin:4px 0}
.card.quest.season{background:linear-gradient(160deg,var(--teal-soft),var(--surface) 55%)}
.stack-card .avstack{margin:6px 0 4px}
.fan{overflow:visible;contain:layout}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.acts form{margin:0}
.type-hero2 .tile2{min-height:260px;text-align:left}
.type-hero2 .type-emoji{font-size:3.6rem;line-height:1;filter:drop-shadow(0 6px 12px rgba(0,0,0,.35))}
.type-hero2 h1{color:#fff;margin:.1rem 0;font-size:1.9rem;line-height:1.1}
.type-hero2 .type-range a{color:#fff;font-weight:700}
.type-hero2.reveal .type-emoji{animation:pop .5s cubic-bezier(.2,.8,.2,1) both}
.blend3{grid-template-columns:repeat(3,1fr)}
.blend3 .tile2{min-height:150px;padding:12px}
.blend3 .big-n{font-size:1.7rem}
.fact{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:18px;background:var(--surface);border:1px solid var(--line);font-size:.86rem;line-height:1.3}
.fact b{font-size:1.5rem}
.fact small{color:var(--ink-3);font-weight:700;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}
@media (max-width:420px){.fact{flex-direction:row;flex-wrap:wrap;align-items:center}.fact span{flex-basis:100%}}
.type-row{display:flex;gap:14px;flex-wrap:wrap}
.type-pick{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:var(--ink);font-weight:600;max-width:96px;text-align:center}
.type-pick small{font-size:.8rem;line-height:1.2}
.people-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tile2 .ico{font-weight:800}
.seats{display:flex;flex-wrap:wrap;gap:3px;align-items:center;margin:6px 0}
.seats i{width:10px;height:10px;border-radius:3px;background:var(--surface-2);border:1px solid var(--line)}
.seats i.on{background:var(--brand);border-color:var(--brand)}
.seats small{color:var(--ink-3);font-size:.72rem;margin-left:2px}
details.how.ev-desc>summary{font-weight:400;line-height:1.5;color:var(--ink-2)}
.guide-tips{list-style:none;padding:0;margin:8px 0 12px;display:grid;gap:10px}
.guide-tips li{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);line-height:1.35}
.guide-tips li b{flex:none;font-size:1.5rem;width:36px;text-align:center}
.guide-promise{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:18px;background:var(--brand-soft);font-weight:600;line-height:1.4}
.guide-promise input{width:22px;height:22px;flex:none;margin-top:2px}
.chips2 span.on{background:var(--sel);color:var(--sel-ink)}
.chat-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.chat-list a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:var(--surface);color:var(--ink);text-decoration:none;border:1px solid var(--line)}
.chat-list a>b{font-size:1.4rem;width:40px;height:40px;display:grid;place-items:center;border-radius:14px;background:var(--brand-soft);flex:none}
.chat-list a>span{flex:1;min-width:0;display:flex;flex-direction:column}
.chat-list small{color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-list a.unread strong{color:var(--brand)}
.chat-list .dot{width:10px;height:10px;border-radius:50%;background:var(--info);flex:none}
.chat-msgs{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:10px}
.chat-msgs li{display:flex;flex-direction:column;align-items:flex-start;max-width:86%}
.chat-msgs li.mine{align-self:flex-end;align-items:flex-end}
.chat-msgs .bubble{margin:0;padding:10px 14px;border-radius:18px 18px 18px 6px;background:var(--surface-2);white-space:pre-wrap;overflow-wrap:anywhere}
.chat-msgs li.mine .bubble{border-radius:18px 18px 6px 18px;background:var(--brand);color:var(--brand-ink)}
.chat-msgs .who{color:var(--ink-3);font-weight:600;margin:0 0 2px 6px}
.chat-msgs .when{color:var(--ink-3);font-size:.72rem;margin:2px 6px;display:flex;gap:8px;align-items:center}
.chat-msgs .inline{display:inline}
.linkish{background:none;border:0;padding:0;color:var(--ink-3);text-decoration:underline;font:inherit;cursor:pointer}
.chat-warn{margin:0 0 4px;padding:8px 12px;border-radius:12px;background:var(--warn-soft);color:var(--warn);font-size:.85rem;font-weight:600}
.chat-warn p{margin:0}.chat-warn .linkish{color:inherit;font-weight:600;display:inline-flex;align-items:center;min-height:44px;margin-bottom:-8px}
.chat-photo{margin:0;border-radius:18px;overflow:hidden;background:var(--surface-2);max-width:280px;box-shadow:var(--shadow)}
.chat-photo img{display:block;width:100%;height:auto;max-height:360px;object-fit:cover}
.chat-photo figcaption{padding:8px 12px;font-size:.9rem}
.host-badge{margin-left:8px;padding:1px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand-strong);font-size:.72rem;font-weight:700}
.chat-poll{min-width:260px;max-width:320px;padding:12px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}
.chat-poll .q{margin:0 0 2px;font-weight:700}
.chat-poll form{margin:0}
.chat-poll .opt{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font:inherit;text-align:left;cursor:pointer;overflow:hidden}
.chat-poll .opt i{position:absolute;left:0;top:0;bottom:0;background:color-mix(in srgb,var(--brand) 18%,transparent);transition:width .4s ease}
.chat-poll .opt span,.chat-poll .opt b{position:relative}
.chat-poll .opt.mine{border-color:var(--brand);font-weight:700}
.chat-extras{display:flex;flex-direction:column;gap:8px;margin:6px 0 10px}
.chat-photo-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chat-photo-form label.chip{position:relative;cursor:pointer;min-height:44px;display:inline-flex;align-items:center}
.chat-photo-form input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.chat-photo-form input[name=caption]{flex:1;min-width:160px}
.chat-poll-new form{display:grid;gap:8px;margin-top:8px}
@media (prefers-reduced-motion:reduce){.chat-poll .opt i{transition:none}}
.chat-send{position:sticky;bottom:calc(104px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;padding:8px 0;background:linear-gradient(to top,var(--bg) 80%,transparent)}
.chat-send>.chat-starters,.chat-send>.notice{grid-column:1/-1}
.chat-send textarea{min-height:46px;resize:none}
.chat-starters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0}
.chat-starters button{flex:none;white-space:nowrap}
.chat-starters button{border:0;border-radius:999px;padding:6px 12px;background:var(--surface-2);color:var(--ink-2);font:inherit;font-size:.85rem;cursor:pointer;text-align:left}
@media (min-width:1024px){.chat-send{bottom:0}}
.grad{margin:8px 0;padding:10px 14px;border-radius:14px;background:var(--brand-soft);color:var(--ink);font-weight:700}
.thanks-starters button{border:0;border-radius:999px;padding:6px 12px;background:var(--surface-2);color:var(--ink-2);font:inherit;font-size:.85rem;cursor:pointer}
.phone-down{text-align:center;padding:24px 4px}
.phone-down .pd-emoji{font-size:4rem;margin:8px 0}
.pd-prompts{list-style:none;padding:0;margin:20px 0;display:grid;gap:12px;text-align:left}
.pd-prompts li{padding:16px 18px;border-radius:20px;background:var(--surface);border:1px solid var(--line);font-size:1.1rem;font-weight:600;line-height:1.4}
.chips2 span{display:inline-flex;align-items:center;gap:4px;padding:5px 11px;border-radius:999px;background:var(--surface-2);font-size:.82rem;font-weight:600}
@media (prefers-reduced-motion:reduce){.pill2-dot{animation:none}.fan-card,.tile2{transition:none}}

body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* The fade-in must not leave a transform behind: it would trap fixed elements (the Map/Cards switch, sheets) inside main. */
main.wrap{animation-fill-mode:backwards}
.filters{background:var(--surface);border-radius:18px;padding:4px 16px;margin:12px 0}
/* labels: sentence case, calm */
.eyebrow{text-transform:none;letter-spacing:0;font-size:.82rem;font-weight:600;margin:0 0 4px;color:var(--brand)}
h1{font-size:1.7rem;margin:.25rem 0 .9rem}
h2{font-size:1.18rem;letter-spacing:-.015em}
/* thinner prototype strip and app bar */
.proto-banner{font-size:.68rem;padding:2px 12px;font-weight:600}
.topbar{padding:8px 14px}
.topbar .chip{min-height:34px;padding:4px 12px;font-size:.85rem}
/* segmented controls: one line, pill thumb, scrolls sideways when tight */
.seg{border-radius:999px;padding:3px;gap:0;flex-wrap:nowrap}
.seg a{flex:1 0 auto;white-space:nowrap;border-radius:999px;min-height:36px;padding:6px 14px;font-size:.9rem;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.seg-row{gap:8px}
/* disclosure rows: chevron, no triangle */
details.how>summary,.filters>summary,details.card>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
details.how>summary::-webkit-details-marker,.filters>summary::-webkit-details-marker,details.card>summary::-webkit-details-marker{display:none}
details.how>summary::after,.filters>summary::after,details.card>summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg);margin:0 4px 4px 0;transition:transform .2s ease}
details.how[open]>summary::after,.filters[open]>summary::after,details.card[open]>summary::after{transform:rotate(-135deg);margin:4px 4px 0 0}
details.how{border-radius:18px}
/* text links inside the app read as taps, not web links */
main a:not(.btn):not(.card):not(.tile):not(.tile2):not(.place-card):not(.feature){text-decoration:none;font-weight:600}
.spread>a:first-child:not(.btn){display:inline-flex;align-items:center;min-height:44px}
/* inputs: filled, soft, 16px so iOS doesn't zoom */
input[type=text],input[type=password],input[type=date],input[type=datetime-local],input[type=number],input[type=search],input[type=url],input[type=email],select,textarea{background:var(--surface-2);border-color:transparent;font-size:16px}
input:focus,select:focus,textarea:focus{background:var(--surface);border-color:var(--brand)}
input[type=file]{font:inherit;font-size:.9rem;color:var(--ink-2)}
input[type=file]::file-selector-button{font:inherit;font-weight:600;border:0;border-radius:999px;padding:8px 14px;margin-right:10px;background:var(--brand-soft);color:var(--brand);cursor:pointer}
/* choice pills: softer, filled when picked */
.pill span{border-color:transparent;background:var(--surface-2)}
.pill input:checked+span{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
/* the profile form saves from a full-width bar, like an app */
.pf-save{left:0;right:0;margin:28px calc(-1 * var(--gx,20px)) 0;padding:10px var(--gx,20px);background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line)}
.pf-save .btn{width:100%;max-width:520px;box-shadow:none}
/* no web footer inside the member app (FAQ, privacy and terms live under Me and Learn) */
body:has(.tabbar) .foot{display:none}
/* cards: lighter edges, softer shadow */
.card{box-shadow:0 1px 2px rgba(6,40,22,.05),0 8px 24px rgba(6,40,22,.06)}
/* floating Map ⇄ Cards switch on Discover */
.view-switch{position:fixed;z-index:9;left:50%;transform:translateX(-50%);bottom:calc(118px + env(safe-area-inset-bottom));display:flex;padding:4px;border-radius:999px;background:var(--deep);border:1px solid rgba(255,255,255,.14);box-shadow:0 10px 26px rgba(4,40,22,.35)}
.view-switch a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 16px;border-radius:999px;color:var(--on-deep);text-decoration:none;font-weight:700;font-size:.92rem;white-space:nowrap}
.view-switch a.on{background:var(--sel);color:var(--sel-ink)}
.fullmap .view-switch{bottom:calc(var(--tab-h) + var(--sheet-h) + 14px)}
@media (min-width:1024px){body:not(.fullmap-body) .view-switch{bottom:28px}}
/* An open header menu (accessibility, notifications) sits above floating controls. */
.topbar:has(details[open]){z-index:30}
@media (prefers-reduced-motion:reduce){.seg a,details.how>summary::after{transition:none}}

/* toast: the ok notice floats under the header, then tucks itself away */
.notice.ok.toast{position:fixed;z-index:40;left:50%;top:calc(70px + env(safe-area-inset-top));transform:translateX(-50%);width:max-content;max-width:min(92vw,460px);margin:0;display:flex;align-items:center;gap:10px;padding:12px 18px 12px 12px;border-radius:999px;background:var(--brand-soft);color:var(--ink);font-weight:650;box-shadow:0 14px 34px rgba(4,40,22,.35),0 0 0 1px rgba(6,48,28,.12) inset;animation:toast-in .5s cubic-bezier(.2,.8,.2,1) both,toast-out .45s ease 4.2s forwards}
.notice.ok.toast::before{content:"✓";flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand);color:var(--brand-ink);font-weight:800;animation:toast-tick .5s .18s cubic-bezier(.2,.8,.2,1) both}
.notice.ok.toast.party::before{content:"🎉";background:transparent;font-size:1.25rem}
.notice.ok.stay{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.notice.ok.stay .stay-close{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-weight:650;color:var(--brand-strong,var(--brand))}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-16px) scale(.9)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes toast-out{to{opacity:0;transform:translate(-50%,-12px) scale(.96);visibility:hidden}}
@keyframes toast-tick{from{transform:scale(0) rotate(-40deg)}to{transform:scale(1) rotate(0)}}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:41;overflow:hidden}
.confetti i{position:absolute;left:50%;top:84px;width:8px;height:12px;border-radius:2px;background:var(--c);transform:translate(0,0) rotate(0);animation:confetti 1.5s cubic-bezier(.15,.7,.4,1) forwards}
.confetti i:nth-child(3n){border-radius:50%;width:9px;height:9px}
@keyframes confetti{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}

/* buttons: the working state's dots (the button rules are in a11y-css) */
@keyframes busy{to{clip-path:inset(0 0 0 0)}}

/* event cards as ticket stubs: perforation and two punched notches */
.card.ev-card{--notch:132px;position:relative;border:0;-webkit-mask:radial-gradient(circle 11px at 0 var(--notch),#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% var(--notch),#0000 97%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 11px at 0 var(--notch),#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% var(--notch),#0000 97%,#000) right/51% 100% no-repeat;background:var(--surface);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.card.ev-card.feat{--notch:178px}
.ev-card .ev-body{position:relative}
.ev-card .ev-body::before{content:"";position:absolute;left:18px;right:18px;top:0;border-top:2px dashed color-mix(in srgb,var(--ink-3) 35%,transparent)}
.ev-card .ev-date{transform:rotate(-4deg);border:2px solid var(--fresh);box-shadow:0 6px 16px rgba(0,0,0,.16)}
.ev-card::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(260px circle at var(--mx,50%) var(--my,0%),rgba(255,255,255,.22),transparent 60%);opacity:0;transition:opacity .3s ease}
@media (hover:hover) and (pointer:fine){
  .ev-card:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-4px)}
  .ev-card:hover::after{opacity:1}
  .ev-card:hover .ev-date{transform:rotate(0) scale(1.06);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
}
/* lists rise in, one after another */
.discover-list>*,.me-menu>*,.stack-in>*{animation:rise .5s cubic-bezier(.2,.8,.2,1) backwards}
.discover-list>:nth-child(2),.me-menu>:nth-child(2){animation-delay:.05s}
.discover-list>:nth-child(3),.me-menu>:nth-child(3){animation-delay:.1s}
.discover-list>:nth-child(4),.me-menu>:nth-child(4){animation-delay:.15s}
.discover-list>:nth-child(5),.me-menu>:nth-child(5){animation-delay:.2s}
.discover-list>:nth-child(n+6),.me-menu>:nth-child(n+6){animation-delay:.25s}
@keyframes rise{from{opacity:0;transform:translateY(14px)}}
/* top-down on a laptop: tickets in two columns, the featured one across both */
@media (min-width:1024px){
  .discover-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .discover-list>:not(.ev-item),.discover-list>.ev-item:has(.feat){grid-column:1/-1}
  .discover-list>.ev-item>.ev-card{height:100%}
}

/* Me: quick switches, one tap each, no page to open */
.quick{display:grid;gap:8px;margin:18px 0}
.quick h2{font-size:1rem;margin:0 0 2px}
.quick form{margin:0}
.qs{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 14px;border:0;border-radius:18px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(6,40,22,.05)}
.qs>span:first-child{font-size:1.3rem}
.qs b{display:block;font-weight:650}
.qs small{display:block;color:var(--ink-3);font-size:.8rem}
.qs .sw{margin-left:auto;flex:none;position:relative;width:46px;height:28px;border-radius:999px;background:color-mix(in srgb,var(--ink-3) 30%,transparent);transition:background-color .25s ease}
.qs .sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.qs[aria-pressed=true] .sw{background:var(--brand)}
.qs.love[aria-pressed=true] .sw{background:var(--love)}
#dating-prompts{padding:14px;border-radius:var(--radius);background:var(--love-soft)}
#dating-prompts h2{color:var(--love-ink)}
.qs[aria-pressed=true] .sw::after{transform:translateX(18px)}
.me-group+.me-menu{margin-top:6px}
/* a fieldset card keeps its title inside the card */
fieldset.card>legend{float:left;width:100%;padding:0;margin:0 0 10px;font-weight:700;font-size:1.02rem}
fieldset.card>legend+*{clear:both}
.me-group{margin:18px 4px 6px;font-size:.78rem;font-weight:700;color:var(--ink-3);letter-spacing:.02em}

@media (prefers-reduced-motion:reduce){
  .notice.ok.toast,.notice.ok.toast::before,.discover-list>*,.me-menu>*,.stack-in>*{animation:none}
  .notice.ok.toast{animation:toast-out .01s 5s forwards}
  .ev-card:hover{transform:none}
  .confetti{display:none}
}
html.a11y-motion .notice.ok.toast,html.a11y-motion .discover-list>*,html.a11y-motion .me-menu>*{animation:none}
html.a11y-motion .ev-card:hover{transform:none}
html.a11y-motion .confetti{display:none}

html.a11y-small{font-size:90%}
html.a11y-spacing body{line-height:1.85;letter-spacing:.01em}
html.a11y-spacing p,html.a11y-spacing li{margin-bottom:.6em}
html.a11y-touch .btn,html.a11y-touch .pill span,html.a11y-touch .chip,html.a11y-touch .seg a,html.a11y-touch .tabbar a,html.a11y-touch .top-nav a{min-height:56px;padding-top:12px;padding-bottom:12px}
html.a11y-touch input[type=checkbox],html.a11y-touch input[type=radio]{width:26px;height:26px}
@media (min-width:1024px){html.a11y-wide .wrap{max-width:1180px}html.a11y-wide .foot{max-width:1180px}}
.top-nav{display:none}
@media (min-width:700px) and (max-width:1023.98px){
  .tabbar{left:50%;right:auto;width:min(560px,calc(100% - 40px));transform:translateX(-50%)}
}
@media (min-width:1024px){
  body:not(.fullmap-body) .tabbar{display:none}
  body:not(.fullmap-body):has(.top-nav){padding-bottom:0}
  body.fullmap-body .tabbar{left:50%;right:auto;width:560px;transform:translateX(-50%)}
  .topbar{gap:16px}
  .top-nav{display:flex;align-items:center;gap:4px;margin:0 auto;padding:5px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
  .top-nav a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px;border-radius:999px;color:color-mix(in srgb,var(--on-deep) 82%,transparent);text-decoration:none;font-weight:600;font-size:.95rem;white-space:nowrap;transition:background-color .2s ease,color .2s ease,transform .15s ease}
  .top-nav a:hover{background:rgba(255,255,255,.1);color:var(--on-deep)}
  .top-nav a span{display:inline-grid;place-items:center}
  .top-nav a span svg{width:18px;height:18px}
  .top-nav a.on{background:var(--sel);color:var(--sel-ink)}
  .top-nav a.center:not(.on){color:var(--on-deep-accent)}
  body:has(.top-nav) .flow-bar,body:has(.top-nav) .chat-send{bottom:0}
  .wrap{max-width:880px;padding:32px 40px 56px}
  .foot{max-width:880px}
}

html[data-theme="light"]{
  & body{background:radial-gradient(900px 460px at 100% -80px,color-mix(in srgb,var(--cat-sky-2) 16%,transparent),transparent 70%),radial-gradient(900px 520px at 0% -100px,color-mix(in srgb,var(--fresh) 14%,transparent),transparent 70%),var(--bg);background-attachment:fixed}

  /* header: light frosted glass, dark ink */
  & .topbar{background:color-mix(in srgb,var(--bg) 82%,transparent);-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);color:var(--ink);border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
  & .topbar .brand{color:var(--ink)}
  & .topbar .brand small{color:var(--brand)}
  & .topbar .brand-mark svg>rect:first-child{fill:var(--brand)}
  & .topbar .chip{background:var(--surface);border-color:var(--line);color:var(--ink-2)}
  & .topbar .icon-link,& .topbar summary{color:var(--ink)}
  & .proto-banner{background:var(--info-soft);color:var(--info)}

  /* tab bar: floating white glass, green for where you are, mango for My events */
  & .tabbar{background:color-mix(in srgb,var(--surface) 86%,transparent);-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);border:1px solid var(--line);box-shadow:0 12px 30px rgba(160,110,40,.16)}
  & .tabbar a{color:var(--ink-3)}
  & .tabbar a.on{background:var(--sel);color:var(--sel-ink);font-weight:700}
  & .tabbar a.center,& .tabbar a.center.on{background:linear-gradient(160deg,var(--mango-1),var(--mango-2));color:var(--on-mango);box-shadow:0 0 0 5px var(--bg),0 10px 22px rgba(255,150,40,.35)}
  & .tabbar a.center.on{box-shadow:0 0 0 5px var(--bg),0 0 0 8px var(--sel)}
  & .top-nav{background:var(--surface-2);border-color:var(--line)}
  & .top-nav a{color:var(--ink-2)}
  & .top-nav a:hover{background:var(--surface);color:var(--ink)}
  & .top-nav a.on{background:var(--sel);color:var(--sel-ink)}
  & .top-nav a.center:not(.on){color:var(--mango-ink)}

  /* hero cards and teasers: warm gradients with dark text instead of dark green blocks */
  & .card.hero,& .teaser{background:linear-gradient(135deg,var(--info-soft) 0%,var(--teal-soft) 55%,var(--brand-soft) 100%);color:var(--ink);border:1px solid var(--line)}
  & .card.hero *,& .teaser *{color:inherit}
  & .teaser small,& .teaser .muted,& .card.hero .muted{color:var(--ink-2)}
  & .teaser::after{color:var(--brand)}
  & .ticket-top{background:linear-gradient(160deg,var(--brand),var(--deep-2) 70%);color:var(--on-deep)}

  /* tiles: brighter greens, and light small print on every dark or photo tile */
  & .tile2.t-deep,& .tile2.t-brand{background:linear-gradient(160deg,var(--brand),var(--deep-2) 70%)}
  /* The light hero gradient is too pale for white text (2.57 at best): initials and stamps on it use deep green. */
  & .me-avatar,& .pf-initial,& .pc-initial span,& .stamps li.on{color:var(--deep)}
  & .tile2.t-deep small,& .tile2.t-brand small,& .tile2:has(.tile2-art) small,& .tile2.t-deep .muted,& .tile2:has(.tile2-art) .muted{color:rgba(255,255,255,.92);opacity:1}

  /* picked pills and answers */
  & .a11y-row input:checked{background:var(--sel)}

  /* cards: white on cream, warm hairline */
  & .card{border-color:var(--line)}
  & .card.link:hover{box-shadow:0 14px 34px rgba(160,110,40,.16)}

  /* the floating Map / Cards switch */
  & .view-switch{background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-color:var(--line);box-shadow:0 10px 26px rgba(160,110,40,.22)}
  & .view-switch a{color:var(--ink-2)}
  & .view-switch a.on{background:var(--sel);color:var(--sel-ink)}

  /* success toast: sunny */
  & .notice.ok.toast{background:var(--surface);color:var(--ink);box-shadow:0 14px 34px rgba(160,110,40,.22),0 0 0 1px var(--line) inset}
  & .notice.ok.toast::before{background:var(--brand);color:var(--brand-ink)}

  /* checkboxes and radios in brand green, not the browser's blue */
  & input[type=checkbox],& input[type=radio],& progress{accent-color:var(--brand)}

  /* focus rings stay visible on the light ground */
  & :focus-visible{outline:3px solid var(--focus);outline-offset:2px}
}
@media (prefers-color-scheme:light){html:not([data-theme]){
  & body{background:radial-gradient(900px 460px at 100% -80px,color-mix(in srgb,var(--cat-sky-2) 16%,transparent),transparent 70%),radial-gradient(900px 520px at 0% -100px,color-mix(in srgb,var(--fresh) 14%,transparent),transparent 70%),var(--bg);background-attachment:fixed}

  /* header: light frosted glass, dark ink */
  & .topbar{background:color-mix(in srgb,var(--bg) 82%,transparent);-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);color:var(--ink);border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
  & .topbar .brand{color:var(--ink)}
  & .topbar .brand small{color:var(--brand)}
  & .topbar .brand-mark svg>rect:first-child{fill:var(--brand)}
  & .topbar .chip{background:var(--surface);border-color:var(--line);color:var(--ink-2)}
  & .topbar .icon-link,& .topbar summary{color:var(--ink)}
  & .proto-banner{background:var(--info-soft);color:var(--info)}

  /* tab bar: floating white glass, green for where you are, mango for My events */
  & .tabbar{background:color-mix(in srgb,var(--surface) 86%,transparent);-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);border:1px solid var(--line);box-shadow:0 12px 30px rgba(160,110,40,.16)}
  & .tabbar a{color:var(--ink-3)}
  & .tabbar a.on{background:var(--sel);color:var(--sel-ink);font-weight:700}
  & .tabbar a.center,& .tabbar a.center.on{background:linear-gradient(160deg,var(--mango-1),var(--mango-2));color:var(--on-mango);box-shadow:0 0 0 5px var(--bg),0 10px 22px rgba(255,150,40,.35)}
  & .tabbar a.center.on{box-shadow:0 0 0 5px var(--bg),0 0 0 8px var(--sel)}
  & .top-nav{background:var(--surface-2);border-color:var(--line)}
  & .top-nav a{color:var(--ink-2)}
  & .top-nav a:hover{background:var(--surface);color:var(--ink)}
  & .top-nav a.on{background:var(--sel);color:var(--sel-ink)}
  & .top-nav a.center:not(.on){color:var(--mango-ink)}

  /* hero cards and teasers: warm gradients with dark text instead of dark green blocks */
  & .card.hero,& .teaser{background:linear-gradient(135deg,var(--info-soft) 0%,var(--teal-soft) 55%,var(--brand-soft) 100%);color:var(--ink);border:1px solid var(--line)}
  & .card.hero *,& .teaser *{color:inherit}
  & .teaser small,& .teaser .muted,& .card.hero .muted{color:var(--ink-2)}
  & .teaser::after{color:var(--brand)}
  & .ticket-top{background:linear-gradient(160deg,var(--brand),var(--deep-2) 70%);color:var(--on-deep)}

  /* tiles: brighter greens, and light small print on every dark or photo tile */
  & .tile2.t-deep,& .tile2.t-brand{background:linear-gradient(160deg,var(--brand),var(--deep-2) 70%)}
  /* The light hero gradient is too pale for white text (2.57 at best): initials and stamps on it use deep green. */
  & .me-avatar,& .pf-initial,& .pc-initial span,& .stamps li.on{color:var(--deep)}
  & .tile2.t-deep small,& .tile2.t-brand small,& .tile2:has(.tile2-art) small,& .tile2.t-deep .muted,& .tile2:has(.tile2-art) .muted{color:rgba(255,255,255,.92);opacity:1}

  /* picked pills and answers */
  & .a11y-row input:checked{background:var(--sel)}

  /* cards: white on cream, warm hairline */
  & .card{border-color:var(--line)}
  & .card.link:hover{box-shadow:0 14px 34px rgba(160,110,40,.16)}

  /* the floating Map / Cards switch */
  & .view-switch{background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-color:var(--line);box-shadow:0 10px 26px rgba(160,110,40,.22)}
  & .view-switch a{color:var(--ink-2)}
  & .view-switch a.on{background:var(--sel);color:var(--sel-ink)}

  /* success toast: sunny */
  & .notice.ok.toast{background:var(--surface);color:var(--ink);box-shadow:0 14px 34px rgba(160,110,40,.22),0 0 0 1px var(--line) inset}
  & .notice.ok.toast::before{background:var(--brand);color:var(--brand-ink)}

  /* checkboxes and radios in brand green, not the browser's blue */
  & input[type=checkbox],& input[type=radio],& progress{accent-color:var(--brand)}

  /* focus rings stay visible on the light ground */
  & :focus-visible{outline:3px solid var(--focus);outline-offset:2px}
}}

input,select,textarea{font-family:inherit}
h1,h2,.flow-title,.me-hi,.topbar .brand,.big-n{font-family:var(--display);letter-spacing:0}
h3,h4,h5,h6,.btn,button,label,legend,th,.pill,.chip,.seg a,.tabbar a,.top-nav a,.eyebrow,.notice,.ev-date,.ticket .code,.a11y-h,.a11y-size b,.topbar .brand small,.big-l{font-family:var(--sub)}

/* RSVP ticket */
.btn-ticket{position:relative;padding-inline:28px 40px;-webkit-mask:radial-gradient(circle 7px at 0 50%,#0000 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 7px at 100% 50%,#0000 96%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 7px at 0 50%,#0000 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 7px at 100% 50%,#0000 96%,#000) right/51% 100% no-repeat;box-shadow:none}
.btn-ticket:focus-visible{-webkit-mask:none;mask:none}
.btn-ticket::before{content:"";position:absolute;right:18px;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;background:var(--surface);box-shadow:inset 0 1px 2px rgba(0,0,0,.35);transform:scale(0)}
.btn-ticket>span{position:relative;padding-right:14px;border-right:2px dashed color-mix(in srgb,currentColor 45%,transparent)}
.btn-ticket.is-busy{animation:punch-press .28s ease}
.btn-ticket.is-busy::before{animation:punch .38s .08s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes punch{0%{transform:scale(0)}60%{transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes punch-press{35%{transform:translateY(2px) scale(.97)}}

/* The pass tears in along its perforation */
.ticket .ticket-top{animation:tear-top .55s cubic-bezier(.2,.9,.3,1) both}
.ticket .ticket-body{animation:tear-body .6s .08s cubic-bezier(.2,.9,.3,1) both}
@keyframes tear-top{from{transform:translateY(-14px) rotate(-1.2deg);opacity:0}}
@keyframes tear-body{from{transform:translateY(18px) rotate(.8deg);opacity:0}}

/* Live pass: check-in is open */
.ticket.is-live{box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 45%,transparent),var(--shadow);animation:live-glow 2.4s ease-in-out 3}
@keyframes live-glow{50%{box-shadow:0 0 0 9px color-mix(in srgb,var(--brand) 16%,transparent),var(--shadow)}}
.live-pill{display:inline-flex;align-items:center;gap:8px;margin:0 0 8px;padding:5px 12px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-weight:700;font-size:.88rem}
.live-pill i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--brand);animation:live-dot 1.8s ease-out 3}
@keyframes live-dot{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--brand) 55%,transparent)}80%,100%{box-shadow:0 0 0 9px transparent}}

/* QR flips to the short code */
.qr-flip{position:relative;display:grid;border:0;padding:0;margin:0;background:none;color:inherit;font:inherit;cursor:pointer;perspective:900px;border-radius:16px}
.qr-face{grid-area:1/1;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .5s cubic-bezier(.2,.9,.3,1)}
.qr-front svg{display:block}
.qr-back{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;border-radius:14px;background:var(--deep);color:#fff;transform:rotateY(180deg)}
.qr-back b{font-family:var(--display);font-size:2.4rem;letter-spacing:.16em;line-height:1.1}
.qr-back small{color:var(--on-deep-2)}
.qr-flip[aria-pressed=true] .qr-front{transform:rotateY(-180deg)}
.qr-flip[aria-pressed=true] .qr-back{transform:rotateY(0)}
.qr-flip:focus-visible{outline:3px solid var(--brand);outline-offset:4px}

/* Countdown, calendar and directions */
.countdown{text-align:center;text-wrap:balance;font-weight:700;color:var(--ink-2);margin:-4px 0 10px;font-variant-numeric:tabular-nums}
.pass-actions,.ev-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0 16px}
.ev-actions{justify-content:flex-start;margin:4px 0 10px}
.caps-warn{display:block;color:var(--warn);font-weight:600}

/* Mutual connection spark */
.spark-pop{position:fixed;z-index:45;left:50%;top:40%;display:flex;align-items:center;transform:translate(-50%,-50%);pointer-events:none;animation:sp-out .45s 2.3s ease forwards}
.spark-pop i{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 10px 28px rgba(0,0,0,.2);font-style:normal;font-weight:800;font-size:1.5rem;color:#fff}
.spark-pop .sp-a{background:linear-gradient(135deg,var(--fresh),var(--brand));animation:sp-l .7s cubic-bezier(.2,.8,.2,1) both}
.spark-pop .sp-b{background:linear-gradient(135deg,var(--cat-sky-2),var(--info));margin-left:-14px;animation:sp-r .7s cubic-bezier(.2,.8,.2,1) both}
.spark-pop b{position:absolute;left:50%;top:-26px;font-size:1.9rem;transform:translateX(-50%) scale(0);animation:sp-burst .5s .55s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes sp-l{from{transform:translateX(-90px);opacity:0}}
@keyframes sp-r{from{transform:translateX(90px);opacity:0}}
@keyframes sp-burst{to{transform:translateX(-50%) scale(1)}}
@keyframes sp-out{to{opacity:0;visibility:hidden}}
html.a11y-motion .spark-pop{display:none}
@media (prefers-reduced-motion:reduce){.spark-pop{display:none}}

/* Field and switch edges (--field-line, --switch-off) are 3:1 or more: ui/palette.ts. */

/* Skip to content (2.4.1): hidden until it gets keyboard focus. */
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;padding:10px 16px;border-radius:12px;background:var(--surface);color:var(--ink);font-weight:700;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.2);outline:3px solid var(--brand)}
.skip-link:focus{top:calc(10px + env(safe-area-inset-top,0px))}
main:focus{outline:none}

/* Inputs show where they are (1.4.11); invalid ones say so in colour and text (3.3.1). */
input[type=text],input[type=password],input[type=date],input[type=datetime-local],input[type=number],input[type=search],input[type=url],input[type=email],input[type=tel],select,textarea{border:1.5px solid var(--field-line)}
input:focus,select:focus,textarea:focus{border-color:var(--brand)}
.fd-search input{border:0}
[aria-invalid="true"]{border-color:var(--err)!important;box-shadow:0 0 0 1px var(--err)}
.field-err{display:block;color:var(--err);font-weight:600}
.pill span{border:1.5px solid var(--field-line)}
.pill input:checked+span{border-color:var(--brand)}

/* Switches: the off state is visible too (1.4.11). */
.qs:not([aria-pressed=true]) .sw,.a11y-row input:not(:checked){background:var(--surface);box-shadow:inset 0 0 0 2px var(--switch-off)}
.qs:not([aria-pressed=true]) .sw::after,.a11y-row input:not(:checked)::after{background:var(--switch-off);box-shadow:none}

/* Keyboard focus is always visible, the centre tab included (2.4.7). */
.tabbar a:focus-visible,.tabbar a.center:focus-visible,.tabbar a.center.on:focus-visible,.top-nav a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.intro-track:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}

/* Text that was below 4.5:1 (1.4.3). */
.notif-dot{color:var(--on-info);font-size:.75rem;min-width:20px;height:20px;line-height:20px}
.fullmap .svm-k.highlight{color:var(--on-info)}



/* Nothing under 12px (readability). */
.proto-banner{font-size:.78rem}
.tabbar a,.tabbar a.center{font-size:.76rem}
.ev-date small{font-size:.75rem}
.seats small{font-size:.78rem}
.stamps li{font-size:.75rem}
.kv small,.fact small,.stats.month small{font-size:.78rem}
/* The map writes its own styles later in the page, so these need the extra .fullmap. */
.fullmap .fd-rail-btn{font-size:.75rem}
.fullmap .svm-k.highlight{font-size:.75rem}
/* Staff overview: an odd number tile out spans the row on phones. */
@media (max-width:520px){body.admin .stats>:last-child:nth-child(odd){grid-column:1/-1}}
.fullmap .fd-logo small{font-size:.75rem;letter-spacing:-.02em}

/* Tap targets at least 24px tall (2.5.8, WCAG 2.2 AA). */
.foot a{display:inline-flex;align-items:center;min-height:32px}
.row>a:not(.btn),.spread>a:not(.btn),h2>a,.me-group a,.tk-item{display:inline-flex;align-items:center;min-height:44px}
/* Links inside text keep their line, but get a taller tap area. */
:where(main,.fd-sheet) :where(a:not(.btn,.card,.tile,.tile2)){padding-block:4px}

/* Staff header fits one line on phones. */
.topbar .chip,.topbar .brand,.topbar .brand small{white-space:nowrap}
@media (max-width:520px){body.admin .topbar .brand small{display:none}}

/* /new: the hero carries its own call to action. */
.hero-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:14px}
.hero-link{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}

/* Discover list: shorter covers, so more events fit on a phone screen. */
.ev-card{--notch:96px}
.ev-card.feat{--notch:116px}
.ev-card .event-cover{height:96px;z-index:1}
.ev-card.feat .event-cover{height:116px}
.ev-card .event-cover .scene-badge{width:46px;height:46px;border-radius:15px}
.seg{flex-wrap:nowrap}
.seg a{flex:1 1 auto;min-width:0;white-space:normal;text-align:center;line-height:1.15;padding:6px 8px;font-size:.86rem}
body:has(.view-switch) .discover-list{padding-bottom:72px}
/* Sticky action bars (card flows, the quiz result's Done / Retake): a solid
   cream ground edge to edge with a hairline and soft shadow, so text scrolling
   behind never shows around the buttons. */
main :is(.flow-bar,.pf-save){background:var(--bg);border-top:1px solid var(--line);box-shadow:0 -8px 18px rgba(30,43,34,.07);margin-inline:calc(-1 * var(--gx,20px));padding-inline:var(--gx,20px);-webkit-backdrop-filter:none;backdrop-filter:none}
/* Phones and tablets: the cream carries on down behind the floating tab bar.
   Laptops (top menu): the bars sit at the very bottom instead. */
@media (max-width:1023.98px){body:has(.tabbar) main :is(.flow-bar,.pf-save)::after{content:"";position:absolute;left:0;right:0;top:100%;height:calc(112px + env(safe-area-inset-bottom,0px));background:var(--bg);pointer-events:none}}
@media (min-width:1024px){body:has(.top-nav) main .pf-save{bottom:0}}

/* Chosen chips and answer cards carry a tick, not only colour (1.4.1). */
.pill input:checked+span::before,.answer input:checked+span::before{content:"✓";font-weight:800;line-height:1}
.pill input:checked+span::before{margin-inline-end:.3em}
.flow .pill input:checked+span::before{margin-inline-end:0}
/* Emoji and label keep a space between them in flex chips. */
.pill span{column-gap:.35em}
/* Flows: "2 of 5" beside the bar; a compact round Back so Next is the one big button. */
.flow-count{flex:none;font-size:.82rem;font-weight:700;color:var(--ink-2);font-variant-numeric:tabular-nums}
.flow-bar>.btn.flow-back{flex:0 0 52px;width:52px;padding:0}
/* Calmer flow screens: the emoji sits inline with the question, no tile. */
.flow-emoji{display:inline;width:auto;height:auto;margin:0 .3em 0 0;padding:0;background:none;border-radius:0;transform:none;font-size:1em}
/* Prototype notice: a small chip in the header; tap for the full sentence. */
.topbar details.proto-chip{position:relative;flex:none;margin:0;padding:0;background:none;border:0;box-shadow:none;border-radius:0}
/* Pronoun quick picks. */
.pronoun-picks{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 14px}
.pronoun-picks [aria-pressed="true"]{background:var(--sel);border-color:var(--sel);color:var(--sel-ink)}
.pronoun-picks [aria-pressed="true"]::before{content:"✓ "}
.proto-chip>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;padding:2px 10px;border-radius:999px;background:var(--info-soft);color:var(--info);font-size:.75rem;font-weight:700;white-space:nowrap}
.proto-chip>summary::-webkit-details-marker{display:none}
.proto-chip>p{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:min(260px,70vw);margin:0;padding:10px 12px;border-radius:12px;background:var(--surface);color:var(--ink);font-size:.86rem;box-shadow:0 10px 26px rgba(0,0,0,.18);border:1px solid var(--line)}
/* Readability: 17px body text, and taller lines for Thai so stacked marks never touch. */
body{font-size:17px}
html[lang="th"] body{line-height:1.7}

/* Tighter spacing (owner: "too much space"): Discover cards sit 12px apart, and the
   event page's cover band is shorter on phones so the title shows sooner. */
.discover-list{gap:12px}
.discover-list .ev-card,.discover-list>.ev-item{margin-block:0}
@media (max-width:679.98px){.ev-scene{height:140px}}
/* "+3" on avatar stacks: readable size. */
.av.more{font-size:.75rem}

/* Profile edit: sticky section shortcuts under the header; sections land below them. */
.pf-jump{position:sticky;top:calc(56px + env(safe-area-inset-top,0px));z-index:4;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--gx,20px)) 8px;padding:8px var(--gx,20px);background:var(--bg);border-bottom:1px solid var(--line)}
.pf-jump::-webkit-scrollbar{display:none}
.pf-jump a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:.9rem;text-decoration:none;white-space:nowrap}
.pf-section{scroll-margin-top:130px}
@media (min-width:1024px){.pf-jump{top:72px}}


/* Notifications page: the inbox list, unread rows tinted, with room between rows. */
.notif-page{gap:8px;margin-top:8px}
.notif-page a,.notif-page div{background:var(--surface);border:1px solid var(--line);padding:12px 14px}
.notif-page .notif-new{color:var(--brand);font-weight:700}
/* "Clear answer" on profile prompts: a full-size tap target (2.5.8). */
.pf-clear{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.pf-clear input{width:22px;height:22px;margin:0}
/* Me: the stat tiles line up (the playful offset read as broken). */
.me-stat:nth-child(2){transform:none}
/* Public profile on laptops: three wider fact columns instead of five narrow ones. */
@media (min-width:900px){.pc-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Tap targets: 44px on member pages (house rule, beyond WCAG 2.2's 24px floor). */
.topbar summary,.topbar .chip,.proto-chip>summary,.topbar .brand{min-height:44px}
.topbar summary{min-width:44px}
.topbar .chip{display:inline-flex;align-items:center}
.pf-jump a,.view-switch a,.seg a,.a11y-reset{min-height:44px}
.seg a{display:inline-flex;align-items:center;justify-content:center}
/* Titles and heading links that open something (not links inside a sentence). */
main :is(h2,h3)>a,.me-h a,.me-todo a,.me-type>a,main h2.spread>a{display:inline-flex;align-items:center;min-height:44px}
.thanks-starters button,.chat-starters button{min-height:44px}
main details>summary{min-height:44px;display:flex;align-items:center}
.me-peek,.me-lang a{display:inline-flex;align-items:center;min-height:44px}
.passport-card>a,details.how li>a{display:inline-flex;align-items:center;min-height:44px}

/* My people: a friendship milestone with one next step. */
div.grad{display:grid;gap:8px;justify-items:start;margin:10px 0;padding:12px 14px;border-radius:16px;background:var(--brand-soft)}
div.grad p{margin:0;font-weight:700}

/* Me: a one-time question under the numbers. */
.me-ask p{display:grid;gap:4px;margin:0 0 10px}
.me-ask .row{gap:8px;flex-wrap:wrap}

/* Quiz result: on the dark sunset card, "Close to" takes the card's light text colour (it was dark ink). */
.tile2 .type-range{color:inherit!important}
.tile2 .type-range a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* ---- Phase 1 (three-way review, owner-approved 2026-10-16) ---- */
/* One bottom layer per screen. The Map / Cards switch sits in the page on phones too,
   never floating over Filters or a focused control (WCAG 2.4.11). */
body:not(.fullmap-body) .view-switch{position:static;transform:none;display:inline-flex;margin:0 0 12px;box-shadow:none}
body:has(.view-switch) .discover-list{padding-bottom:0}
/* A page with its own sticky action bar (quiz result, card flows, edit profile) hides the tab
   bar on phones and tablets, so the two never stack; the bar sits at the bottom edge. */
@media (max-width:1023.98px){
  body:has(main .flow-bar) .tabbar,body:has(main .pf-save) .tabbar{display:none}
  body:has(main .flow-bar),body:has(main .pf-save){padding-bottom:0}
  body:has(main .flow-bar) main .flow-bar,body:has(main .pf-save) main .pf-save{bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  body:has(main .flow-bar) main .flow-bar::after,body:has(main .pf-save) main .pf-save::after{content:none}
}
/* Contrast (1.4.3): the brand tile is a solid deep green, so white text passes everywhere on it;
   small white text on the type card's art gets a scrim. */
.tile2.t-brand{background:linear-gradient(160deg,var(--deep-2),var(--brand))}
.type-hero2 .tile2-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(8,20,14,.78) 0%,rgba(8,20,14,.5) 55%,rgba(8,20,14,.25) 100%)}
.type-hero2 .tile2-body,.type-hero2 small{text-shadow:0 1px 2px rgba(0,0,0,.45)}

/* Chats: rows never run past the screen (the grid item could not shrink), titles take one or two
   lines, and unread is bold plus a "New" label, not colour alone (1.4.1). */
.chat-list>li{min-width:0}
.chat-list a{min-width:0}
.chat-list a strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.chat-list a.unread strong{color:var(--ink);font-weight:800}
.chat-list a.unread small{color:var(--ink-2);font-weight:600}
.chat-new{flex:none;padding:2px 10px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font-size:.78rem;font-weight:700}

/* Birthday: day, month and year side by side; the welcome screen's "next" line. */
.birth-fields{border:0;padding:0;margin:18px 0}
.birth-fields legend{font-weight:600;font-size:.94rem;margin-bottom:6px}
.birth-row{display:grid;grid-template-columns:1fr 2fr 1.4fr;gap:8px}
.birth-row label{display:grid;gap:4px;font-size:.84rem;color:var(--ink-2)}
.birth-row select{min-height:48px}
.welcome-next{margin:14px 0 0;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);font-size:.94rem}

/* Photo picker: a page-language button over the visually hidden file input; focus shows on the button. */
.file-btn{align-self:flex-start;cursor:pointer}
.field:has(#f-photo:focus-visible) .file-btn{outline:3px solid var(--brand);outline-offset:2px}
.file-name{display:block;font-size:.86rem;margin-top:4px}

/* 💘 switch: tapping it when off opens a short consent sheet (Phase 2). */
main details.qs-sheet{margin:0;padding:0;border:0;background:none;box-shadow:none}
.qs-sheet>summary{list-style:none;cursor:pointer;width:100%}
.qs-sheet>summary::-webkit-details-marker{display:none}
.qs-consent{display:grid;gap:10px;margin:8px 0 4px;padding:14px;border-radius:16px;background:var(--love-soft);border:1px solid color-mix(in srgb,var(--love) 30%,var(--line))}
.qs-consent p{margin:0;font-size:.92rem}

/* Me: the next table first, then one sentence of numbers (links inside the sentence). */
.me-next{display:grid;gap:2px;margin:12px 0 8px;padding:14px 16px;text-decoration:none;color:var(--ink);border-left:0}
.me-next small{color:var(--ink-2);font-weight:600}
.me-next b{font-size:1.06rem}
.me-next span{color:var(--ink-2);font-size:.9rem}
/* Owner cards: the next table reads as a link (green line with an arrow) and matches the profile card under it. */
.card.me-next{border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0 16px;box-shadow:none;gap:4px}
.me-next .me-next-go{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--brand);font-size:1.06rem}
.me-next .me-next-go span{color:inherit;font-size:1.1rem;flex:none}
.me-next:hover .me-next-go,.me-next:focus-visible .me-next-go{text-decoration:underline;text-underline-offset:3px}
.me-next+.me-grow{margin-top:0}



/* Notifications: day headings, a count for repeats, a chevron on rows that open something. */
.notif-day h2{margin:18px 0 6px}
.notif-page a{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.notif-page a>.notif-title,.notif-page a>small{flex:none}
.notif-page a{display:grid;grid-template-columns:1fr auto;grid-template-areas:"t go" "s go"}
.notif-page a>.notif-title{grid-area:t}
.notif-page a>small{grid-area:s}
.notif-go{grid-area:go;font-size:1.4rem;color:var(--ink-3)}
.notif-count{color:var(--brand)}
.notif-page li.unread .notif-title{font-weight:700}


/* Host list: the title is the link; status badges don't wrap. */
.host-ev-title{font-weight:700;color:var(--ink);text-decoration:none}
.spread>.tag,.spread>.badge{white-space:nowrap;flex:none}

/* Neutral elevation, no coloured glows (craft, Phase 3). */
:root{--lift:0 1px 2px rgba(20,30,24,.08),0 6px 16px rgba(20,30,24,.08)}
/* Flat cards (owner, 2026-10-16): a card link answers hover with a stronger edge, not a shadow.
   !important: the warm layer nests these under a theme selector that outranks plain classes. */
.card.link:hover,a.card:hover{box-shadow:none!important;border-color:color-mix(in srgb,var(--brand) 45%,var(--line))!important}
.tabbar a.center{box-shadow:0 0 0 5px var(--bg),var(--lift)!important}
.tabbar a.center.on{box-shadow:0 0 0 5px var(--bg),0 0 0 8px var(--brand),var(--lift)!important}

/* Wide staff tables on phones: a shadow at the edge shows there is more to scroll sideways (1.4.10 cue). */
@media (max-width:600px){
  .table-wrap{background:linear-gradient(to right,var(--surface) 30%,transparent),linear-gradient(to left,var(--surface) 30%,transparent) 100% 0,radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.18),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.18),transparent) 100% 0;background-repeat:no-repeat;background-size:40px 100%,40px 100%,14px 100%,14px 100%;background-attachment:local,local,scroll,scroll}
}

.fact-ico{vertical-align:-2px;color:var(--brand);flex:none}

/* Headings break evenly (no lone last word). */
h1,h2,h3,.flow-title{text-wrap:balance}
/* Staff chip in the header: on narrow phones it drops to the Me menu's job, so the header never overflows. */
@media (max-width:420px){.topbar .top-actions a.chip[href="/admin"]{display:none}}

/* Merged onboarding screens (D42): sub-headings and labels for groups inside one step. */
.flow-body .field-label{font-family:var(--sub);font-weight:600;font-size:.94rem;margin:18px 0 6px}
.flow-body .field-label+.muted{margin-top:-2px}
.flow-sub{font-size:1.02rem;margin:22px 0 2px}
.flow-bar a.skip{display:flex;align-items:center;justify-content:center;text-decoration:underline}
/* The table intro card on the RSVP confirmation and the pass (D42). */
.table-intro{margin:16px 0;border:1.5px solid color-mix(in srgb,var(--brand) 35%,var(--line))}
.table-intro .btn{margin-top:4px}

/* Laptops: the Map / Cards switch sits in the page, not over the cards. */
@media (min-width:900px){body:not(.fullmap-body) .view-switch{position:static;transform:none;display:inline-flex;margin:0 0 12px;box-shadow:none}body:has(.view-switch) .discover-list{padding-bottom:0}}

/* Event page: the RSVP bar sits above the tab bar until the form is on screen. */
.sticky-cta{position:fixed;z-index:8;left:12px;right:12px;bottom:calc(106px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:616px;margin:0 auto;padding:10px 10px 10px 16px;border-radius:20px;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.16);transition:transform .25s ease,opacity .25s ease}
.sticky-cta.is-off{transform:translateY(16px);opacity:0;pointer-events:none;visibility:hidden}
.sticky-cta-note{font-weight:700;color:var(--ink-2)}
.sticky-cta .btn{flex:none}
body:has(.sticky-cta) main.wrap{padding-bottom:110px}
@media (min-width:900px){.sticky-cta{bottom:20px}}


/* Landing heroes: a shade behind the text so it reads on any sky (1.4.3). */
.tile2.hero .tile2-art::after{background:linear-gradient(to top,rgba(8,20,14,.78) 0%,rgba(8,20,14,.6) 55%,rgba(8,20,14,.5) 100%)}
.tile2.hero .tile2-body{text-shadow:0 1px 3px rgba(0,0,0,.6),0 0 14px rgba(0,0,0,.35)}
.tile2.hero small{opacity:1;align-self:flex-start;max-width:100%;padding:3px 9px;border-radius:10px;background:rgba(8,20,14,.55);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.tile2.hero .hero-title{margin:0;line-height:1.1;font-size:1.9rem;letter-spacing:-.02em}

/* Intro: language and accessibility sit together, top left, 44px taps. */
.intro-tools{position:absolute;z-index:3;top:calc(10px + env(safe-area-inset-top,0px));left:12px;display:flex;align-items:center;gap:6px}
.intro-tools .intro-lang{position:static;display:flex;gap:2px;margin:0;font-size:.9rem}
.intro-tools .intro-lang a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;border-radius:999px;color:var(--ink-2);font-weight:600;text-decoration:none}
.intro-tools .intro-lang a[aria-current]{background:var(--sel);color:var(--sel-ink);box-shadow:none}
.intro-a11y>summary{width:44px;height:44px;background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.intro .a11y-panel{position:fixed;left:12px;right:12px;width:auto;max-width:360px;top:calc(64px + env(safe-area-inset-top,0px))}
.intro-skip{min-height:44px;display:inline-flex;align-items:center}
/* The floating art moves for three loops, then rests (2.2.2). */
.intro-art{animation-iteration-count:3}

/* Staff area: the menu wraps on laptops instead of being cut off; phones keep the scroll. */
@media (min-width:900px){.adminnav{flex-wrap:wrap;overflow:visible;row-gap:8px}}
/* Long staff tables keep their column headings in view, and can be filtered. */
.table-wrap.scroll{max-height:72vh;overflow:auto}
.table-wrap.scroll thead th{position:sticky;top:0;z-index:1;box-shadow:0 1px 0 var(--line)}
.tfilter{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:12px 0 8px}
.tfilter label{font-weight:600;font-size:.92rem}
.tfilter input{max-width:360px;flex:1 1 220px}
.tfilter small{color:var(--ink-2)}
/* Server-paged tables: "Showing 51 to 100 of 142" and Previous / Next. */
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:10px 0}
.pager p{margin:0;color:var(--ink-2)}
/* A heading that's an h2 for the outline but sized like an h3. */
h2.h3{font-size:1.02rem;margin:.2rem 0 .3rem}

/* Reflow at 320px (1.4.10): nothing makes the page scroll sideways. */
@media (max-width:380px){
  .topbar{gap:8px;padding-inline:10px}
  .topbar .brand small{display:none}
  .top-actions{gap:4px}
  .topbar .chip{padding:4px 9px}
  body.admin .topbar .brand{font-size:0;gap:0}
  .proto-chip>summary{padding:2px 8px}
}
/* Under 360px, room for the Prototype chip: the logo alone stands for the name. */
@media (max-width:359.98px){.topbar .brand{font-size:0;gap:0}}
.pf-photo{grid-template-columns:minmax(0,1fr)}
.pf-photo>*{min-width:0;max-width:100%}
.me-hero{overflow-x:clip}

/* Missing page and error page. */
.err-page{text-align:center;padding:8vh 0 4vh}
.err-page .row{justify-content:center}
.err-mark{font-size:3rem;margin:0}
.intro-slide h2{font-size:1.9rem;font-weight:800;margin:10px 0 4px;line-height:1.15}
/* A status tag beside a title stays on one line; the title wraps instead (My events "Not checked in"). */
.spread>.tag{flex:none;white-space:nowrap}
.spread>h3,.spread>h2{min-width:0}
/* My people, owner card D: shortcuts as one row of chips, then the member's own people. */
.circle-chips{display:flex;gap:8px;overflow-x:auto;margin:4px calc(-1 * var(--gx,20px)) 8px;padding:4px var(--gx,20px);scrollbar-width:none}
.circle-chips a{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-weight:600;text-decoration:none;white-space:nowrap}
.circle-chips a.circle-buddy{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.circle-none{display:grid;gap:8px}
.circle-none p{margin:0}
.circle-none a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
/* My events with nothing booked, owner card F: the next events as tickets. */
.next-up{margin:8px 0 4px}
/* Notifications on this phone: a card at the top of the Notifications page; a switch that can't work reads as off, not broken. */
.push-card{margin:4px 0 16px}
.push-card .qs{border:1px solid var(--line)}
.qs:disabled{cursor:default}
.qs:disabled b{color:var(--ink-2)}
/* Discover, owner card A: one sticky bar (time, filters, map/cards) so events start on the first screen. */
.plan-line{display:flex;align-items:center;gap:6px;min-height:44px;margin:-4px 0 4px;font-weight:700;color:var(--brand);text-decoration:none}
.disc-bar{position:sticky;top:var(--disc-top,60px);z-index:4;display:grid;gap:6px;margin:0 calc(-1 * var(--gx,20px)) 12px;padding:6px var(--gx,20px);background:var(--bg);border-bottom:1px solid var(--line)}
.disc-bar:has(details[open]){position:static}
.disc-bar .seg{margin:0}
.disc-tools{display:flex;align-items:flex-start;gap:8px}
.disc-tools .filters{flex:1;min-width:0;margin:0;padding:0 14px;border:1px solid var(--line);border-radius:14px}
.disc-tools .filters>summary{font-weight:700}
.disc-tools .filters .filters{margin:0;padding:0 0 12px;border:0;background:none;box-shadow:none}
h1:has(+.plan-line){text-wrap:balance}
.disc-tools .filters .count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-inline-start:6px;margin-inline-end:auto;padding:0 6px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font-size:.8rem}
.disc-bar .view-switch{position:static;transform:none;flex:none;margin:0;box-shadow:none}
body:has(.disc) .discover-list{padding-bottom:0}
.disc-tools .filters>summary{white-space:nowrap}
.disc-tools .fi{display:none;width:20px;height:20px;flex:none}
/* Owner card: once scrolled past, the bar shrinks to one row (time chips, a filter icon with its count, the other view). */
.disc-bar.is-stuck{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-block:4px}
.disc-bar.is-stuck .seg{overflow-x:auto;scrollbar-width:none;background:none;padding:0;gap:4px}
.disc-bar.is-stuck .seg a{flex:none;font-size:.82rem;padding:4px 10px}
.disc-bar.is-stuck .disc-tools{align-items:center;gap:4px}
.disc-bar.is-stuck .disc-tools .filters{border:0;padding:0;background:none}
.disc-bar.is-stuck .disc-tools .filters>summary{justify-content:center;min-width:44px;gap:2px}
.disc-bar.is-stuck .disc-tools .filters>summary::after{display:none}
.disc-bar.is-stuck .fi{display:block}
.disc-bar.is-stuck .fl,.disc-bar.is-stuck .vs-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.disc-bar.is-stuck .disc-tools .filters .count{margin-inline:0}
.disc-bar.is-stuck .view-switch{padding:0;background:none;border:0}
.disc-bar.is-stuck .view-switch a.on{display:none}
.disc-bar.is-stuck .view-switch a{min-width:44px;justify-content:center;padding:0 8px;background:var(--surface);border:1px solid var(--line);color:var(--ink)}
@media (max-width:359.98px){.disc-tools .filters{padding:0 10px}.disc-bar .view-switch a{padding:6px 10px}.card.ev-card,.card.ev-card.feat{--stub:64px}}
/* Event cards, owner card B: a side-on ticket. Category colour and the date live in the stub; the perforation runs down between stub and body. */
.card.ev-card,.card.ev-card.feat{--stub:76px;display:grid;grid-template-columns:var(--stub) minmax(0,1fr);-webkit-mask:radial-gradient(circle 9px at var(--stub) 0,#0000 97%,#000) top/100% 51% no-repeat,radial-gradient(circle 9px at var(--stub) 100%,#0000 97%,#000) bottom/100% 51% no-repeat;mask:radial-gradient(circle 9px at var(--stub) 0,#0000 97%,#000) top/100% 51% no-repeat,radial-gradient(circle 9px at var(--stub) 100%,#0000 97%,#000) bottom/100% 51% no-repeat}
.ev-card .event-cover,.ev-card.feat .event-cover{height:auto;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px 6px}
.ev-card .event-cover img{position:absolute;inset:0;width:100%;height:100%}
.ev-card .event-cover .scene-badge{width:40px;height:40px;border-radius:13px;font-size:1.35rem}
.ev-card .ev-date{position:relative;left:auto;bottom:auto;min-width:50px;transform:none}
.ev-card .ev-body,.ev-card.feat .ev-body{padding:12px 14px 12px 16px}
.ev-card .ev-body::before{left:0;right:auto;top:14px;bottom:14px;border-top:0;border-left:2px dashed color-mix(in srgb,var(--ink-3) 35%,transparent)}
.ev-card.feat h3{font-size:1.08rem}
/* Owner card: time, area and language on one plain line, so a ticket is about 170px. */
.ev-card .chips2{display:flex;flex-wrap:wrap;align-items:baseline;gap:0;white-space:normal;overflow:visible;margin:4px 0 6px;color:var(--ink-2);font-size:.92rem;line-height:1.5}
.ev-card .chips2 span{display:inline;padding:0;background:none;border:0;border-radius:0;font-weight:600;white-space:nowrap}
.ev-card .chips2 span:not(:last-child)::after{content:"·";margin:0 6px;color:var(--ink-3);font-weight:400}
/* Discover on laptops, owner card C: a sticky filter rail beside an even grid of tickets. */
@media (min-width:1024px){
  main.wrap:has(.disc){max-width:1180px}
  .disc{display:grid;grid-template-columns:248px minmax(0,1fr);gap:24px;align-items:start}
  .disc-bar,.disc-bar:has(details[open]){position:sticky;top:84px;margin:0;padding:0 4px 0 0;border:0;background:none;max-height:calc(100vh - 100px);overflow:auto;gap:12px}
  .disc-bar .seg{flex-direction:column;align-items:stretch;border-radius:18px}
  .disc-bar .seg a{justify-content:flex-start;text-align:start;padding-inline:14px}
  .disc-tools{flex-direction:column-reverse;align-items:stretch}
  .disc-tools .filters{flex:none}
  .disc .discover-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .disc .discover-list>.ev-item:has(.feat){grid-column:auto}
  /* Place the rail and the tickets by name: the zero-height sticky marker came first and pushed the
     tickets into the 248px rail column. */
  .disc>.disc-mark{grid-column:1/-1;grid-row:1}
  .disc>.disc-bar{grid-column:1;grid-row:2}
  .disc>.discover-list{grid-column:2;grid-row:2}
}
@media (min-width:1220px){.disc .discover-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Owner card G: tickets arrive quickly, 8px and 40ms apart, and are never hidden. */
@media (prefers-reduced-motion:no-preference){
  html:not(.a11y-motion) .disc .discover-list>*{animation:rise-sm .3s cubic-bezier(.2,.8,.2,1) backwards}
  html:not(.a11y-motion) .disc .discover-list>:nth-child(2){animation-delay:.04s}
  html:not(.a11y-motion) .disc .discover-list>:nth-child(3){animation-delay:.08s}
  html:not(.a11y-motion) .disc .discover-list>:nth-child(4){animation-delay:.12s}
  html:not(.a11y-motion) .disc .discover-list>:nth-child(5){animation-delay:.16s}
  html:not(.a11y-motion) .disc .discover-list>:nth-child(n+6){animation-delay:.2s}
}
@keyframes rise-sm{from{transform:translateY(8px)}}
/* Ticket cards read as one piece (owner: "card view is a bit disjoined"): one calm tint per category
   on the stub instead of two colour blocks, the date and the emoji as one block inside it, and facts
   that wrap without a dangling dot. */
.ev-card .event-cover{background:var(--cat,var(--cat-mint))}
.ev-card .event-cover{flex-direction:column-reverse;justify-content:flex-start;gap:6px;padding:14px 6px}
.ev-card .ev-date{background:none;border:0;box-shadow:none;padding:0;min-width:0;color:var(--ink);display:grid;justify-items:center;line-height:1.05}
.ev-card .ev-date b{font-size:1.5rem}
.ev-card .ev-date small{font-size:.75rem;font-weight:700;letter-spacing:.06em;color:var(--ink-2)}
.ev-card .event-cover .scene-badge{width:34px;height:34px;border-radius:11px;font-size:1.1rem;box-shadow:none;background:color-mix(in srgb,var(--surface) 80%,transparent)}
.ev-card .chips2{gap:2px 12px}
.ev-card .chips2 span:not(:last-child)::after{content:none}
/* Calmer motion (Phase 3): with reduced motion on (system setting or the app's own switch), nothing
   moves or scales, but colour and opacity changes still show, so state changes stay visible. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-property:color,background-color,border-color,opacity,box-shadow!important}
  .type-emoji,.btn-ticket.is-busy::before{animation:none!important}
}
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{transition-property:color,background-color,border-color,opacity,box-shadow!important}
html.a11y-motion .type-emoji,html.a11y-motion .btn-ticket.is-busy::before{animation:none!important}
/* See them again: one calm card with one next step, styled like the table-intro card. */
.see-again{margin:16px 0;border:1.5px solid color-mix(in srgb,var(--brand) 35%,var(--line))}
.see-again .see-again-names{font-weight:600;margin:4px 0 4px;overflow-wrap:anywhere}
.see-again .muted{margin:0 0 12px}
/* Offline next table: the pass's essentials card, the "saved for offline" note (words, not just an icon),
   and the saved tables on the offline page as full-width rows with 44px+ targets. */
.essentials{margin:16px 0}
.essentials dl.facts{margin:8px 0 0}
.essentials dd{margin:0;min-width:0;overflow-wrap:anywhere}
.essentials .ess-addr{display:block;color:var(--ink-2)}
.essentials .ess-map{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.essentials .ess-bring{margin:0;padding-left:18px}
.essentials .ess-bring li{margin:0 0 4px}
.essentials details.how summary{min-height:44px;display:flex;align-items:center}
.offline-saved{display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;padding:12px 14px;border-radius:14px;background:var(--surface);border:1.5px solid var(--brand);color:var(--ink)}
.offline-saved small{display:block;color:var(--ink-2)}
.offline-saved[hidden]{display:none}
.offline-next-list ul{list-style:none;margin:12px 0 16px;padding:0;display:grid;gap:12px}
.offline-next-list a.card{display:grid;gap:4px;min-height:44px;padding:12px 16px;text-decoration:none;color:var(--ink)}
.offline-next-list a.card small{color:var(--ink-2)}
/* Clearer unread: one style everywhere (bell, My people tab, Chats chip, chat rows, notification rows).
   A brand-green pill with a number or "New" in it (white on green 5.9:1, dark on bright green in dark
   mode), so it reads on the light glass bars and the dark ones alike; unread rows also get a tint and
   a bold title, never colour alone (1.4.1). */
.unread-badge,.notif-dot,.chat-list a>b.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;width:auto;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font-family:var(--sub);font-size:.75rem;font-weight:800;line-height:1;vertical-align:middle;flex:none;white-space:nowrap}
.unread-badge.unread-new,.chat-list a>b.unread-badge.unread-new{padding:0 8px}
.notif-dot{position:absolute;top:2px;right:0;box-shadow:0 0 0 2px var(--surface)}
.tabbar a{position:relative}
.tabbar .tab-badge{position:absolute;top:2px;left:calc(50% + 4px);box-shadow:0 0 0 2px var(--surface)}
.top-nav .tab-badge{box-shadow:0 0 0 2px var(--surface)}
.circle-chips a .unread-badge,.spread a .unread-badge{margin-left:2px}
.chat-list a.unread,.notif-list li.unread a,.notif-list li.unread div{background:color-mix(in srgb,var(--brand) 9%,var(--surface));border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.chat-list a.unread strong,.notif-list li.unread .notif-title{color:var(--ink);font-weight:800}
.notif-list small .unread-badge{margin-right:4px}
.unread-sum{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-weight:700;color:var(--ink)}
/* Curated icebreakers: three questions on the event page, and in a hangout's group chat as full-width
   tap-to-send rows (44px+ each, text wraps instead of running off a 320px screen). */
.icebreakers{margin:16px 0}
.ice-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.ice-list li{display:flex;gap:8px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--surface-2);color:var(--ink);line-height:1.5}
.ice-chat{margin:12px 0 0}
.ice-chat a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.chat-ice{margin:12px 0;padding:4px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.chat-ice summary{min-height:44px;display:flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);cursor:pointer;list-style:none}
.chat-ice summary::-webkit-details-marker{display:none}
.chat-ice summary::after{content:"";flex:none;margin:0 4px 4px auto;width:8px;height:8px;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg)}
.chat-ice[open] summary::after{transform:rotate(-135deg);margin:4px 4px 0 auto}
.chat-ice ul{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.chat-ice form{margin:0}
.chat-ice button{display:flex;gap:8px;align-items:flex-start;width:100%;min-height:44px;padding:10px 14px;border-radius:14px;border:1.5px solid var(--brand);background:var(--surface);color:var(--ink);font:inherit;text-align:left;line-height:1.45;white-space:normal;cursor:pointer}
.chat-ice button:hover{background:var(--brand-soft)}
.chat-ice button:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
/* Events review (jurrgun-ui, 2026-10-16). Plain fixes: the pass's day card stacks each label over its value on
   phones (values were squeezed into a narrow column), and the +1 invite gets room and a rule after Cancel. */
@media (max-width:519.98px){
  .essentials dl.facts{grid-template-columns:1fr;gap:2px}
  .essentials dl.facts dt{margin-top:10px}
  .essentials dl.facts dd{margin:0}
}
#invite{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
/* Owner cards, recommended options (owner away, approved in advance):
   E1 tickets drop the seat-dot row; the "N spots left" tag already says it. */
.ev-card .seats{display:none}
/* E2 the event page hero is one calm tint per category, like the ticket stubs, and shorter. */
.event-cover.ev-scene{background:var(--cat,var(--cat-mint));height:120px}
.event-cover.ev-scene::before,.event-cover.ev-scene::after{content:none}
/* E3 fact tiles: labels and sub-lines in sentence case, not small capitals (place names were shouting). */
.fact small{text-transform:none;letter-spacing:0;font-weight:600}
/* One short helper line, the rest behind a small info button (owner, 2026-10-16) */
.with-info{margin:4px 0 8px}
main details.more-info{display:inline;margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
main details.more-info>summary{list-style:none;cursor:pointer;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-10px 0;padding:0;border-radius:999px;color:var(--brand);font-size:1.1rem;font-weight:700;background:none;border:0}
details.more-info>summary::-webkit-details-marker{display:none}
details.more-info>summary:focus-visible{outline:3px solid var(--ink);outline-offset:-4px}
details.more-info[open]>summary{color:var(--ink)}
.more-info-body{display:block;margin:6px 0 4px;padding:10px 12px;border-radius:12px;background:var(--surface-2);color:var(--ink);font-size:.9rem;line-height:1.5}
/* Long host text: about 4 lines, then Read more */
.host-text{margin:8px 0 0}
.host-text p{white-space:pre-line;margin:0}
main details.host-text-more{margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.host-text-more>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.host-text-more>summary::-webkit-details-marker{display:none}
.host-text-more[open]>summary,.host-text:has(.host-text-more[open]) .host-text-dots{display:none}
.host-text-more[open]>p{margin-top:0}
/* Finalize review plain fixes: the chat host badge is 12px and readable in dark mode (was about 1.8:1). */
.host-badge{font-size:.75rem}

/* Two heading levels (finalize A4): one section title with an optional link, one small label for groups inside it. */
.sec-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:32px 0 8px}
.sec-head h2{font-family:var(--display);font-size:1.25rem;line-height:1.3;margin:0;min-width:0}
.sec-head>a{display:inline-flex;align-items:center;min-height:44px;flex:none;font-weight:600;font-size:.94rem;text-decoration:none}
.sub-label{font-family:var(--font);font-size:.8125rem;font-weight:700;line-height:1.4;color:var(--ink-2);letter-spacing:.01em;margin:16px 4px 8px}
.sub-label+.me-menu{margin-top:0}
.quick>.sub-label{margin-top:0}
/* Me (finalize A1, C1): one plain card surface, the colour only in the icon bubbles; the type card is full width and straight. */
main .me-type{margin:0}
main .me-type>a.teaser{display:flex;width:100%;transform:none}
.me-grow{margin:12px 0 0}
/* My events (finalize C3): past events as compact rows under month labels; buttons only while the 72-hour window is open. */
.past-month .sub-label{margin-top:16px}
.past-rows{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.past-row+.past-row{border-top:1px solid var(--line)}
.past-main{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;text-decoration:none;color:var(--ink)}
.past-day{display:flex;flex-direction:column;align-items:center;flex:none;min-width:40px;line-height:1.15;font-family:var(--display)}
.past-day b{font-size:1.1rem}
.past-day small{font-size:.75rem;color:var(--ink-2)}
.past-text{flex:1;min-width:0;display:grid;gap:2px}
.past-text b{font-weight:600;line-height:1.35}
.past-state{font-size:.8125rem;color:var(--ink-2)}
.past-state.is-ok{color:var(--ok)}
.past-chev{flex:none;font-size:1.4rem;line-height:1;color:var(--ink-3)}
.past-acts{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 12px 66px}
.past-acts .btn{margin:0}
@media (max-width:480px){.past-acts{padding-left:14px}.past-acts .btn{flex:1 1 auto}}
/* Pass (finalize C4): what happens next as a three-step progress strip, not radio-like circles. */
.pass-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 16px;padding:0}
.pass-steps li{display:grid;align-content:start;gap:2px;min-width:0}
.pass-steps .ps-bar{display:block;height:6px;border-radius:3px;background:var(--line);margin-bottom:6px}
.pass-steps li.is-done .ps-bar{background:var(--brand)}
.pass-steps li.is-now .ps-bar{background:linear-gradient(90deg,var(--brand) 50%,var(--line) 50%)}
.pass-steps b{font-size:.875rem;font-weight:700;line-height:1.3;color:var(--ink)}
.pass-steps li:not(.is-done):not(.is-now) b{color:var(--ink-2)}
.pass-steps .ps-mark{font-variant-numeric:tabular-nums}
.pass-steps li.is-done .ps-mark{color:var(--ok)}
.pass-steps small{font-size:.8125rem;line-height:1.35;color:var(--ink-2)}
.pass-steps .ps-now{justify-self:start;padding:0 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-weight:700;font-size:.75rem}
.countdown{white-space:nowrap}
/* A2 One button family (finalize review): the only .btn definition. Three kinds share one radius and
   48px: solid primary, tonal (class ghost or tonal, soft green fill) and quiet text. Danger and the
   💘 love red are variants. Contrast: primary 5.7:1 light, 9.6:1 dark; tonal 5.0:1 light, 7.1:1 dark. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:10px 20px;border-radius:16px;border:1.5px solid transparent;font:inherit;font-size:1rem;font-family:var(--sub);font-weight:700;letter-spacing:-.005em;line-height:1.3;text-align:center;text-decoration:none;cursor:pointer;transition:transform .12s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
.btn:active{transform:scale(.97)}
.btn.block{width:100%}
.btn.primary{background:var(--brand);color:var(--brand-ink);box-shadow:var(--lift)}
.btn.primary:hover{background:color-mix(in srgb,var(--brand) 88%,#000)}
.btn:is(.ghost,.tonal),.chip-btn{background:var(--brand-soft);color:var(--brand);border-color:color-mix(in srgb,var(--brand) 22%,transparent)}
.btn:is(.ghost,.tonal):hover,.chip-btn:hover{border-color:var(--brand)}
.btn.quiet{background:transparent;color:var(--brand);padding-inline:12px;text-decoration:underline;text-underline-offset:3px}
.btn.quiet:hover{background:var(--brand-soft)}
.btn.danger{background:var(--err-soft);color:var(--err);border-color:color-mix(in srgb,var(--err) 25%,transparent)}
.btn.danger:hover{border-color:var(--err)}
.btn.love{background:var(--love-ink);border-color:var(--love-ink);color:var(--surface)}
.btn.love:hover{background:color-mix(in srgb,var(--love-ink) 86%,var(--ink));border-color:color-mix(in srgb,var(--love-ink) 86%,var(--ink))}
.btn:disabled,.btn[aria-disabled=true]{opacity:.55;cursor:not-allowed;transform:none}
.btn.is-busy{pointer-events:none;opacity:.85}
.btn.is-busy::after{content:"";display:inline-block;width:1.1em;height:.3em;margin-left:8px;vertical-align:middle;background:radial-gradient(circle,currentColor 45%,transparent 50%) 0 50%/33% 100% repeat-x;animation:busy .9s steps(3) infinite;clip-path:inset(0 100% 0 0)}
/* Pick chips and calendar or directions links take the tonal kind's look and height. */
.chip-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:10px 18px;border-radius:16px;border-width:1.5px;border-style:solid;font:inherit;font-family:var(--sub);font-weight:700;text-decoration:none;cursor:pointer}
/* On a green or photo tile: primary turns white with deep green text (7.8:1), tonal a dark glass with white text (4.7:1 or more). */
:is(.tile2.t-brand,.tile2.t-deep,.tile2:has(.tile2-art)) .btn.primary{background:#fff;color:var(--deep-2);border-color:#fff;text-shadow:none;box-shadow:0 6px 18px rgba(0,0,0,.18)}
:is(.tile2.t-brand,.tile2.t-deep,.tile2:has(.tile2-art)) .btn.primary:hover{background:color-mix(in srgb,var(--brand) 8%,#fff)}
:is(.tile2.t-brand,.tile2.t-deep,.tile2:has(.tile2-art)) .btn.ghost{background:rgba(0,0,0,.28);color:#fff;border-color:rgba(255,255,255,.5);text-shadow:none}
:is(.tile2.t-brand,.tile2.t-deep,.tile2:has(.tile2-art)) .btn.ghost:hover{background:rgba(0,0,0,.38)}
/* A3 One fact tile: icon and bold answer, an optional quiet line, then the small sentence-case label.
   Two columns on phones; a tile alone at the end of a row stretches across it. */
.fact-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
@media (min-width:720px){.fact-tiles[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.fact-tiles[data-cols="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}.fact-tiles[data-cols] .ft-lone{grid-column:auto}}
.fact-tile{display:flex;flex-direction:column;gap:2px;min-width:0;margin:0;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
.fact-tile.ft-wide,.fact-tile.ft-lone{grid-column:1/-1}
.fact-tile dt{order:1;margin:0;font-size:.78rem;font-weight:600;color:var(--ink-3);text-transform:none;letter-spacing:0}
.fact-tile dd{margin:0}
.fact-tile .ft-a{order:-1;font-size:.95rem;font-weight:700;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
.fact-tile .ft-i{margin-right:2px}
.fact-tile .ft-sub{font-size:.82rem;line-height:1.35;color:var(--ink-2)}
.fact-tile .ft-sub .seats{margin:4px 0 0}
.pc-group-h+.fact-tiles{margin-top:8px}
/* The type facts are sentences: one per row on phones, three across from 720px. */
@media (min-width:720px){.type-facts[data-cols] .ft-wide{grid-column:auto}}
/* B2 Sheet (src/ui/sheet.tsx): a bottom sheet on phones, a popover by its trigger on laptops. */
main details.sheet,details.sheet{margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
details.sheet>summary{list-style:none;cursor:pointer}
details.sheet>summary::-webkit-details-marker{display:none}
.sheet-panel{box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:8px 16px 16px;overflow:auto;overscroll-behavior:contain;text-align:left;text-shadow:none;font-size:1rem;font-weight:400}
.sheet-panel[popover]{margin:0;inset:auto}
.sheet-panel:focus{outline:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:4px}
.sheet-head strong{font-size:1.02rem;line-height:1.3}
.sheet-x{display:none;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:1rem;cursor:pointer}
html.sheet-js .sheet-x{display:inline-flex}
.sheet-x:focus-visible,.sheet-item:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.sheet-body{display:grid;gap:4px}
.sheet-body form{margin:0}
.sheet-body details.how{margin:0;padding:0 12px;border-radius:12px;background:var(--surface-2);border:0}
.sheet-body details.how[open]{padding-bottom:12px}
.sheet-body details.how>summary{min-height:48px}
.sheet-body .muted{margin:4px 0}
.sheet-body>.muted,.sheet-body>.chips2,.sheet-body>.notice{margin-left:12px;margin-right:12px}
.sheet-sep{height:1px;background:var(--line);margin:6px 0}
a.sheet-item,button.sheet-item{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 12px;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-weight:600;text-align:left;text-decoration:none;cursor:pointer}
a.sheet-item:hover,button.sheet-item:hover{background:var(--surface-2)}
.sheet-item>span[aria-hidden]{flex:0 0 24px;text-align:center}
.sheet-item.danger{color:var(--err)}
.sheet-more{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:700;font-size:1.2rem;line-height:1}
.sheet-more:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
details.sheet[open]>.sheet-more{background:var(--surface-2)}
@media (max-width:1023px){
  details.sheet[open]>.sheet-panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;width:auto;max-width:none;max-height:85vh;max-height:85dvh;border-radius:20px 20px 0 0;border-bottom:0;padding-bottom:calc(16px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(0,0,0,.25)}
  details.sheet[open]>.sheet-panel::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 4px}
  html:not(.sheet-js) details.sheet[open]>summary::before{content:"";position:fixed;inset:0;z-index:59;background:rgba(8,20,12,.45);cursor:default}
  .sheet-panel::backdrop{background:rgba(8,20,12,.45)}
  html:has(details.sheet[open]){overflow:hidden}
}
@media (min-width:1024px){
  details.sheet{position:relative}
  details.sheet[open]>.sheet-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:max-content;min-width:260px;max-width:360px;max-height:70vh;border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.18)}
  details.sheet.sheet-start[open]>.sheet-panel{left:0;right:auto}
  details.sheet.lifted[open]>.sheet-panel{position:fixed;right:auto;bottom:auto}
  .sheet-panel::backdrop{background:transparent}
}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) .sheet-panel{box-shadow:0 -12px 40px rgba(0,0,0,.5)}}html[data-theme="dark"] .sheet-panel{box-shadow:0 -12px 40px rgba(0,0,0,.5)}
/* B1 people on My people: avatar, name, one last-met line, Chat and ⋯ (rows of one grouped list, below). */
.pc-av{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:0 0 48px;background:var(--surface-2)}
.pc-row .avstack{flex:0 0 auto;margin:0}
/* Chat and ⋯ side by side (person rows and the buddy card share this). */
.pc-acts{display:flex;align-items:center;gap:8px}
.pc-acts .btn{min-height:44px;margin:0}
.pc-met{margin:2px 0 0;color:var(--ink-2);font-size:.9rem;line-height:1.45}
/* B1: the full meeting history now sits on the person's profile. */
.met-at h2.eyebrow{margin:0 0 6px;font-size:.8rem}
.met-at ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.met-at ul{gap:8px}
.met-at li{display:grid}
.met-at li a{display:inline-flex;align-items:center;min-height:44px;line-height:1.3}
.met-at li small{margin-top:-8px}
/* B4 Buddy: Chat and ⋯ under the buddy card; cards inside the Sheet sit flat. Quest progress in words, ✓ when done. */
.buddy-acts{margin:0 4px 16px}
.sheet-body .card{margin:8px 0;padding:12px;box-shadow:none}
.sheet-body .buddy-safety ul{padding-left:0}
.chips2 .quest-who.done{background:var(--ok-soft);color:var(--ink);font-weight:700}
/* B3 chat composer: one row, + (photo, poll, icebreakers), the text field, then Send. */
.chat-compose{position:sticky;bottom:calc(104px + env(safe-area-inset-bottom));z-index:3;display:flex;align-items:flex-end;gap:8px;padding:8px 0;background:linear-gradient(to top,var(--bg) 80%,transparent)}
@media (min-width:1024px){.chat-compose{bottom:0}}
html:not(.sheet-js) .chat-compose{position:static}
.chat-compose>.chat-send{position:static;flex:1;min-width:0;padding:0;background:none}
.chat-compose>details.sheet{flex:none}
.sheet-more.chat-plus{min-width:46px;min-height:46px;padding:0;font-size:1.6rem;font-weight:500;color:var(--brand)}
.sheet-body .chat-extras{display:grid;gap:8px;margin:0}
.sheet-body .chat-photo-form{padding:4px 0}
.sheet-body .chat-poll-new form{display:grid;gap:8px}
.sheet-body .chat-starters{display:grid;gap:4px}
.sheet-body .chat-starters .sheet-item{font-weight:500;line-height:1.35;padding:10px 12px}
.sheet-body .chat-ice{padding:0 12px}
/* B3 bubbles: Report moved into a ⋯ shown on a hovered, focused or long-pressed message. */
.msg-meta{display:flex;align-items:center;gap:2px}
.msg-meta .when{margin:2px 6px;font-size:.75rem}
.bubble-more{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-12px 0;border-radius:999px;color:var(--ink-2);font-weight:700;font-size:1.1rem;opacity:0;transition:opacity .15s ease}
.chat-msgs li:hover .bubble-more,.chat-msgs li:focus-within .bubble-more,.bubble-more:focus-visible,details.sheet[open]>.bubble-more{opacity:1}
.bubble-more:focus-visible{outline:3px solid var(--ink);outline-offset:-6px}
@media (hover:none){.chat-msgs li[data-sheet-hold]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
@media (prefers-reduced-motion:reduce){.bubble-more{transition:none}}
/* D1 one bar for the first-time journey: the chapter name and "Part 1 of 4" sit above it. */
.journey-top{flex-wrap:wrap;row-gap:6px;margin:4px 0 16px}
.journey-label{flex:1 0 100%;display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0;font-size:.82rem;line-height:1.3;color:var(--ink-2)}
.journey-label b{color:var(--ink);font-weight:700}
.journey-label span{flex:none;font-variant-numeric:tabular-nums}
.journey-top .flow-close{margin:-14px 0}
/* The ⓘ ends the helper line instead of sitting alone on its own line. */
.flow-hint.with-info{margin:0 0 8px}
/* D2 ambient motion: decorative shapes sit still (Me's blobs and photo frame no longer morph). Only a live state pulses, 3 times. */
main .me-hero .me-blob,main .me-hero .me-avatar{animation:none}
/* D4 laptop frames. The signed-out intro: art on the left, copy on the right; the dots and Next sit under the copy. */
@media (min-width:1024px){
  .intro-slide{align-self:center;display:grid;grid-template-columns:440px 440px;grid-template-rows:repeat(5,auto) 1fr;justify-content:center;justify-items:start;column-gap:72px;row-gap:8px;text-align:left;padding:72px 48px}
  .intro-slide p.intro-foot{padding:0;margin-top:8px}
  .intro-slide .intro-art{grid-column:1;grid-row:1/-1;justify-self:center;align-self:center;width:360px}
  .intro-slide .intro-art b{font-size:136px}
  .intro-slide>:not(.intro-art){grid-column:2;margin-top:0;margin-bottom:0}
  .intro-slide>:first-child+*{margin-top:8px}
  .intro-slide p{max-width:40ch}
  .intro-slide .intro-cta{align-items:flex-start;margin-top:16px}
  .intro>.intro-foot{position:absolute;z-index:2;left:calc(50% + 36px);top:calc(50% + 124px);width:440px;justify-content:flex-start;gap:24px;padding:0}
}
/* Day-of status: one calm line at the top of the event page, the pass and the hangout chat. Words carry
   the meaning; the left edge only echoes it. Running late / On my way are two 44px buttons. */
.day-status{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--brand);color:var(--ink);line-height:1.5}
.day-status .fact-ico{flex:none;width:20px;height:20px;margin-top:2px;color:var(--ink-2)}
.day-status .ds-who{color:var(--ink-2);font-weight:600}
.day-status.ds-running_late,.day-status.ds-moved{border-left-color:var(--warn);background:var(--warn-soft)}
.day-status.ds-cancelled{border-left-color:var(--ink-3);background:var(--surface-2)}
.eta-box{margin:0 0 12px;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.eta-box .eta-q{margin:0 0 8px;color:var(--ink)}
.eta-btns{display:flex;flex-wrap:wrap;gap:8px}
.eta-btns .btn{min-height:44px}
.eta-sum{margin:8px 0;padding-left:20px}
.eta-host a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.find-table{margin:8px 0}
.find-table p{margin:0 0 4px}
.ft-line,.station-fact{display:inline-flex;gap:6px;align-items:center}
.ft-line .fact-ico,.station-fact .fact-ico{flex:none;width:18px;height:18px;color:var(--ink-2)}
.ft-notes{white-space:pre-line;color:var(--ink-2)}
.venue-extras select{width:100%;min-height:44px}
.day-status-form .choices .toggle{min-height:44px}
/* เกี่ยวก้อย · Pinky: a quiet row on the card of someone you met, 💘 members only. Love red on the
   card's own surface (never coral or orange); the state is always in words, buttons are 44px. */
.pinky{margin:16px 0;padding:14px 16px;border-radius:var(--radius);background:var(--love-soft);border:1px solid color-mix(in srgb,var(--love) 30%,transparent);color:var(--ink)}
.pinky-head{display:flex;gap:10px;align-items:flex-start}
.pinky-ico{flex:none;margin-top:2px;color:var(--love-ink)}
.pinky-name{margin:0;font-size:1rem;line-height:1.4;color:var(--love-ink)}
.pinky-sub{margin:2px 0 0;color:var(--ink-2)}
.pinky-state{margin:12px 0 0}
.pinky-note{margin:8px 0 0;font-size:.9rem;color:var(--ink-2)}
.pinky-safety{margin:12px 0 0;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--love) 25%,transparent);font-size:.92rem;color:var(--ink)}
.pinky-safety a{color:var(--love-ink);font-weight:600}
/* Pinky Plans space (/pinky/:id): cream and brand green only. Love red stays at the unlock moment, never in here. */
.pk-head{display:flex;gap:12px;align-items:center;margin:4px 0 12px}
.pk-head .pinky-ico{color:var(--brand);flex:none}
.pk-title{margin:0;font-size:1.3rem}
.pk-head .muted{margin:2px 0 0}
.pk-sec{margin:20px 0;padding-top:16px;border-top:1px solid var(--line)}
.pk-sec h2{margin:0 0 10px;font-size:1.05rem}
.pk-plan p{margin:4px 0}
.pk-place{font-weight:600}
.pk-confirmed{color:var(--brand-strong,var(--brand));font-weight:700}
.pk-note{margin-top:12px}
.pk-ideas{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pk-idea{padding:12px 14px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line)}
.pk-idea b{display:block}
.pk-idea p{margin:6px 0 8px}
.pk-idea .btn{min-height:44px}
.pk-sec .pinky-safety{border-top-color:var(--line)}
.pk-sec .pinky-safety a{color:var(--brand)}
.pk-out form{margin:8px 0}
.pk-tag{text-decoration:none}
.pk-safety-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.pk-block{flex:1 1 220px}
.pk-block summary{list-style:none;display:inline-flex}
.pk-block summary::-webkit-details-marker{display:none}
.pk-block form{margin-top:8px}
.pinky-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.pinky-actions form{margin:0}
.pinky .btn{min-height:44px}
.pinky .btn.pinky-btn{background:var(--love-ink);border-color:var(--love-ink);color:var(--surface)}
.pinky .btn.pinky-btn:hover{background:color-mix(in srgb,var(--love-ink) 88%,var(--ink))}
.pinky .btn:focus-visible{outline:3px solid var(--love-ink);outline-offset:2px}
/* Email code sign-in: the "sign in with a code" button under the password form spans the card's width
   and wraps on a 320px screen; the code step's resend row and the linked-email card stack cleanly. */
input[type=email],input[type=tel]{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--surface-2);border-radius:14px;padding:10px 12px;min-height:48px}
.code-signin{margin:16px 0}
.code-signin .btn{width:100%;white-space:normal;text-align:center}
.code-resend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0 16px}
.code-resend p{margin:0}
.email-linked{display:grid;gap:4px;margin:0 0 12px}
.reminder-note{display:block;margin-top:4px;color:var(--ink-2)}
/* Social links (mutual connections only): each link is a 48px row with a plain icon, the network's
   name small above the handle, and long handles wrap instead of pushing the page sideways. */
.plinks ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.plinks h2.eyebrow{margin:0 0 8px;font-size:.8rem}
a.plink{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 12px;border-radius:12px;background:var(--surface-2);color:var(--ink);text-decoration:none}
a.plink:hover{background:color-mix(in srgb,var(--surface-2) 80%,var(--ink) 6%)}
a.plink:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
a.plink>span[aria-hidden]{flex:0 0 24px;text-align:center}
.plink-text{display:grid;min-width:0;line-height:1.3}
.plink-text small{color:var(--ink-2);font-weight:400;font-size:.8rem}
.plink-text bdi{font-weight:600;overflow-wrap:anywhere}
.plinks-sheet{display:grid;gap:4px}
.plinks-sheet a.plink{background:none}
.plinks-sheet a.plink:hover{background:var(--surface-2)}
.pf-links{display:grid;gap:0 16px}
@media (min-width:1024px){.pf-links{grid-template-columns:1fr 1fr}}
/* Logo wave and drag (logo-wave.ts): the hand turns about its wrist, and a touch drag moves the
   logo instead of the page, except with reduced motion, where the logo is a plain link. */
.brand-mark .jg-hand{transform-box:view-box;transform-origin:37px 51px}
.topbar .brand,.fd-logo{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
@media (prefers-reduced-motion:reduce){.topbar .brand,.fd-logo{touch-action:auto}}
html.a11y-motion .topbar .brand,html.a11y-motion .fd-logo{touch-action:auto}
/* ---- Less boxy (owner decisions, 2026-10-16) ---- */
/* 1. Grouped lists: repeated items are rows inside ONE rounded group, split by 1px hairlines that start
   after the avatar or icon (--glist-inset), like a phone's settings list. No overflow:hidden, so a ⋯
   popover inside a row is never clipped. */
.glist{list-style:none;margin:12px 0 16px;padding:0;display:block;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.glist>*{position:relative;margin:0}
.glist>*+*::before{content:"";position:absolute;top:0;left:var(--glist-inset,16px);right:0;height:1px;background:var(--line);pointer-events:none}
/* Row links fill their row; a tinted or hovered row keeps the group's rounded corners. */
.glist>:first-child,.glist>:first-child>a{border-top-left-radius:15px;border-top-right-radius:15px}
.glist>:last-child,.glist>:last-child>a{border-bottom-left-radius:15px;border-bottom-right-radius:15px}
/* My people: avatar | name | Chat and ⋯ on the first line, the last-met line under the name (under the
   buttons too on phones). The inner wrappers step aside so every part shares one grid. */
.glist.people-list{--glist-inset:76px}
.person-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"av name acts" "av met met";column-gap:12px;align-items:center;padding:10px 12px 10px 16px}
.person-row>.pc-row,.person-row .pc-main{display:contents}
.person-row .pc-av,.person-row .pc-row>.avstack{grid-area:av;align-self:center}
.person-row h2.pc-name{grid-area:name;margin:0;font-size:1.06rem;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.person-row .pc-met{grid-area:met;margin:2px 0 0}
.person-row .pc-met:empty{display:none}
/* The 44px buttons reach 6px into the row padding, so the name line is not 44px tall on its own. */
.person-row .pc-acts{grid-area:acts;display:flex;align-items:center;gap:8px;margin:-6px 0}
.person-row .pc-met{font-size:.88rem;line-height:1.5}
.person-row .pc-acts .btn{min-height:44px;margin:0;padding:8px 14px}
@media (min-width:640px){.person-row{grid-template-areas:"av name acts" "av met acts"}}
/* Chats: the same group; the unread tint and "New" label stay on the row (status, never colour alone). */
.glist.chat-list{display:block;--glist-inset:66px}
.glist.chat-list a{border:0;border-radius:0;background:none;min-height:56px}
.glist.chat-list a.unread{background:color-mix(in srgb,var(--brand) 9%,var(--surface))}
/* Notifications: one group per day. */
.glist.notif-page{display:block;margin-top:8px}
.glist.notif-page a,.glist.notif-page div{border:0;border-radius:0;background:none;min-height:44px;padding:12px 16px}
.glist.notif-page li.unread a,.glist.notif-page li.unread div{background:color-mix(in srgb,var(--brand) 9%,var(--surface))}
/* My events: upcoming tables as rows too; past rows get the inset hairline after the date. */
.glist.up-rows{--glist-inset:82px}
.up-row{padding:12px 16px}
.up-row .row{margin:8px 0 0}
.up-row .row:empty{display:none}
.glist.past-rows{--glist-inset:66px}
.past-row+.past-row{border-top:0}
/* Me: the quick switches sit in one group; each switch is a plain row inside it. */
.glist.quick-list{margin:0}
.quick-list>*{margin:0}
.quick-list .qs{border-radius:0;background:none;box-shadow:none;min-height:56px;padding:10px 16px}
.quick-list>:first-child .qs{border-top-left-radius:15px;border-top-right-radius:15px}
.quick-list>:last-child .qs{border-bottom-left-radius:15px;border-bottom-right-radius:15px}
.quick-list .qs-consent{margin:0 12px 12px}
/* 2. Open sections: a section that is only read sits straight on the page under its heading, with a
   thin line above it and 24px either side. Cards stay only for things you act on (next table, pass,
   RSVP, flows, forms, the 💘 consent, sheets). */
.open-sec{margin:24px 0;padding:24px 0 0;border-top:1px solid var(--line);background:none;border-radius:0;box-shadow:none}
.open-sec>:first-child{margin-top:0}
.open-sec>:last-child{margin-bottom:0}
.open-sec>h2{margin-bottom:8px}
@media (min-width:1024px){.open-sec{margin:32px 0;padding-top:32px}}
/* Event page: Details, the event buddy and the Regular Table follow the header as open sections. */
.open-sec.table-box .btn{margin-top:4px}
/* Me: each titled section (type, things I love, settings) starts with a thin line; the type link is a
   plain row, and the numbers sit open in one row with a line between them. */
main .me .sec-head{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
main .me-type>a.teaser{padding:8px 0;background:none;border:0;border-radius:0;box-shadow:none}
main .me-type>a.teaser:hover{background:none}
main .me-stats{margin:16px 0}
.me-stat b{font-size:1.5rem}
/* A person's profile: "Together", "Where you've met" and their links follow the profile's own open sections. */
.pc+.open-sec{margin-top:0}
.open-sec.together .eyebrow{display:block;margin-bottom:4px}
/* 3. No boxes inside boxes. Fact tiles are plain icon and text rows (no tile), still two columns on
   phones, a lone fact across the row; the icon hangs in its own 24px column. */
.fact-tiles{gap:12px 16px}
.fact-tile{position:relative;padding:0 0 0 28px;border-radius:0;background:none}
.fact-tile .ft-i{position:absolute;left:0;top:0;width:24px;margin:0;text-align:center}
.fact-tile dt{color:var(--ink-2)}
/* Icebreakers: a simple list, a thin line between questions instead of a pill each. */
.ice-list{gap:0}
.ice-list li{padding:8px 0;border-radius:0;background:none}
.ice-list li+li{border-top:1px solid var(--line)}
/* Info notes: one quiet line with an icon, no tinted box. Ok, warn and error keep their colour (status). */
.notice.info{display:flex;align-items:flex-start;gap:8px;padding:0;border-radius:0;background:none;color:var(--ink-2)}
.notice-ico{flex:none;width:20px;text-align:center}
.notice-text{min-width:0}
.safe-line{padding:0;border-radius:0;background:none;color:var(--ink-2)}
/* Event details: the quick facts are a plain line of icon and text, and "All details" is a row between lines. */
.open-sec .chips2{gap:4px 16px}
.open-sec .chips2 span{padding:0;border-radius:0;background:none;font-size:.9rem;font-weight:600;color:var(--ink-2)}
main .open-sec details.how{margin:8px 0 0;padding:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
/* Me: the "from N events" breakdown under a number is plain small text, not a pill. */
main .me-stat-sub{padding:0;background:none;font-weight:600}
/* 4. Flat surfaces: the cards that remain have no drop shadow, a 1px soft line and 16px corners.
   Floating layers (sheets, popovers, the tab bar, the sticky RSVP bar, map chips) keep their shadow. */
:root{--radius:16px}
.card,.card.hero,.ticket,.rail a,.place-card,.tile2,.answer span,.chat-photo,.chat-poll{box-shadow:none}
.card{border:1px solid var(--line)}
.ticket,.place-card,.tile2,.chat-poll{border-radius:16px}
.card.ev-sheet{border-radius:16px}
/* The live pass keeps its ring (status), without the shadow under it. */
.ticket.is-live{box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 45%,transparent)}
@keyframes live-glow{50%{box-shadow:0 0 0 9px color-mix(in srgb,var(--brand) 16%,transparent)}}

/* A card's first heading starts at the card's padding (My registration had about 50px of empty space above it). */
.card>:is(h2,h3):first-child{margin-top:0}
/* "All details" closing an open section needs no line of its own: the next section's line follows. */
main .open-sec>details.how:last-child{border-bottom:0}
/* Privacy notice, Terms, How we keep you safe, consent centre: open sections on a flat page,
   hairlines between rows instead of cards, a readable line length, 44px link rows. */
.policy{max-width:68ch}
.policy h2{margin:32px 0 8px;font-size:1.15rem}
.policy ul{padding-left:20px;margin:0 0 12px}
.policy li{margin:0 0 8px}
.policy ul.policy-rows{list-style:none;padding:0;border-top:1px solid var(--line)}
.policy-rows li{display:grid;gap:2px;margin:0;padding:12px 0;border-bottom:1px solid var(--line)}
.policy-rows small{color:var(--ink-2)}
.policy-rows code{font-size:.9rem;overflow-wrap:anywhere}
.policy-links{display:flex;flex-wrap:wrap;gap:0 16px;margin:12px 0}
.policy-links a{display:inline-flex;align-items:center;min-height:44px}
.policy-contact{font-weight:600}
.safe-how section{padding:12px 0;border-bottom:1px solid var(--line)}
.safe-how section h2{margin:0 0 4px}
.safe-how section p{margin:0}
.consent-centre form{display:grid;gap:0;margin:0 0 16px}
.consent-centre form>.toggle{margin:0;padding:12px 0;border-bottom:1px solid var(--line)}
.consent-centre form>.btn{margin-top:16px;justify-self:start}
.consent-row small a{display:inline-flex;align-items:center;min-height:44px}
/* A toggle's checkbox kept shrinking beside a long two-line hint: it now keeps its 22px. */
.toggle input[type=checkbox]{flex:0 0 22px}
/* The Terms box at sign-up: the box, then two 44px links that open the Terms and the notice in a sheet
   (the form stays as typed). In the sheet the page's own big heading is dropped: the sheet has its title. */
.terms-agree{margin:12px 0}
.terms-agree .toggle{margin:0}
.terms-read{display:flex;flex-wrap:wrap;gap:0 16px;padding-left:32px}
.terms-read summary.terms-open{display:inline-flex;align-items:center;min-height:44px;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.terms-sheet .sheet-body .policy>h1{display:none}
.terms-sheet .sheet-body .policy{padding:0 4px}
@media (min-width:1024px){details.terms-sheet[open]>.sheet-panel{width:min(640px,calc(100vw - 32px));max-width:none}}
/* Onboarding: what the app needs to run is a plain list, not boxes to tick. */
.needed-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:8px}
.needed-list li{display:flex;gap:10px;align-items:flex-start}
.needed-list small{display:block;color:var(--ink-2)}
/* Consent centre: three parts, with plain rows for what isn't a switch; what switching off does sits under each switch. */
.consent-centre h2{margin:24px 0 8px;font-size:1.1rem}
.consent-list{list-style:none;margin:0 0 16px;padding:0;border-top:1px solid var(--line)}
.consent-list li{display:grid;gap:2px;padding:12px 0;border-bottom:1px solid var(--line)}
.consent-list small{color:var(--ink-2)}
.consent-centre form>.consent-row{margin:0;padding:12px 0;border-bottom:1px solid var(--line)}
.consent-centre .consent-then{color:var(--ink)}
/* Me: the updated Terms card, one button that may wrap on a phone. */
.me-terms .btn{white-space:normal;min-height:44px}
/* 💘 row in the settings list (owner card): no box around it; the love-red switch plus a small "On" tag mark it. */
.qs-on{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:var(--love-soft);color:var(--love-ink);font-size:.78rem;font-weight:700;vertical-align:middle;white-space:nowrap}
/* Event page status strip (owner card, 2026-10-17): one line under the title, my status and the one next action, between hairlines. */
.ev-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:8px 0 12px;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ev-strip-text{display:flex;flex-direction:column;justify-content:center;min-height:44px;margin:0;min-width:0;flex:1 1 auto}
.ev-strip-text b{font-weight:800;color:var(--ink)}
.ev-strip-text small{color:var(--ink-2);font-size:.85rem}
.ev-strip.is-ok .ev-strip-text b{color:var(--brand)}
.ev-strip .btn{flex:none;min-height:44px;margin:0}
/* My events: past events older than three months fold into one row between hairlines that opens in place. */
main details.how.past-older{margin:16px 0 0;padding:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
main details.how.past-older>summary{font-weight:700;color:var(--brand);cursor:pointer}
main details.how.past-older[open]{padding-bottom:16px}
/* Chats list: a person's photo or coloured initial in the same 40px slot as the emoji; no ring, it sits on a plain row. */
.chat-list .chat-av{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;display:inline-grid;place-items:center}
.chat-list .chat-av .av{border:0;box-shadow:none}
/* Laptop event page (owner card, 2026-10-17): details left, a sticky rail right on an 8/4-like split with a 48px gutter.
   The strip and the day-of controls show once per screen size; in the rail the strip carries the one action, so the
   card below drops the same button (pass, the plain RSVP button, accept). */
@media (max-width:1023.98px){.ev-lap{display:none}}
@media (min-width:1024px){
  main.wrap:has(.ev-layout){max-width:1180px}
  .ev-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;align-items:start}
  .ev-main{min-width:0}
  .ev-phone{display:none}
  .ev-rail{position:sticky;top:96px;display:grid;gap:16px;max-height:calc(100vh - 112px);overflow-y:auto;padding:4px;margin:-4px}
  .ev-rail>*{margin:0}
  .ev-rail .ev-strip{margin:0}
  .ev-rail .ev-strip:not(:has(.btn)){display:none}
  .ev-rail .ev-strip~.ev-reg .reg-pass,.ev-rail .ev-strip:has(button[form=rsvp])~.ev-reg #rsvp .btn-ticket,.ev-rail .ev-strip:has(button[form=offer])~.ev-reg #offer button[value=accept]{display:none}
  #sticky-rsvp{display:none}
  body:has(#sticky-rsvp) main.wrap{padding-bottom:56px}
}
/* My people, owner card 5: new messages first, at most three rows of the Chats list, then one 44px link to Chats. */
.people-new{margin:8px 0 24px}
.people-new>h2{margin:0 0 8px}
.people-new .chat-list{margin:0}
.people-new .chat-list a>b.unread-badge{min-width:24px;height:24px}
.people-new-all{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-weight:700}
/* My profile: the Answer-prompts nudge gets its own full-width row under the header (it used to overlap the district line). */
.pc-invite{display:grid}
/* The nudge button may wrap rather than run off a narrow phone. */
.pc-invite .btn,.pc-empty .btn{white-space:normal;min-height:44px;margin:0}
/* The jump bar already draws a line under itself: the section right after it doesn't draw a second one. */
.pc-jump+.pc-sec,.pc-jump+.pc-card{border-top:0;padding-top:0}
/* A nearly empty profile: one quiet line, then the button, 12px apart. */
.pc-empty{display:grid;gap:12px;justify-items:start}
/* The empty-state line keeps the page's reading measure. */
.pc-empty p{margin:0;max-width:40ch}
/* Thai type: no letter-spacing on Thai text. The tracking set for Latin on buttons, headings, labels, day names and profile answers is dropped in Thai mode (the a11y spacing modes keep theirs). */
html:lang(th):not(.a11y-readable):not(.a11y-spacing) :is(.btn,h1,h2,h3,.me-hi,.me-stat b,.sub-label,.me-group,.ev-date small,.past-day small,.pc-a,.pc-id h1,.tile2.hero .hero-title,.stamps li){letter-spacing:0}
/* Thai type: headings get a taller line so stacked vowels and tone marks on a second line don't touch the line above. */
html:lang(th) :is(h1,h2,.me-hi,.tile2.hero .hero-title,.tile2-body h1){line-height:1.3}
/* Thai type: small labels and pills had a line-height near 1, too tight for marks above and below the line. */
html:lang(th) :is(.seg a,.ev-date small,.past-day,.past-day small,.unread-badge){line-height:1.3}
/* Thai type: chips, place-card titles, type names and stat labels get the same 1.4 as other short Thai text. */
html:lang(th) :is(.pc-chip,.place-card strong,.type-pick small,.me-stat small){line-height:1.4}
/* Day names on date badges ("Sat") stay in sentence case with no tracking: no all-caps labels. */
.ev-date small,.ev-card .ev-date small{text-transform:none;letter-spacing:0}
/* Big-number labels and fact labels: sentence case, no tracking, like every other label. */
.big-l,.fact small{text-transform:none;letter-spacing:0}
/* Legends lose the browser's 2px side padding, so "วันเกิด" lines up with the other field labels. */
fieldset legend{padding-inline:0}
/* Buddy deck (owner, 2026-10-17: no swiping): an open section you read top to bottom, a small initial beside
   the name, their own words first, then what you share, then two real 44px buttons below. Flat, no drag. */
.deck-card{margin:16px 0 0;padding:0 0 16px;border-bottom:1px solid var(--line)}
.deck-head{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.deck-init{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--ink);font-family:var(--display);font-size:1.25rem;line-height:1}
.deck-head h2{margin:0;font-size:1.4rem;line-height:1.2}
.deck-quote{margin:0 0 16px}
.deck-quote figcaption{color:var(--ink-2);font-size:.95rem}
.deck-quote blockquote{margin:4px 0 0;padding:0 0 0 12px;border-left:3px solid var(--brand);font-size:1.15rem;line-height:1.45;color:var(--ink)}
.deck-h{margin:0 0 4px;font-size:.95rem;font-weight:700;color:var(--ink-2)}
.deck-card .chips2{margin:0 0 12px}
.deck-type{margin:0;color:var(--ink-2)}
.deck-acts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 8px;max-width:560px}
.deck-card{max-width:560px}
.deck-acts form{margin:0}
.deck-acts .btn{width:100%;min-height:44px;white-space:normal}
@media (max-width:359px){.deck-acts{grid-template-columns:1fr}}
/* Discover (owner, 2026-10-17): popular picks, then the top 10 this week as plain numbered rows, then the filters and the rest. */
.disc-picks,.disc-top{margin:16px 0 24px}
.disc-picks h2,.disc-top h2,.disc-more-h{margin:0 0 8px;font-size:1.2rem}
.disc-picks{display:grid;gap:12px}
.disc-picks>h2{grid-column:1/-1}
.disc-picks .ev-card{margin:0}
@media (min-width:900px){.disc-picks{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}}
.top-week{list-style:none;counter-reset:tw;margin:0;padding:0;border-top:1px solid var(--line)}
.top-week li{counter-increment:tw;border-bottom:1px solid var(--line)}
.top-week a{display:grid;grid-template-columns:2em 1fr;column-gap:8px;align-items:baseline;min-height:44px;padding:10px 0;color:var(--ink);text-decoration:none}
.top-week a::before{content:counter(tw);grid-row:1/3;font-family:var(--display);font-size:1.15rem;color:var(--ink-2);text-align:right}
.top-week .tw-title{font-weight:700;line-height:1.35}
.top-week small{grid-column:2;color:var(--ink-2)}
.top-week a:hover .tw-title{text-decoration:underline}
.top-week a:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (min-width:900px){.top-week{columns:2;column-gap:32px;border-top:0}.top-week li{break-inside:avoid}}
.discover-list>.disc-more-h{grid-column:1/-1;margin:0}
/* Unread on the bell and the My people tab is a small dot, not a number (owner, 2026-10-17). The count stays
   in the accessible name. A filled 10px circle with a ring: a shape, not colour alone. */
.unread-dot,.unread-dot.notif-dot,.unread-dot.tab-badge{display:block;width:10px;height:10px;min-width:0;padding:0;border-radius:50%;background:var(--brand);font-size:0;line-height:0;box-shadow:0 0 0 2px var(--surface)}
.notif .unread-dot.notif-dot{position:absolute;top:9px;right:9px}
.tabbar .unread-dot.tab-badge{position:absolute;top:6px;left:calc(50% + 8px)}
.top-nav .unread-dot.tab-badge{display:inline-block;position:static;margin-left:6px;vertical-align:middle}
@media (forced-colors:active){.unread-dot{background:CanvasText;box-shadow:none}}
/* Host announcements (owner, 2026-10-17): an open section between hairlines at the top of the event page and on the pass; each one says its kind in words with a drawn icon, never colour alone. */
.ann{margin:8px 0 16px;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ann-h{font-size:1rem;margin:4px 0 4px}
.ann-list{list-style:none;margin:0;padding:0}
.ann-item{padding:10px 0;border-top:1px solid var(--line)}
.ann-list>.ann-item:first-child{border-top:0}
.ann-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;color:var(--ink-2);font-size:.9rem}
.ann-meta b{color:var(--ink)}
.ann-meta .fact-ico{width:18px;height:18px;color:var(--ink-2)}
.ann-fact{margin:4px 0 0;font-weight:700;color:var(--ink)}
.ann-addr{font-weight:400;color:var(--ink-2)}
.ann-fact a{display:inline-flex;align-items:center;min-height:44px}
.ann-body{margin:4px 0 0;color:var(--ink);overflow-wrap:anywhere;white-space:pre-line}
main .ann details.ann-older,main details.ann-host{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
main details.ann-host{margin-top:8px;border-top:1px solid var(--line)}
.ann-older>summary{display:flex;align-items:center;min-height:44px;font-weight:700;color:var(--brand);cursor:pointer}
.ann-pass{margin-top:0}
/* Right under the status strip, its hairline is the strip's: no second line. */
.ev-strip+.ann{margin-top:-12px;border-top:0}
/* The composer: kinds as full-width 44px rows; the time and venue fields show only for their kind, the cancel tick only for Cancelled. */
.ann-compose{margin:16px 0}
.ann-kinds{display:grid;gap:0;margin:0 0 12px;padding:0;border:0}
.ann-kind{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0;border-top:1px solid var(--line);cursor:pointer}
.ann-kind:last-of-type{border-bottom:1px solid var(--line)}
.ann-kind input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--brand)}
.ann-kind span{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;font-weight:700}
.ann-kind small{flex-basis:100%;font-weight:400;color:var(--ink-2)}
.ann-form .ann-time,.ann-form .ann-venue,.ann-form .ann-confirm{display:none}
.ann-form:has(input[name=kind][value=time]:checked) .ann-time,.ann-form:has(input[name=kind][value=venue]:checked) .ann-venue{display:block}
.ann-form:has(input[name=kind][value=cancelled]:checked) .ann-confirm{display:flex}
.ann-confirm{align-items:center;gap:10px;min-height:44px;margin:0 0 12px;font-weight:700}
.ann-confirm input{width:20px;height:20px;flex:none}
.ann-form{max-width:640px}
.ann-form textarea{width:100%}
details.ann-host>summary{display:flex;align-items:center;gap:6px;min-height:44px;font-weight:700;color:var(--brand);cursor:pointer}
details.ann-host .ann-form{padding-top:4px}
/* Profile view, dropdowns and trim (owner, 2026-10-18). The glance strip: one line of emoji facts in plain text, no boxes, wrapping naturally; the dot between items is silent. */
.pc-glance{margin:-8px 0 0;padding:0;list-style:none;color:var(--ink);font-size:1rem;line-height:1.7}
.pc-glance li{display:inline-block;max-width:100%}
.pc-glance li:not(:last-child)::after{content:"·";content:"·" / "";margin:0 8px;color:var(--ink-3)}
.pc-glance span[aria-hidden]{margin-right:2px}
/* Sections below the top fold into native details: a hairline above, the heading as a 44px row with a chevron. Folds in a row sit together like a list. */
details.pc-fold{margin:0;padding:0;border:0;border-top:1px solid var(--line);background:none;border-radius:0;box-shadow:none}
.pc>.pc-fold+.pc-fold{margin-top:-24px}
/* Together sits under the card: joined to the list when the card ends on a dropdown, a normal gap otherwise. */
main .pc+details.pc-fold{margin-top:-16px}
main .pc:has(>.pc-fold:last-child)+details.pc-fold{margin-top:-40px}
.pc-fold.pc-dating{border-top-color:color-mix(in srgb,var(--love) 45%,var(--line))}
main .pc-fold>summary{display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 0;cursor:pointer;list-style:none;color:var(--ink)}
.pc-fold>summary::-webkit-details-marker{display:none}
.pc-fold>summary::after{content:"";flex:none;margin:0 6px 4px auto;width:8px;height:8px;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg)}
.pc-fold[open]>summary::after{transform:rotate(-135deg);margin:4px 6px 0 auto}
.pc .pc-fold-h,.pc-fold-h{margin:0;font-size:1rem;font-weight:700;color:var(--ink);line-height:1.35}
.pc-fold.pc-dating .pc-fold-h{color:var(--love-ink)}
.pc-fold-body{display:grid;gap:16px;padding:4px 0 20px}
.pc-fold-body>.pc-card:first-child{border-top:0;padding-top:0}
.pc-fold-body .pc-lock{margin:0}
.pc-fold-body p{margin:0}
.pc-fold-body h3{margin:0 0 8px;font-size:.92rem;color:var(--ink-2)}
.pc-fold>summary:focus-visible,.pc-more-chips>summary:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:8px}
/* Compact emoji rows; a short label only where the value needs one. */
.pc-rows{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.pc-rows li{display:flex;gap:10px;align-items:baseline;line-height:1.45}
.pc-rows li>span[aria-hidden]{flex:none;min-width:1.6em;text-align:center;white-space:nowrap}
.pc-k{color:var(--ink-2)}
.pc-sep{color:var(--ink-2)}
/* Interests past the first six: a "+N" that opens the rest. */
details.pc-more-chips{margin:8px 0 0;padding:0;border:0;background:none;border-radius:0}
main .pc-more-chips>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);color:var(--ink);font-weight:700;cursor:pointer;list-style:none}
.pc-more-chips>summary::-webkit-details-marker{display:none}
.pc-more-chips[open]>summary{margin-bottom:8px}
/* ---- Edit profile ergonomics (2026-10-18) ---- */
/* Jump links, #prompt anchors and focused fields land below the sticky header and jump bar, and clear of the save bar. */
html:has(main .pf-jump){scroll-padding-top:calc(129px + env(safe-area-inset-top,0px));scroll-padding-bottom:96px}
html:has(main .pf-jump) .pf-section{scroll-margin-top:0}
@media (min-width:1024px){html:has(main .pf-jump){scroll-padding-top:148px;scroll-padding-bottom:88px}}
/* Phones: while typing, the save bar goes back to the end of the form so it never floats over the field or rides the keyboard. */
@media (max-width:1023.98px) and (hover:none){main form[data-guard]:has(:is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden]),textarea):focus) .pf-save{position:static}}
/* Switch rows are full 44px targets. */
main form[data-guard] .toggle{min-height:44px;align-items:center}
/* Errors that belong to a group sit at its top; the red ring is for single fields only. */
.pf-err{margin:0 0 8px}
.pf-comm .pf-err{grid-column:1/-1}
fieldset[aria-invalid="true"]{box-shadow:none}
/* Photo pickers: the picked photo shows in place; undo is a full-size target. */
.pf-undo{min-height:44px;align-self:flex-start;padding-inline:0}
.pf-photo .pf-preview:empty{display:none}
.pf-preview{flex:none}
.pf-files-lost{display:block;font-weight:400}
/* ---- Edit profile one section at a time (owner cards, 2026-10-18) ---- */
/* No jump bar any more: anchors and focused fields land just under the sticky header. */
html:has(main .pe-forms){scroll-padding-top:calc(72px + env(safe-area-inset-top,0px));scroll-padding-bottom:24px}
main .pe-forms .pf-section,main .pe-row{scroll-margin-top:0}
@media (min-width:1024px){html:has(main .pe-forms){scroll-padding-top:88px}}
/* Each section's own Save, with the tick beside it. */
.pe-form{margin:0}
.pe-save{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:16px 0 0}
.pe-save .btn{min-width:132px}
.pe-tick{color:var(--brand);font-weight:700}
.pe-tick:empty{display:none}
.pe-form-err{margin:0 0 12px}
/* "More (optional)": each section a flat 52px row with how much is filled in, opening in place. */
.pe-more{margin:40px 0 24px}
.pe-more>h2{margin:0 0 8px;font-size:1.15rem}
main details.pe-row{margin:0;padding:0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
main details.pe-row:last-child{border-bottom:1px solid var(--line)}
main .pe-row>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:4px 0;cursor:pointer;list-style:none;color:var(--ink);font-weight:700}
.pe-row>summary::-webkit-details-marker{display:none}
.pe-row>summary::after{content:"";flex:none;margin:0 6px 4px 0;width:8px;height:8px;border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(45deg)}
.pe-row[open]>summary::after{transform:rotate(-135deg);margin:4px 6px 0 0}
.pe-row>summary:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:8px}
.pe-row-e{flex:none;width:28px;text-align:center}
.pe-row-t{flex:1;min-width:0}
.pe-prog{flex:none;font-weight:500;color:var(--ink-2);font-size:.9rem}
.pe-row-body{padding:0 0 24px}
.pe-row-body>p.muted{margin:0 0 12px}
.pe-love>summary .pe-row-t{color:var(--love-ink)}
/* My card: a 44px ✏️ beside each section, a link without JS and an edit sheet with it. */
html.sheet-js .pe-link{display:none}
html:not(.sheet-js) .pe-edit>details.pe-sheet{display:none}
.pe-edit{display:inline-flex;align-items:center;gap:8px;flex:none}
main details.pe-sheet{margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.pe-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:.95rem;line-height:1.2;text-decoration:none;cursor:pointer;list-style:none}
details.pe-sheet>summary.pe-btn::-webkit-details-marker{display:none}
.pe-btn:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.pe-btn:active{transform:scale(.97);transition:transform .1s ease-out}}
.pe-edit .pe-tick{font-size:.9rem}
/* Rows on the card that carry a ✏️: the heading or question first, the ✏️ at the end. */
.pc-name-row,.pc-h-row,.pc-q-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pc-name-row h1{min-width:0}
.pc .pc-h-row{margin:0 0 12px}
.pc .pc-h-row h2,.pc .pc-q-row .pc-q{margin:0}
.pc .pc-q-row{margin:0 0 12px}
/* The photo's ✏️ sits on the avatar's corner. */
.pc-photo-wrap{position:relative;flex:none}
.pc-photo-wrap>.pe-edit{position:absolute;right:-10px;bottom:-10px}
.pc-photo-wrap .pe-btn{box-shadow:0 2px 8px rgba(0,0,0,.12)}
.pc-photo-wrap .pe-tick{position:absolute;left:0;top:calc(100% + 4px);white-space:nowrap}
/* The sections without a spot of their own: quiet chips under the glance line. */
.pe-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-8px 0 0}
.pe-chip .pe-btn{padding:0 14px 0 12px;font-weight:500;color:var(--ink-2)}
/* Edit sheets: wider on laptops; the Save stays in reach at the bottom of the panel. */
@media (min-width:1024px){details.pe-sheet[open]>.sheet-panel{width:min(460px,calc(100vw - 32px));max-width:none}}
.pe-sheet .sheet-body{display:block}
.pe-sheet .pe-save{position:sticky;bottom:-16px;z-index:2;margin:16px -16px -16px;padding:12px 16px 16px;background:var(--surface);border-top:1px solid var(--line)}
.pe-sheet .pf-prompt{margin:0;padding:0;border:0;background:none}
.pe-load{min-height:88px}
/* A long edit sheet keeps its title and ✕ in view while it scrolls. */
.pe-sheet .sheet-head{position:sticky;top:-8px;z-index:2;margin:-8px -16px 4px;padding:8px 16px 0;background:var(--surface)}
/* "Edit | How others see it": a two-way switch at the top of the long form, needing JS (without it, "Preview my profile" stays). */
html:not(.sheet-js) .pe-seg{display:none}
html.sheet-js .pe-preview-link{display:none}
.pe-seg{display:flex;gap:4px;margin:0 0 24px;padding:4px;border-radius:999px;background:var(--surface-2);max-width:440px}
.pe-seg button{flex:1 1 0;min-width:0;min-height:44px;padding:4px 12px;border:0;border-radius:999px;background:none;color:var(--ink-2);font:inherit;font-weight:600;line-height:1.25;cursor:pointer}
.pe-seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.pe-seg button:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.pe-preview:focus{outline:none}
.pe-preview[aria-busy="true"]{opacity:.5}
.pe-preview-in>p.muted{margin:0 0 8px}
/* Go-together cards (D45): one quiet line under the card's facts, saying where tickets come from and where the table meets. */
.ev-card .ev-via{margin:4px 0 0;color:var(--ink-2);font-size:.88rem;line-height:1.4}
/* Event page: the show's own time and place, the ticket note, and the online hello (D50). */
.ev-show{margin-top:8px}
.ev-ticket-note{margin:4px 0 0;font-size:.88rem}
.ev-warmup{margin:8px 0;display:flex;gap:8px;align-items:baseline}
.ev-warmup a{display:inline-block;padding:10px 0;line-height:1.4}
/* My events: the calendar link at the foot, a full tap target. */
.me-cal-link{margin:24px 0 8px}
.me-cal-link a{display:inline-flex;align-items:center;gap:8px;min-height:44px}
/* Host inbox: "Via Luma ↗" stays on one line. */
a.nowrap{white-space:nowrap}
/* City Pulse's own place in the top bar (D62): a quiet pill, never a badge. */
.pulse-btn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:4px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--brand);font-weight:700;font-size:.85rem;text-decoration:none;white-space:nowrap}
.pulse-btn:hover{border-color:var(--brand)}
.pulse-btn.on{background:var(--sel);color:var(--sel-ink);border-color:var(--sel)}
.topbar .brand+.proto-chip+.pulse-btn{margin-right:auto}
/* Phones: City Pulse takes the wordmark's room, the logo alone stands for the name (as under 360px before). */
@media (max-width:480px){.topbar:has(.pulse-btn) .brand{font-size:0;gap:0}.topbar:has(.pulse-btn){gap:6px}.pulse-btn{padding:4px 10px;font-size:.8rem}}
/* Under 360px the pill keeps its icon; its name stays for screen readers. */
@media (max-width:359.98px){.pulse-btn{padding:4px 12px}.pulse-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media (min-width:1024px){.pulse-btn{margin-left:4px}.topbar .pulse-btn+.top-nav{margin-left:16px}}
/* Discover: one calm City Pulse line above the page title (D62). */
.cp-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:44px;margin:0 0 8px;color:var(--ink-3);font-size:.9rem;text-decoration:none}
.cp-line b{color:var(--brand)}
.cp-line:hover b{text-decoration:underline}
/* ---- Phones, 2026-10-26 ---- */
/* Top bar fits 360 to 480px with no sideways scroll: the logo alone stands for the name, City Pulse
   keeps its icon (its name stays for screen readers), and every control is 44px wide, 8px apart. */
@media (max-width:480px){
  .topbar:has(.pulse-btn){gap:8px}
  .topbar:has(.pulse-btn) .brand small{display:none}
  .topbar .brand{min-width:44px;justify-content:center}
  .topbar .top-actions{gap:8px}
  .topbar .top-actions>a.chip{min-width:44px;justify-content:center}
}
@media (max-width:420px){
  .pulse-btn{min-width:44px;justify-content:center;padding:4px 12px}
  .pulse-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* Under 360px (320 included) the controls wrap onto a second row instead of pushing the page sideways. */
@media (max-width:359.98px){.topbar{flex-wrap:wrap;row-gap:4px}.topbar .top-actions{margin-left:auto}}
/* Safe areas (viewport-fit=cover): the top bar clears the status bar and notch, the page and the
   floating tab bar clear the side notch in landscape, and the page ends above the tab bar on phones
   with a home indicator. */
.topbar{padding-top:calc(8px + env(safe-area-inset-top,0px))}
@media (min-width:481px){.topbar{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px))}}
@media (max-width:1023.98px){
  main.wrap{padding-left:max(var(--gx,20px),env(safe-area-inset-left,0px));padding-right:max(var(--gx,20px),env(safe-area-inset-right,0px))}
  body:has(.tabbar){padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
}
/* Only below 700px: from 700px the bar is a centred 560px pill (layout.ts), and a left edge here pushed
   it 270px off the left of an 812px landscape phone. */
@media (max-width:699.98px){.tabbar{left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px))}}
/* Focus is never hidden (2.4.11): a control reached with Tab or a link to #anchor stops below the
   sticky top bar and above the tab bar, the sticky action bar or the chat box. Pages that set their
   own (edit profile) keep theirs: these rules carry no extra weight. */
html{scroll-padding-top:calc(72px + env(safe-area-inset-top,0px))}
@media (max-width:1023.98px){
  html:where(:has(body .tabbar)){scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
  html:where(:has(main .flow-bar)){scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  html:where(:has(main :is(.chat-compose,.chat-send))){scroll-padding-bottom:calc(184px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:1024px){html{scroll-padding-top:88px}}
/* Time fields (the "home safe?" time) look and size like every other field: 16px text so iOS does
   not zoom in, a 44px target, and the field colours in dark mode. */
input[type=time]{font:inherit;font-size:16px;color:var(--ink);background:var(--surface-2);border:1.5px solid var(--field-line);border-radius:14px;padding:8px 12px;min-height:44px;max-width:100%}
input[type=time]:focus{background:var(--surface);border-color:var(--brand)}
.safe-arrival label{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* 44px targets: "← back" links, a section's Edit or All types link, Show password, switch rows,
   and links that stand alone on their line. */
a.back-link,main p>a[href="/settings"]:first-child:not(.btn){display:inline-flex;align-items:center;min-height:44px;min-width:44px}
.sec-head>a{min-width:44px;justify-content:flex-end}
.pw-toggle{min-height:44px}
main .toggle{min-height:44px}main .toggle:not(:has(small)){align-items:center}
.cp-sanroo>a:only-child,main p.muted>a[href="/partner/apply"]:only-child{display:inline-flex;align-items:center;min-height:44px}
/* At least 8px between neighbouring targets: chip rows of buttons or links (thank-you starters,
   the host's shortcuts), the language switch on Me, and a link that stands alone above a button. */
.chips2:has(>a,>button){gap:8px}
main .me-lang{gap:8px}
a.solo-link{display:inline-flex;align-items:center;min-height:44px}
p:has(>a.solo-link:only-child){margin-bottom:12px}
/* A short name on a person card (Oil, Joe) is still a 44px-wide target. */
main .pc-name>a{display:inline-block;min-width:44px}
/* Chat: the photo caption and the poll fields have visible labels above them, not only a placeholder. */
.chat-field{display:grid;gap:4px;flex:1 1 100%;font-weight:600;font-size:.94rem}
.chat-field input{font-weight:400}
/* Empty-district alert (owner card 7): under "Suggest an event", secondary and calm. Full tap targets, Thai may wrap. */
.fd-alert{margin:0}
.fd-alert .btn{min-height:44px;white-space:normal;text-align:center}
.fd-alert-on{margin:0;color:var(--ink-2);font-size:.92rem;max-width:36ch;line-height:1.5}
.fd-alert-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:var(--brand);font-size:.92rem;text-align:center}
/* The alert's one-tap off in the notifications list, and the Settings switch's own row. */
.notif-off{margin:0;padding:0 12px 8px}
.notif-off .btn{min-height:44px}
/* My events, nothing booked: "See all events" was a 30px target 4px under the last card (mobile audit). */
.me-all{margin:12px 0 0}
.me-all a{display:inline-flex;align-items:center;min-height:44px}
/* Ticket cards reflow (owner, UI/UX mobile card 8; WCAG 1.4.4 and 1.4.10): the card measures its own
   width in rem, so large text (200% zoom or a big phone text size) counts as narrow too. When it is
   narrow the stub becomes a band on top, date first, and the title gets the full width to wrap
   instead of being cut. The notches give way to a dashed line under the band. */
.card.ev-card{container-type:inline-size}
.ev-card h3{overflow-wrap:break-word}
@container (max-width:17rem){
  .ev-card .event-cover,.ev-card .ev-body{grid-column:1/-1}
  .ev-card .event-cover,.ev-card.feat .event-cover{min-height:0;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:10px;padding:10px 14px}
  .ev-card .ev-date{display:flex;align-items:baseline;gap:6px}
  .ev-card .ev-body,.ev-card.feat .ev-body{padding:12px 14px}
  .ev-card .ev-body::before{left:14px;right:14px;top:0;bottom:auto;border-left:0;border-top:2px dashed color-mix(in srgb,var(--ink-3) 35%,transparent)}
}
.ev-item{container:ev-item/inline-size}
.disc-picks{container:ev-picks/inline-size}
@container ev-item (max-width:17rem){.ev-item>.card.ev-card,.ev-item>.card.ev-card.feat{-webkit-mask:none;mask:none}}
@container ev-picks (max-width:17rem){.disc-picks>.card.ev-card,.disc-picks>.card.ev-card.feat{-webkit-mask:none;mask:none}}
/* The district alert under the list view's filtered empty line, centred like it (owner card 7 follow-up). */
.empty-alert{display:grid;justify-items:center;margin:-12px 0 24px;text-align:center}
/* Event page, phones and tablets (owner cards 2 and 6): one RSVP bar above the tab bar, clear of the raised
   centre button, and no RSVP in the strip under the title. The bar steps aside while a text field has
   focus (here even without JS) and the page keeps room for it, so it never covers a focused control (2.4.11). */
@media (max-width:1023.98px){
  .ev-strip.ev-tab{display:none}
  .sticky-cta.rsvp-bar{left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(112px + env(safe-area-inset-bottom,0px));gap:12px;padding:8px 8px 8px 16px;background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;transition:transform .2s ease,opacity .2s ease,visibility .2s}
  .rsvp-bar .sticky-cta-note{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.25em;flex:1 1 auto;min-width:0;margin:0;line-height:1.35;color:var(--ink-2);font-weight:600}
  .rsvp-bar .sticky-cta-note b{color:var(--ink);font-weight:800}
  .rsvp-bar.is-ok .sticky-cta-note b{color:var(--brand)}
  .rsvp-bar .sticky-cta-note small{flex-basis:100%;font-size:.85rem;font-weight:400}
  .rsvp-bar .btn{flex:none;margin:0}
  body:has(main :is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],[type=submit],[type=button]),textarea):focus) .rsvp-bar{transform:translateY(16px);opacity:0;visibility:hidden;pointer-events:none}
  html:has(#sticky-rsvp){scroll-padding-bottom:calc(200px + env(safe-area-inset-bottom,0px))}
  body:has(#sticky-rsvp) main.wrap{padding-bottom:96px}
}
@media (min-width:1024px){#sticky-rsvp{display:none}body:has(#sticky-rsvp) main.wrap{padding-bottom:56px}}
@media (prefers-reduced-motion:reduce){.sticky-cta,.sticky-cta.rsvp-bar{transition:none}}
/* Event page (owner card 7): with no photo there is no band above the title, so the sheet sits in the page
   like any card; the category emoji leads the line above the title. */
main .card.ev-sheet.ev-flat{margin-top:0;border-radius:var(--radius)}
.ev-sheet .ev-emoji{font-size:1.1em;line-height:1}
/* Host's event form (owner card 3): Cancel and Send in edit profile's save bar, sticky on phones and tablets
   (the tab bar steps aside for it), back in the page while a field is typed in. Focused fields and the
   first error land clear of it (2.4.11). Laptops keep the plain row at the end of the form. */
main .host-send{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px}
main .host-send .btn{width:auto;margin:0}
@media (max-width:1023.98px){
  main .pf-save.host-send{position:sticky;bottom:0;z-index:3;flex-wrap:nowrap}
  main .host-send .btn{flex:1 1 auto}
  main .host-send .btn.ghost{flex:0 1 auto}
  main form.host-form:is(.is-typing,:has(:is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],[type=submit],[type=button]),textarea):focus)) .host-send{position:static}
  html:has(main .host-send){scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:1024px){main .pf-save.host-send{position:static;margin:24px 0 0;padding:0;border:0;background:none;box-shadow:none}}
/* ---- Mobile cards, 2026-10-26 (owner via Main) ---- */
/* Card 1: on member pages the language switch is the first row of the accessibility menu, with a globe. */
.a11y-row.a11y-lang{justify-content:flex-start;color:var(--ink);text-decoration:none;min-height:52px}
.a11y-lang>span:nth-child(2){flex:1;min-width:0}
.a11y-lang-ico{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--brand-soft);color:var(--brand)}
.a11y-lang-ico svg{width:20px;height:20px}
.a11y-lang>b{flex:none;padding:4px 12px;border-radius:999px;border:1px solid var(--line);color:var(--brand);font-weight:700}
.a11y-lang:hover>b{border-color:var(--brand)}
/* Card 1: Prototype is a small tag beside the logo; the tap target around it stays 44px. */
.topbar .proto-chip>summary{min-width:44px;padding:0 2px;background:none;justify-content:center}
.proto-tag{display:inline-block;padding:1px 6px;border-radius:6px;background:var(--info-soft);color:var(--info);font-size:.75rem;font-weight:700;line-height:1.4;white-space:nowrap}
/* Card 1: City Pulse keeps its name beside the icon from 360px. */
@media (min-width:360px) and (max-width:480px){
  .pulse-btn{min-width:44px;padding:4px 10px;font-size:.8rem}
  .pulse-btn span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  .topbar .pulse-btn{padding-inline:8px}
  .topbar .proto-chip>summary{padding:0}
}
/* Card 1: large text (200%) never pushes the page sideways: the top bar wraps onto a second row instead. */
@media (max-width:1023.98px){
  .topbar{flex-wrap:wrap;row-gap:4px}
  .topbar>*{min-width:0;max-width:100%}
  .topbar .top-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
  .topbar .pulse-btn{white-space:normal;text-align:start}
}
/* Discover at 200% text (Website's report): the time tabs wrap inside their own row, each still a 44px target. */
@media (max-width:1023.98px){
  .disc-bar{grid-template-columns:minmax(0,1fr)}
  .disc-bar>*{min-width:0}
  .disc-bar:not(.is-stuck) .seg{flex-wrap:wrap;overflow:visible;border-radius:22px}
  .disc-bar:not(.is-stuck) .seg a{flex:1 1 auto;min-width:44px;overflow-wrap:anywhere}
  .disc-bar:not(.is-stuck) .disc-tools{flex-wrap:wrap}
  .disc-bar:not(.is-stuck) .disc-tools .filters>summary{white-space:normal}
}
/* Card 4: one tap scale from tokens. Primary actions (RSVP, Send, Save, any sticky bar built on .btn.primary) are 48px
   from the class itself, wherever a page squeezes buttons; chips and every other control are at least 44px.
   The :not(#_) only lifts the rule above contextual ".x .btn" squeezes; "Bigger buttons" raises both tokens. */
:root{--tap:44px;--tap-primary:48px}
html.a11y-touch{--tap:56px;--tap-primary:56px}
.btn.primary:not(#_){min-height:var(--tap-primary)}
:is(a,button,label,summary).chip{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap)}
.pill span{min-height:var(--tap)}
/* Card 5: no counts. The bell says "วันนี้ / Today" in words when something urgent is about today's event,
   otherwise a dot; the Chats link on My people has the same dot. The full count is in each accessible name. */
.notif>summary:has(.notif-today){display:inline-flex;align-items:center;gap:4px;padding:0 8px 0 6px}
.notif-today{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font-family:var(--sub);font-size:.75rem;font-weight:800;line-height:1.3;white-space:nowrap}
@media (forced-colors:active){.notif-today{border:1px solid CanvasText}}
a[href="/chat"]>.unread-dot{display:inline-block;margin-left:6px;vertical-align:middle}
/* Card 6: the counts that left Me sit on My month in people, each one a link to its list. */
.month-sofar{margin:24px 0}
.month-sofar h2{margin:0 0 12px}
.month-sofar a.fact{min-height:44px;color:var(--ink);text-decoration:none}
.month-sofar a.fact:hover .big-n{text-decoration:underline;text-underline-offset:3px}
/* Chats: an unread row ends in the card 5 dot, no number; the count is in the row's name for screen readers. */
.chat-list a>.unread-dot.chat-dot{flex:none;align-self:center;margin-left:auto}
/* Me: a small 40px avatar beside the greeting and the line (decorative, the name is beside it). */
.me .me-head{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:12px;align-items:center}
.me .me-head>.me-av{grid-row:1/span 2;align-self:start;margin-top:2px;width:40px;height:40px;border-radius:50%;object-fit:cover;display:inline-grid;place-items:center}
.me .me-head>.me-av .av{border:0;box-shadow:none}
.me .me-head>:not(.me-av){grid-column:2;min-width:0}
/* Tab bar: the label is its own span; it looks as the bare text did (the icon's span rules don't reach it). */
:is(.tabbar,.top-nav) a>span.tab-label{display:block;height:auto;font-size:inherit;line-height:inherit}
.top-nav a>span.tab-label{display:inline}
/* Tab bar above 150% text: icons only. The bar is a container and the query is in rem, which in a container
   query is the page's real root size, so it follows browser text zoom and the app's own text size alike.
   12rem of bar is 288px (a 320px phone) at 150%; at 200% it holds up to a 415px phone. The other labels
   stay as each tab's name, visually hidden; the current tab keeps its label and its column grows to fit. */
.tabbar{container:tabbar/inline-size}
@container tabbar (width < 12rem){
  .tabbar a:not(.on){min-width:44px}
  .tabbar a.on{min-width:min-content}
  .tabbar a.on>span:first-child{min-width:32px}
  .tabbar a:not(.on)>span.tab-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  .tabbar a.on{white-space:normal;padding-inline:6px}
  .tabbar a.on>span.tab-label{text-align:center;line-height:1.15}
}
/* Section headings at large text (owner, 2026-10-26): the gap above an h2 grows with the text size, so at
   200% it passed the spacing cap (40px phones, 56px laptops). It still scales, but never past the cap. */
h2{margin-top:min(1.8rem,56px)}
@media (max-width:520px){h2{margin-top:min(1.5rem,40px)}}
/* Laptop event page, one RSVP (owner card 2, 2026-10-27): with choices to make first, the rail's strip shows the
   price, the spots left and a 44px link down to My registration, whose heading takes the focus. */
@media (min-width:1024px){
  .ev-rail .ev-strip.ev-jump{display:flex}
  .ev-jump .ev-jump-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:700;color:var(--brand);text-underline-offset:3px}
}
.ev-reg>h2[tabindex]:focus{outline:none}
.ev-reg>h2[tabindex]:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:4px}
@media (max-width:520px){h2{margin-top:min(1.5rem,40px)}}
/* Admin: the one clock line under the heading; the whole line is a 44px link down to the clock card. */
.notice.clock-line{display:flex;align-items:center;gap:8px}
.notice.clock-line a{display:inline-flex;align-items:center;flex-wrap:wrap;column-gap:4px;min-height:44px;color:inherit;text-decoration:underline;text-underline-offset:3px}
/* Discover's empty city (owner card 3): the list view gets the map sheet's empty state too, so its base
   look lives here; how a Table works and the forming Regular Tables read left aligned under the actions. */
.fd-empty{display:grid;justify-items:center;gap:12px;padding:16px 8px;text-align:center}
.fd-empty>p{margin:0;color:var(--ink-2);max-width:36ch;line-height:1.5}
.fd-how,.fd-forming{justify-self:stretch;width:100%;max-width:40ch;margin:4px auto 0;text-align:left}
.fd-how h3,.fd-forming h3{margin:0 0 8px;font-size:1rem}
.fd-how ol{margin:0;padding-left:1.4em;display:grid;gap:4px;color:var(--ink-2);line-height:1.5}
.fd-forming ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.fd-forming a{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-decoration:none}
.fd-forming a strong{min-width:0;overflow-wrap:anywhere}
.fd-forming a .muted{font-size:.9rem}
/* Event page, tablets (owner card 6): the RSVP bar lines up with the centred tab bar pill above it. */
@media (min-width:700px) and (max-width:1023.98px){.sticky-cta.rsvp-bar{left:0;right:0;width:min(560px,calc(100% - 40px));max-width:none;margin:0 auto}}
/* Host's event form, folded optional sections (owner card 4): the whole summary is the 44px target, the title over
   one short line of the current values, and the chevron (native.ts) turns to show open or closed. The legend stays for
   screen readers only, since the summary already names the group. */
main .host-form details.host-opt>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:2px;min-height:44px;padding:4px 0;cursor:pointer;border-radius:8px}
main .host-form details.host-opt>summary::after{grid-column:2;grid-row:1 / span 2}
main .host-form details.host-opt>summary:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
main .host-form .host-opt-title{grid-column:1;margin:0;font-weight:700;color:var(--ink)}
main .host-form .host-opt-now{grid-column:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:.9rem;color:var(--ink-2)}
main .host-form details.host-opt[open]>summary .host-opt-now{display:none}
main .host-form details.host-opt[open]>summary{margin-bottom:8px}
main .host-form details.host-opt-sub{margin:16px 0 0;padding:4px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
main .host-form details.host-opt-sub>fieldset{margin:0}
main .host-form details.host-opt>fieldset>legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){main .host-form details.host-opt>summary::after{transition:none}}
/* Tablets (700 to 1023px): the tab bar is a centred pill (layout.ts), but the safe-area rule above reset its left edge and
   kept the -50% shift, so half of it hung off the left of the screen. Centred by margins now, like the RSVP bar above it. */
@media (min-width:700px) and (max-width:1023.98px){body:not(.fullmap-body) .tabbar{left:0;right:0;margin:0 auto;transform:none}}
/* The booking disclaimer tick box: the whole line is a 44px target (2.5.8). */
#rsvp label.check{display:flex;align-items:center;gap:8px;min-height:44px}
/* Small laptops (1024 to 1159px): the header row (wordmark, Prototype, City Pulse, the five menu links, bell and
   accessibility) is about 1117px wide, so the page scrolled sideways (1.4.10). The wordmark folds to the logo here, as it
   does on phones; its name stays for screen readers. */
@media (min-width:1024px) and (max-width:1159.98px){.topbar:has(.top-nav) .brand{font-size:0;gap:0}.topbar:has(.top-nav) .brand small{display:none}.topbar:has(.top-nav){gap:12px}}
/* Wordmarks at large text (1.4.4): the word next to or under the logo folds away when it no longer fits
   its box, as it already does on narrow screens; the link keeps "Jurrgun" as its name. Each box is a
   container and the query is in rem, so the threshold follows browser text zoom and the app's own size.
   At 100% nothing changes (the queries measure inside the bar's side padding): the word shows from a 360px
   screen and the Thai tag from 381px, as before. */
.topbar{container:topbar/inline-size}
@container topbar (width < 21.8rem){.topbar .brand small{display:none}}
@container topbar (width < 21.25rem){.topbar .brand{font-size:0;gap:0}}
.fullmap .fd-logo{container-type:inline-size}
@container (width < 2.8rem){.fullmap .fd-logo small{display:none}}
/* Public pages (no tab bar): the page's bottom padding, the last block's margin and the footer's own
   margin added up to 90 to 110px of empty cream above the footer. The last block now sits within the
   spacing cap of the footer line (40px phones, 56px laptops), and the page ends with the footer instead
   of the tab bar's 104px of room. Pages with the tab bar, or a floating call to action that needs room to scroll clear, keep theirs. */
body:not(.admin,.bare,.fullmap-body):not(:has(.tabbar,.sticky-cta)){padding-bottom:env(safe-area-inset-bottom,0px)}
body:not(.admin,.bare,.fullmap-body):not(:has(.tabbar,.sticky-cta)) main.wrap{padding-bottom:16px}
body:not(.admin,.bare,.fullmap-body):not(:has(.tabbar,.sticky-cta)) main.wrap>:last-child{margin-bottom:0}
body:not(.admin,.bare,.fullmap-body):not(:has(.tabbar,.sticky-cta)) .foot{margin-top:8px}
@media (min-width:1024px){body:not(.admin,.bare,.fullmap-body):not(:has(.tabbar,.sticky-cta)) main.wrap{padding-bottom:24px}body:not(.admin,.bare,.fullmap-body):not(:has(.tabbar,.sticky-cta)) .foot{margin-top:16px}}
/* Room for the tab bar only where there is one: signed-out pages have none, so they end at the footer
   (plus the home indicator's safe area) instead of a band of empty cream. */
body:not(:has(.tabbar)){padding-bottom:env(safe-area-inset-bottom,0px)}
/* Landing hero (owner card 1, 2026-10-27): a bigger display headline that grows from phone to laptop.
   Each phrase is an inline-block: it moves to the next line whole while it fits, and wraps inside
   (instead of running off the tile) at 320px or 200% text. The last phrase gets its own line. */
.tile2.hero .hero-title{font-family:var(--display);font-size:clamp(2.4rem,1.6rem + 2.5vw,3.2rem)}
.hero-title .ph{display:inline-block;max-width:100%}
.hero-title .ph:last-child{display:block}
.tile2.hero .hero-sub{margin:8px 0 0;font-size:1rem;font-weight:600;line-height:1.45}
.tile2.hero .pill2{background:var(--surface);color:var(--ink);text-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.tile2.hero .pill2-dot{background:var(--brand)}
/* Landing card 2: one start. A 48px pill with the arrow in a nested circle; it presses to .97 with no
   bounce, and with reduced motion it doesn't scale at all. */
.btn.start-cta{gap:12px;min-height:48px;padding:6px 6px 6px 22px;border-radius:999px}
.start-cta .start-arrow{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.22);color:inherit;font-weight:800;line-height:1}
/* On a hero tile the button is white, so the circle takes the brand green. */
:is(.tile2.t-brand,.tile2.t-deep,.tile2:has(.tile2-art)) .start-cta .start-arrow{background:var(--brand);color:var(--brand-ink)}
@media (prefers-reduced-motion:reduce){.btn.start-cta:active{transform:none}}
html.a11y-motion .btn.start-cta:active{transform:none}
/* Landing card 3: the three steps, numbered in brand circles; the tile sits at the top, not the bottom. */
.tile2.steps-tile{justify-content:flex-start;gap:8px}
.tile2.steps-tile h2{margin:0;font-size:1.15rem}
.steps3{list-style:none;counter-reset:step;margin:0;padding:0;display:grid;gap:8px}
.steps3 li{counter-increment:step;position:relative;min-height:26px;padding-left:36px;line-height:1.45}
.landing-bento .keep{display:inline-block;max-width:100%}
.steps3 li::before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-weight:800;font-size:.9rem}
/* Landing card 4: flat tiles. One edge per tile and nothing raised inside it: no shadow on the tiles,
   the start button or the avatars. */
.landing-bento .tile2,.landing-bento .tile2 *{box-shadow:none}
/* Landing card 5: three doors, full-width rows with a trailing arrow, flat like the tiles. */
main h2.doors-eyebrow{margin:24px 0 8px}
.doors3{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}
.doors3 .door{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:700}
.doors3 .door:hover{border-color:var(--brand)}
.doors3 .door-label{flex:1;min-width:0}
.doors3 .door-go{color:var(--brand);font-weight:800}
.doors-more{margin:0 0 8px}
.doors-more a{display:inline-flex;align-items:center;min-height:44px}
/* Landing card 6: the BMA is one quiet line under the start, not a chip. */
.tile2.hero p.trust-line{margin:12px 0 0;font-size:.875rem;font-weight:500;line-height:1.45;opacity:.95}
/* Empty states end in one next step (owner, W1): a plain link under the line, a 44px target. */
.empty-next{margin:-4px 0 16px;text-align:center}
.empty-next a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
/* Discover on phones and tablets: open Filters takes the whole row (it was squeezed to about 110px beside Map and Cards); the view switch wraps under it. */
@media (max-width:1023.98px){.disc-bar:not(.is-stuck) .disc-tools .filters[open]{flex-basis:100%}}
/* Profile 1 to 5 scale: each number was 39px wide, under the 44px tap floor. */
.pf-scale .pill>span{min-width:44px;justify-content:center;text-align:center}
/* Me: the three lists of rows fold into tap-to-open groups (owner card B); the heading is the 48px tap target. */
.me-group{margin:0 0 8px}
.me-group>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0;cursor:pointer;list-style:none}
.me-group>summary::-webkit-details-marker{display:none}
.me-group>summary::after{content:"\203A";font-size:1.3rem;line-height:1;transform:rotate(90deg);transition:transform .2s}
.me-group[open]>summary::after{transform:rotate(-90deg)}
@media (prefers-reduced-motion:reduce){.me-group>summary::after{transition:none}}
/* Tab labels a touch bigger for Thai tone marks (owner card F); the centre stays mango. */
.tabbar a,.tabbar a.center{font-size:.78rem;line-height:1.25}
/* In the Jurrgun phone app (the app marks html.in-app): no text selection or long-press callout on the app's chrome, so a held tap doesn't select a tab label or button. Event text, venues, addresses, inputs and chat stay copyable. */
html.in-app :is(.topbar,.tabbar,.top-nav,.btn,.pill,.qs,.me-row,.chip,.sub-label,.disc-tools,.view-switch,summary){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* Me, folded groups: the fold kept the old group-label type (.78rem, bold, faint), so rows inside had 12px titles under 13px subtitles; and an old inline-flex rule left their arrows mid-row. Rows read like the pinned ones now; the summary keeps its .sub-label look. */
.me-group{font-size:inherit;font-weight:inherit;color:inherit;letter-spacing:inherit}
.me-group a.me-row{display:flex}
/* Privacy centre: "Delete account" opens its own confirm step in place (owner card S2). */
main details.delete-account{border:0;padding:0;margin:0;background:none;box-shadow:none}
.delete-account>summary{list-style:none;display:inline-flex;cursor:pointer}
.delete-account>summary::-webkit-details-marker{display:none}
.delete-account[open]>summary{display:none}
@media (hover:none){body{background-attachment:scroll!important}}