@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

/* ── Tokens ─────────────────────────────────── */
:root {
  --ink:      #08101f;
  --ink-2:    #3d4f6b;
  --ink-3:    #8a9ab5;
  --ink-4:    #c4cfde;
  --surface:  #f4f7fb;
  --white:    #ffffff;
  --blue-9:   #050e28;
  --blue-8:   #0c1a45;
  --blue-7:   #1a368a;
  --blue-5:   #2563eb;
  --blue-4:   #4d86f5;
  --blue-3:   #93b8fb;
  --blue-1:   #ebf2ff;
  --green:    #059669;
  --amber:    #d97706;
  --red:      #dc2626;
  --nav-h:    70px;
  --r-lg:     20px;
  --r-md:     14px;
  --r-sm:     10px;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
input, select, button { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
input, select { outline: none; -webkit-appearance: none; appearance: none; }

/* ── Base ────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, 'Hiragino Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100svh;
  padding-bottom: var(--nav-h);
  -webkit-tap-highlight-color: transparent;
}

/* ── Header ──────────────────────────────────── */
header {
  background:
    radial-gradient(ellipse 70% 80% at 110% -10%, rgba(59,130,246,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at -10% 110%, rgba(29,78,216,.25) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-9) 0%, var(--blue-8) 50%, #162255 100%);
  padding: 52px 22px 28px;
  position: relative;
  overflow: hidden;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(147,184,251,.15);
  border-radius: 8px;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: opacity .2s;
}
.menu-btn:active span { opacity: .5; }

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.brand-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-3);
  opacity: .5;
  margin-bottom: 8px;
}

header h1 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}

.header-kpi {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(147,184,251,.15);
  border-radius: var(--r-md);
  padding: 12px 16px;
  backdrop-filter: blur(12px);
}

.kpi-num {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.05em;
  line-height: 1;
}

.kpi-meta { display: flex; flex-direction: column; }
.kpi-unit  { font-size: 11px; font-weight: 600; color: var(--blue-3); opacity: .55; }
.kpi-label { font-size: 9px;  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-3); opacity: .35; margin-top: 2px; }

/* ── Main ────────────────────────────────────── */
main { padding: 20px 16px 12px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Form Card ───────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(8,16,31,.04), 0 8px 24px rgba(8,16,31,.06);
}

.how-to {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--blue-1);
  border-bottom: 1px solid rgba(37,99,235,.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-5);
  flex-wrap: wrap;
}
.how-to svg { color: var(--blue-4); opacity: .6; flex-shrink: 0; }

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-5);
  padding: 16px 20px 0;
}

.form-section {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.label-hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface);
  padding: 1px 7px;
  border-radius: 100px;
}

.f-input,
.select-wrap select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.f-input::placeholder { color: var(--ink-4); font-weight: 400; }
.f-input:focus,
.select-wrap select:focus {
  border-color: var(--blue-5);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.unit-wrap { position: relative; }
.unit-wrap .f-input { padding-right: 50px; }
.unit {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 700; color: var(--blue-5); opacity: .5;
  pointer-events: none; letter-spacing: .02em;
}

.select-wrap { position: relative; }
.select-wrap select { padding-right: 36px; cursor: pointer; }
.select-wrap svg {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-3); pointer-events: none;
}

/* ── Submit Button ───────────────────────────── */
.submit-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 15px;
  background: linear-gradient(130deg, var(--blue-8) 0%, var(--blue-5) 100%);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .1s, box-shadow .1s;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.08), transparent 50%);
  pointer-events: none;
}
.submit-btn:active { transform: scale(.98); box-shadow: 0 2px 10px rgba(37,99,235,.35); }

/* ── Result Panels ───────────────────────────── */
.result-panel {
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(59,130,246,.3) 0%, transparent 60%),
    linear-gradient(150deg, var(--blue-9) 0%, var(--blue-8) 60%, #152050 100%);
  box-shadow: 0 8px 32px rgba(5,14,40,.35);
}

.result-baseline {
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(37,99,235,.2) 0%, transparent 60%),
    linear-gradient(150deg, #0f1824 0%, #1a2640 100%);
}

.result-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-3);
  opacity: .45;
  margin-bottom: 14px;
}

