:root{--brand:#FFC83D;--brand-strong:#F7A620;--brand-ink:#3A2B00;--brand-soft:#FFF4D6;--bg:#F3F4F6;--surface:#FFFFFF;--surface-2:#F7F8FA;--line:#ECEDF0;--text:#15161A;--muted:#8A8F99;--muted-2:#B4B9C2;--ok:#2BB673;--warn:#F5A623;--danger:#F0453A;--info:#2D7FF9;--online:#31C66B;--radius:18px;--radius-sm:12px;--radius-lg:24px;--shadow:0 1px 2px rgba(16,18,22,.04),0 8px 24px -16px rgba(16,18,22,.24);--shadow-up:0 -2px 20px -8px rgba(16,18,22,.14);--font:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--tabbar-h:64px}
[data-theme="dark"]{--bg:#0E0F12;--surface:#17181C;--surface-2:#1E2026;--line:#26282E;--text:#F3F4F6;--muted:#8E939E;--muted-2:#5E626B;--brand-soft:#2A2410;--shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px -18px rgba(0,0,0,.8)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;height:100%}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:15px;line-height:1.45;overscroll-behavior-y:none;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer}
img{display:block;max-width:100%}
svg{width:20px;height:20px;flex:0 0 auto}
#app{min-height:100%;display:flex;flex-direction:column}
.appbar{position:sticky;top:0;z-index:30;padding:calc(var(--sat) + 10px) 16px 10px;display:flex;align-items:center;gap:10px;min-height:52px;background:var(--surface);border-bottom:1px solid var(--line)}
.appbar.flush{background:transparent;border-bottom:0}
.appbar .ab-title{font-weight:800;font-size:17px;letter-spacing:-.01em;margin:0 auto}
.appbar .ab-btn{width:38px;height:38px;border-radius:12px;border:0;background:var(--surface-2);color:var(--text);display:grid;place-items:center;flex:0 0 auto}
.appbar .ab-btn.ghost{background:transparent}
.appbar .ab-right{margin-left:auto;font-weight:700;color:var(--brand-strong);background:transparent;border:0;font-size:15px}
.appbar .ab-spacer{width:38px;flex:0 0 auto}
.view{flex:1 1 auto;padding:16px 16px calc(var(--tabbar-h) + var(--sab) + 44px);max-width:560px;width:100%;margin:0 auto}
.view.no-tabbar{padding-bottom:calc(var(--sab) + 24px)}
.view.flush{padding-top:0}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(var(--tabbar-h) + var(--sab));padding-bottom:var(--sab);display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);box-shadow:var(--shadow-up)}
.tab{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10.5px;font-weight:600;letter-spacing:.01em;position:relative;padding:0}
.tab svg{width:24px;height:24px}
.tab.active{color:var(--text)}
.tab.center{color:var(--brand-ink)}
.tab.center .fab{width:50px;height:50px;border-radius:16px;margin-top:-18px;background:linear-gradient(135deg,var(--brand),var(--brand-strong));display:grid;place-items:center;color:var(--brand-ink);box-shadow:0 10px 22px -8px rgba(247,166,32,.7)}
.tab.center span{margin-top:1px}
.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.list-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.row{display:flex;align-items:center;gap:12px}
.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}
.muted{color:var(--muted)}
.small{font-size:13px}
.tiny{font-size:11.5px}
.strong{font-weight:700}
.center-col{display:flex;flex-direction:column;align-items:center}
.grow{flex:1 1 auto;min-width:0}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chev{color:var(--muted-2);flex:0 0 auto}
.sec-title{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:22px 4px 10px}
.divider{height:1px;background:var(--line);margin:0 16px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:15px 18px;border:0;border-radius:var(--radius-sm);font-size:15px;font-weight:700;background:var(--surface-2);color:var(--text);transition:transform .12s ease,filter .15s ease}
.btn:active{transform:scale(.985)}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-strong));color:var(--brand-ink);box-shadow:0 10px 24px -12px rgba(247,166,32,.8)}
.btn-primary:disabled{background:var(--brand-soft);color:var(--muted-2);box-shadow:none}
.btn-ghost{background:var(--surface);box-shadow:var(--shadow)}
.btn-danger{background:transparent;color:var(--danger)}
.btn-outline{background:var(--surface);border:1px solid var(--line)}
.btn-row{display:flex;gap:10px}
.btn-sm{width:auto;padding:10px 16px;font-size:14px;border-radius:11px}
.ava{border-radius:50%;object-fit:cover;flex:0 0 auto;background:var(--surface-2)}
.ava-ring{padding:3px;background:var(--brand-soft);border-radius:50%}
.ava-dot{position:relative}
.ava-dot::after{content:"";position:absolute;right:1px;bottom:1px;width:12px;height:12px;border-radius:50%;background:var(--online);border:2.5px solid var(--surface)}
.verified{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--brand);color:var(--brand-ink);flex:0 0 auto}
.verified svg{width:12px;height:12px}
.stars{color:var(--brand-strong);display:inline-flex;align-items:center;gap:4px;font-weight:700}
.stars svg{width:15px;height:15px}
.meta svg,.mi svg{width:14px;height:14px}
.item .thumb svg{width:22px;height:22px}
.banner-top svg{width:18px;height:18px}
.fab svg{width:24px;height:24px}
.ab-btn svg{width:22px;height:22px}
.onb-ic svg{width:42px;height:42px}
.hero-ava-edit svg{width:18px;height:18px}
.statusline{display:flex;align-items:center;gap:10px;padding:14px 16px}
.statusline .ic{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto}
.st-grey{color:var(--muted)}
.st-up{color:var(--brand-strong)}
.st-red{color:var(--danger)}
.st-ok{color:var(--brand-strong)}
.field{margin-bottom:14px}
.field label{display:block;font-size:12.5px;color:var(--muted);margin:0 2px 6px;font-weight:600}
.input{width:100%;padding:14px;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:var(--surface);color:var(--text);font-size:15px;font-family:inherit;transition:border-color .15s}
.input:focus{outline:none;border-color:var(--brand-strong)}
.input::placeholder{color:var(--muted-2)}
.segmented{display:flex;gap:4px;background:var(--surface-2);padding:4px;border-radius:14px}
.segmented button{flex:1;border:0;background:transparent;padding:9px;border-radius:10px;font-weight:700;font-size:14px;color:var(--muted)}
.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:13px;font-weight:600}
.chip .n{color:var(--muted-2)}
.pill{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand);color:var(--brand-ink);font-size:11.5px;font-weight:800;display:grid;place-items:center}
.hero{background:var(--brand);padding:calc(var(--sat) + 16px) 0 52px;margin:0 -16px;position:relative;border-radius:0 0 26px 26px}
.hero-wrap{position:relative}
.hero-title{text-align:center;font-weight:800;font-size:19px;color:var(--brand-ink);padding:6px 48px 0}
.hero-ava{width:104px;height:104px;margin:0 auto}
.hero-ava-edit{position:absolute;right:calc(50% - 56px);bottom:2px;width:34px;height:34px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);display:grid;place-items:center;border:0;color:var(--text)}
.mrow{display:flex;align-items:center;gap:12px;padding:15px 16px;width:100%;border:0;background:transparent;color:var(--text);text-align:left;font-size:15px}
.mrow + .mrow{border-top:1px solid var(--line)}
.mrow .mr-label{font-weight:600;white-space:nowrap}
.mrow .mr-value{margin-left:auto;color:var(--muted);font-size:14px;max-width:48%}
.mrow .mr-ic{width:22px;display:grid;place-items:center;color:var(--muted)}
.item{display:flex;gap:12px;padding:14px;align-items:flex-start}
.item .thumb{width:54px;height:54px;border-radius:14px;background:var(--brand-soft);display:grid;place-items:center;flex:0 0 auto;color:var(--brand-strong);overflow:hidden}
.item .meta{color:var(--muted);font-size:13px;display:flex;flex-direction:column;gap:3px;margin-top:4px}
.item .meta .mi{display:flex;align-items:center;gap:6px}
.send-btn{width:40px;height:40px;border-radius:12px;background:var(--surface-2);border:0;display:grid;place-items:center;color:var(--text);flex:0 0 auto;align-self:center}
.chat-wrap{display:flex;flex-direction:column;gap:10px}
.bubble{max-width:78%;padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.4;position:relative}
.bubble.in{background:var(--brand-soft);color:var(--text);align-self:flex-start;border-bottom-left-radius:5px}
.bubble.out{background:var(--surface-2);color:var(--text);align-self:flex-end;border-bottom-right-radius:5px}
.bubble .t{font-size:10.5px;color:var(--muted-2);margin-top:3px;text-align:right}
.day-sep{text-align:center;color:var(--muted-2);font-size:12px;margin:6px 0}
.composer{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:10px 12px calc(10px + var(--sab));background:var(--surface);border-top:1px solid var(--line);margin:0 -16px -24px}
.composer input{flex:1;border:0;background:var(--surface-2);border-radius:999px;padding:12px 16px;font-size:15px;color:var(--text)}
.composer .cbtn{width:42px;height:42px;border-radius:50%;border:0;display:grid;place-items:center;flex:0 0 auto}
.composer .cbtn.send{background:var(--brand);color:var(--brand-ink)}
.composer .cbtn.ghost{background:transparent;color:var(--muted)}
.banner-top{background:linear-gradient(135deg,var(--brand),var(--brand-strong));color:var(--brand-ink);padding:12px 16px;border-radius:var(--radius);display:flex;align-items:center;gap:10px;font-weight:700}
.empty{text-align:center;color:var(--muted);padding:48px 24px}
.empty .em-ic{width:64px;height:64px;border-radius:20px;background:var(--surface-2);display:grid;place-items:center;margin:0 auto 14px;color:var(--muted-2)}
.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:60;opacity:0;animation:fade .2s forwards}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;background:var(--surface);border-radius:22px 22px 0 0;padding:10px 16px calc(18px + var(--sab));transform:translateY(100%);animation:slideup .28s cubic-bezier(.2,.8,.2,1) forwards;max-width:560px;margin:0 auto}
.sheet .grip{width:38px;height:4px;border-radius:999px;background:var(--line);margin:4px auto 14px}
.sheet h3{margin:0 0 12px;font-size:17px;text-align:center}
.sheet-action{width:100%;text-align:center;padding:15px;border:0;background:transparent;font-size:16px;color:var(--text);border-radius:12px;font-weight:600}
.sheet-action.danger{color:var(--danger)}
.sheet-action.primary{color:var(--info);font-weight:700}
.sheet-list .sheet-action + .sheet-action{border-top:1px solid var(--line)}
.dialog-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:60;display:grid;place-items:center;opacity:0;animation:fade .18s forwards;padding:28px}
.dialog{width:100%;max-width:300px;background:var(--surface);border-radius:16px;overflow:hidden;text-align:center;animation:pop .2s cubic-bezier(.2,.8,.2,1)}
.dialog .dlg-body{padding:20px 18px 16px}
.dialog .dlg-title{font-weight:800;font-size:16px;margin-bottom:5px}
.dialog .dlg-text{font-size:13.5px;color:var(--muted)}
.dialog .dlg-actions{display:flex;border-top:1px solid var(--line)}
.dialog .dlg-actions button{flex:1;padding:13px;border:0;background:transparent;font-size:16px;font-weight:600;color:var(--info)}
.dialog .dlg-actions button + button{border-left:1px solid var(--line)}
.dialog .dlg-actions button.danger{color:var(--danger);font-weight:700}
.toast-root{position:fixed;left:0;right:0;bottom:calc(var(--tabbar-h) + var(--sab) + 16px);z-index:80;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toast{background:#15161A;color:#fff;padding:11px 16px;border-radius:12px;font-size:13.5px;max-width:86%;box-shadow:0 10px 30px -10px rgba(0,0,0,.5);animation:toastin .25s ease}
[data-theme="dark"] .toast{background:#2A2C33}
@keyframes fade{to{opacity:1}}
@keyframes slideup{to{transform:translateY(0)}}
@keyframes pop{from{transform:scale(.9);opacity:0}}
@keyframes toastin{from{transform:translateY(8px);opacity:0}}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.view > *{animation:rise .32s ease both}
@media (prefers-reduced-motion:reduce){*{animation:none !important}}
