/* ==== 00-tokens.css ==== */
/* 00-tokens.css — 设计令牌。组件只引用这里的变量，不写裸色值。
   颜色语义固定：油 = 琥珀 --fuel，电 = 青绿 --elec，费用 = 紫 --expense，快照/静置 = 灰蓝 --snapshot。 */
:root {
  color-scheme: light;

  --bg: #f3f4f8;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #e9ebff 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #e3f7ef 0%, transparent 55%);
  --surface-1: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eceef5;
  --seg-track: #dfe3ef;
  --seg-thumb: #ffffff;
  --glass: rgba(255, 255, 255, 0.84);
  --glass-float: rgba(255, 255, 255, 0.86);
  --glass-edge: rgba(20, 24, 45, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.92);
  --glass-ind: rgba(79, 70, 229, 0.1);
  --glass-shadow: 0 10px 28px -8px rgba(20, 24, 45, 0.16), 0 2px 6px rgba(20, 24, 45, 0.05);
  --line: rgba(20, 24, 45, 0.07);
  --line-strong: rgba(20, 24, 45, 0.13);
  --scrim: rgba(12, 14, 28, 0.42);

  --fg: #151827;
  --fg-2: #3b4058;
  --fg-muted: #6b7088;
  --fg-faint: #a0a4b8;

  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: rgba(79, 70, 229, 0.1);
  --on-brand: #ffffff;

  --fuel: #f59e0b;
  --fuel-strong: #d97706;
  --fuel-soft: rgba(245, 158, 11, 0.13);
  --elec: #10b981;
  --elec-strong: #059669;
  --elec-soft: rgba(16, 185, 129, 0.13);
  --expense: #8b5cf6;
  --expense-strong: #7c3aed;
  --expense-soft: rgba(139, 92, 246, 0.12);
  --snapshot: #64748b;
  --snapshot-soft: rgba(100, 116, 139, 0.13);

  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.12);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.13);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(20, 24, 45, 0.04), 0 1px 1px rgba(20, 24, 45, 0.03);
  --shadow-2: 0 6px 24px -8px rgba(20, 24, 45, 0.14), 0 2px 6px rgba(20, 24, 45, 0.04);
  --shadow-3: 0 24px 60px -16px rgba(20, 24, 45, 0.3);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-num: "SF Pro Display", -apple-system, "DIN Alternate", "Segoe UI", Roboto, sans-serif;

  --nav-h: 64px;
  --top-h: 56px;
  --side-w: 248px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d14;
    --bg-grad: radial-gradient(1000px 500px at 0% -10%, rgba(99, 91, 255, 0.14) 0%, transparent 60%),
               radial-gradient(800px 500px at 110% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%);
    --surface-1: #151824;
    --surface-2: #1b1f2e;
    --surface-3: #242a3b;
    --seg-track: #0d0f17;
    --seg-thumb: #272d40;
    --glass: rgba(21, 24, 36, 0.84);
    --glass-float: rgba(24, 28, 42, 0.84);
    --glass-edge: rgba(255, 255, 255, 0.11);
    --glass-hi: rgba(255, 255, 255, 0.14);
    --glass-ind: rgba(139, 133, 255, 0.16);
    --glass-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.58), 0 2px 6px rgba(0, 0, 0, 0.3);
    --line: rgba(230, 233, 255, 0.07);
    --line-strong: rgba(230, 233, 255, 0.14);
    --scrim: rgba(0, 0, 0, 0.6);
    --fg: #eef0f8;
    --fg-2: #c9cde0;
    --fg-muted: #8d93ab;
    --fg-faint: #5d6380;
    --brand: #8b85ff;
    --brand-strong: #a29dff;
    --brand-soft: rgba(139, 133, 255, 0.16);
    --on-brand: #0b0b1a;
    --fuel: #fbbf24;
    --fuel-strong: #fcd34d;
    --fuel-soft: rgba(251, 191, 36, 0.14);
    --elec: #34d399;
    --elec-strong: #6ee7b7;
    --elec-soft: rgba(52, 211, 153, 0.14);
    --expense: #a78bfa;
    --expense-strong: #c4b5fd;
    --expense-soft: rgba(167, 139, 250, 0.15);
    --snapshot: #94a3b8;
    --snapshot-soft: rgba(148, 163, 184, 0.14);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.13);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.13);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 8px 28px -10px rgba(0, 0, 0, 0.6);
    --shadow-3: 0 24px 60px -16px rgba(0, 0, 0, 0.75);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d14;
  --bg-grad: radial-gradient(1000px 500px at 0% -10%, rgba(99, 91, 255, 0.14) 0%, transparent 60%),
             radial-gradient(800px 500px at 110% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%);
  --surface-1: #151824;
  --surface-2: #1b1f2e;
  --surface-3: #242a3b;
  --seg-track: #0d0f17;
  --seg-thumb: #272d40;
  --glass: rgba(21, 24, 36, 0.84);
  --glass-float: rgba(24, 28, 42, 0.84);
  --glass-edge: rgba(255, 255, 255, 0.11);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --glass-ind: rgba(139, 133, 255, 0.16);
  --glass-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.58), 0 2px 6px rgba(0, 0, 0, 0.3);
  --line: rgba(230, 233, 255, 0.07);
  --line-strong: rgba(230, 233, 255, 0.14);
  --scrim: rgba(0, 0, 0, 0.6);
  --fg: #eef0f8;
  --fg-2: #c9cde0;
  --fg-muted: #8d93ab;
  --fg-faint: #5d6380;
  --brand: #8b85ff;
  --brand-strong: #a29dff;
  --brand-soft: rgba(139, 133, 255, 0.16);
  --on-brand: #0b0b1a;
  --fuel: #fbbf24;
  --fuel-strong: #fcd34d;
  --fuel-soft: rgba(251, 191, 36, 0.14);
  --elec: #34d399;
  --elec-strong: #6ee7b7;
  --elec-soft: rgba(52, 211, 153, 0.14);
  --expense: #a78bfa;
  --expense-strong: #c4b5fd;
  --expense-soft: rgba(167, 139, 250, 0.15);
  --snapshot: #94a3b8;
  --snapshot-soft: rgba(148, 163, 184, 0.14);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.13);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 8px 28px -10px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 24px 60px -16px rgba(0, 0, 0, 0.75);
}

