:root { --blue:#1D4ED8; --ink:#111827; --muted:#6B7280; --line:#E5E7EB; --bg:#FFFFFF; --soft:#F3F6FD; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); padding-bottom:76px; }
.topbar { position:sticky; top:0; display:flex; justify-content:space-between; align-items:center; padding:14px 18px; background:var(--bg); border-bottom:1px solid var(--line); z-index:5; }
.logo { font-size:22px; font-weight:800; letter-spacing:-.02em; }
.logo span { color:var(--blue); }
.counter { font-size:13px; color:var(--blue); background:var(--soft); padding:5px 10px; border-radius:999px; font-weight:600; }
main { max-width:560px; margin:0 auto; padding:18px; }
h1 { font-size:24px; margin:6px 0 8px; }
.sub { color:var(--muted); font-size:14px; }
.note { color:var(--muted); font-size:13px; }
.hidden { display:none !important; }
form label { display:block; font-size:14px; font-weight:600; margin:14px 0 4px; }
input, select { width:100%; padding:11px; border:1px solid var(--line); border-radius:10px; font-size:16px; margin-top:4px; background:#fff; }
button.primary { background:var(--blue); color:#fff; border:0; border-radius:10px; padding:12px 18px; font-size:16px; font-weight:700; width:100%; margin-top:18px; cursor:pointer; }
.card { border:1px solid var(--line); border-radius:14px; padding:14px; margin:12px 0; }
.looking { display:flex; justify-content:space-between; align-items:center; }
.switch { position:relative; width:52px; height:30px; flex:none; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; background:#D1D5DB; border-radius:999px; transition:.2s; cursor:pointer; }
.switch span:before { content:""; position:absolute; width:24px; height:24px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + span { background:var(--blue); }
.switch input:checked + span:before { transform:translateX(22px); }
.alley-pick { display:block; font-size:14px; font-weight:600; margin:10px 0; }
.filters { display:flex; gap:14px; font-size:13px; color:var(--muted); margin:10px 0; }
.filters input { width:64px; padding:6px; font-size:14px; }
.deck-card { border:1px solid var(--line); border-radius:18px; overflow:hidden; margin:14px 0; }
.deck-photo { height:230px; background:linear-gradient(135deg,#1D4ED8,#3B82F6); display:flex; align-items:center; justify-content:center; color:#fff; font-size:64px; font-weight:800; }
.deck-body { padding:14px; }
.deck-age { font-size:30px; font-weight:800; color:var(--blue); }
.deck-name { font-size:19px; font-weight:700; }
.badge { display:inline-block; background:var(--soft); color:var(--blue); border-radius:999px; padding:3px 9px; font-size:12px; font-weight:700; margin:4px 4px 0 0; }
.deck-actions { display:flex; gap:10px; padding:0 14px 14px; }
.deck-actions button { flex:1; padding:12px; border-radius:10px; font-size:15px; font-weight:700; cursor:pointer; }
.btn-pass { background:#fff; border:1px solid var(--line); color:var(--muted); }
.btn-match { background:var(--blue); border:0; color:#fff; }
.banner { background:var(--soft); border:1px solid var(--blue); color:var(--ink); border-radius:12px; padding:12px; margin:12px 0; font-size:14px; }
.tabbar { position:fixed; bottom:0; left:0; right:0; display:flex; background:#fff; border-top:1px solid var(--line); }
.tabbar button { flex:1; padding:14px 0 calc(14px + env(safe-area-inset-bottom)); background:none; border:0; font-size:15px; font-weight:600; color:var(--muted); cursor:pointer; }
.tabbar button.active { color:var(--blue); }
.chip { border:1px solid var(--line); background:#fff; border-radius:999px; padding:8px 14px; font-weight:700; cursor:pointer; margin-right:8px; }
.chip.active { background:var(--blue); color:#fff; border-color:var(--blue); }
.chat-row { display:flex; gap:12px; align-items:center; padding:12px 4px; border-bottom:1px solid var(--line); cursor:pointer; }
.avatar { width:46px; height:46px; border-radius:50%; background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; flex:none; }
#chat-messages { display:flex; flex-direction:column; gap:8px; margin:14px 0; }
.msg { max-width:78%; padding:9px 12px; border-radius:14px; background:var(--soft); font-size:15px; }
.msg.me { align-self:flex-end; background:var(--blue); color:#fff; }
#chat-form { display:flex; gap:8px; }
#chat-form input { flex:1; }
#chat-form button { width:auto; margin-top:0; }
.linklike { background:none; border:0; color:var(--blue); font-size:15px; font-weight:600; cursor:pointer; padding:6px 0; }
.bar { height:10px; background:var(--line); border-radius:999px; overflow:hidden; margin-top:8px; }
.bar div { height:100%; background:var(--blue); }
.empty { color:var(--muted); text-align:center; padding:28px 10px; font-size:15px; }
