/* Snouthub app — mobile-first PWA */
:root{
  --bg:#efe8dc; --surface:#fffdf9; --surface-2:#faf5ec; --ink:#1c1917; --muted:#6b6358;
  --accent:#c94e2a; --accent-ink:#a83a18; --accent-soft:#fdebe2;
  --teal:#0f766e; --teal-bg:#e2f1ef;
  --border:#e8e1d4; --field:#f6f1e8; --good:#15803d;
  --shadow:0 10px 30px rgba(70,45,20,.08);
  --nav-h:66px; --r:20px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  color:var(--ink); line-height:1.5;
  background:radial-gradient(900px 520px at 50% -12%,#f7f1e6,var(--bg)) no-repeat,var(--bg);
  min-height:100dvh;
}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
a{color:var(--accent-ink);text-decoration:none}
img{display:block}
.hidden{display:none!important}
.ic{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.shell{max-width:480px;margin:0 auto;min-height:100dvh;position:relative;
  background:linear-gradient(180deg,rgba(255,253,249,.35),rgba(255,253,249,0) 240px);
  border-left:1px solid rgba(232,225,212,.6);border-right:1px solid rgba(232,225,212,.6)}
@media(min-width:560px){.shell{box-shadow:0 0 80px rgba(70,45,20,.07)}}

/* top bar */
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;
  padding:calc(12px + env(safe-area-inset-top)) 18px 10px;
  background:linear-gradient(180deg,rgba(239,232,220,.96),rgba(239,232,220,.72) 70%,rgba(239,232,220,0));
  backdrop-filter:blur(10px)}
.wordmark{font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:21px;letter-spacing:-.4px;cursor:pointer}
.wordmark b{color:var(--accent)}
.top-actions{display:flex;align-items:center;gap:8px}
.consent-row{display:flex;align-items:flex-start;gap:9px;margin:16px 2px 0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.consent-row input{width:16px;height:16px;margin:1px 0 0;accent-color:var(--accent);flex:none}
.consent-row a{color:var(--accent-ink);font-weight:700}
.langmini{width:36px;height:36px;border-radius:50%;border:1.5px solid var(--border);background:var(--surface);
  color:var(--ink);font:800 11px/1 "Plus Jakarta Sans",system-ui,sans-serif;letter-spacing:.02em;cursor:pointer}
.langmini:hover{border-color:var(--accent);color:var(--accent-ink)}
.chip-user{display:flex;align-items:center;gap:8px;background:var(--surface);border:1.5px solid var(--border);
  border-radius:30px;padding:5px 12px 5px 6px;font-size:13px;font-weight:600;box-shadow:0 3px 10px rgba(70,45,20,.05)}
.chip-user .av{width:26px;height:26px;border-radius:50%;font-size:11px}
.iconbtn{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--surface);
  border:1.5px solid var(--border);color:var(--ink)}
.iconbtn:active{transform:scale(.96)}

main{flex:1;padding:4px 16px calc(var(--nav-h) + 34px + env(safe-area-inset-bottom))}
.view{animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* type */
h1,h2,h3,.serif{font-family:'Fraunces',Georgia,serif;font-weight:600;letter-spacing:-.4px}
h1{font-size:30px;line-height:1.1}
h2{font-size:23px;line-height:1.15}
h3{font-size:18px}
.lede{color:var(--muted);font-size:14.5px;line-height:1.55}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin:22px 2px 10px}
.section-head h2{font-size:21px}
.section-head a,.section-head button{font-size:13px;font-weight:700;color:var(--accent-ink)}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.center{text-align:center}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;
  background:var(--accent);color:#fff;border-radius:14px;padding:15px 18px;font-weight:700;font-size:15px;
  box-shadow:0 8px 20px rgba(221,92,53,.26);transition:transform .12s,background .15s}