/* ==== 10-base.css ==== */
/* 10-base.css — 重置与基础排版 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* 背景渐变放在独立的固定层，避免 background-attachment: fixed 在 Safari 滚动时逐帧重绘 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--bg-grad);
  pointer-events: none;
}
a,
button,
input,
select,
textarea,
label,
[role="button"] {
  touch-action: manipulation;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: var(--brand);
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
svg {
  flex-shrink: 0;
}
.num,
.tnum {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.muted {
  color: var(--fg-muted);
}
.faint {
  color: var(--fg-faint);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.fuel-c {
  color: var(--fuel-strong);
}
.elec-c {
  color: var(--elec-strong);
}
.exp-c {
  color: var(--expense-strong);
}
.ok-c {
  color: var(--ok);
}
.warn-c {
  color: var(--warn);
}
.danger-c {
  color: var(--danger);
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row.between {
  justify-content: space-between;
}
.row.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ==== 20-components.css ==== */
/* 20-components.css — 通用组件：按钮、输入、胶囊、卡片、徽章、抽屉、提示 */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  background: var(--surface-3);
  color: var(--fg);
  transition: transform 0.12s var(--ease), background 0.15s, opacity 0.15s;
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 16px -6px var(--brand);
}
.btn-fuel {
  background: var(--fuel);
  color: #1f1400;
}
.btn-elec {
  background: var(--elec);
  color: #00170f;
}
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
}
.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--fg-2);
  position: relative;
  transition: background 0.15s;
}
.icon-btn:hover {
  background: var(--surface-3);
}
.icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface-1);
}
.link-btn {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  padding: 16px;
}
.card.flush {
  padding: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-sub {
  font-size: 12px;
  color: var(--fg-muted);
}
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  margin: 20px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > label,
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .hint {
  font-size: 12px;
  color: var(--fg-muted);
}
.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  outline: none;
  font-size: 16px;
  transition: border-color 0.15s, background 0.15s;
}
textarea.input {
  min-height: 72px;
  resize: vertical;
}
.input:focus {
  border-color: var(--brand);
  background: var(--surface-1);
}
.input::placeholder {
  color: var(--fg-faint);
}
.input.auto {
  color: var(--fg-muted);
  font-style: italic;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input {
  padding-right: 52px;
}
.input-wrap .unit {
  position: absolute;
  right: 14px;
  font-size: 13px;
  color: var(--fg-muted);
  pointer-events: none;
}
.input-wrap .auto-tag {
  position: absolute;
  right: 44px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 1px 5px;
  pointer-events: none;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}

/* 开关 */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  cursor: pointer;
}
.card > .field + .switch {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card > .switch + .switch {
  border-top: 1px solid var(--line);
}
.card > .switch:first-child {
  padding-top: 2px;
}
.card > .switch:last-child {
  padding-bottom: 2px;
}
.switch input {
  display: none;
}
.switch .track {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--surface-3);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .track {
  background: var(--brand);
}
.switch input:checked + .track::after {
  transform: translateX(20px);
}
.switch .switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.switch .switch-text small {
  color: var(--fg-muted);
  font-size: 12px;
}

/* 分段控件 */
.segmented {
  display: flex;
  padding: 4px;
  gap: 2px;
  background: var(--seg-track);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(20, 24, 45, 0.06);
}
.segmented button {
  flex: 1;
  height: 36px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.segmented button.on {
  background: var(--seg-thumb);
  color: var(--fg);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-1);
}
.segmented button.on[data-tone="fuel"] {
  color: var(--fuel-strong);
}
.segmented button.on[data-tone="elec"] {
  color: var(--elec-strong);
}
.segmented button.on[data-tone="expense"] {
  color: var(--expense-strong);
}

/* 胶囊 */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chips.wrap {
  flex-wrap: wrap;
  overflow: visible;
}
.chip {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip.on {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.chip.sm {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--fg-2);
  white-space: nowrap;
}
.badge.fuel {
  background: var(--fuel-soft);
  color: var(--fuel-strong);
}
.badge.elec {
  background: var(--elec-soft);
  color: var(--elec-strong);
}
.badge.expense {
  background: var(--expense-soft);
  color: var(--expense-strong);
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.q-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: middle;
  background: var(--surface-3);
  color: var(--fg-muted);
}
.q-tag.B {
  background: var(--warn-soft);
  color: var(--warn);
}
.q-tag.C {
  background: var(--snapshot-soft);
  color: var(--snapshot);
}

/* 头像 */
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar.sm {
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

/* 列表 */
.list {
  display: flex;
  flex-direction: column;
}
.list-item {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 56px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.list-item:last-child {
  border-bottom: 0;
}
button.list-item:hover,
a.list-item:hover {
  background: var(--surface-2);
}
.list-item .chev {
  color: var(--fg-faint);
}
.ico {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-3);
  color: var(--fg-2);
}
.ico.fuel {
  background: var(--fuel-soft);
  color: var(--fuel-strong);
}
.ico.elec {
  background: var(--elec-soft);
  color: var(--elec-strong);
}
.ico.expense {
  background: var(--expense-soft);
  color: var(--expense-strong);
}
.ico.snapshot {
  background: var(--snapshot-soft);
  color: var(--snapshot);
}
.ico.brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.ico.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.ico.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.ico.sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty .ico {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.empty h3 {
  color: var(--fg);
  font-size: 16px;
}

/* 进度条 */
.progress {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transition: width 0.4s var(--ease);
}
.progress.ok > i {
  background: var(--ok);
}
.progress.soon > i {
  background: var(--warn);
}
.progress.overdue > i {
  background: var(--danger);
}

/* ---------- 抽屉 / 弹窗 ---------- */
.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  animation: fade-in 0.2s var(--ease);
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100dvh - 24px - var(--safe-t));
  background: var(--surface-1);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.32s var(--ease);
  padding-bottom: var(--safe-b);
}
.sheet.closing {
  animation: sheet-down 0.22s var(--ease) forwards;
}
.sheet-scrim.closing {
  animation: fade-out 0.22s var(--ease) forwards;
}
.sheet-grip {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  margin: 8px auto 0;
  flex-shrink: 0;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 20px;
  flex-shrink: 0;
}
.sheet-head h2 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}
.sheet-body {
  overflow-y: auto;
  padding: 4px 20px 24px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sheet-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surface-1);
}
@media (min-width: 768px) {
  .sheet-root {
    align-items: center;
    padding: 24px;
  }
  .sheet {
    border-radius: 24px;
    max-height: min(860px, calc(100dvh - 48px));
    animation: pop-in 0.24s var(--ease);
  }
  .sheet.closing {
    animation: pop-out 0.18s var(--ease) forwards;
  }
  .sheet-grip {
    display: none;
  }
  .sheet-head {
    padding-top: 16px;
  }
}