.result-num-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.result-num {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.05em;
  line-height: 1;
}
.result-unit {
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-3);
  opacity: .5;
  padding-bottom: 6px;
}
.result-desc {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
}

.result-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: 1;
  min-width: 100px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(147,184,251,.15);
  border-radius: var(--r-sm);
  padding: 11px 14px;
}
.chip-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-3);
  opacity: .45;
  display: block;
  margin-bottom: 5px;
}
.chip-v {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.chip-u { font-size: 11px; color: var(--blue-3); opacity: .45; margin-left: 3px; }
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 5px;
  vertical-align: middle;
}
.badge-up   { background: rgba(5,150,105,.2);  color: #34d399; }
.badge-down { background: rgba(220,38,38,.2);  color: #f87171; }

/* ── Stats Strip ─────────────────────────────── */
.stats-panel {
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(37,99,235,.2) 0%, transparent 55%),
    linear-gradient(135deg, var(--blue-9), var(--blue-8));
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  box-shadow: 0 4px 20px rgba(5,14,40,.25);
}
.sp-divider { background: rgba(255,255,255,.1); height: 32px; border-radius: 1px; }
.sp-item { text-align: center; }
.sp-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-3);
  opacity: .4;
  display: block;
  margin-bottom: 6px;
}
.sp-val {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}
.sp-unit { font-size: 10px; color: var(--blue-3); opacity: .4; margin-left: 1px; }

/* ── Filter ──────────────────────────────────── */
.filter-wrap { margin-bottom: 14px; }

/* ── Record Cards ────────────────────────────── */
.rec-list { display: flex; flex-direction: column; gap: 10px; }

.rec-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(8,16,31,.05), 0 6px 20px rgba(8,16,31,.06);
}

.rec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 0;
}
.rec-date { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.rec-car-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-5);
  background: var(--blue-1);
  border-radius: 100px;
  padding: 3px 10px;
}
.rec-car-badge.base { color: var(--ink-3); background: var(--surface); }

.rec-body { padding: 10px 16px 14px; }

.rec-eff {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.rec-eff-num {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.eff-good .rec-eff-num { color: var(--green); }
.eff-ok   .rec-eff-num { color: var(--amber); }
.eff-bad  .rec-eff-num { color: var(--red);   }
.rec-eff-unit { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.target-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 8px;
  align-self: center;
}
.pill-hit  { background: rgba(5,150,105,.1);  color: var(--green); }
.pill-miss { background: rgba(220,38,38,.1);  color: var(--red);   }

.rec-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.rs {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}
.rs-l {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 3px;
}
.rs-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.rs-v small { font-size: 10px; font-weight: 500; color: var(--ink-3); margin-left: 1px; }

.rec-base-odo {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.rec-base-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.rec-footer {
  border-top: 1px solid var(--surface);
  padding: 10px 16px;
  text-align: right;
}
.del-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Car Cards ───────────────────────────────── */
.car-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(8,16,31,.05), 0 6px 20px rgba(8,16,31,.06);
}
.car-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.car-left { display: flex; align-items: center; gap: 12px; }
.car-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-8), var(--blue-5));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(37,99,235,.3);
}
.car-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.car-type { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.del-btn {
  font-size: 12px; font-weight: 700;
  color: var(--red); background: rgba(220,38,38,.07);
  border: 1.5px solid rgba(220,38,38,.15);
  border-radius: var(--r-sm); padding: 7px 13px;
}

.car-target {
  border-top: 1px solid var(--surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-label { font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ct-val {
  font-size: 17px; font-weight: 800;
  color: var(--blue-5); flex: 1;
  letter-spacing: -.02em;
}
.ct-none { font-size: 12px; font-weight: 500; color: var(--ink-4); flex: 1; }
.ct-edit {
  font-size: 11px; font-weight: 700;
  color: var(--blue-5); background: var(--blue-1);
  border-radius: var(--r-sm); padding: 6px 12px;
}
.ct-form { padding: 0 16px 14px; display: flex; gap: 8px; }
.ct-input {
  flex: 1; padding: 10px 13px;
  background: var(--surface);
  border: 1.5px solid var(--blue-5);
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.ct-save {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--blue-8), var(--blue-5));
  color: #fff; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(37,99,235,.3);
}

/* ── Analysis ────────────────────────────────── */
.astat-grid-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.astat-grid-bot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.astat {
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(59,130,246,.2) 0%, transparent 60%),
    linear-gradient(150deg, var(--blue-9), var(--blue-8));
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(5,14,40,.25);
  position: relative; overflow: hidden;
}
.astat.lg { padding: 20px 18px; }
.astat-icon { font-size: 18px; display: block; margin-bottom: 10px; }
.astat-label {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-3); opacity: .4;
  display: block; margin-bottom: 6px;
}
.astat-val {
  font-size: 26px; font-weight: 900; color: #fff;
  letter-spacing: -.04em; line-height: 1; display: block;
}
.astat.lg .astat-val { font-size: 34px; }
.astat-u { font-size: 11px; color: var(--blue-3); opacity: .4; margin-left: 2px; }
.astat-sub { font-size: 10px; color: var(--blue-3); opacity: .35; margin-top: 4px; display: block; }

/* ── Chart Card ──────────────────────────────── */
.chart-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(8,16,31,.05), 0 6px 20px rgba(8,16,31,.06);
}
#efficiency-chart { width: 100% !important; }