.btn:active{transform:scale(.985)}
.btn:disabled{opacity:.55;box-shadow:none}
.btn.ghost{background:var(--surface);color:var(--ink);border:1.5px solid var(--border);box-shadow:none}
.btn.field{background:var(--field);color:var(--ink);border:1.5px solid var(--border);box-shadow:none}
.btn.danger{background:var(--surface);color:#b42318;border:1.5px solid #f0c4bd;box-shadow:none}
.btn.sm{width:auto;padding:9px 14px;font-size:13px;border-radius:11px;box-shadow:none}
.btn.tiny{width:auto;padding:7px 11px;font-size:12.5px;border-radius:9px;box-shadow:none}
.btn-row{display:flex;gap:10px}
.btn-row .btn{flex:1}
.btn-row .btn.sm{flex:none}

/* forms */
label.fl{display:block;font-size:11.5px;font-weight:700;color:var(--muted);text-transform:uppercase;
  letter-spacing:.05em;margin:16px 2px 7px}
.input,select.input,textarea.input{width:100%;background:var(--field);border:1.5px solid var(--border);
  border-radius:13px;padding:14px;font-size:15px;outline:none;transition:.15s;-webkit-appearance:none;appearance:none}
select.input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7266' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 15px center;padding-right:38px}
.input:focus,textarea.input:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 4px rgba(221,92,53,.12)}
textarea.input{resize:none;min-height:100px;line-height:1.5}
.input::placeholder{color:#b4ab9c}
.row{display:flex;gap:10px}
.row>div{flex:1}
.seg{display:flex;gap:8px}
.seg button{flex:1;background:var(--field);border:1.5px solid var(--border);border-radius:12px;padding:12px;
  font-weight:600;font-size:14px;color:var(--muted)}
.seg button.sel{background:#fff;border-color:var(--accent);color:var(--accent-ink);box-shadow:0 0 0 3px rgba(221,92,53,.1)}
.form-error{background:#fdeceb;border:1px solid #f3c8c3;color:#912018;border-radius:12px;padding:11px 13px;
  font-size:13px;font-weight:600;margin-top:14px}

/* avatars */
.av{width:44px;height:44px;border-radius:15px;object-fit:cover;background:linear-gradient(140deg,#e9dcc8,#d3bfa4);
  display:grid;place-items:center;font-family:'Fraunces',serif;font-weight:600;color:#6b4e2f;flex:none;
  border:1.5px solid rgba(255,255,255,.8);box-shadow:0 3px 8px rgba(70,45,20,.08);overflow:hidden}
.av.lg{width:78px;height:78px;border-radius:24px;font-size:30px}
.av.xl{width:104px;height:104px;border-radius:30px;font-size:40px}
.av.sm{width:34px;height:34px;border-radius:11px;font-size:13px}

/* verified */
.ver{display:inline-flex;align-items:center;gap:6px;background:var(--teal-bg);color:var(--teal);
  font-weight:700;font-size:11.5px;padding:5px 10px;border-radius:20px}
.ver .ic{width:13px;height:13px;stroke-width:2.6}
.tick{display:inline-flex;width:16px;height:16px;border-radius:50%;background:var(--teal);color:#fff;
  align-items:center;justify-content:center;flex:none;vertical-align:-2px}
.tick svg{width:10px;height:10px;stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* cards */
.card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--r);padding:18px;
  box-shadow:var(--shadow)}
.card+.card{margin-top:12px}
.panel{background:var(--surface);border:1.5px solid var(--border);border-radius:22px;padding:24px;box-shadow:var(--shadow)}

/* auth / welcome */
.auth-hero{padding:26px 2px 18px}
.auth-hero h1{font-size:36px;line-height:1.04;margin:12px 0 12px}
.auth-hero h1 em{font-style:normal;color:var(--accent)}
.auth-hero .lede{font-size:15.5px;max-width:360px}
.pill{display:inline-flex;align-items:center;gap:8px;background:var(--teal-bg);color:var(--teal);
  font-weight:700;font-size:12px;padding:7px 12px;border-radius:30px}
.pill .dot{width:7px;height:7px;border-radius:50%;background:var(--teal);animation:pulse 1.8s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.perks{display:grid;gap:10px;margin:22px 0}
.perk{display:flex;gap:11px;align-items:flex-start;font-size:14px}
.perk .ic{width:19px;height:19px;color:var(--teal);margin-top:1px}
.perk b{display:block;font-size:14px}
.perk span{color:var(--muted);font-size:12.5px}
.auth-actions{margin-top:18px;display:grid;gap:10px}
.link-row{text-align:center;font-size:13.5px;color:var(--muted);margin-top:16px}
.link-row button{color:var(--accent-ink);font-weight:700}

/* feed */
.greeting{margin:10px 2px 14px}
.greeting .hi{font-size:13px;color:var(--muted);font-weight:600}
.greeting h2{font-size:26px;margin-top:2px}
.community-line{font-size:12.5px;color:var(--muted);font-weight:600;margin:5px 0 0}
.welcome-count .community-line{margin-top:12px}
.post{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--r);padding:14px;
  margin-bottom:14px;box-shadow:0 6px 18px rgba(70,45,20,.05)}
.post-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.post-id{min-width:0;flex:1}
.post-name{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14.5px;line-height:1.2}
.post-meta{font-size:12px;color:var(--muted);margin-top:1px}
.post-body{font-size:14.5px;line-height:1.5;margin:2px 0 10px;overflow-wrap:anywhere}
.post-media{width:100%;max-height:430px;object-fit:cover;border-radius:14px;background:var(--field);margin-bottom:10px}
.post-actions{display:flex;align-items:center;gap:6px}
.act{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:11px;color:var(--muted);
  font-size:13px;font-weight:700;background:transparent}
.act:active{background:var(--field)}
.act .ic{width:19px;height:19px}
.act.on{color:var(--accent-ink);background:var(--accent-soft)}
.act.on .ic{fill:currentColor}
.act.on.paw{color:var(--accent-ink)}
.post-actions .spacer{flex:1}

/* skeletons */
.sk{background:linear-gradient(100deg,var(--field) 30%,#fbf7ef 50%,var(--field) 70%);
  background-size:200% 100%;animation:shimmer 1.4s infinite linear;border-radius:12px}
@keyframes shimmer{to{background-position:-200% 0}}
.sk-post{height:180px;margin-bottom:14px;border-radius:20px}
.sk-line{height:12px;margin:8px 0}

/* empty */
.empty{text-align:center;padding:34px 16px}
.empty .paw{width:64px;height:64px;margin:0 auto 12px;border-radius:22px;background:var(--surface);
  border:1.5px solid var(--border);display:grid;place-items:center;color:var(--accent)}
.empty .paw .ic{width:30px;height:30px}
.empty h3{margin-bottom:4px}
.empty p{color:var(--muted);font-size:13.5px;max-width:300px;margin:0 auto}

/* dog list */
.dogrow{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface);
  border:1.5px solid var(--border);border-radius:16px;margin-bottom:10px;box-shadow:0 4px 12px rgba(70,45,20,.04)}
.dogrow .grow{flex:1;min-width:0}
.dogrow .n{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14.5px}
.dogrow .s{font-size:12.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.follow{background:var(--accent);color:#fff;font-weight:700;font-size:12.5px;padding:8px 14px;border-radius:10px}
.follow.on{background:var(--field);color:var(--muted);border:1.5px solid var(--border)}
.follow:disabled{opacity:.6}

/* dog profile */
.dog-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:14px 0 8px}
.dog-hero .av{margin-bottom:12px}
.avatar-edit{position:relative;display:inline-block}
.avatar-edit .cam-badge{position:absolute;right:-4px;bottom:-4px;width:32px;height:32px;border-radius:50%;
  background:var(--surface);border:1.5px solid var(--border);display:grid;place-items:center;box-shadow:var(--shadow)}
.avatar-edit .cam-badge .ic{width:15px;height:15px;color:var(--accent-ink)}
.dog-hero h2{font-size:27px}
.dog-sub{color:var(--muted);font-size:13.5px;margin-top:3px}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:13px}
.chip{background:var(--surface);border:1.5px solid var(--border);border-radius:10px;padding:7px 11px;
  font-size:12.5px;font-weight:600;color:#54493d}
.chip span{color:var(--muted);font-weight:500}
.dog-bio{color:#54493d;font-size:14px;margin:14px auto 0;max-width:340px}

/* onboarding */
.steps{display:flex;gap:6px;margin:6px 2px 18px}
.steps i{height:4px;flex:1;border-radius:3px;background:var(--border)}
.steps i.on{background:var(--accent)}
.onb{padding-top:8px}
.onb h1{font-size:28px;margin-bottom:8px}
.photo-drop{display:flex;align-items:center;gap:14px;margin-top:8px}
.photo-drop .av{width:72px;height:72px;border-radius:22px;font-size:26px}
.photo-drop .t{flex:1}
.photo-drop .t b{font-size:14px;display:block}
.photo-drop .t span{font-size:12.5px;color:var(--muted)}
.photo-preview{width:100%;max-height:320px;object-fit:cover;border-radius:16px;margin-top:12px;background:var(--field)}

/* scan */
.scan-box{background:radial-gradient(140px 130px at 50% 42%,#2c2722,#14110d);border-radius:24px;
  min-height:280px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;
  margin:8px 0 14px;border:1px solid #241f1a}
.scan-oval{width:210px;height:164px;border:3px dashed rgba(255,255,255,.65);border-radius:50%;position:relative}
.scan-oval::after{content:"";position:absolute;inset:34% 40%;border-radius:50%;
  box-shadow:0 0 0 2px rgba(221,92,53,.6);background:rgba(255,255,255,.04)}
.scan-box .hint{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#f4ece0;font-size:12px}
.scan-box .hint em{font-style:normal;color:#6ee7b7;font-weight:700}
.scan-box img.preview{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.photo-tile{width:100%;border-radius:18px;background:var(--surface);border:1.5px solid var(--border);
  padding:16px;display:flex;align-items:center;gap:13px;text-align:left;margin-bottom:10px}
.photo-tile .ic{width:24px;height:24px;color:var(--accent-ink)}
.photo-tile b{display:block;font-size:14px}
.photo-tile span{font-size:12.5px;color:var(--muted)}

/* verifying */
.verify{position:fixed;inset:0;z-index:80;background:rgba(28,25,23,.55);backdrop-filter:blur(6px);
  display:grid;place-items:center;padding:24px}
.verify-card{background:var(--surface);border-radius:26px;padding:28px 24px;max-width:330px;width:100%;
  text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.ring{width:66px;height:66px;border-radius:50%;border:5px solid var(--border);border-top-color:var(--accent);
  animation:spin 1s linear infinite;margin:0 auto 16px}
@keyframes spin{to{transform:rotate(360deg)}}
.verify-card h3{font-size:21px;margin-bottom:6px}
.verify-card p{font-size:13px;color:var(--muted)}

/* success */
.success-badge{width:72px;height:72px;border-radius:50%;background:var(--teal-bg);color:var(--teal);
  display:grid;place-items:center;margin:6px auto 16px}
.success-badge .ic{width:34px;height:34px;stroke-width:2.4}
.result-card{display:flex;align-items:center;gap:13px;background:var(--surface);border:1.5px solid var(--border);
  border-radius:18px;padding:14px;margin:16px 0;box-shadow:var(--shadow)}
.result-card .t{flex:1;min-width:0}
.result-card .t b{font-size:15px}
.result-card .t span{font-size:12.5px;color:var(--muted);display:block}
.quality{font-size:11.5px;color:var(--muted);margin-top:10px}

/* search */
.decision{border-radius:16px;padding:14px;margin:14px 0;font-size:13.5px;font-weight:600;border:1.5px solid}
.decision.match{background:var(--teal-bg);border-color:#bfe3df;color:var(--teal)}
.decision.candidate{background:var(--accent-soft);border-color:#f6d3c4;color:var(--accent-ink)}
.decision.none{background:var(--surface);border-color:var(--border);color:var(--muted)}
.cand{display:flex;align-items:center;gap:12px;background:var(--surface);border:1.5px solid var(--border);
  border-radius:16px;padding:12px;margin-bottom:10px}
.cand .t{flex:1;min-width:0}
.cand .n{font-weight:700;font-size:14.5px}
.cand .s{font-size:12px;color:var(--muted)}
.score{margin-top:6px;height:6px;background:var(--field);border-radius:4px;overflow:hidden}
.score i{display:block;height:100%;background:var(--accent);border-radius:4px}

/* compose */
.composer{background:var(--surface);border:1.5px solid var(--border);border-radius:20px;padding:16px;box-shadow:var(--shadow)}
.dogpick{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;margin-bottom:6px;scrollbar-width:none}
.dogpick::-webkit-scrollbar{display:none}
.dogpick button{display:flex;align-items:center;gap:7px;padding:6px 12px 6px 6px;border-radius:30px;
  background:var(--field);border:1.5px solid var(--border);font-size:13px;font-weight:600;white-space:nowrap}
.dogpick button.sel{border-color:var(--accent);background:#fff;color:var(--accent-ink)}
.dogpick .av{width:26px;height:26px;border-radius:50%;font-size:11px}
.compose-photo{width:100%;max-height:300px;object-fit:cover;border-radius:14px;margin-top:10px;background:var(--field)}
.toolbar{display:flex;align-items:center;gap:8px;margin-top:12px;border-top:1px solid var(--border);padding-top:12px}
.toolbar .tool{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--muted);
  padding:8px 10px;border-radius:10px;background:var(--field)}
.toolbar .spacer{flex:1}

/* tab bar */
.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;z-index:40;
  display:flex;align-items:flex-end;justify-content:space-around;
  padding:6px 8px calc(8px + env(safe-area-inset-bottom));
  background:rgba(255,253,249,.92);backdrop-filter:blur(16px);border-top:1.5px solid var(--border)}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0 4px;color:var(--muted);
  font-size:10.5px;font-weight:700;letter-spacing:.01em}
.tab .ic{width:23px;height:23px}
.tab.on{color:var(--accent-ink)}
.tab.on .ic{stroke-width:2.2}
.tab.scan{flex:none;width:64px}
.tab.scan .fab{width:54px;height:54px;border-radius:50%;background:var(--accent);color:#fff;display:grid;
  place-items:center;margin-top:-24px;box-shadow:0 10px 22px rgba(221,92,53,.38);border:4px solid var(--surface)}
.tab.scan .fab .ic{width:26px;height:26px}
.tab.scan span{color:var(--accent-ink)}

/* sheet */
.sheet-wrap{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center}
.sheet-bg{position:absolute;inset:0;background:rgba(28,25,23,.42);backdrop-filter:blur(3px)}
.sheet{position:relative;width:100%;max-width:480px;max-height:82dvh;background:var(--surface);
  border-radius:24px 24px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));
  display:flex;flex-direction:column;box-shadow:0 -20px 60px rgba(0,0,0,.18);animation:up .24s ease}
@keyframes up{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.sheet-grip{width:40px;height:4px;border-radius:3px;background:var(--border);margin:6px auto 12px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sheet-head h3{font-size:19px}
.sheet-body{overflow-y:auto;flex:1;min-height:60px}
.comment{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.comment:last-child{border-bottom:none}
.comment .t{flex:1;min-width:0}
.comment .n{font-size:12.5px;font-weight:700}
.comment .b{font-size:13.5px;overflow-wrap:anywhere}
.comment .m{font-size:11px;color:var(--muted);margin-top:2px}
.mini-report{background:none;border:0;color:var(--accent-ink);font:700 11px/1 inherit;padding:0 0 0 6px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.msg .mini-report{font-size:10px;opacity:.8;margin-left:4px}
.safety-list{display:grid;gap:7px;margin:10px 0 12px}
.safety-reason{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1.5px solid var(--border);border-radius:10px;font-size:13px;cursor:pointer;background:var(--field)}
.safety-reason input{width:16px;height:16px;accent-color:var(--accent);flex:none}
.safety-link{background:none;border:0;color:var(--muted);font:600 12px/1.2 inherit;text-decoration:underline;text-underline-offset:2px;margin-top:10px;cursor:pointer}
.safety-link:hover{color:#b42318}
.pquick .danger-link{color:#b42318;border-color:#f0c4bd}
.sheet-input{display:flex;gap:8px;margin-top:12px}
.sheet-input input{flex:1;background:var(--field);border:1.5px solid var(--border);border-radius:12px;padding:12px}
.sheet-input button{background:var(--accent);color:#fff;border-radius:12px;padding:0 16px;font-weight:700}

/* camera */
.camera{position:fixed;inset:0;z-index:90;background:#0b0907;display:flex;flex-direction:column}
.camera video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cam-mask{position:absolute;inset:0;pointer-events:none;background:rgba(0,0,0,.55)}
.cam-oval{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:76%;aspect-ratio:1.28;
  border-radius:50%;box-shadow:0 0 0 200vmax rgba(0,0,0,.55);border:3px dashed rgba(255,255,255,.8)}
.cam-mask{background:none}
.cam-top{position:absolute;top:calc(14px + env(safe-area-inset-top));left:16px;right:16px;display:flex;
  justify-content:space-between;align-items:center;z-index:2;color:#fff}
.cam-top .iconbtn{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22);color:#fff;backdrop-filter:blur(8px)}
.cam-bottom{position:absolute;bottom:calc(28px + env(safe-area-inset-bottom));left:0;right:0;z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:12px;color:#f4ece0}
.cam-hint{font-size:12.5px;text-align:center;color:rgba(244,236,224,.85);max-width:300px}
.shutter{width:72px;height:72px;border-radius:50%;background:#fff;border:5px solid rgba(255,255,255,.35);
  box-shadow:0 0 0 2px var(--accent) inset}
.shutter:active{transform:scale(.94)}
.cam-alt{font-size:12.5px;color:#f4ece0;text-decoration:underline;background:none}

/* toast */
.toast{position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:calc(var(--nav-h) + 22px);
  background:var(--ink);color:#f7f1e8;padding:11px 16px;border-radius:12px;font-size:13px;font-weight:600;
  z-index:100;opacity:0;pointer-events:none;transition:.25s;max-width:calc(100% - 40px);text-align:center}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- 3-column profile ---------- */
.shell.wide{max-width:1180px}
.shell.wide .tabbar{max-width:1180px}
.profile-grid{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}
@media(min-width:1024px){
  .shell.wide main{padding-left:22px;padding-right:22px}
  .profile-grid{grid-template-columns:264px minmax(0,1fr) 304px;gap:18px}
  .pcol-left,.pcol-right{position:sticky;top:calc(78px + env(safe-area-inset-top))}
}
.pcard-head{display:flex;gap:12px;align-items:center}
.pcard-head h2{font-size:22px;line-height:1.12}
.pstats{display:flex;gap:18px;margin-top:15px}
.pstats b{display:block;font-family:'Fraunces',serif;font-size:20px;line-height:1.1}
.pstats span{display:block;font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-top:2px}
.plabel{font-size:10.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.pdog{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--border)}
.pdog:first-of-type{border-top:none}
.pdog .t{flex:1;min-width:0}
.pdog .n{font-weight:700;font-size:14px;display:flex;gap:5px;align-items:center}
.pdog .s{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pquick{display:grid;gap:8px;margin-top:12px}
.pquick button{display:flex;align-items:center;gap:9px;background:var(--surface);border:1.5px solid var(--border);
  border-radius:14px;padding:12px 14px;font-weight:600;font-size:13.5px;text-align:left;color:var(--ink)}
.pquick .ic{width:18px;height:18px;color:var(--accent-ink)}

.chatcard{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px 10px;border-bottom:1px solid var(--border)}
.chat-head h2{font-size:20px}
.chat-people{display:flex;gap:8px;overflow-x:auto;padding:11px 16px;border-bottom:1px solid var(--border);scrollbar-width:none}
.chat-people::-webkit-scrollbar{display:none}
.chat-person{display:flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border-radius:30px;
  background:var(--field);border:1.5px solid var(--border);white-space:nowrap;font-size:12.5px;font-weight:700;color:var(--ink)}
.chat-person.sel{border-color:var(--accent);background:#fff;color:var(--accent-ink)}
.chat-person .av{width:28px;height:28px;border-radius:50%;font-size:11px}
.chat-thread{flex:1;display:flex;flex-direction:column;min-height:0}
.chat-thread-head{display:flex;align-items:center;gap:10px;padding:11px 18px;border-bottom:1px solid var(--border);background:var(--surface-2)}
.chat-thread-head .t{flex:1;min-width:0}
.chat-thread-head b{font-size:14px}
.chat-thread-head span{display:block;font-size:11.5px;color:var(--muted)}
.chat-msgs{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:8px;
  min-height:clamp(140px,22dvh,240px);max-height:clamp(180px,38dvh,420px);
  background:linear-gradient(180deg,#fffdf9,#faf5ec)}
.msg{max-width:80%;padding:10px 13px;border-radius:16px;font-size:13.5px;line-height:1.45;
  background:#fff;border:1.5px solid var(--border);align-self:flex-start;overflow-wrap:anywhere}
.msg.mine{align-self:flex-end;background:var(--accent-soft);border-color:#f4cfc0;color:#5a2a19}
.msg .time{display:block;font-size:10px;color:var(--muted);margin-top:3px;text-align:right}
.chat-compose{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--border);background:var(--surface)}
.chat-compose input{flex:1;min-width:0;border:1.5px solid var(--border);background:var(--field);border-radius:12px;padding:11px 13px;font-size:14px;outline:none}
.chat-compose input:focus{border-color:var(--accent);background:#fff}
.chat-compose button{background:var(--accent);color:#fff;border-radius:12px;padding:0 16px;font-weight:700;font-size:13.5px}
.chat-compose button:disabled{opacity:.6}
.chat-empty{flex:1;display:grid;place-items:center;text-align:center;padding:28px;color:var(--muted);font-size:13.5px}
.chat-suggest{display:grid;gap:8px;width:100%;margin-top:12px}
.chat-suggest button{display:flex;align-items:center;gap:10px;background:var(--field);border:1.5px solid var(--border);
  border-radius:14px;padding:9px 11px;text-align:left;font-size:12.5px;font-weight:600;width:100%;color:var(--ink)}
.chat-suggest .av{width:32px;height:32px;border-radius:10px;font-size:12px}

.news-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:4px}
.news-head h3{font-size:18px}
.news-head a{color:var(--accent-ink);font-weight:700;font-size:11.5px}
.news-item{display:flex;gap:10px;padding:11px 0;border-top:1px solid var(--border);text-decoration:none;color:var(--ink)}
.news-item:first-of-type{border-top:none}
.news-item img{width:64px;height:64px;object-fit:cover;border-radius:10px;background:var(--field);flex:none}
.news-item .t{flex:1;min-width:0}
.news-item .c{font-size:9.5px;font-weight:700;color:var(--accent-ink);text-transform:uppercase;letter-spacing:.05em}
.news-item .h{font-size:12.8px;font-weight:600;line-height:1.35;margin:2px 0 3px}
.news-item .m{font-size:10.5px;color:var(--muted)}
.ads{margin-top:14px}
.ad-label{font-size:9.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.ad{display:block;border-radius:16px;padding:16px;text-decoration:none;color:#fff;margin-bottom:10px;background:linear-gradient(135deg,#1c1917,#3b332b)}
.ad.alt{background:linear-gradient(135deg,#c94e2a,#a83a18)}
.ad b{font-family:'Fraunces',serif;font-size:18px;display:block;margin-bottom:4px;line-height:1.2}
.ad span{font-size:12.5px;opacity:.92;line-height:1.4;display:block}
.ad i{font-style:normal;display:inline-block;margin-top:9px;font-size:12px;font-weight:700;border-bottom:1.5px solid rgba(255,255,255,.55)}
@media(max-width:1023px){
  .chatcard{min-height:auto}
  .chat-msgs{max-height:360px;min-height:200px}
}

/* misc */
.divider{height:1.5px;background:var(--border);margin:18px 0}
.footnote{font-size:11.5px;color:var(--muted);text-align:center;margin-top:14px;line-height:1.5}
.spin-sm{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;
  animation:spin .8s linear infinite}
.spin-dark{width:20px;height:20px;border:2.5px solid var(--border);border-top-color:var(--accent);border-radius:50%;
  animation:spin .8s linear infinite;margin:20px auto}

/* self-hosted variable fonts (latin) */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 700;font-display:swap;src:url('/assets/fonts/fraunces-var.woff2') format('woff2');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:'Plus Jakarta Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/plus-jakarta-sans-var.woff2') format('woff2');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}