/* 底部动作面板 */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 0 8px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform 0.12s var(--ease);
}
.action-tile:active {
  transform: scale(0.97);
}
.action-tile b {
  font-size: 16px;
}
.action-tile small {
  color: var(--fg-muted);
  font-size: 12px;
}

/* 提示条 */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
@media (min-width: 1024px) {
  .toast-root {
    bottom: 24px;
  }
}
.toast {
  pointer-events: auto;
  background: #1c1f2e;
  color: #f2f3fa;
  border-radius: 16px;
  padding: 12px 14px 12px 16px;
  box-shadow: var(--shadow-3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: toast-in 0.28s var(--ease);
}
.toast.out {
  animation: toast-out 0.2s var(--ease) forwards;
}
.toast .t-body {
  flex: 1;
  min-width: 0;
}
.toast .t-body small {
  display: block;
  color: #a6abc4;
  font-size: 12px;
  margin-top: 2px;
}
.toast .t-act {
  color: #a5a0ff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 4px;
}
.toast.error {
  background: #3a1416;
}

/* 对话框 */
.dialog p {
  color: var(--fg-2);
  line-height: 1.6;
}

/* 信息行 */
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.kv:last-child {
  border-bottom: 0;
}
.kv > span:first-child {
  color: var(--fg-muted);
  flex-shrink: 0;
}
.kv > span:last-child {
  text-align: right;
  font-weight: 500;
}

.formula {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-2);
}
.formula b {
  color: var(--fg);
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
}

/* 问号说明 */
.help-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  flex-shrink: 0;
}
.help-tip::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.help-tip:hover {
  color: var(--fg);
}
.help-pop {
  position: fixed;
  z-index: 1000;
  max-width: min(300px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--fg-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  pointer-events: none;
}

/* 文件选择美化 */
.file-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line-strong);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.file-drop.has {
  border-style: solid;
  border-color: var(--brand);
}
.file-drop input[type="file"] {
  display: none;
}