/* ── Monthly ─────────────────────────────────── */
.monthly-label {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 10px; padding-left: 2px; display: block;
}
.month-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(8,16,31,.05), 0 6px 20px rgba(8,16,31,.06);
}
.month-head {
  background: linear-gradient(130deg, var(--blue-9), var(--blue-8));
  padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.month-title { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.month-count { font-size: 10px; font-weight: 700; color: var(--blue-3); opacity: .5; }
.month-body {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 14px 18px; gap: 8px;
}
.ms { text-align: center; }
.ms-l { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }
.ms-v { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ms-v small { font-size: 10px; font-weight: 500; color: var(--ink-3); }

/* ── Empty State ─────────────────────────────── */
.empty-state { text-align: center; padding: 28px 20px; }
.empty-icon { margin-bottom: 12px; }
.empty-icon svg { width: 48px; height: 48px; margin: 0 auto; display: block; }
.empty-state p { font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* ── Tab Bar ─────────────────────────────────── */
.tab-bar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--nav-h);
  background:
    linear-gradient(to top, rgba(5,14,40,.98), rgba(12,26,69,.96));
  border-top: 1px solid rgba(147,184,251,.1);
  display: flex;
  z-index: 100;
  box-shadow: 0 -8px 32px rgba(5,14,40,.45);
  backdrop-filter: blur(20px);
}
.tab-btn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.22);
  padding-bottom: 6px;
  position: relative;
  transition: color .2s;
}
.tab-btn svg { width: 22px; height: 22px; transition: transform .2s; }
.tab-btn.active { color: var(--blue-3); }
.tab-btn.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px;
  background: var(--blue-4);
  border-radius: 0 0 3px 3px;
}
.tab-btn.active svg { transform: scale(1.12); }

/* ── Drawer ──────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(5,14,40,.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 88%; max-width: 380px;
  height: 100%;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(5,14,40,.3);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--surface);
  flex-shrink: 0;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}
.drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.drawer-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  color: var(--ink-2);
  flex-shrink: 0;
}
.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:active { background: var(--ink-4); }

.drawer-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Guide Hero */
.guide-hero {
  background: linear-gradient(150deg, var(--blue-9), var(--blue-8));
  padding: 32px 24px;
  text-align: center;
}
.guide-hero-icon { font-size: 48px; margin-bottom: 12px; }
.guide-hero-title {
  font-size: 20px; font-weight: 900;
  color: #fff; letter-spacing: -.03em; margin-bottom: 8px;
}
.guide-hero-sub {
  font-size: 13px; color: var(--blue-3);
  opacity: .7; line-height: 1.7;
}

/* Guide Sections */
.guide-section {
  padding: 24px 20px;
  border-bottom: 1px solid var(--surface);
}
.guide-section-title {
  font-size: 13px; font-weight: 800;
  letter-spacing: .05em; color: var(--blue-5);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.guide-text {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2); line-height: 1.7;
  margin-bottom: 16px;
}

