*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0F172A;
  --primary-l: #1E293B;
  --accent: #F97316;
  --accent-h: #EA580C;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text: #0F172A;
  --text-s: #64748B;
  --border: #E2E8F0;
  --border-f: #94A3B8;
  --ok: #10B981;
  --err: #EF4444;
  --warn: #F59E0B;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.1);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ─── Views ─── */
.view {
  display: none;
  flex: 1;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.view.active { display: block; }

/* ─── Bottom Nav ─── */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.nav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: none; border: none;
  color: var(--text-s);
  font: 600 11px/1 var(--font);
  cursor: pointer;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  padding: 8px 4px;
}
.nav-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-btn.active { color: var(--accent); }
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

/* ─── Headers ─── */
.page-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  min-height: 44px;
}
.page-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  flex: 1;
}
.page-subtitle { font-size: 13px; color: var(--text-s); margin-top: 2px; }

/* ─── Back Button ─── */
.btn-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); border: none; border-radius: 10px;
  cursor: pointer; color: var(--text);
  transition: background .15s;
  flex-shrink: 0;
}
.btn-back:active { background: var(--border); }
.btn-back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── Step Indicator ─── */
.step-indicator {
  display: flex; gap: 6px; margin-bottom: 20px; align-items: center; justify-content: center;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: all .2s;
}
.step-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.step-dot.done { background: var(--ok); }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .card-grid.brands { grid-template-columns: repeat(2, 1fr); } }