/* ==== 30-shell.css ==== */
/* 30-shell.css — 整体布局：手机顶栏 + 底部导航；PC 左侧导航（≥1024），右侧栏（≥1280） */
.app {
  min-height: 100dvh;
}
.layout {
  display: block;
}
.main {
  min-width: 0;
  padding-bottom: calc(var(--nav-h) + max(12px, calc(var(--safe-b) - 12px)) + 40px);
}
.view {
  padding: 8px 16px 16px;
  max-width: 980px;
  margin: 0 auto;
  animation: view-in 0.28s var(--ease);
}

/* 顶栏：在页面顶部时保持透明与背景渐变融为一体，滚动后再浮现毛玻璃与底边线 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
}
.topbar.scrolled {
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.topbar .page-title {
  display: none;
  font-size: 17px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-back {
  display: none;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 10px 0 4px;
  border-radius: 12px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  margin-left: -4px;
}
.top-back:hover {
  background: var(--surface-3);
}
.topbar.subpage .vehicle-pill {
  display: none;
}
.topbar.subpage .top-back {
  display: inline-flex;
}
.topbar.subpage .page-title {
  display: block;
}
.topbar.subpage .top-spacer {
  display: none;
}
.vehicle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  max-width: calc(100vw - 84px);
  font-weight: 700;
  font-size: 15px;
}
.vehicle-pill .v-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.vehicle-pill .v-plate {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 13px;
}
.vehicle-pill.static {
  pointer-events: none;
}
.top-spacer {
  flex: 1;
}

/* 底部导航：高质感悬浮磨砂胶囊 */
.bottom-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b) + 20px);
  background: linear-gradient(to top, var(--bg) 16%, transparent);
  pointer-events: none;
  z-index: 45;
}
.bottom-nav {
  --nav-pill: 62px;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: max(12px, calc(var(--safe-b) - 8px));
  z-index: 50;
  height: var(--nav-pill);
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 5px;
  border-radius: 31px;
  background: var(--glass-float);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  transform: translateZ(0);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
/* 不支持毛玻璃或开启了「降低透明度」时改用不透明底色，保证文字对比度 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-nav {
    background: var(--surface-1);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .bottom-nav {
    background: var(--surface-1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 5);
  border-radius: 26px;
  background: var(--glass-ind);
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(var(--nav-idx, 0) * 100%));
  transition: transform 0.24s var(--ease), opacity 0.16s;
  will-change: transform;
}
.bottom-nav[data-idx] .nav-ind {
  opacity: 1;
}
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  height: 100%;
  justify-content: center;
  border-radius: 26px;
  transition: color 0.12s, transform 0.12s var(--ease);
}
.nav-item.on {
  color: var(--brand);
}
.nav-item:active,
.nav-item.pressing {
  transform: scale(0.92);
  color: var(--brand);
}
.nav-fab {
  position: relative;
  justify-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fuel) 0%, var(--brand) 52%, var(--elec) 108%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px -6px var(--brand);
  transition: transform 0.12s var(--ease), box-shadow 0.12s;
}
.nav-fab:active,
.nav-fab.pressing {
  transform: scale(0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 10px -4px var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .nav-ind {
    transition: none;
  }
}

/* PC 侧栏 */
.sidebar {
  display: none;
}
.aside {
  display: none;
}

@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
  }
  .bottom-nav,
  .bottom-fade {
    display: none;
  }
  .topbar.subpage .top-back {
    display: none;
  }
  .main {
    padding-bottom: 40px;
  }
  .view {
    padding: 8px 28px 28px;
  }
  .topbar {
    padding: 0 20px 0 28px;
    height: 68px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
  }
  .topbar .page-title {
    display: block;
    font-size: 22px;
  }
  .topbar .top-spacer {
    display: none;
  }
  .topbar .vehicle-pill {
    display: none;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: var(--glass);
    backdrop-filter: blur(18px);
  }
  .side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 14px;
  }
  .side-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .side-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .side-brand-sub {
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.08em;
  }
  .side-vehicle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: var(--surface-1);
    border: 1px solid var(--line);
    text-align: left;
    margin-bottom: 10px;
  }
  .side-vehicle .v-dot {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
  }
  .side-vehicle b {
    display: block;
    font-size: 14px;
  }
  .side-vehicle small {
    color: var(--fg-muted);
    font-size: 12px;
  }
  .side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--fg-2);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
  }
  .side-link:hover {
    background: var(--surface-2);
  }
  .side-link.on {
    background: var(--brand-soft);
    color: var(--brand);
  }
  .side-new {
    margin: 4px 0 12px;
  }
  .side-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }
  .side-foot:hover {
    background: var(--surface-2);
  }
}

@media (min-width: 1280px) {
  .layout.with-aside {
    grid-template-columns: var(--side-w) minmax(0, 1fr) 320px;
  }
  .aside {
    display: block;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    padding: 24px 20px;
    border-left: 1px solid var(--line);
  }
}