/* Step */
.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.gs-num {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--blue-8), var(--blue-5));
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37,99,235,.35);
}
.gs-body { flex: 1; }
.gs-title {
  font-size: 14px; font-weight: 800;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: -.01em;
}
.gs-desc {
  font-size: 12px; font-weight: 500;
  color: var(--ink-2); line-height: 1.7;
  margin-bottom: 14px;
}
.gs-connector {
  width: 2px; height: 20px;
  background: linear-gradient(to bottom, var(--blue-5), transparent);
  margin: 4px 0 4px 13px;
  border-radius: 2px;
}

/* Step illustration: car registration */
.gs-illust { margin-bottom: 4px; }
.illust-car {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.illust-car-icon { font-size: 32px; }
.illust-car-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.illust-field {
  display: flex; justify-content: space-between;
  font-size: 11px;
}
.illust-field span:first-child { color: var(--ink-3); font-weight: 600; }
.illust-field span:last-child  { color: var(--ink);   font-weight: 700; }

/* ODO display illustration */
.odo-display {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
}
.odo-screen {
  background: var(--blue-9);
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 10px;
  padding: 12px 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.odo-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: .18em; color: var(--blue-3); opacity: .5;
  text-transform: uppercase;
}
.odo-num {
  font-size: 28px; font-weight: 900;
  color: #fff; letter-spacing: -.03em; line-height: 1;
}
.odo-num small { font-size: 13px; font-weight: 600; color: var(--blue-3); opacity: .5; margin-left: 3px; }
.odo-caption { font-size: 11px; font-weight: 600; color: var(--ink-3); }

/* Calculation demo */
.calc-demo {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.calc-val { font-weight: 700; color: var(--ink); }
.calc-divider { height: 1px; background: var(--ink-4); margin: 2px 0; }
.calc-result {
  font-size: 13px; font-weight: 700;
  color: var(--blue-5);
  background: var(--blue-1);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  text-align: center;
}
.calc-result strong { font-size: 15px; }

/* Dashboard illustration */
.dashboard-illust { margin-bottom: 16px; }
.dash-bg {
  background: linear-gradient(150deg, #0a0f1e, #111827);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-speedo { flex-shrink: 0; width: 90px; }
.dash-speedo svg { width: 100%; }
.dash-odo-box {
  flex: 1;
  background: rgba(5,14,40,.8);
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 10px;
  padding: 10px 14px;
  position: relative;
}
.dash-odo-lbl {
  font-size: 9px; font-weight: 800;
  letter-spacing: .18em; color: var(--blue-3); opacity: .5;
  display: block; margin-bottom: 4px;
}
.dash-odo-val {
  font-size: 18px; font-weight: 900;
  color: var(--blue-3); letter-spacing: -.02em; display: block;
}
.dash-odo-arrow {
  font-size: 10px; font-weight: 700;
  color: #fbbf24; margin-top: 6px;
}

/* Tips list */
.guide-tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.6;
}
.tip-important { background: var(--blue-1); color: var(--ink); }
.tip-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Tab guide cards */
.tab-guide-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}
.tgc-icon { font-size: 24px; flex-shrink: 0; }
.tgc-name {
  font-size: 13px; font-weight: 800;
  color: var(--ink); margin-bottom: 4px;
}
.tgc-desc {
  font-size: 12px; font-weight: 500;
  color: var(--ink-2); line-height: 1.6;
}

/* Guide footer */
.guide-footer {
  padding: 24px 20px;
  text-align: center;
}
.guide-footer p {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
  line-height: 1.8;
}

/* ── Fill Toggle ─────────────────────────────── */
.fill-toggle { display: flex; gap: 6px; }
.ft-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  border: 1.5px solid transparent;
  background: var(--surface);
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
}
.ft-btn.active[data-type="full"] {
  background: var(--blue-1);
  color: var(--blue-5);
  border-color: rgba(37,99,235,.2);
}
.ft-btn.active[data-type="partial"] {
  background: rgba(217,119,6,.08);
  color: var(--amber);
  border-color: rgba(217,119,6,.25);
}

/* ── Partial Record Card ─────────────────────── */
.rec-card.rec-partial { border-left: 3px solid var(--amber); }
.rec-partial-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}
.rec-car-badge.partial-badge {
  color: var(--amber);
  background: rgba(217,119,6,.1);
}

/* ── Util ────────────────────────────────────── */
.hidden { display: none !important; }
