:root {
  --bg: #23272e;
  --bg-2: #2b3038;
  --panel: #2c323b;
  --panel-2: #343b45;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eceef1;
  --muted: #9aa1ab;
  --faint: #6c727c;
  --accent: #e8542a;
  --accent-2: #ff6a3d;
  --accent-soft: rgba(232, 84, 42, 0.14);
  --green: #5fb88f;
  --amber: #e0a23a;
  --red: #e8542a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: Georgia, "Times New Roman", serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background:
    radial-gradient(1100px 680px at 50% -8%, #343a44 0%, var(--bg) 58%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* shared type treatments from the reference */
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: var(--faint);
  margin: 0;
}
.tracked { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; }

/* ---------- app bar ---------- */
.appbar {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 20px; padding: 15px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.84); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.appbar-left { display: flex; align-items: center; gap: 12px; }
.gauge { color: var(--accent); display: flex; }
.gauge svg { width: 28px; height: 28px; }
.wordmark { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text); font-weight: 700; }

.appbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.iconnav { position: relative; display: flex; gap: 4px; }
.nav-btn {
  width: 40px; height: 40px; border: none; background: transparent; color: var(--muted);
  border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-btn.active { color: var(--accent); }
.nav-btn.deferred { opacity: 0.38; cursor: default; }
.nav-btn.deferred:hover { color: var(--muted); background: transparent; }
.nav-ind {
  position: absolute; bottom: -7px; left: 0; width: 40px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: transform 0.28s cubic-bezier(.4, 1.2, .5, 1);
}
.add-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(232, 84, 42, 0.32); transition: background 0.15s;
}
.add-btn svg { width: 20px; height: 20px; }
.add-btn:hover { background: var(--accent-2); }

.btn {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--accent); color: #fff; }
.btn-primary {
  margin-left: auto;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 84, 42, 0.32);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); border-color: rgba(232, 84, 42, 0.4); }
.btn-danger:hover { background: var(--accent-soft); border-color: var(--red); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 11px; }

/* (the old summary strip is gone — counts now live in Stats + the bottom bar) */

/* icon tiles (rounded square, thin border, line icon) */
.tile {
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.tile svg { width: 20px; height: 20px; }
.tile.sm { width: 30px; height: 30px; border-radius: 8px; }
.tile.sm svg { width: 15px; height: 15px; }
.tile.accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- garage showcase ---------- */
.view { animation: viewfade 0.3s ease; }
@keyframes viewfade { from { opacity: 0; } to { opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 20px; padding: 24px 32px 8px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 18px; padding: 14px 32px 28px; }
.vcard {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 16 / 9; border: 1px solid var(--line);
  background: linear-gradient(180deg, #2f353e, #23282f);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sec-grid .vcard { aspect-ratio: 3 / 4; }
.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .art { position: absolute; width: 82%; left: 9%; top: 50%; transform: translateY(-50%); filter: drop-shadow(0 14px 20px rgba(0,0,0,0.5)); }
.vcard-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,10,13,0.92) 0%, rgba(8,10,13,0.35) 40%, rgba(8,10,13,0) 66%); }
/* headlight "on" glow */
.lights { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.light {
  position: absolute;
  width: 13%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 252, 244, 0.98) 0%,
    rgba(255, 244, 216, 0.72) 20%,
    rgba(255, 232, 184, 0.28) 44%,
    rgba(255, 226, 170, 0) 68%);
  mix-blend-mode: screen;
  filter: blur(0.5px);
  box-shadow: 0 0 22px 6px rgba(255, 238, 200, 0.5), 0 0 60px 18px rgba(255, 226, 170, 0.28);
  animation: hlpulse 5s ease-in-out infinite;
}
@keyframes hlpulse { 0%, 100% { opacity: 0.9; } 50% { opacity: 1; } }
/* placement mode in the form preview */
.photo-preview .light { width: 22%; }
.photo-preview.placing { cursor: crosshair; }
.lights.editing { pointer-events: auto; }
.lights.editing .light { pointer-events: auto; cursor: pointer; outline: 1px dashed rgba(255, 255, 255, 0.5); outline-offset: 2px; }