/* 登录页 */
.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px calc(24px + var(--safe-b));
}
.auth-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.auth-brand img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
}
.auth-brand h1 {
  font-size: 26px;
  font-weight: 800;
}
.auth-brand p {
  color: var(--fg-muted);
}

/* ==== 40-home.css ==== */
/* 40-home.css — 概览页：最近能耗、KPI、快捷记录、待确认、提车至今 */
.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.boot img {
  border-radius: 18px;
  animation: pulse 1.4s ease-in-out infinite;
}

.home-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* 最近能耗大卡片 */
.hero {
  display: block;
  color: inherit;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 220px at 0% 0%, var(--fuel-soft), transparent 70%),
    radial-gradient(420px 220px at 100% 100%, var(--elec-soft), transparent 70%),
    var(--surface-1);
}
.big-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 14px 0 10px;
  align-items: flex-end;
}
.big {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.big-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-self: center;
}
.big.fuel .big-ico {
  background: var(--fuel-soft);
  color: var(--fuel-strong);
}
.big.elec .big-ico {
  background: var(--elec-soft);
  color: var(--elec-strong);
}
.big.combined .big-ico {
  background: var(--surface-2);
  color: var(--fg-2);
}
.big-val {
  font-size: 44px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.big.fuel .big-val {
  color: var(--fuel-strong);
}
.big.elec .big-val {
  color: var(--elec-strong);
}
.big-unit {
  font-size: 12px;
  line-height: 1.3;
  color: var(--fg-muted);
  font-weight: 600;
  white-space: nowrap;
}
.big .q-tag {
  align-self: flex-start;
}
.big-side {
  display: flex;
  gap: 18px;
}
.big-side > div {
  display: flex;
  flex-direction: column;
}
.big-side b {
  font-size: 20px;
}
.big-side small {
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 2px;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--fg-2);
}
.hero-foot b {
  font-size: 15px;
}
.hero-trends {
  margin-top: 14px;
}
.hero-sparks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.hero-spark .lg-dot {
  margin-right: 4px;
}
.hero-spark .spark {
  display: block;
  width: 100%;
  height: 36px;
}

.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--fg-2);
  font-size: 14px;
}
.callout > svg {
  color: var(--brand);
}
.callout.fuel {
  background: var(--fuel-soft);
}
.callout.fuel > svg {
  color: var(--fuel-strong);
}
.callout.elec {
  background: var(--elec-soft);
}
.callout.elec > svg {
  color: var(--elec-strong);
}
.callout.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* 充电中 */
.charging-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(120deg, #059669, #10b981 55%, #34d399);
  box-shadow: 0 10px 24px -12px #059669;
}
.charging-card .btn {
  background: rgba(255, 255, 255, 0.95);
  color: #047857;
}
.charging-card .tiny {
  opacity: 0.85;
}
.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: ping 1.6s infinite;
  flex-shrink: 0;
}

/* KPI */
.range-row {
  margin-top: 2px;
}
.range-seg {
  width: 100%;
  max-width: 380px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
.kpi {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
#home-cost-card > .kpi {
  height: 100%;
}
.cost-scope-toggle {
  margin-left: auto;
  padding: 6px 0 6px 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.kpi.fuel .kpi-label svg {
  color: var(--fuel-strong);
}
.kpi.elec .kpi-label svg {
  color: var(--elec-strong);
}
.kpi-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-value small {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 600;
  margin-left: 3px;
}
.kpi-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  flex-wrap: wrap;
}
.delta {
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}
.delta.good {
  color: var(--ok);
  background: var(--ok-soft);
}
.delta.bad {
  color: var(--danger);
  background: var(--danger-soft);
}
.delta.flat {
  color: var(--fg-muted);
  background: var(--surface-3);
}

/* 快捷记录 */
.quick-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}
.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.12s var(--ease);
}
.quick:active {
  transform: scale(0.95);
}
.quick svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
}
.quick.fuel svg {
  background: var(--fuel-soft);
  color: var(--fuel-strong);
}
.quick.elec svg {
  background: var(--elec-soft);
  color: var(--elec-strong);
}
.quick.expense svg {
  background: var(--expense-soft);
  color: var(--expense-strong);
}
.quick.snapshot svg {
  background: var(--snapshot-soft);
  color: var(--snapshot);
}

