:root {
  color-scheme: dark;
  --bg: #080c17;
  --panel: #111827;
  --panel-2: #172033;
  --line: rgba(255,255,255,.09);
  --text: #f5f7fb;
  --muted: #8d99ad;
  --accent: #7c5cff;
  --cyan: #37d5c4;
  --yellow: #f5b942;
  --red: #ff647c;
  --green: #45d483;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 20% -10%, #202d5c 0, transparent 38%), var(--bg); color: var(--text); font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
.shell { width: min(100%, 620px); margin: 0 auto; min-height: 100vh; padding: 18px 16px calc(90px + env(safe-area-inset-bottom)); }
.hidden { display: none !important; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin: 0; } h1 { font-size: 29px; letter-spacing: -.04em; } h2 { font-size: 19px; } h3 { font-size: 15px; }
.updated { color: var(--muted); font-size: 12px; margin: 4px 0 18px; }
.icon-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { background: linear-gradient(145deg, rgba(23,32,51,.96), rgba(13,19,33,.96)); border: 1px solid var(--line); border-radius: 20px; padding: 15px; }
.metric { min-height: 102px; } .metric .number { display: block; font-size: 30px; font-weight: 800; margin: 8px 0 2px; } .metric small, .muted { color: var(--muted); }
.metric.cyan .number { color: var(--cyan); } .metric.yellow .number { color: var(--yellow); } .metric.red .number { color: var(--red); } .metric.purple .number { color: #aa94ff; }
.section { margin-top: 18px; } .section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; }
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.action { text-align: left; min-height: 90px; padding: 15px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); }
.action strong { display:block; margin-bottom: 6px; } .action span { color: var(--muted); font-size: 12px; }
.primary, .secondary, .danger { padding: 13px 16px; border-radius: 14px; font-weight: 750; }
.primary { background: linear-gradient(135deg, #7c5cff, #5f45d8); } .secondary { background: #25304a; } .danger { background: rgba(255,100,124,.16); color: #ff9bad; }
.row { display:flex; align-items:center; justify-content:space-between; gap: 10px; } .stack { display:grid; gap:10px; }
.list-card { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 17px; }
.pill { display:inline-flex; padding: 4px 8px; border-radius: 99px; font-size: 11px; background: rgba(69,212,131,.13); color: var(--green); }
.pill.warn { color: var(--yellow); background: rgba(245,185,66,.14); } .pill.bad { color: var(--red); background: rgba(255,100,124,.14); } .pill.info { color: #ad9cff; background: rgba(124,92,255,.16); }
.toolbar { display:flex; gap:8px; overflow:auto; padding-bottom: 3px; } .toolbar > * { flex: 0 0 auto; }
input, select, textarea { width:100%; border: 1px solid var(--line); background: #0d1424; color: var(--text); padding: 12px; border-radius: 13px; outline: none; } textarea { min-height: 100px; resize: vertical; }
.tab { padding: 9px 12px; border-radius: 99px; background: var(--panel); color: var(--muted); } .tab.active { color: white; background: #40358a; }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 620px); display:grid; grid-template-columns: repeat(5,1fr); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,16,32,.92); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.nav-item { display:grid; gap:3px; justify-items:center; background: transparent; color: var(--muted); padding: 6px 2px; } .nav-item span { font-size: 21px; } .nav-item small { font-size: 10px; } .nav-item.active { color: white; } .nav-item.active span { color: var(--cyan); }
.lock { display:grid; place-items:center; text-align:center; min-height: 80vh; gap: 12px; } .lock p { max-width: 290px; color: var(--muted); } .lock-mark { display:grid; place-items:center; width:72px; height:72px; border-radius:24px; background:linear-gradient(135deg,#7c5cff,#37d5c4); font-size:36px; font-weight:900; }
.toast { position: fixed; left: 50%; bottom: 94px; transform: translate(-50%, 20px); opacity:0; pointer-events:none; padding: 11px 15px; border-radius: 12px; background:#f5f7fb; color:#101522; font-size:13px; transition:.2s; z-index:10; } .toast.show { opacity:1; transform:translate(-50%,0); }
.empty { text-align:center; padding:30px 15px; color: var(--muted); }
.inline-edit { display:flex; align-items:center; gap:6px; justify-content:flex-end; }
.inline-edit input { width: 130px; }
.photo-list { display:flex; flex-wrap:wrap; gap:8px; }
.photo-chip { position:relative; width:72px; height:72px; }
.photo-chip img { width:100%; height:100%; object-fit:cover; border-radius:12px; border:1px solid var(--line); background:#0d1424; }
.photo-chip button { position:absolute; right:-5px; top:-7px; width:23px; height:23px; border-radius:50%; background:var(--red); color:white; font-weight:800; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4,1fr); } .actions { grid-template-columns: repeat(4,1fr); } }
