:root{--bg:#fff7ed;--ink:#1e293b;--mut:#5b6474;--acc:#c2410c;--accbg:#ffedd5;--card:#fff;--ok:#15803d;--okbg:#dcfce7;--line:#e2e8f0;--bad:#b91c1c}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding:20px 0 150px}
body{margin:0;font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink)}
button{font:inherit;cursor:pointer;color:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
[hidden]{display:none!important}
.wrap{max-width:560px;margin:0 auto;padding:16px 16px 110px}
.msg{text-align:center;padding-top:60px}.msg img{border-radius:16px}.msg h1{font-size:24px;margin:16px 0 8px}.msg p{color:var(--mut)}
.scr{display:none}.scr.on{display:block}
.hero{background:var(--ink);color:#fff;border-radius:20px;padding:22px 18px;text-align:center}
.hero .em{font-size:44px;line-height:1.1}.hero h1{margin:6px 0 4px;font-size:24px}.hero .meta{color:#cbd5e1}
.greet{text-align:center;font-size:22px;margin:22px 0 4px}
label{display:block;font-weight:700;margin:16px 0 6px}
input,select,textarea{width:100%;font:inherit;font-size:17px;padding:12px;border:2px solid #cbd5e1;border-radius:12px;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--acc)}
.choices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}
.ch{border:2px solid #cbd5e1;background:#fff;border-radius:14px;padding:12px 4px;font-size:15px;font-weight:700;min-height:76px}
.ch span{display:block;font-size:26px}.ch[aria-pressed=true]{border-color:var(--acc);background:var(--accbg)}
.cnt{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:14px;padding:10px 14px;margin-top:12px;font-weight:600}
.cnt button{width:48px;height:48px;border-radius:12px;border:0;background:#f1f5f9;font-size:22px;font-weight:800}
.cnt b{font-size:20px;min-width:34px;text-align:center;display:inline-block}
.big{width:100%;margin-top:18px;background:var(--acc);color:#fff;border:0;border-radius:16px;padding:16px;font-size:18px;font-weight:800;min-height:56px}
.big:disabled{opacity:.45;cursor:default}
.big.alt{background:#fff;color:var(--acc);border:2px solid var(--acc)}
.hint{color:var(--mut);font-size:14px;text-align:center;margin-top:8px}
.link{background:none;border:0;color:var(--acc);font-weight:700;text-decoration:underline;padding:8px;min-height:44px}
.center{text-align:center}
.note{background:#fff;border-radius:12px;padding:10px 12px;font-size:14px;color:var(--mut);margin-top:10px}
.err{color:var(--bad);font-size:14px;margin:8px 0 0;min-height:1em}
.done{text-align:center;padding:30px 10px}.done .em{font-size:60px}
/* home */
.top{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.top .em{font-size:32px}.top .tt{min-width:0;flex:1}.top h2{margin:0;font-size:19px;overflow-wrap:anywhere}.top .meta{color:var(--mut);font-size:14px}
.me{background:var(--okbg);color:#14532d;border:0;border-radius:999px;padding:8px 12px;font-weight:700;font-size:13px;min-height:44px;max-width:45%;text-align:left}
.details{background:#fff;border-radius:14px;padding:10px 14px;margin:8px 0;font-size:15px;box-shadow:0 1px 2px #0001}
.details div+div{margin-top:4px}.details .nt{color:var(--mut);white-space:pre-line}
.banner{background:#fef3c7;color:#78350f;border-radius:12px;padding:10px 12px;font-weight:600;margin:8px 0}
.prog{height:8px;background:#fde3cc;border-radius:9px;margin:12px 0 4px;overflow:hidden}.prog i{display:block;height:100%;background:var(--ok);border-radius:9px;width:0}
.pl{font-size:14px;color:var(--mut)}.fresh{font-size:13px;color:var(--mut)}.fresh.off{color:var(--bad)}
.tog{display:flex;align-items:center;gap:10px;margin:10px 0 0;font-weight:600;font-size:15px;min-height:44px}
.tog input{width:22px;height:22px;accent-color:var(--acc);margin:0}
h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);margin:20px 0 8px;display:flex;justify-content:space-between}
.it{background:var(--card);border-radius:14px;padding:10px 10px 10px 14px;margin-bottom:8px;box-shadow:0 1px 2px #0001;border-left:5px solid var(--acc)}
.it.got{border-left-color:var(--ok)}
.it .row{display:flex;align-items:center;gap:10px}
.it .nm{flex:1;font-weight:700;min-width:0;overflow-wrap:anywhere}
.it .st{display:block;font-size:13px;font-weight:700;color:var(--acc)}.it.got .st{color:var(--ok)}
.cl{border:0;border-radius:999px;padding:8px 14px;min-height:44px;font-weight:700;font-size:14px;background:var(--acc);color:#fff;white-space:nowrap}
.got .cl{background:#fff;color:var(--acc);border:2px solid var(--acc)}
.cl.undo{background:#f1f5f9;color:var(--ink);border:0}
.who{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.p{border:0;background:var(--okbg);color:#14532d;border-radius:999px;padding:6px 12px;font-size:14px;min-height:36px;font-weight:600}
button.p:after{content:" ✎";opacity:.6}
.p.flash{background:#fef08a;box-shadow:0 0 0 2px #ca8a04}
.empty{color:var(--mut);text-align:center;padding:10px;font-size:14px}
.ppl{display:flex;flex-wrap:wrap;gap:6px}.pp{background:#fff;border-radius:999px;padding:6px 12px;font-weight:600;font-size:14px;box-shadow:0 1px 2px #0001}.pp.you{background:var(--okbg)}
/* tabs */
.tabs{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;z-index:5;padding-bottom:env(safe-area-inset-bottom)}
.tabs button{flex:1;max-width:140px;border:0;background:none;padding:8px 0 10px;font-size:13px;font-weight:700;color:var(--mut);min-height:62px}
.tabs button span{display:block;font-size:22px}.tabs button[aria-selected=true]{color:var(--acc)}
.tabs button.lock span{opacity:.5}
.pane{display:none}.pane.on{display:block}
/* photos */
.locked{text-align:center;padding:40px 10px;color:var(--mut)}.locked div{font-size:46px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:12px}
.grid button{padding:0;border:0;border-radius:8px;overflow:hidden;aspect-ratio:1;background:#fde3cc;position:relative}
.grid img{width:100%;height:100%;object-fit:cover;display:block}
.grid .mine{position:absolute;left:4px;bottom:4px;background:#000a;color:#fff;font-size:11px;border-radius:6px;padding:1px 5px}
.add{width:100%;background:var(--ink);color:#fff;border:0;border-radius:14px;padding:14px;font-size:17px;font-weight:800;min-height:52px}
.up{font-size:14px;color:var(--mut);margin-top:8px}
/* slideshow */
.show{position:fixed;inset:0;background:#000;display:none;flex-direction:column;z-index:20;color:#fff;touch-action:pan-y}
.show.on{display:flex}
.show .stage{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;position:relative}
.show img{max-width:100%;max-height:100%;object-fit:contain;transition:opacity .4s}
.show .bar{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 10px calc(10px + env(safe-area-inset-bottom))}
.show .bar button{background:#ffffff22;border:0;color:#fff;border-radius:12px;padding:10px 14px;font-weight:800;min-height:48px;min-width:48px}
.show .cap{font-size:14px;color:#ddd;text-align:center;padding:8px}
.show .nav{position:absolute;top:0;bottom:0;width:30%;background:none;border:0}
.show .nav.l{left:0}.show .nav.r{right:0}
/* sheet + toast */
.scrim{position:fixed;inset:0;background:#0006;display:none;align-items:flex-end;justify-content:center;z-index:9}
.scrim.on{display:flex}
.sheet{background:#fff;width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:18px 16px calc(22px + env(safe-area-inset-bottom))}
.sheet h3{margin:0 0 4px;font-size:20px;text-transform:none;letter-spacing:0;color:var(--ink)}
.sheet label{margin:10px 0 4px;font-size:14px}
.two{display:flex;gap:10px}.two>div:first-child{width:110px;flex-shrink:0}.two>div:last-child{flex:1;min-width:0}
.acts{display:flex;gap:10px;margin-top:16px}
.acts button{flex:1;padding:14px;border-radius:12px;font-size:17px;font-weight:700;border:0;min-height:48px}
.save{background:var(--acc);color:#fff}.cancel{background:#f1f5f9}
.del{width:100%;margin-top:10px;background:none;border:0;color:var(--bad);font-weight:700;font-size:15px;min-height:44px}
.toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);width:max-content;background:var(--ink);color:#fff;padding:10px 14px;border-radius:12px;display:none;gap:12px;align-items:center;z-index:30;max-width:calc(100% - 32px)}
.toast.on{display:flex}.toast button{background:none;border:0;color:#fdba74;font-weight:800;min-height:40px}
/* host */
.hostbar{display:flex;align-items:center;gap:10px;margin-bottom:10px}.hostbar img{width:36px;height:36px;border-radius:9px}
.hostbar .tag{margin-left:auto;background:var(--ink);color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}
.card{background:#fff;border-radius:16px;padding:14px;margin:12px 0;box-shadow:0 1px 3px #0001}
.card h2{font-size:18px;margin:0 0 8px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.card h2 small{font-size:13px;color:var(--mut);font-weight:600}
.inl{display:flex;gap:8px}.inl input{flex:1;min-width:0}
.btn{border:0;border-radius:12px;padding:10px 14px;font-weight:700;min-height:44px;background:var(--acc);color:#fff;white-space:nowrap}
.btn.sec{background:#f1f5f9;color:var(--ink)}.btn.warn{background:#fee2e2;color:var(--bad)}.btn.sm{padding:6px 10px;min-height:40px;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{background:#f1f5f9;border-radius:999px;padding:4px 10px;font-size:13px;font-weight:700}
.chip.yes{background:var(--okbg);color:#14532d}.chip.maybe{background:#fef3c7;color:#78350f}.chip.no{background:#fee2e2;color:#7f1d1d}.chip.pend{background:#ede9fe;color:#4c1d95}.chip.gen{background:#e0f2fe;color:#0c4a6e}
.gr{border-top:1px solid var(--line);padding:10px 0}.gr:first-of-type{border-top:0}
.gr .nmrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.gr .nmrow b{flex:1;min-width:40%;overflow-wrap:anywhere}
.gr .acts2{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.linkbox{font:13px/1.3 ui-monospace,monospace;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;padding:6px 8px;margin-top:6px;word-break:break-all;user-select:all}
.ed{display:flex;gap:6px;align-items:center;margin:6px 0}.ed input{padding:8px 10px;font-size:16px}
.ed .x{border:0;background:#fee2e2;color:var(--bad);border-radius:10px;min-width:44px;min-height:44px;font-weight:800}
.catbox{border:1px solid var(--line);border-radius:12px;padding:10px;margin:10px 0}
.catbox .claims{font-size:12px;color:var(--ok);font-weight:700;white-space:nowrap}
.meter{height:10px;background:#f1f5f9;border-radius:9px;overflow:hidden;margin:6px 0}.meter i{display:block;height:100%;background:var(--acc);min-width:2px}
.swatches{display:flex;gap:8px;flex-wrap:wrap}.swatches label{margin:0}
.swatches input{position:absolute;opacity:0;width:1px;height:1px}
.swatches span{display:block;width:40px;height:40px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #cbd5e1}
.swatches input:checked+span{box-shadow:0 0 0 3px var(--ink)}
.swatches input:focus-visible+span{outline:3px solid var(--acc);outline-offset:2px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.hgrid div{position:relative}.hgrid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}
.hgrid button{position:absolute;top:4px;right:4px;border:0;border-radius:8px;background:#000b;color:#fff;min-width:36px;min-height:36px;font-weight:800}
@media (min-width:900px){.wrap.host{max-width:1040px}.cols{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-items:start}}
@media (prefers-reduced-motion: reduce){.show img{transition:none}}
.brand{display:flex;align-items:center;gap:8px;justify-content:center;font-weight:800;color:var(--ink);margin:0 0 12px;letter-spacing:.01em}
.brand img{border-radius:7px}
.brand.sm{justify-content:flex-start;font-size:13px;color:var(--mut);margin-bottom:8px}.brand.sm img{border-radius:5px}
/* BondFire brand: navy #1e293b, orange #f97316, yellow #fbbf24, cream #fff7ed */
:root{--brand-navy:#1e293b;--brand-orange:#f97316;--brand-yellow:#fbbf24;--brand-cream:#fff7ed}
.brand img,.hostbar img.lockup{border-radius:0;width:auto}
.hostbar img.lockup{height:34px}
.hero{background:var(--brand-navy);border-bottom:4px solid var(--brand-orange)}
.p.flash{background:#fde68a;box-shadow:0 0 0 2px var(--brand-yellow)}
.prog{background:#fde3cc}