/* vehicle card overlay */
.vcard-brand { position: absolute; top: 14px; left: 14px; z-index: 3; color: #fff; }
.brandmark { display: block; opacity: 0.92; }
.brandmark svg { display: block; height: 28px; width: auto; }
.sec-grid .brandmark svg { height: 22px; }
.brandmark.audi svg { height: 18px; }
.sec-grid .brandmark.audi svg { height: 15px; }
.vcard-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 18px; }
.vcard-name { display: flex; align-items: stretch; gap: 12px; }
.name-bar { width: 3px; min-height: 30px; background: var(--accent); border-radius: 2px; transition: min-height 0.25s ease; }
.sec-grid .name-bar { min-height: 24px; }
.vcard-name h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; line-height: 1.18; }
.sec-grid .vcard-name h3 { font-size: 14px; }
.vcard-year { font-size: 12px; color: var(--accent-2); letter-spacing: 0.12em; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* always-on status strip */
.statusbar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: rgba(16, 18, 22, 0.55);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(3px);
}
.sb .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.sb.ok { color: #cfe9dd; } .sb.ok .dot { background: var(--green); }
.sb.warn { color: #f0dcae; } .sb.warn .dot { background: var(--amber); }
.sb.danger { color: #f6c3b3; border-color: rgba(232, 84, 42, 0.45); } .sb.danger .dot { background: var(--accent); }
.sec-grid .statusbar { gap: 6px; }
.sec-grid .sb { font-size: 9px; padding: 3px 7px; }

.card-reg {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-weight: 700; background: #f5d300; color: #111;
  padding: 1px 7px; border-radius: 4px; font-size: 12px; letter-spacing: 0.5px;
  text-transform: none;
}

/* ---------- upcoming timeline ---------- */
.panel {
  margin: 22px 34px 64px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.panel .eyebrow { margin-bottom: 6px; }
.panel h2 { margin: 0 0 18px; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.tl-row {
  display: grid; grid-template-columns: 44px 116px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
}
.tl-date { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-rel { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.tl-main { display: flex; flex-direction: column; gap: 3px; }
.tl-main strong { font-size: 14px; font-weight: 600; }
.tl-main span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.tl-row.danger { border-color: rgba(232, 84, 42, 0.45); }
.tl-row.warn { border-color: rgba(224, 162, 58, 0.35); }
.cat-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2);
}

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 12, 15, 0.62); backdrop-filter: blur(2px); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(540px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  z-index: 50; overflow-y: auto;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #2f353e, #23282f);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.drawer-hero svg.art { width: 66%; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.55)); }
.drawer-close {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(20,23,28,0.7); color: var(--text);
  font-size: 18px; cursor: pointer; backdrop-filter: blur(4px); z-index: 2;
}
.drawer-close:hover { border-color: var(--accent); }

.drawer-body { padding: 22px 24px 44px; }
.drawer-body > h2 { margin: 0 0 3px; font-size: 23px; font-weight: 600; letter-spacing: 0.01em; }
.drawer-meta { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.section-head h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

.rec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--panel); }
.rec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rec-top strong { font-size: 14px; font-weight: 600; }
.rec-sub { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.rec-actions { display: flex; gap: 4px; }
.icon-btn { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 60px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions .btn { flex: 1; padding: 12px; }

/* photo picker */
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-preview {
  width: 132px; height: 80px; flex: none; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, #2f353e, #262b32);
  display: flex; align-items: center; justify-content: center;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview svg.art { width: 78%; }
.photo-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.file-btn {
  display: inline-block; text-align: center; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 9px; padding: 9px; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--text);
}
.file-btn:hover { border-color: var(--accent); }
.photo-actions input[type=file] { display: none; }
.light-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.light-tools .btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.hint { font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }

.empty { text-align: center; color: var(--muted); padding: 48px; font-size: 14px; }

/* ---------- Stage 2: mileage / wear / history / todos / settings ---------- */
.mileage-edit { cursor: pointer; }
.mileage-edit:hover { color: var(--text); }

.section-head .spend { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* wear items */
.rec.wear .rec-top strong { display: flex; align-items: center; gap: 8px; }
.wear-ic { display: inline-flex; color: var(--muted); }
.wear-ic svg { width: 16px; height: 16px; }
.wear-due { font-weight: 700; }
.wear-due.ok { color: var(--green); }
.wear-due.warn { color: var(--amber); }
.wear-due.danger { color: var(--accent); }
.wear-track { margin-top: 9px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.wear-bar { height: 100%; border-radius: 4px; background: var(--green); }
.wear-bar.warn { background: var(--amber); }
.wear-bar.danger { background: var(--accent); }

/* history rows */
.hist-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.hist-row:first-of-type { border-top: none; }
.hist-cat { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.hist-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hist-main strong { font-size: 14px; font-weight: 600; }
.hist-main span { font-size: 12px; color: var(--muted); }

/* to-dos */
.todo-add { display: flex; gap: 8px; margin: 4px 0 12px; }
.todo-add input[name=title] { flex: 1; }
.todo-add input { background: var(--panel); border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 8px 10px; font-size: 14px; font-family: inherit; }
.todo-add input:focus { outline: none; border-color: var(--accent); }
.todo-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.todo-row:first-of-type { border-top: none; }
.todo-check { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; padding: 0; }
.todo-check.on { background: var(--accent); border-color: var(--accent); }
.todo-check svg { width: 13px; height: 13px; }
.todo-title { flex: 1; font-size: 14px; }
.todo-row.done .todo-title { text-decoration: line-through; color: var(--faint); }
.todo-due { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.todo-due.warn { color: var(--amber); }
.todo-due.danger { color: var(--accent); }

/* settings / diagnostics */
.dvsa-status { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 0 4px; }
.dvsa-status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dvsa-status.ok { color: var(--green); } .dvsa-status.ok .dot { background: var(--green); }
.dvsa-status.danger { color: var(--text); } .dvsa-status.danger .dot { background: var(--accent); }
.dvsa-test { display: flex; gap: 8px; margin-top: 12px; }
.dvsa-test input { flex: 1; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 9px 11px; font-size: 14px; font-family: inherit; }
.dvsa-test input:focus { outline: none; border-color: var(--accent); }
.dvsa-applies { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dvsa-apply { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
code { background: var(--panel); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------- auth / login ---------- */
body.locked { overflow: hidden; }
body.locked .appbar, body.locked #app, body.locked .statbar { display: none !important; }
.auth-gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1100px 680px at 50% -8%, #343a44 0%, var(--bg) 58%), var(--bg);
}
.auth-card {
  width: min(380px, 100%); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px 28px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.auth-mark { color: var(--accent); display: flex; justify-content: center; margin-bottom: 8px; }
.auth-mark svg { width: 34px; height: 34px; }
.auth-card h1 { margin: 0; text-align: center; font-size: 22px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; }
.auth-sub { margin: 4px 0 20px; text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.auth-card label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.auth-card input {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 9px; padding: 11px 12px; font-size: 15px; font-family: inherit; margin-bottom: 14px;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card .btn-primary { margin-top: 4px; padding: 12px; justify-content: center; }
.auth-error { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.auth-hint { font-size: 12px; color: var(--faint); margin: 14px 0 0; line-height: 1.5; }

/* account + users admin */
.admin-badge, .you-badge {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; vertical-align: middle;
}
.admin-badge { background: var(--accent-soft); color: var(--accent-2); }
.you-badge { background: rgba(255,255,255,0.08); color: var(--muted); }
.pw-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pw-form input[type=password], .pw-form input[name=username] {
  flex: 1; min-width: 140px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 9px; padding: 9px 11px; font-size: 14px; font-family: inherit;
}
.pw-form input:focus { outline: none; border-color: var(--accent); }
.user-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.user-row:first-child { border-top: none; }
.user-name { font-size: 14px; }

/* ---------- bottom stat bar ---------- */
.statbar {
  display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center;
  padding: 16px 32px; border-top: 1px solid var(--line); background: rgba(18, 20, 24, 0.6);
}
.statbar .si { display: flex; align-items: center; gap: 12px; }
.statbar .si .tile { width: 34px; height: 34px; border-radius: 9px; }
.statbar .si .tile svg { width: 17px; height: 17px; }
.statbar .sv { font-size: 18px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.statbar .sl { font-size: 10px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; display: block; }

/* ---------- stats view ---------- */
.stats-wrap { padding: 26px 32px 40px; display: grid; gap: 18px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.stat-card.danger .big { color: var(--accent); }
.stat-card.warn .big { color: var(--amber); }
.month-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.month-row:first-of-type { border-top: none; }
.month-row .mlabel { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.month-row .mtrack { background: rgba(255,255,255,0.05); border-radius: 4px; height: 8px; }
.month-row .mbar { height: 8px; border-radius: 4px; background: var(--accent); }
.month-row .mcount { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
  .vcard:hover .media { transform: scale(1.06); }
  .vcard:hover .name-bar { min-height: 46px; }
  .vcard:hover .light {
    opacity: 1 !important;
    box-shadow: 0 0 30px 10px rgba(255, 238, 200, 0.72), 0 0 84px 30px rgba(255, 226, 170, 0.42);
  }
  .vcard { animation: cardIn 0.5s cubic-bezier(.2, .7, .3, 1) both; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .vcard::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.10) 48%, transparent 58%);
    transform: translateX(-130%);
  }
  .vcard.hero::after { animation: sheen 9s ease-in-out 2.5s infinite; }
  @keyframes sheen { 0% { transform: translateX(-130%); } 14% { transform: translateX(130%); } 100% { transform: translateX(130%); } }
}

@media (max-width: 760px) {
  .appbar { padding: 12px 16px; }
  .hero-grid, .sec-grid { padding-left: 16px; padding-right: 16px; grid-template-columns: 1fr; }
  .panel { margin-left: 16px; margin-right: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 44px 1fr; }
  .statbar { gap: 12px 24px; }
}
