:root { --bg:#17131c; --card:#221c2a; --line:#352c40; --text:#f2ecf7; --dim:#a99bb8; --accent:#e0568c; --curious:#8a7be0; --ok:#4fbf8a; --warn:#e0a056; --bad:#ff9a9a; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; background:var(--bg); color:var(--text); font:16px/1.5 system-ui, sans-serif; }
main { flex:1; width:100%; max-width:640px; margin:0 auto; padding:16px 16px 24px; }
h1 { font-size:26px; margin:8px 0 2px; } h2 { font-size:19px; margin:0 0 8px; } h3 { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--dim); margin:16px 0 6px; }
p { margin:6px 0; } a { color:var(--accent); }
.dim { color:var(--dim); font-size:14px; } .warn { color:var(--warn); font-size:14px; } .err { color:var(--bad); min-height:22px; font-size:14px; } .okmsg { color:var(--ok); font-size:14px; min-height:22px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin:12px 0; }
label { display:block; font-size:14px; color:var(--dim); margin:10px 0 4px; } label.check { display:flex; gap:8px; align-items:flex-start; color:var(--text); }
input, textarea, select { width:100%; background:#1b1622; color:var(--text); border:1px solid var(--line); border-radius:10px; padding:10px 12px; font:inherit; }
input[type=checkbox] { width:auto; margin-top:5px; } textarea { min-height:80px; resize:vertical; }
button { font:inherit; border:0; border-radius:10px; padding:10px 16px; cursor:pointer; background:var(--accent); color:#fff; font-weight:600; }
button:disabled { opacity:.5; cursor:default; }
button.ghost { background:transparent; color:var(--text); border:1px solid var(--line); font-weight:500; } button.small { padding:5px 10px; font-size:13px; } button.link { background:none; color:var(--accent); padding:0; font-weight:500; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; } .grow { flex:1; } .tools { margin-left:auto; flex-wrap:nowrap; gap:6px; } .gap { margin-top:14px; } .flat { margin:0; }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { border:1px solid var(--line); border-radius:999px; padding:4px 11px; font-size:14px; background:transparent; color:var(--text); font-weight:500; }
.chip.on, .chip.love { background:var(--accent); border-color:var(--accent); } .chip.curious { background:var(--curious); border-color:var(--curious); }
.chip.limit { border-style:dashed; color:var(--dim); text-decoration:line-through; } .chip.shared { box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--ok); margin:2px; } .chip.clash { border-color:var(--warn); color:var(--warn); text-decoration:none; }
.legend span { margin-right:12px; font-size:13px; }
.score { font-size:13px; color:var(--ok); border:1px solid var(--ok); border-radius:999px; padding:1px 9px; }
.ai { font-size:12px; font-weight:700; letter-spacing:.04em; color:#17131c; background:#9fd8ff; border-radius:6px; padding:2px 7px; }
.code { font:600 20px/1.6 ui-monospace, monospace; letter-spacing:.06em; background:#1b1622; border:1px dashed var(--line); border-radius:10px; padding:12px; text-align:center; user-select:all; overflow-wrap:anywhere; }
.photos { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:8px; } .photos figure { margin:0; }
.photos img, .hero { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:10px; background:#1b1622; display:block; }
.hero { aspect-ratio:4/5; margin-bottom:10px; } .thumbs { display:flex; gap:6px; margin-bottom:10px; } .thumbs img { width:64px; height:80px; object-fit:cover; border-radius:8px; cursor:pointer; background:#1b1622; }
audio { width:100%; margin-top:8px; }
.msgs { display:flex; flex-direction:column; gap:6px; max-height:52vh; overflow:auto; padding:4px 0; }
.msg { max-width:80%; padding:8px 12px; border-radius:14px; background:#2c2436; white-space:pre-wrap; overflow-wrap:anywhere; } .msg.me { align-self:flex-end; background:var(--accent); }
nav { position:fixed; left:0; right:0; bottom:0; z-index:5; background:#1b1622; border-top:1px solid var(--line); display:flex; justify-content:center; gap:6px; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); }
nav button { background:transparent; color:var(--dim); font-weight:500; } nav button.on { color:var(--text); background:var(--card); }
footer { width:100%; max-width:640px; margin:0 auto; padding:8px 16px calc(84px + env(safe-area-inset-bottom)); font-size:13px; color:var(--dim); display:flex; gap:14px; flex-wrap:wrap; } footer a { color:var(--dim); }
.doc h2 { margin-top:26px; } .doc li { margin:4px 0; }
.overlay { position:fixed; inset:0; z-index:20; background:rgba(10,8,14,.74); display:flex; align-items:center; justify-content:center; padding:16px; }
.dialog { width:100%; max-width:420px; margin:0; } button.danger { background:#c0392b; }
[hidden] { display:none !important; }
