:root {
  --black: #0a0a0d;
  --row: #16161a;
  --silver: #e6e6ea;
  --muted: #8b8b95;
  --gold: #dbb84a;
  --error: #e0605f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font: 15px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif;
}

.screen { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }

.logo { font-size: 34px; font-weight: 700; }
.tagline { color: var(--muted); margin: 0 0 18px; }
.signin { min-height: 44px; }

.app-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-header h1 { font-size: 30px; margin: 0; flex: 1; }
.actions { display: flex; gap: 8px; }

button.ghost {
  background: var(--row);
  color: var(--gold);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
button.ghost:hover { border-color: var(--gold); }
button.small { padding: 6px 10px; font-size: 12px; }
button.danger { color: var(--error); }

.list { display: flex; flex-direction: column; gap: 8px; }
.stats { display: flex; gap: 8px; margin-bottom: 4px; }
.pill { background: var(--row); border-radius: 999px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.pill b { color: var(--gold); margin-right: 4px; }

.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--row); border-radius: 14px; padding: 12px 14px;
}
.row-main { flex: 1; min-width: 0; }
.row-actions { display: flex; gap: 6px; }
.title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prices { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; }
.current { color: var(--gold); font-weight: 700; }
.was { color: var(--muted); text-decoration: line-through; }
.badge { background: var(--gold); color: var(--black); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.low { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty h2 { color: var(--silver); font-size: 17px; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 13px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--black); width: 100%; max-width: 720px; max-height: 88vh; overflow: auto;
         border-radius: 18px 18px 0 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet-head { display: flex; align-items: center; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 20px; }
.chips { display: flex; gap: 8px; }
.chip { background: var(--row); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.chip.active { background: var(--gold); color: var(--black); }
.search { background: var(--row); border: none; border-radius: 12px; padding: 12px 14px; color: var(--silver); font-size: 15px; }
.results { display: flex; flex-direction: column; gap: 8px; }

.error { color: var(--error); font-size: 13px; max-width: 420px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
         background: var(--row); border: 1px solid rgba(219,184,74,.45); border-radius: 8px;
         padding: 10px 14px; font-size: 13px; max-width: 90vw; }
