:root {
  --bg: #000; --surface: #121214; --raised: #1d1d20; --sheet: #17171a;
  --line: #27272b; --line-strong: #3b3b41; --text: #fff; --muted: #a1a1aa; --dim: #8b8b94;
  --cyan: #00d3e6; --pink: #ff3985; --up: #32d74b; --down: #ffb020;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.app { min-height: 100vh; padding-bottom: calc(72px + var(--safe-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.brand { font-weight: 700; letter-spacing: .02em; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); border: 0; color: var(--cyan); }
.pad { padding: 0 16px 24px; }
h1 { font-size: 28px; margin: 8px 0; }
h2 { font-size: 18px; margin: 18px 0 8px; }
.muted { color: var(--muted); font-size: 13px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile, .card, .sheet, .lock, .advice { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tile { padding: 12px; }
.tile b { display: block; font-size: 22px; margin-top: 4px; }
.row { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.chip, .btn, .ghost { border-radius: 999px; border: 1px solid var(--line); background: var(--raised); padding: 10px 14px; min-height: 44px; }
.chip.on, .btn.primary { background: var(--cyan); color: #000; border-color: transparent; font-weight: 650; }
.btn.pink { background: var(--pink); color: #fff; border: 0; }
.card { display: flex; gap: 12px; padding: 10px; margin: 8px 0; }
.card img, .ph { width: 96px; height: 128px; object-fit: cover; border-radius: 12px; background: var(--raised); flex: none; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.heart { margin-left: auto; background: none; border: 0; font-size: 20px; min-width: 44px; min-height: 44px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #121214; border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); z-index: 5; }
.tabs button { flex: 1; background: none; border: 0; color: var(--dim); padding: 10px 0 8px; min-height: 56px; }
.tabs button.on { color: var(--cyan); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(16px + var(--safe-bottom)); z-index: 6; }
.advice { padding: 12px; margin: 8px 0; }
.advice.hot { border-color: var(--pink); }
.advice.caution { border-color: var(--down); }
.lock { padding: 14px; margin: 8px 0; }
.up { color: var(--up); } .down { color: var(--down); }
input, textarea, select { width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 44px; font-size: 16px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 84px; background: var(--raised); padding: 12px; border-radius: 12px; }
.side { display: none; }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 220px 1fr; padding-bottom: 0; }
  .tabs { display: none; }
  .side { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-right: 1px solid var(--line); min-height: 100vh; }
  .side button { text-align: left; }
}