/* 待确认 */
.pending-card .card-title svg {
  color: var(--warn);
}
.pending-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.pending-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* 提车至今 */
.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.history-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.history-grid > div.span-2 {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.history-grid b {
  font-size: 18px;
}
.history-grid small {
  font-size: 11px;
  color: var(--fg-muted);
}

/* 欢迎 */
.welcome {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px 8px;
}
.welcome-logo {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  box-shadow: var(--shadow-2);
}
.welcome h1 {
  font-size: 26px;
  font-weight: 800;
}
.welcome p {
  max-width: 420px;
  margin-bottom: 8px;
}

/* 右侧栏 */
.aside-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.act-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ==== 45-form.css ==== */
/* 45-form.css — 记录表单：电量滑杆、油表格子、地点、费用分类、更多 */
.rec-form {
  gap: 16px;
}
.big-input {
  font-size: 22px !important;
  font-weight: 700;
  min-height: 54px !important;
}
.triple .input {
  padding-left: 12px;
  padding-right: 40px;
}
.triple .unit {
  right: 10px;
  font-size: 11px;
}
/* 由其他字段算出的只读值（如充电单价） */
.input.derived {
  color: var(--fg-muted);
  background: transparent;
  border: 1.5px dashed var(--fg-faint);
  cursor: default;
}
.triple .auto-tag {
  right: 6px;
  top: -9px;
}
.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
  min-height: 32px;
}
.mini-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.big-switch {
  padding: 4px 14px;
  border-radius: 14px;
  background: var(--fuel-soft);
}
.big-switch svg {
  color: var(--fuel-strong);
  vertical-align: -4px;
}
.hint-text {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 12px;
}

/* 电量 / 油量 */
.level-field label .lv-val {
  margin-left: auto;
  font-weight: 700;
  color: var(--fg);
}
.level-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lv-num {
  width: 112px;
  flex-shrink: 0;
}
.lv-num .input {
  padding-right: 28px;
}
.lv-num .unit {
  right: 10px;
}
.lv-num .auto-tag {
  right: 4px;
  top: -9px;
}
.lv-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  --tone: var(--elec);
  background: linear-gradient(90deg, var(--tone) 0 var(--p, 0%), var(--surface-3) var(--p, 0%));
  outline: none;
  min-width: 0;
}
.level-field[data-tone="fuel"] .lv-range {
  --tone: var(--fuel);
}
.lv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--elec);
  box-shadow: var(--shadow-2);
}
.level-field[data-tone="fuel"] .lv-range::-webkit-slider-thumb {
  border-color: var(--fuel);
}
.lv-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--elec);
}
.lv-range.unset::-webkit-slider-thumb {
  opacity: 0.35;
}
.soc-pair .lv-num {
  width: 84px;
}
@media (max-width: 480px) {
  .soc-pair {
    grid-template-columns: 1fr;
  }
}
.bars {
  display: flex;
  gap: 5px;
}
.bars button {
  flex: 1;
  height: 32px;
  border-radius: 7px;
  background: var(--surface-3);
  transition: background 0.12s;
}
.bars button.on {
  background: var(--fuel);
}
.gauge-field label .lv-val {
  margin-left: auto;
}

/* 更多 */
details.more {
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0 14px;
}
details.more > summary {
  list-style: none;
  cursor: pointer;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-2);
}
details.more > summary::-webkit-details-marker {
  display: none;
}
details.more > summary svg {
  transition: transform 0.2s;
}
details.more[open] > summary svg {
  transform: rotate(180deg);
}
details.more[open] {
  padding-bottom: 14px;
}
details.more .input {
  background: var(--surface-1);
}

/* 开始充电提示 */
.callout[data-start-charge] {
  background: var(--elec-soft);
}
.callout[data-start-charge] > svg {
  color: var(--elec-strong);
}

/* 费用分类 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 560px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
  border: 1.5px solid transparent;
  background: var(--surface-2);
}
.cat-tile.on {
  border-color: var(--expense);
  background: var(--expense-soft);
  color: var(--expense-strong);
}
.ins-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ins-items .input {
  padding-left: 64px;
}
.ins-name {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  pointer-events: none;
}

/* 峰谷电价 */
.tariff-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1.2fr auto;
  gap: 6px;
  align-items: center;
}
.tariff-row .input {
  padding: 8px 10px;
  min-height: 42px;
  font-size: 15px;
}
@media (max-width: 480px) {
  .tariff-row {
    grid-template-columns: 1fr auto 1fr auto;
  }
  .tariff-row .input-wrap {
    grid-column: 1 / 4;
  }
}

/* 油量单位切换：按升输入时隐藏百分比滑块 */
.unit-toggle {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid var(--fg-faint);
  border-radius: 999px;
  overflow: hidden;
}
.unit-toggle button {
  padding: 1px 8px;
  font-size: 11px;
  color: var(--fg-muted);
  background: none;
  border: 0;
}
.level-field:not(.unit-liters) .unit-toggle [data-unit="pct"],
.level-field.unit-liters .unit-toggle [data-unit="liters"] {
  background: var(--fuel);
  color: #fff;
}
.level-field.unit-liters .level-row,
.level-field:not(.unit-liters) .lit-wrap {
  display: none;
}