.brand-card {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px 16px;
  -webkit-tap-highlight-color: transparent;
}
.brand-card:active { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.brand-logo {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.brand-name { font-size: 16px; font-weight: 700; }

.model-card {
  cursor: pointer; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.model-card:active { border-color: var(--accent); }
.model-img {
  width: 100%; aspect-ratio: 3/2; overflow: hidden;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.model-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s;
}
.model-card:hover .model-img img { transform: scale(1.05); }
.model-img-placeholder {
  color: var(--text-s); opacity: .3;
}
.model-img-placeholder svg { width: 40px; height: 40px; }
.model-info { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.model-name { font-size: 15px; font-weight: 700; }
.model-segment { font-size: 11px; color: var(--text-s); text-transform: uppercase; letter-spacing: 0.5px; }
.model-price { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* ─── Variant List ─── */
.variant-list { display: flex; flex-direction: column; gap: 8px; }
.variant-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.variant-item:active { border-color: var(--accent); }
.variant-name { font-size: 14px; font-weight: 600; }
.variant-meta { font-size: 12px; color: var(--text-s); margin-top: 2px; }
.variant-price { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ─── Form Elements ─── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-s); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input, .form-select {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-input::placeholder { color: var(--border-f); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-input.error, .form-select.error { border-color: var(--err); }
.form-error { font-size: 12px; color: var(--err); margin-top: 4px; }

textarea.form-input { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  font: 600 15px var(--font);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-h); }
.btn-secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:active { background: var(--border); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:active { background: #059669; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:active { background: #DC2626; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── Price Breakdown ─── */
.breakdown { margin: 16px 0; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 14px;
}
.breakdown-row + .breakdown-row { border-top: 1px solid var(--surface-alt); }
.breakdown-label { color: var(--text-s); }
.breakdown-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown-total {
  border-top: 2px solid var(--primary);
  padding-top: 12px; margin-top: 4px;
  font-size: 16px;
}
.breakdown-total .breakdown-label { color: var(--text); font-weight: 700; }
.breakdown-total .breakdown-value { color: var(--accent); font-weight: 800; font-size: 18px; }

/* ─── Accessories Checklist ─── */
.acc-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.acc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s;
}
.acc-item.selected { border-color: var(--accent); background: #FFF7ED; }
.acc-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.acc-item.selected .acc-check { background: var(--accent); border-color: var(--accent); }
.acc-item.selected .acc-check::after { content: ''; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.acc-info { flex: 1; }
.acc-name { font-size: 14px; font-weight: 500; }
.acc-price { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ─── Toast ─── */
#toast {
  position: fixed; top: 16px; left: 16px; right: 16px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast-msg {
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease;
  pointer-events: auto;
}
.toast-msg.ok { background: var(--ok); }
.toast-msg.err { background: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* ─── Setup Screen ─── */
.setup-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 80dvh; padding: 24px 16px;
  text-align: center;
}
.setup-logo { font-size: 36px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; color: var(--accent); }
.setup-tagline { font-size: 14px; color: var(--text-s); margin-bottom: 32px; }
.setup-form { width: 100%; max-width: 400px; text-align: left; }

/* ─── History List ─── */
.history-item {
  padding: 14px 16px; margin-bottom: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.history-item:active { border-color: var(--accent); }
.history-top { display: flex; justify-content: space-between; align-items: flex-start; }
.history-name { font-size: 15px; font-weight: 600; }
.history-date { font-size: 12px; color: var(--text-s); }
.history-vehicle { font-size: 13px; color: var(--text-s); margin-top: 2px; }
.history-price { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ─── Admin Panel ─── */
.admin-tabs {
  display: flex; gap: 4px;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 8px 16px;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 20px;
  font: 600 13px var(--font); color: var(--text-s);
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s;
}
.admin-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-section { display: none; }
.admin-section.active { display: block; }

.price-edit-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-alt);
}
.price-edit-row:last-child { border-bottom: none; }
.price-edit-name { flex: 1; font-size: 14px; }
.price-edit-input {
  width: 120px; height: 36px; padding: 0 10px;
  font: 600 14px var(--font); color: var(--text);
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 6px; outline: none;
  text-align: right;
}
.price-edit-input:focus { border-color: var(--accent); background: var(--surface); }
.price-overridden { background: #FFF7ED !important; border-color: var(--accent) !important; }

/* ─── Dashboard ─── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  padding: 16px; text-align: center;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-s); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.top-model-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-alt);
}
.top-model-row:last-child { border-bottom: none; }
.top-model-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-s); margin-right: 10px; flex-shrink: 0; }
.top-model-name { flex: 1; font-size: 14px; font-weight: 500; }
.top-model-count { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ─── PIN Dialog ─── */
.pin-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 150; padding: 16px;
}
.pin-dialog {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%; max-width: 320px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pin-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.pin-input {
  width: 100%; height: 52px; text-align: center;
  font: 700 24px var(--font); letter-spacing: 12px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  outline: none; background: var(--surface-alt);
}
.pin-input:focus { border-color: var(--accent); background: var(--surface); }
.pin-error { font-size: 13px; color: var(--err); margin-top: 8px; min-height: 20px; }
.pin-actions { margin-top: 16px; display: flex; gap: 8px; }

/* ─── Quotation Result / Print ─── */
.result-card {
  padding: 24px 20px;
  margin-bottom: 16px;
}
.result-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.result-dealer { font-size: 16px; font-weight: 700; color: var(--primary); }
.result-dealer-sub { font-size: 12px; color: var(--text-s); margin-top: 2px; }
.result-vehicle { font-size: 18px; font-weight: 700; margin: 16px 0 4px; }
.result-variant { font-size: 14px; color: var(--text-s); }
.result-customer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.result-customer-name { font-size: 14px; font-weight: 600; }
.result-customer-phone { font-size: 13px; color: var(--text-s); }
.result-footer { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-s); }
.result-actions { display: flex; gap: 10px; margin-top: 16px; }
.result-actions .btn { flex: 1; }

/* ─── Quotation Search ─── */
.search-bar {
  position: relative;
  margin-bottom: 16px;
}
.search-bar input {
  width: 100%; height: 44px;
  padding: 0 14px 0 40px;
  font: 400 15px var(--font);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; stroke: var(--text-s); fill: none; stroke-width: 2;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center; padding: 48px 16px; color: var(--text-s);
}
.empty-state svg { width: 48px; height: 48px; stroke: var(--border); fill: none; stroke-width: 1.5; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ─── Utility ─── */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-s); }
.fw-600 { font-weight: 600; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

.section-title {
  font-size: 13px; font-weight: 700; color: var(--text-s);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block; padding: 2px 8px;
  font-size: 11px; font-weight: 600;
  border-radius: 20px;
  background: var(--surface-alt); color: var(--text-s);
}
.badge-accent { background: #FFF7ED; color: var(--accent); }

/* ─── Print Styles ─── */
@media print {
  body { background: #fff !important; }
  #bottom-nav, .result-actions, .btn, #toast, .nav-btn, .no-print { display: none !important; }
  .view { padding: 0 !important; }
  .result-card { box-shadow: none !important; border: none !important; padding: 0 !important; }
}

/* ─── Status Badges ─── */
.status-badge {
  display: inline-block; padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  border-radius: 20px; color: #fff;
  text-transform: uppercase; letter-spacing: 0.3px;
}

/* ─── Status Filters ─── */
.status-filters {
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.status-filters::-webkit-scrollbar { display: none; }
.status-filter {
  padding: 6px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px;
  font: 600 12px var(--font); color: var(--text-s);
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s;
}
.status-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Call Button ─── */
.btn-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--ok); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.btn-call svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.btn-call:active { background: #059669; }

a.call-link { color: var(--ok); text-decoration: none; font-weight: 600; }
a.call-link:active { opacity: 0.7; }

/* ─── Status Update Buttons ─── */
.status-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.status-btn {
  padding: 6px 12px;
  font: 600 12px var(--font);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-s);
  cursor: pointer;
  transition: all .15s;
}
.status-btn:active { transform: scale(0.96); }
.status-btn.current { border-color: var(--accent); color: var(--accent); background: #FFF7ED; }

/* ─── Discount Section ─── */
.discount-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.discount-group label { font-size: 12px; color: var(--text-s); font-weight: 600; display: block; margin-bottom: 4px; }
.discount-input {
  width: 100%; height: 40px; padding: 0 10px;
  font: 500 14px var(--font);
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-alt); outline: none;
}
.discount-input:focus { border-color: var(--accent); background: var(--surface); }

/* ─── Validity Banner ─── */
.validity-banner {
  text-align: center; padding: 8px;
  background: #F0FDF4; border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; color: #166534;
  margin-top: 12px;
}

/* ─── Executive Badge ─── */
.exec-badge {
  display: inline-block; padding: 2px 8px;
  font-size: 11px; font-weight: 600;
  border-radius: 4px;
  background: var(--surface-alt); color: var(--text-s);
}

/* ─── User Bar ─── */
#user-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600;
  position: sticky; top: 0; z-index: 90;
}
#user-bar-name {
  display: flex; align-items: center; gap: 8px;
}
#user-bar-name .role-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.2); letter-spacing: 0.5px;
}
#user-bar-switch {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; padding: 6px 12px; border-radius: 6px;
  font: 600 12px var(--font); cursor: pointer; gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
#user-bar-switch:active { background: rgba(255,255,255,.25); }
#user-bar-switch svg { stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── User Selection Screen ─── */
.user-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.user-card:active { transform: scale(0.98); border-color: var(--accent); }
.user-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-avatar.manager { background: var(--accent); }
.user-avatar.coordinator { background: var(--primary-l); }
.user-card-info { flex: 1; }
.user-card-name { font-weight: 600; font-size: 15px; }
.user-card-role { font-size: 12px; color: var(--text-s); }
.user-card-arrow { color: var(--text-s); }
.user-card-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── Auth Switch ─── */
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-s); }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── Responsive ─── */
@media (min-width: 640px) {
  .view { padding: 24px 24px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 600px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