/* ==== 50-pages.css ==== */
/* 50-pages.css — 记录列表、详情、统计图表、日历、提醒、车辆、向导、我的 */

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.toolbar.row {
  flex-direction: row;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box > span {
  position: absolute;
  left: 14px;
  display: flex;
}
.search-box .input {
  padding-left: 42px;
  background: var(--surface-1);
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .toolbar:not(.row) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .search-box {
    width: 280px;
  }
}

/* ---------- 记录行 ---------- */
.month-group {
  margin-bottom: 18px;
}
.month-head {
  position: sticky;
  top: calc(var(--top-h) + var(--safe-t));
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg);
}
@media (min-width: 1024px) {
  .month-head {
    top: 0;
  }
}
.month-head b {
  color: var(--fg);
  font-size: 15px;
}
.rec-row {
  align-items: center;
}
@media (max-width: 480px) {
  .rec-row {
    padding: 10px 12px;
    gap: 10px;
  }
  .rec-row > .ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .rec-right .row.multi {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }
  .rec-right .badge {
    font-size: 11px;
    height: 20px;
    padding: 0 6px;
  }
}
.rec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 15px;
}
.rec-title .t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.src-ico {
  display: inline-grid;
  place-items: center;
  color: var(--fg-faint);
  flex-shrink: 0;
}
.rec-sub {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.rec-right b {
  font-size: 15px;
}
.rec-row.pending {
  opacity: 0.6;
}
.end-mark {
  text-align: center;
  color: var(--fg-faint);
  font-size: 12px;
  padding: 18px 0;
}
.trash-row {
  display: flex;
  align-items: center;
  padding-right: 12px;
  border-bottom: 1px solid var(--line);
}
.trash-row .list-item {
  border-bottom: 0;
}

/* ---------- 详情 ---------- */
.detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 14px;
}
.detail-title {
  font-size: 18px;
  font-weight: 700;
}
.detail-amount {
  font-size: 22px;
  font-weight: 700;
}
.seg-card {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--brand);
}
.seg-card.fuel,
.seg-card.combined {
  border-left-color: var(--fuel);
}
.seg-card.elec {
  border-left-color: var(--elec);
}
.seg-head {
  align-items: baseline;
  gap: 10px;
}
.seg-big {
  font-size: 28px;
  font-weight: 700;
}
.seg-big small {
  font-size: 13px;
  color: var(--fg-muted);
}
.seg-marks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

/* ---------- 图表 ---------- */
.tabs-seg {
  max-width: 460px;
}
.stats-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
#stats-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#stats-subbar > .segmented {
  flex: 1;
  width: auto;
  min-width: 140px;
}
#stats-subbar:empty {
  display: none;
}
@media (min-width: 768px) {
  .stats-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .stats-toolbar .tabs-seg {
    flex: 1;
    max-width: 440px;
  }
  #stats-subbar {
    flex-shrink: 0;
  }
  .stats-toolbar .range-seg {
    width: auto;
    max-width: none;
  }
  .stats-toolbar .range-seg button {
    padding: 0 14px;
  }
}
.trend-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 6px 2px 2px;
  font-size: 13px;
  color: var(--fg-2);
}
.trend-compact b {
  font-size: 18px;
}
.chart-card {
  margin-top: 14px;
}
.chart-box {
  width: 100%;
  min-height: 200px;
}
.chart {
  position: relative;
  touch-action: pan-y;
}
.chart-svg {
  display: block;
  overflow: visible;
}
.chart-svg .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-svg .axis {
  fill: var(--fg-faint);
  font-size: 11px;
  font-family: var(--font-num);
}
.chart-svg .guide {
  stroke: var(--line-strong);
  stroke-dasharray: 3 3;
  opacity: 0;
}
.chart-svg .pt.hl {
  r: 5;
}
.chart-svg .bar-g.hl rect {
  filter: brightness(1.08);
}
.chart-empty {
  height: 160px;
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-size: 13px;
}
.chart-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  transform: translateY(-4px);
}
.chart-tip .tip-h {
  font-weight: 700;
  color: var(--fg);
}
.chart-tip i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 6px;
}
.chart-tip em {
  color: var(--warn);
  font-style: normal;
}
.chart-tip .tip-total {
  border-top: 1px solid var(--line);
  margin-top: 2px;
}
.lg-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand);
  flex-shrink: 0;
}
.lg-dot.fuel {
  background: var(--fuel);
}
.lg-dot.elec {
  background: var(--elec);
}
.lg-dot.expense {
  background: var(--expense);
}
.lg-dot.snapshot {
  background: var(--snapshot);
}
.lg-dot.brand {
  background: var(--brand);
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
  flex: 1;
}
.legend.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--fg-muted);
}
.legend.inline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lg-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.donut-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.donut {
  position: relative;
  flex-shrink: 0;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.donut-center b {
  font-size: 16px;
}
.donut-center small {
  font-size: 11px;
  color: var(--fg-muted);
}
.resp-2 {
  margin-top: 14px;
  grid-template-columns: 1fr;
}
.resp-2 > .chart-card {
  margin-top: 0;
}
@media (min-width: 860px) {
  .resp-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.big-mid {
  font-size: 20px;
  font-weight: 700;
}
.big-mid small {
  font-size: 12px;
  color: var(--fg-muted);
}
.k-card {
  margin-top: 14px;
}

/* ---------- 日历 ---------- */
.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 960px) {
  .cal-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 16px;
}
.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-card {
  padding: 12px;
}
.cal-week span {
  text-align: center;
  font-size: 12px;
  color: var(--fg-faint);
  padding: 4px 0;
}
.cal-cell {
  height: 58px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 2px 4px;
  gap: 2px;
  position: relative;
  background: color-mix(in srgb, var(--brand) calc(var(--heat, 0) * 26%), var(--surface-2));
  transition: transform 0.12s var(--ease), box-shadow 0.15s;
  min-width: 0;
}
@media (min-width: 600px) {
  .cal-cell {
    height: 64px;
  }
}
.cal-cell.blank {
  background: transparent;
}
.cal-cell.today .cal-num {
  background: var(--brand);
  color: var(--on-brand);
}
.cal-cell.sel {
  box-shadow: 0 0 0 2px var(--brand);
}
.cal-num {
  font-size: 13px;
  font-weight: 600;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.cal-dots {
  display: flex;
  gap: 2px;
}
.cal-dots .lg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cal-amt {
  font-size: 10px;
  line-height: 1.2;
  color: var(--fg-muted);
  overflow: hidden;
  max-width: 100%;
}
.report-sentence {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  background: var(--brand-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rep-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rep-item b {
  font-size: 16px;
}
.rep-item .delta {
  align-self: flex-start;
}

/* 年度报告 */
.year-hero {
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b -10%, #4f46e5 50%, #10b981 120%);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.year-badge {
  position: absolute;
  right: -10px;
  top: -18px;
  font-size: 110px;
  font-weight: 900;
  opacity: 0.13;
  letter-spacing: -0.04em;
}
.year-hero h2 {
  font-size: 20px;
  margin-bottom: 18px;
}
.year-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.year-big div {
  display: flex;
  flex-direction: column;
}
.year-big b {
  font-size: 24px;
}
.year-big span {
  opacity: 0.85;
  font-size: 12px;
}
.highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.highlight b {
  font-size: 18px;
}
.resp-2 .highlight {
  margin: 0;
}

/* ---------- 提醒 ---------- */
.rem-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 768px) {
  .rem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rem-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
  transition: transform 0.12s var(--ease), background 0.12s;
}
.rem-card:hover {
  background: var(--surface-2);
}
.rem-card:active {
  transform: scale(0.99);
}
.rem-card .rec-sub {
  white-space: normal;
}
.rem-row .progress,
.rem-card .progress {
  display: block;
}
.rem-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rem-hero .ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ---------- 车辆 ---------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}
.vehicle-hero {
  background:
    radial-gradient(500px 200px at 100% 0%, color-mix(in srgb, var(--vc) 18%, transparent), transparent 70%),
    var(--surface-1);
}
.vehicle-hero h2 {
  font-size: 20px;
}
.vehicle-hero .v-dot {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
}
.v-params {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.v-params > div {
  display: flex;
  flex-direction: column;
}
.v-params span {
  font-size: 12px;
  color: var(--fg-muted);
}
.coverage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cov-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.issues {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}
.issue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.code {
  letter-spacing: 0.12em;
  font-size: 16px;
}

/* ---------- 向导 ---------- */
.wizard {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wiz-steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wiz-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-faint);
  white-space: nowrap;
  flex: 1;
}
.wiz-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-size: 12px;
}
.wiz-step.on {
  color: var(--brand);
}
.wiz-step.on span {
  background: var(--brand);
  color: var(--on-brand);
}
.wiz-step.done span {
  background: var(--ok-soft);
  color: var(--ok);
}
.wiz-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 560px) {
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.type-tile,
.mode-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.type-tile small,
.mode-tile small {
  color: var(--fg-muted);
  font-size: 12px;
  display: block;
}
.type-tile.on,
.mode-tile.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.type-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  color: var(--brand);
}
.mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mode-tile {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.mode-tile .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
}
.mode-tile.on .radio {
  border: 6px solid var(--brand);
}
.sub-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted);
  margin-top: 4px;
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--surface-1);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.swatch.on {
  box-shadow: 0 0 0 2px var(--fg);
}
.rem-pick {
  display: flex;
  flex-direction: column;
}
.rem-pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.rem-pick-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
.rem-pick-item {
  border-bottom: 1px solid var(--line);
}
.rem-pick-item .rem-pick-row {
  border-bottom: 0;
}
.rem-pick-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 14px 32px;
}

/* ---------- 我的 ---------- */
.me-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.join-card {
  max-width: 460px;
  margin: 20px auto;
  align-items: center;
  text-align: center;
}
.code-input {
  text-align: center;
  font-size: 24px !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.list-item.dim {
  opacity: 0.55;
}
.year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dup-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--warn-soft);
  color: var(--fg);
  font-size: 13px;
  margin-bottom: 12px;
}
.dup-banner svg {
  color: var(--warn);
  flex-shrink: 0;
}
label.btn input[hidden] {
  display: none;
}

/* ==== 90-motion.css ==== */
/* 90-motion.css — 动效 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
@keyframes sheet-down {
  to {
    transform: translateY(100%);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
}
@keyframes pop-out {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.96);
  }
}
@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
