/* 旅迹 Travel Ledger · 样式
   设计基线：packs/_shared/pack.css。SPA 只覆盖必要的触控与对比度问题。 */

:root {
  --bg: #f7f7f1;
  --paper: #fffefa;
  --ink: #193e38;
  --ink-2: #2b544b;
  --muted: #81887b;
  --line: #e0e5d7;
  --lime: #dae6ba;
  --sand: #efe3cc;
  --terracotta: #b56e46;
  --text-2: #556b4e;
  --text-3: #6f7d69;
  --danger: #a4483a;
  --danger-soft: #f7e6e2;
  --warn: #96602f;
  --warn-soft: #f7ecdc;
  --ok: #4f6f45;
  --focus: #7c9a5e;
  --radius: 14px;
  --tab-h: 57px;
  --font: "DM Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; }

/* ---------- 启动与全局 ---------- */
#app { min-height: 100dvh; }
.boot {
  min-height: 100dvh; display: grid; place-content: center; justify-items: center;
  gap: 16px; color: var(--ink);
}
.boot-mark { font-size: 22px; font-weight: 600; letter-spacing: .06em; }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line);
  border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.noscript {
  margin: 24px; padding: 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); font-size: 13px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border: 1px solid transparent;
  border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: filter .18s, transform .18s, background-color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); color: #f5f7eb; }
.btn.primary:hover { background: var(--ink-2); }
.btn.secondary { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: #c8d3bc; }
.btn.ghost { color: var(--text-2); padding-inline: 12px; }
.btn.ghost:hover { background: #eef2e5; color: var(--ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-ghost { color: var(--danger); background: transparent; padding-inline: 10px; }
.btn.danger-ghost:hover { background: var(--danger-soft); }
.btn.block { width: 100%; }
.btn.lg { min-height: 48px; font-size: 14px; }
.btn.sm { min-height: 44px; padding-inline: 12px; font-size: 12px; }
.btn.sm .ico { width: 16px; height: 16px; }
.stack-actions { display: grid; gap: 9px; margin-top: 13px; }

/* ---------- 外壳 ---------- */
.shell { min-height: 100dvh; }
.main { min-width: 0; }
.view {
  width: 100%; max-width: 900px; margin: 0 auto;
  padding: 16px 14px calc(84px + env(safe-area-inset-bottom));
}
.view-entries { max-width: 900px; }

.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 4px 14px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand-mini { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.topbar-title { font-size: 11px; color: var(--text-2); }
.topbar-gap { flex: 1; }
.topbar .btn.sm { min-height: 40px; }

.topnav { display: none; }
.sidebar { display: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper); border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 44px; color: var(--text-3); font-size: 10px;
}
.tab .ico { width: 21px; height: 21px; }
.tab.on { color: var(--ink); font-weight: 600; }
.tab.on::before {
  content: ""; position: absolute; top: 5px; width: 18px; height: 2px;
  border-radius: 2px; background: var(--ink);
}

/* ---------- 品牌、侧栏 ---------- */
.brand { display: inline-flex; flex-direction: column; gap: 1px; padding: 4px 6px 18px; }
.brand-mark { font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.brand-sub { font-size: 8.5px; letter-spacing: .2em; color: var(--text-3); font-weight: 600; }
.side-nav { display: grid; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 11px; border-radius: 9px;
  color: var(--text-2); font-size: 13px;
}
.nav-item .ico { width: 18px; height: 18px; color: var(--text-3); }
.nav-item:hover { background: #eef2e5; color: var(--ink); }
.nav-item.on { background: #eef2e5; color: var(--ink); font-weight: 600; }
.nav-item.on .ico { color: var(--ink); }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 18px; }
.side-foot .demo-badge { justify-self: start; }
.side-user { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 6px; border-radius: 9px; }
.side-user:hover { background: #eef2e5; }
.side-user b { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; }
.side-user small { display: block; max-width: 140px; overflow: hidden; font-size: 10px; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 600;
}
.avatar.lg { width: 54px; height: 54px; font-size: 21px; }
.demo-badge {
  display: inline-flex; align-items: center; padding: 3px 8px;
  border-radius: 999px; background: var(--warn-soft); color: var(--warn);
  font-size: 10px; white-space: nowrap;
}

/* ---------- 通用排版 ---------- */
.kicker {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--text-3);
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 4px 0 13px;
}
.page-head h1 { margin-top: 3px; font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.page-head > div { min-width: 0; }
.hint { font-size: 12px; line-height: 1.8; color: var(--text-2); }
.foot { margin-top: 18px; font-size: 11px; line-height: 1.9; color: var(--text-3); }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
  border-radius: 999px; background: #eef2e5; color: #5f7a58;
  font-size: 9px; letter-spacing: .04em; white-space: nowrap;
}
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.card {
  margin-top: 13px; padding: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.section { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 首页 ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 17px; background: var(--ink); color: #f4f7e7;
  padding: 22px 19px;
}
.hero::after {
  content: ""; position: absolute; width: 190px; height: 190px;
  right: -66px; top: -86px; border: 1px solid #ffffff26; border-radius: 50%;
  box-shadow: 0 0 0 26px #ffffff0d, 0 0 0 52px #ffffff08; pointer-events: none;
}
.hero .kicker { color: #b9cf9f; }
.hero h1 { margin: 12px 0 8px; font-size: 26px; line-height: 1.28; font-weight: 600; letter-spacing: -.02em; }
.hero p { max-width: 34em; font-size: 12px; line-height: 1.8; color: #b8cbb6; }
.hero-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #ffffff26; }
.hero-total span { font-size: 11px; color: #b9cf9f; }
.hero-total strong { font-size: clamp(34px, 9vw, 40px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-total small { font-size: 11px; color: #b8cbb6; }
.home-grid { display: grid; gap: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.stat {
  min-width: 0; padding: 11px 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.stat span { display: block; font-size: 10px; color: var(--text-2); letter-spacing: .03em; }
.stat b {
  display: block; margin-top: 4px; overflow-wrap: anywhere;
  font-size: 17px; line-height: 1.2; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat small { display: block; margin-top: 2px; font-size: 9px; color: var(--text-3); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.quick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 96px; padding: 13px 11px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .18s, background-color .18s;
}
.quick:hover { border-color: #c8d3bc; background: #fdfcf6; }
.quick-icon {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: #eef2e5; color: var(--ink);
}
.quick-icon .ico { width: 17px; height: 17px; }
.quick b { font-size: 12px; font-weight: 600; line-height: 1.4; }
.quick small { display: none; font-size: 10px; color: var(--text-3); line-height: 1.5; }
.invite-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 13px; padding: 16px 18px;
  background: var(--lime); border: 1px solid #ceddac; border-radius: var(--radius);
}
.invite-mini .kicker { color: #4f6a45; }
.invite-code {
  display: block; margin: 5px 0 2px;
  font-family: "DM Sans", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 21px; font-weight: 600; letter-spacing: .16em; line-height: 1.2;
}
.invite-code.big { margin: 10px 0 14px; font-size: 30px; letter-spacing: .2em; overflow-wrap: anywhere; }
.invite-mini small { font-size: 10.5px; color: #4f6a45; }
.invite-mini .btn { flex: 0 0 auto; }

/* ---------- 列表 ---------- */
.entry-list { display: grid; }
.entry-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; min-height: 64px; padding: 10px 2px;
  border-top: 1px solid var(--line); color: inherit;
  transition: background-color .15s;
}
.entry-row:first-child { border-top: 0; }
.entry-row:hover { background: #f6f8ef; }
.entry-row.is-active { background: #f2f5ea; box-shadow: inset 3px 0 var(--ink); }
.entry-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: #eef2e5; color: var(--ink); font-size: 15px;
}
.entry-icon.rail { color: var(--terracotta); }
.entry-main { min-width: 0; }
.entry-main strong {
  display: block; overflow: hidden; font-size: 13px; font-weight: 600;
  line-height: 1.45; white-space: nowrap; text-overflow: ellipsis;
}
.entry-main small { display: block; margin-top: 2px; overflow: hidden; font-size: 10.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.entry-amount { text-align: right; font-variant-numeric: tabular-nums; }
.entry-amount b { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.entry-amount small { display: block; font-size: 9px; color: var(--text-3); line-height: 1.4; }
.entry-date, .entry-currency, .entry-source { display: none; }
.list-head { display: none; }
.list-meta { min-height: 18px; margin: 10px 0 2px; font-size: 10.5px; color: var(--text-3); }
.load-more { margin-top: 12px; }
.list-end { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; font-size: 10.5px; color: var(--text-3); }

/* ---------- 记录两栏与详请 ---------- */
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.entries-layout { display: grid; gap: 13px; }
.pane-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pane-head h1 { margin-top: 2px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--text-2); font-size: 12px;
  transition: background-color .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: #c8d3bc; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #f6f8ec; font-weight: 600; }
.detail-panel { min-height: 240px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 12px; color: var(--text-2); }
.back-link .ico { width: 18px; height: 18px; }
.detail-title { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.detail-amount { margin-top: 8px; font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-amount small { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--text-3); }
.detail-meta { margin-top: 5px; font-size: 11px; line-height: 1.7; color: var(--text-2); }
.detail-empty { display: grid; place-content: center; justify-items: center; gap: 9px; min-height: 360px; text-align: center; border-style: dashed; border-color: #cfd9c6; }
.detail-empty h2 { font-size: 15px; font-weight: 600; }
.detail-empty .hint { max-width: 26em; }
.empty-mark {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: #eef2e5; color: var(--text-2); font-size: 22px;
}
.empty-mark .ico { width: 22px; height: 22px; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 6px; min-width: 0; margin-top: 13px; }
.field > label, .field-label { font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #dce4d0; border-radius: 9px;
  background: var(--paper); color: var(--ink); font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px #7c9a5e26;
}
.field input::placeholder, .field textarea::placeholder { color: #98a28e; }
.field-hint { font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.optional { font-weight: 400; color: var(--text-3); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group input { padding-right: 60px; }
.reveal {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  min-width: 48px; min-height: 44px; padding: 0 8px; border-radius: 7px;
  font-size: 11px; color: var(--text-2);
}
.reveal:hover { background: #eef2e5; }
.form-error {
  margin-top: 10px; padding: 9px 11px; border-radius: 9px;
  background: var(--danger-soft); color: var(--danger); font-size: 11.5px; line-height: 1.6;
}
.entry-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 0 12px; }
.form-grid .field.full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.form-actions .btn.primary { min-width: 112px; }
.form-actions .danger-ghost { margin-left: auto; }
.info-list { display: grid; }
.info-list.compact { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.info-row:first-child { border-top: 0; }
.info-row span { color: var(--text-3); }
.info-row b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.user-card {
  display: flex; align-items: center; gap: 13px; margin-top: 13px; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.user-card h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ---------- 邀请码 ---------- */
.invite-card {
  margin-top: 13px; padding: 20px 18px;
  background: var(--ink); color: #f4f7e7; border-radius: var(--radius);
}
.invite-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invite-card .kicker { color: #b9cf9f; }
.invite-card .pill { background: #ffffff1a; color: #dceac8; }
.invite-card .pill.warn { background: #b56e4633; color: #f0c9a6; }
.invite-note { margin-top: 12px; font-size: 11px; line-height: 1.8; color: #b8cbb6; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.invite-card .btn.primary { background: #f4f7e7; color: var(--ink); }
.invite-card .btn.secondary { background: transparent; border-color: #ffffff38; color: #f4f7e7; }
.progress { height: 5px; overflow: hidden; border-radius: 99px; background: #ffffff1f; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }

/* ---------- 提示、空状态、骨架 ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 13px; padding: 10px 12px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.7;
}
.alert.info { background: #eef2e5; color: #4f6a45; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert > span:first-child {
  display: grid; place-items: center; flex: 0 0 auto; width: 17px; height: 17px;
  margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 600;
}
.empty {
  padding: 30px 18px; border: 1px dashed #cfd9c6; border-radius: 12px;
  text-align: center; color: var(--text-2); font-size: 12px; line-height: 1.9;
}
.empty p b { color: var(--ink); font-weight: 600; }
.empty .empty-mark { margin: 0 auto 10px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.error-state { padding: 34px 18px; text-align: center; }
.error-mark {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-weight: 600;
}
.error-state h2 { font-size: 16px; font-weight: 600; }
.error-state p { margin-top: 4px; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.error-state .btn { margin-top: 14px; }
.skel {
  position: relative; overflow: hidden; border-radius: 10px; background: #eef2e5;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .52; } }
.skel-hero { height: 208px; border-radius: 17px; margin-bottom: 7px; }
.skel-stat { height: 74px; }
.skel-line { height: 13px; margin: 4px 0; }
.skel-line.short { width: 38%; }
.skel-title { height: 26px; width: 64%; margin-top: 14px; }
.skel-amount { height: 34px; width: 48%; margin-top: 10px; }
.skel-block { height: 170px; margin-top: 18px; }
.skel-list { display: grid; gap: 1px; margin-top: 12px; }
.skel-row { height: 64px; border-top: 1px solid var(--line); background: linear-gradient(90deg, transparent 0, #eef2e5 60px, transparent 120px); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: -160px 0; } to { background-position: 260px 0; } }

/* ---------- 导入 ---------- */
.file-drop {
  display: grid; justify-items: center; gap: 7px; padding: 28px 16px;
  border: 1px dashed #cfd9c6; border-radius: 12px; text-align: center;
  background: #fbfaf4; cursor: pointer; transition: border-color .18s, background-color .18s;
}
.file-drop:hover, .file-drop.over { border-color: var(--focus); background: #f6f8ee; }
.file-drop input {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.file-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef2e5; color: var(--ink); }
.file-drop b { font-size: 13px; font-weight: 600; }
.file-drop small { max-width: 30em; font-size: 10.5px; line-height: 1.7; color: var(--text-3); }
.preview-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 4px 0 10px; }
.preview-nums span {
  padding: 10px; border: 1px solid var(--line); border-radius: 9px;
  text-align: center; font-size: 10px; color: var(--text-3);
}
.preview-nums b { display: block; margin-bottom: 1px; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.preview-card .btn.primary { margin-top: 13px; }
.result-card { border-color: #cadbba; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.result-grid div { padding: 13px 10px; border-radius: 10px; background: #eef2e5; text-align: center; }
.result-grid b { display: block; font-size: 24px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.result-grid span { font-size: 10.5px; color: var(--text-2); }
.result-card .btn { margin-top: 13px; }
.details summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 600; }
.details[open] summary { margin-bottom: 8px; }
.details code { padding: 1px 4px; border-radius: 4px; background: #eef2e5; font-size: 11px; }

/* ---------- 登录 / 注册 ---------- */
.auth {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 38px 16px; gap: 20px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.auth-brand .brand-mark { font-size: 26px; letter-spacing: .08em; }
.auth-card {
  width: 100%; max-width: 420px; padding: 26px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.auth-card h1 { font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.auth-lede { margin-top: 5px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.auth-card .alert { margin-top: 14px; }
.auth-card form > .btn { margin-top: 20px; }
.auth-switch { margin-top: 16px; font-size: 12px; color: var(--text-2); text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.7; color: var(--text-3); text-align: center; }
.auth-copy { font-size: 10px; letter-spacing: .04em; color: var(--text-3); }
.auth-forgot { margin-top: 8px; font-size: 11.5px; text-align: right; }
.auth-forgot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-section-head h2 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.auth-section > .field-hint { margin-top: 5px; }
.recover-email { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.recover-q {
  margin-top: 15px; padding: 13px 14px;
  background: #fbfaf4; border: 1px solid var(--line); border-radius: 11px;
}
.recover-q .kicker { display: block; }
.recover-q-text { margin-top: 3px; font-size: 13px; line-height: 1.65; font-weight: 500; overflow-wrap: anywhere; }
.recover-q .field { margin-top: 9px; }
.linkish { color: var(--ink); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--text-2); }

/* ---------- Toast、对话框 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom));
  z-index: 80; max-width: 86%; padding: 11px 16px;
  border-radius: 10px; background: var(--ink); color: #eff4e5;
  font-size: 12px; line-height: 1.5; box-shadow: 0 12px 30px #193e3833;
  transform: translateX(-50%);
}
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  padding: 20px; background: #193e3855;
}
.modal {
  width: min(380px, 94vw); padding: 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 64px #193e3826;
}
.modal h2 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.modal p { margin-top: 6px; font-size: 12px; line-height: 1.8; color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- 开始使用引导 ---------- */
.onboard {
  margin: 4px 0 13px; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.onboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.onboard-head h2 { margin-top: 3px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.onboard-head-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.onboard-hide { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; background: none; font-size: 11.5px; }
.onboard > .hint { margin-top: 4px; }
.onboard-list { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.onboard-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 10px 0; border-top: 1px solid var(--line);
}
.onboard-item:first-child { border-top: 0; }
.onboard-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%;
  background: #eef2e5; color: var(--text-2); font-size: 11px; font-weight: 600;
}
.onboard-mark .ico { width: 14px; height: 14px; }
.onboard-item.done .onboard-mark { background: var(--ink); border-color: var(--ink); color: #f4f7e7; }
.onboard-body { flex: 1; min-width: 0; }
.onboard-body b { display: block; font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.onboard-body small { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.5; color: var(--text-3); }
.onboard-item .btn { flex: 0 0 auto; }
.onboard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-3);
}
.onboard-foot .linkish { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; background: none; }
.home-modules .section .linkish { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }

/* ---------- 首页工具卡 ---------- */
.home-modules { margin-top: 14px; }
.home-modules .section { margin-bottom: 9px; }
.home-modules .section h2 { font-size: 15px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.module-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.module-card.is-muted { opacity: .62; }
.module-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  flex: 1; width: 100%; min-height: 132px; padding: 13px 12px;
  text-align: left; background: transparent;
}
.module-body:hover { background: #fdfcf6; }
.module-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 10px;
  background: #eef2e5; font-size: 17px; line-height: 1;
}
.module-copy { display: block; width: 100%; min-width: 0; }
.module-copy b {
  display: block; overflow: hidden; font-size: 12.5px; line-height: 1.4; font-weight: 600;
  white-space: nowrap; text-overflow: ellipsis;
}
.module-copy small {
  display: -webkit-box; margin-top: 2px; overflow: hidden;
  font-size: 10px; line-height: 1.5; color: var(--text-3);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.module-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: auto; }
.module-metric { font-size: 10.5px; font-weight: 500; color: var(--text-2); }
.module-connect { width: calc(100% - 24px); margin: 0 12px 12px; }
.module-skel { height: 132px; }

/* ---------- 工具页 ---------- */
.tools-summary {
  margin: 4px 0 13px; padding: 17px 18px;
  border-radius: var(--radius); background: var(--ink); color: #f4f7e7;
}
.tools-summary strong { display: block; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.tools-summary p { margin-top: 4px; font-size: 11.5px; color: #b8cbb6; }
.tool-list { padding: 4px 18px; }
.tool-row {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; min-height: 66px; padding: 11px 0; border-top: 1px solid var(--line);
}
.tool-row:first-child { border-top: 0; }
.tool-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 11px;
  background: #eef2e5; font-size: 18px; line-height: 1;
}
.tool-copy { flex: 1; min-width: 0; }
.tool-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tool-title b { font-size: 13px; line-height: 1.4; font-weight: 600; }
.tool-copy p { margin-top: 1px; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.tool-note { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: var(--text-3); }
.tool-row.is-disabled .tool-icon, .tool-row.is-disabled .tool-copy { opacity: .55; }
.switch {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 52px; height: 44px; cursor: pointer;
}
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track {
  position: relative; display: block; width: 44px; height: 26px;
  border: 1px solid #cdd7c2; border-radius: 999px; background: #dbe2d2;
  transition: background-color .2s, border-color .2s;
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px #193e3826;
  transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--ink); border-color: var(--ink); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .42; }
.switch:has(input:disabled) { cursor: not-allowed; }

/* ---------- 设置：AI Key / Outlook ---------- */
.key-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.key-state small { font-size: 10.5px; color: var(--text-3); }
.key-hint {
  padding: 2px 7px; border-radius: 6px;
  background: #eef2e5; color: var(--ink);
  font-family: "DM Sans", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .08em;
}

/* ---------- 邮件页 ---------- */
.mail-account {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.mail-account-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mail-account-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 11px;
  background: #eef2e5; color: var(--ink);
}
.mail-account-main b { display: block; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.4; }
.mail-account-main small { display: block; font-size: 10.5px; line-height: 1.5; color: var(--text-3); }
.mail-account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-list { display: grid; gap: 8px; margin-top: 13px; }
.mail-item {
  min-width: 0; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.mail-item.unread { border-left: 3px solid var(--ink); padding-left: 13px; }
.mail-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 10.5px; line-height: 1.5; color: var(--text-3);
}
.mail-sender { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mail-meta time { flex: 0 0 auto; }
.mail-subject {
  display: flex; align-items: center; gap: 6px;
  margin-top: 5px; overflow-wrap: anywhere;
  font-size: 13.5px; line-height: 1.5; font-weight: 600;
}
.unread-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.mail-summary { margin-top: 5px; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.7; color: var(--text-2); }
.mail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mail-actions {
  display: flex; justify-content: flex-end; gap: 4px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
.mail-actions .btn { padding-inline: 10px; }
.mail-connect-card { padding: 28px 18px; text-align: center; }
.mail-connect-mark {
  display: grid; place-items: center; width: 52px; height: 52px;
  margin: 0 auto 10px; border-radius: 15px; background: #eef2e5; color: var(--ink);
}
.mail-connect-mark .ico { width: 26px; height: 26px; }
.mail-connect-card h2 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.mail-connect-card .hint { max-width: 30em; margin: 6px auto 14px; }
.mail-connect-card .btn { min-width: 160px; }

/* ---------- Outlook 连接弹窗 ---------- */
.connect-modal { position: relative; width: min(400px, 94vw); }
.connect-modal h2 { padding-right: 28px; }
.modal-x {
  position: absolute; top: 7px; right: 7px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 9px; color: var(--text-2);
}
.modal-x:hover { background: #eef2e5; color: var(--ink); }
.modal-x .ico { width: 18px; height: 18px; }
.connect-loading { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--text-2); }
.user-code {
  display: block; margin: 16px 0 14px; padding: 14px 10px;
  overflow-wrap: anywhere; border: 1px dashed #cfd9c6; border-radius: 12px;
  background: #fbfaf4; text-align: center;
  font-family: "DM Sans", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: .14em;
}
.connect-remaining { text-align: center; font-variant-numeric: tabular-nums; }
.connect-uri { overflow-wrap: anywhere; text-align: center; font-size: 10px; color: var(--text-3); }
.connect-uri a { text-decoration: underline; text-underline-offset: 2px; }
.connect-modal .modal-actions { margin-top: 16px; }
.connect-modal .alert { margin-top: 12px; }
.tools-summary + .card { margin-top: 0; }

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .view { max-width: 720px; padding: 24px 22px 64px; }
  .topbar { display: none; }
  .topnav {
    display: flex; align-items: center; gap: 4px;
    min-height: 58px; padding: 0 22px;
    border-bottom: 1px solid var(--line); background: var(--bg);
  }
  .brand-inline { margin-right: 12px; font-size: 16px; font-weight: 600; letter-spacing: .05em; }
  .topnav-item {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
    border-radius: 8px; font-size: 12.5px; color: var(--text-2);
  }
  .topnav-item:hover { background: #eef2e5; }
  .topnav-item.on { background: #eef2e5; color: var(--ink); font-weight: 600; }
  .topnav .demo-badge { margin-left: auto; }
  .tabbar { display: none; }
  .toast { bottom: 20px; }
  .hero h1 { font-size: 30px; }
  .quick small { display: block; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .quick { min-height: 118px; }
  .card { padding: 18px; }
  .invite-code.big { font-size: 34px; }
  .auth { padding: 48px 22px; }
  .auth-card { padding: 30px; }
  .skel-hero { height: 232px; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 20;
    display: flex; flex-direction: column; width: 220px; padding: 22px 16px 18px;
    border-right: 1px solid var(--line); background: var(--bg);
  }
  .main { margin-left: 220px; }
  .topbar, .topnav, .tabbar { display: none; }
  .view { max-width: 900px; padding: 34px 28px 80px; }
  .view-entries { max-width: 980px; }
  .home-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
  .stats { grid-template-columns: 1fr; margin-top: 0; }
  .stat { display: flex; flex-direction: column; justify-content: center; }
  .hero { padding: 26px 24px 24px; border-radius: 20px; }
  .hero h1 { font-size: 30px; }
  .home-hero { min-height: 100%; }
  .entry-row { grid-template-columns: 28px 64px minmax(0, 1fr) 68px 32px 32px; min-height: 52px; padding: 6px 2px; gap: 4px; }
  .entry-date, .entry-currency, .entry-source { display: block; font-size: 10.5px; line-height: 1.5; color: var(--text-2); }
  .entry-currency, .entry-source { color: var(--text-3); }
  .entry-main small, .entry-amount small { display: none; }
  .entry-amount b { font-size: 13px; }
  .list-head {
    display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) 68px 32px 32px;
    gap: 4px; padding: 0 2px 7px; font-size: 9px; letter-spacing: .04em;
    color: var(--text-3);
  }
  .list-head .num { text-align: right; }
  .entries-layout { grid-template-columns: 370px minmax(0, 1fr); gap: 16px; align-items: start; }
  .entries-pane { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow: auto; padding: 16px; }
  .entries-pane::-webkit-scrollbar { width: 8px; }
  .entries-pane::-webkit-scrollbar-thumb { background: #dce4d2; border-radius: 99px; }
  .detail-panel { padding: 24px; }
  .back-link { display: none; }
  .detail-title { font-size: 30px; }
  .detail-amount { font-size: 38px; }
  .detail-empty { min-height: 480px; }
  .skel-hero { height: 100%; min-height: 214px; }
  .card { margin-top: 13px; }
  .toast { bottom: 24px; }
}

/* ---------- 宽屏 ---------- */
@media (min-width: 1440px) {
  .view { max-width: 900px; }
  .view-entries { max-width: 1040px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 购物清单 ---------- */
.shopping-head-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.shopping-ai-card .form-actions .linkish { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.shopping-image-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shopping-image-tools .field-hint { flex: 1 1 150px; min-width: 0; }
.shopping-image-preview {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin-top: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfaf4;
}
.shopping-image-preview img { flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #eef2e5; }
.shopping-image-preview span { min-width: 0; font-size: 10.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.shopping-key-alert { flex-wrap: wrap; }
.shopping-key-alert .linkish { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding-left: 6px; }
.shopping-ai-list { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.shopping-ai-item {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; min-height: 58px; padding: 9px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.shopping-ai-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ai-check {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid #cdd7c2; border-radius: 6px; background: var(--paper);
  color: transparent; transition: background-color .18s, border-color .18s, color .18s;
}
.ai-check .ico { width: 14px; height: 14px; }
.shopping-ai-item input:checked + .ai-check { background: var(--ink); border-color: var(--ink); color: #f4f7e7; }
.shopping-ai-item input:focus-visible + .ai-check { outline: 2px solid var(--focus); outline-offset: 2px; }
.shopping-ai-main { display: block; min-width: 0; }
.shopping-ai-main b { display: block; overflow: hidden; font-size: 13px; line-height: 1.5; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.shopping-ai-main small { display: block; margin-top: 1px; overflow: hidden; font-size: 10.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.shopping-ai-qty {
  max-width: 96px; padding: 3px 8px; border-radius: 999px;
  background: #eef2e5; color: var(--text-2); font-size: 10px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shopping-list-card { padding-bottom: 10px; }
.shopping-list { display: grid; }
.shopping-item { position: relative; overflow: hidden; background: var(--paper); border-top: 1px solid var(--line); }
.shopping-list > .shopping-item:first-child { border-top: 0; }
.shopping-front {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  align-items: center; gap: 6px; min-height: 64px;
  background: var(--paper); touch-action: pan-y; will-change: transform;
  transition: transform .18s ease;
}
.shopping-item.swiping .shopping-front { transition: none; }
.shopping-swipe-delete {
  position: absolute; inset: 0 0 0 auto; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 96px; background: var(--danger); color: #fff; font-size: 10px; line-height: 1.4;
}
.shopping-swipe-delete .ico { width: 17px; height: 17px; }
.shopping-check {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; cursor: pointer;
}
.shopping-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shopping-checkbox {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid #cdd7c2; border-radius: 7px; background: var(--paper);
  color: transparent; transition: background-color .18s, border-color .18s, color .18s;
}
.shopping-checkbox .ico { width: 15px; height: 15px; }
.shopping-check input:checked + .shopping-checkbox { background: var(--ink); border-color: var(--ink); color: #f4f7e7; }
.shopping-check input:focus-visible + .shopping-checkbox { outline: 2px solid var(--focus); outline-offset: 2px; }
.shopping-check input:disabled + .shopping-checkbox { opacity: .5; }
.shopping-copy { display: block; min-width: 0; }
.shopping-copy b { display: block; overflow: hidden; font-size: 13.5px; line-height: 1.45; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.shopping-copy small { display: block; margin-top: 1px; overflow: hidden; font-size: 10.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.shopping-item.is-done .shopping-copy { opacity: .62; }
.shopping-item.is-done .shopping-copy b { text-decoration: line-through; text-decoration-thickness: 1px; }
.shopping-delete {
  position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.shopping-bought-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 12px 0 4px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-3);
}
.shopping-all-done { padding: 4px 0 8px; }
.shopping-empty { padding: 18px; }

/* ---------- 开支总览 ---------- */
.expense-controls { display: grid; gap: 12px; }
.expense-currency-field { max-width: 220px; margin-top: 0; }
.expense-summary { display: grid; gap: 14px; }
.expense-summary-main .kicker { display: block; }
.expense-summary-main strong {
  display: block; margin-top: 4px;
  font-size: clamp(28px, 8vw, 38px); line-height: 1.12; font-weight: 600;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.expense-summary-main strong small { font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--text-3); }
.expense-summary-main p { margin-top: 4px; font-size: 10.5px; color: var(--text-3); }
.expense-summary-side {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.expense-summary-side > div { min-width: 0; padding: 10px; border-radius: 10px; background: #f6f8ef; }
.expense-summary-side span { display: block; font-size: 10px; color: var(--text-2); }
.expense-summary-side b { display: block; margin-top: 2px; font-size: 16px; line-height: 1.35; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.expense-summary-side b small { font-size: 9px; font-weight: 500; color: var(--text-3); }
.expense-chart {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px;
  height: 164px; padding-top: 4px;
}
.expense-chart-col { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; height: 100%; }
.chart-value {
  flex: 0 0 14px; max-width: 100%; overflow: hidden;
  font-size: 9px; line-height: 14px; color: var(--text-3);
  white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.chart-track {
  display: flex; align-items: flex-end; width: min(34px, 78%); flex: 1; min-height: 90px;
  overflow: hidden; border-radius: 7px 7px 3px 3px; background: #f0f3e9;
}
.chart-track i { display: block; width: 100%; border-radius: 7px 7px 3px 3px; background: var(--ink); transition: height .4s ease; }
.expense-chart-col.is-current .chart-track i { background: var(--terracotta); }
.chart-month { flex: 0 0 17px; font-size: 10px; line-height: 17px; color: var(--text-2); white-space: nowrap; }
.expense-category-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: #f0f3e9; }
.expense-category-bar i { display: block; height: 100%; }
.expense-category-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.expense-legend-item { min-width: 0; padding: 10px; border-radius: 10px; background: #f6f8ef; transition: opacity .18s; }
.expense-legend-item.is-dim { opacity: .45; }
.expense-legend-item span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-2); }
.expense-legend-item span i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
.expense-legend-item b { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.expense-legend-item small { display: block; margin-top: 1px; font-size: 9.5px; color: var(--text-3); }
.expense-list { display: grid; margin-top: 3px; }
.expense-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; min-height: 60px; padding: 8px 0;
  border-top: 1px solid var(--line);
}
.expense-row:first-child { border-top: 0; }
.expense-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: #eef2e5; color: var(--ink); font-size: 15px; line-height: 1;
}
.expense-icon.rail { color: var(--terracotta); }
.expense-copy { display: block; min-width: 0; }
.expense-copy b { display: block; overflow: hidden; font-size: 12.5px; line-height: 1.45; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.expense-copy small { display: block; margin-top: 1px; overflow: hidden; font-size: 10px; line-height: 1.5; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.expense-amount { text-align: right; font-variant-numeric: tabular-nums; }
.expense-amount b { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.expense-amount small { display: block; font-size: 9px; line-height: 1.4; color: var(--text-3); }

@media (min-width: 640px) {
  .expense-controls { grid-template-columns: 180px minmax(0, 1fr); align-items: end; }
  .expense-summary { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
  .expense-summary-side { padding-top: 0; padding-left: 16px; border-top: 0; border-left: 1px solid var(--line); }
  .expense-chart { gap: 9px; }
  .chart-track { width: min(44px, 72%); }
  .shopping-ai-item { grid-template-columns: 22px minmax(0, 1fr) auto; padding: 10px 2px; }
}

@media (min-width: 1024px) {
  .shopping-delete {
    position: static; width: auto; height: auto; min-height: 44px; margin-right: 2px;
    padding: 0 10px; overflow: visible; clip: auto;
  }
  .shopping-swipe-delete { display: none; }
  .shopping-front { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .expense-controls { grid-template-columns: 200px minmax(0, 1fr); }
  .expense-chart { height: 184px; }
  .shopping-empty { padding: 24px; }
}

/* ---------- 购物小票 ---------- */
.receipt-summary-list { display: grid; gap: 7px; }
.receipt-summary-row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfaf4;
}
.receipt-summary-code {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.receipt-summary-count { font-size: 11px; color: var(--text-2); }
.receipt-summary-row b {
  min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.4;
  text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.receipt-summary-note { margin-top: 8px; font-size: 10.5px; line-height: 1.7; color: var(--text-3); }
.receipt-drop { padding: 22px 16px; }
.receipt-image-preview {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px;
  align-items: center; margin-top: 10px; padding: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfaf4;
}
.receipt-image-preview img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #eef2e5;
}
.receipt-image-preview > span { min-width: 0; font-size: 10.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.receipt-image-preview .btn { grid-column: 1 / -1; justify-self: start; }
.receipt-key-alert { flex-wrap: wrap; }
.receipt-key-alert .linkish { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding-left: 6px; }
.receipt-notes {
  margin-top: 9px; padding: 9px 11px; border-radius: 9px;
  background: #f6f8ef; color: var(--text-2); font-size: 11px; line-height: 1.7;
}
.receipt-items-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.receipt-items-head h3 { font-size: 13px; font-weight: 600; }
.receipt-items-head .hint { margin-top: 2px; font-size: 10.5px; }
.receipt-items-head .btn { flex: 0 0 auto; }
.receipt-items { margin-top: 8px; }
.receipt-item {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px; align-items: end; padding: 12px 0;
  border-top: 1px solid var(--line);
}
.receipt-item:first-child { border-top: 0; }
.receipt-item-name { grid-column: 1 / -1; }
.receipt-item-field { margin-top: 0; gap: 4px; }
.receipt-item-field > label { font-size: 10px; color: var(--text-3); }
.receipt-item-field input, .receipt-item-field select { min-height: 44px; padding: 8px 10px; font-size: 13px; }
.receipt-item-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 4px; min-width: 0; min-height: 44px;
}
.receipt-deposit {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 4px; cursor: pointer;
  font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}
.receipt-deposit input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.receipt-checkbox {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid #cdd7c2; border-radius: 6px; background: var(--paper);
  color: transparent; transition: background-color .18s, border-color .18s, color .18s;
}
.receipt-checkbox .ico { width: 14px; height: 14px; }
.receipt-deposit input:checked + .receipt-checkbox { background: var(--ink); border-color: var(--ink); color: #f4f7e7; }
.receipt-deposit input:focus-visible + .receipt-checkbox { outline: 2px solid var(--focus); outline-offset: 2px; }
.receipt-item-remove { padding-inline: 8px; }
@media (max-width: 639.98px) {
  .receipt-item-remove { width: 44px; padding-inline: 0; }
  .receipt-item-remove span { display: none; }
}
.receipt-reconcile {
  display: grid; gap: 5px; margin-top: 14px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: #f6f8ef;
}
.receipt-reconcile.is-bad { border-color: #e6c7c0; background: var(--danger-soft); }
.receipt-reconcile-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-2); }
.receipt-reconcile-row b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.receipt-reconcile.is-bad .receipt-reconcile-row, .receipt-reconcile.is-bad .receipt-reconcile-status { color: var(--danger); }
.receipt-reconcile.is-ok .receipt-reconcile-status { color: var(--ok); }
.receipt-reconcile-status { margin-top: 1px; font-size: 11.5px; font-weight: 600; line-height: 1.6; }
.receipts-pane .pane-head h2 { margin-top: 2px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.receipt-list { display: grid; }
.receipt-card { border-top: 1px solid var(--line); }
.receipt-list > .receipt-card:first-child { border-top: 0; }
.receipt-card.is-selected { background: #f7f9f1; }
.receipt-card-main {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; width: 100%; min-height: 66px; padding: 9px 2px;
  text-align: left; transition: background-color .15s;
}
.receipt-card-main:hover { background: #f6f8ef; }
.receipt-card-icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: #eef2e5; color: var(--ink); font-size: 16px; line-height: 1;
}
.receipt-card-copy { display: block; min-width: 0; }
.receipt-card-copy b { display: block; overflow: hidden; font-size: 13px; line-height: 1.45; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.receipt-card-copy small { display: block; margin-top: 1px; overflow: hidden; font-size: 10.5px; line-height: 1.5; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.receipt-card-amount { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-card-amount b { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.receipt-card-amount small { display: block; font-size: 9px; line-height: 1.4; color: var(--text-3); }
.receipt-detail { padding: 0 2px 12px; }
.receipt-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.receipt-detail-head h2 { margin-top: 3px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.receipt-lines-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  margin-top: 12px; padding: 5px 0 6px; border-top: 1px dashed var(--line);
  font-size: 9px; letter-spacing: .06em; color: var(--text-3);
}
.receipt-lines-head span:last-child { text-align: right; }
.receipt-lines { display: grid; }
.receipt-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line);
}
.receipt-line:first-child { border-top: 0; }
.receipt-line-main { display: block; min-width: 0; }
.receipt-line-main b { display: block; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; font-weight: 500; }
.receipt-line-main small { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.5; color: var(--text-3); }
.receipt-line-amount { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-line-amount b { display: block; font-size: 12.5px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.receipt-line-amount small { display: block; font-size: 9px; line-height: 1.4; color: var(--text-3); }
.receipt-detail-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-2);
}
.receipt-detail-total b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.receipt-detail .form-actions { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.receipt-detail-panel { min-height: 240px; }
.receipt-detail-empty { display: grid; place-content: center; justify-items: center; gap: 9px; min-height: 340px; text-align: center; border-style: dashed; border-color: #cfd9c6; }
.receipt-detail-empty h2 { font-size: 15px; font-weight: 600; }
.receipt-detail-empty .hint { max-width: 24em; }

/* ---------- 本地工具（旧版） ---------- */
.local-tools-card {
  display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: 64px; margin-top: 18px; padding: 10px 13px;
  border: 1px dashed #d6ddcd; border-radius: 12px; background: transparent;
  text-align: left; color: var(--text-2); opacity: .88;
  transition: background-color .18s, opacity .18s;
}
.local-tools-card:hover { background: #f6f8ef; opacity: 1; }
.local-tools-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 8px;
  background: #eef2e5; color: var(--text-2); font-size: 14px; line-height: 1;
}
.local-tools-copy { flex: 1; min-width: 0; }
.local-tools-copy b { display: block; font-size: 12px; line-height: 1.4; font-weight: 600; }
.local-tools-copy small { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.55; color: var(--text-3); }
.local-tools-arrow { flex: 0 0 auto; font-size: 14px; color: var(--text-3); }

@media (min-width: 640px) {
  .receipt-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receipt-detail { padding-inline: 0; }
}

@media (min-width: 1024px) {
  .receipts-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 16px; align-items: start; }
  .receipts-pane { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow: auto; padding: 16px; }
  .receipts-pane::-webkit-scrollbar { width: 8px; }
  .receipts-pane::-webkit-scrollbar-thumb { background: #dce4d2; border-radius: 99px; }
  .receipt-detail-panel { min-height: 360px; padding: 24px; }
  .receipt-item { grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .7fr) minmax(0, .8fr) auto; }
  .receipt-item-name { grid-column: auto; }
  .receipt-item-actions { justify-content: flex-end; }
  .receipt-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 机票积分 / 通票使用率 ---------- */
.topbar-back {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; margin-left: -6px; padding: 0 6px;
  font-size: 12px; color: var(--text-2);
}
.topbar-back .ico { width: 18px; height: 18px; }
.topbar-back:hover { color: var(--ink); }
.topbar-home {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; margin-right: -8px; color: var(--text-2);
}
.topbar-home:hover { color: var(--ink); }
.tool-link { display: block; color: inherit; }
.tool-link:hover b { text-decoration: underline; text-underline-offset: 3px; }

.travel-drop { padding: 22px 16px; }
.travel-image-preview { margin-top: 10px; }
.travel-key-alert { flex-wrap: wrap; }
.travel-ai-notes {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px;
  margin-top: 14px; padding: 12px 13px;
  border-radius: 11px; background: #f6f8ef;
}
.travel-note { min-width: 0; }
.travel-note > span { display: block; font-size: 10px; line-height: 1.5; color: var(--text-3); }
.travel-note > p { margin-top: 2px; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.7; color: var(--text-2); }
.travel-note > p .pill { vertical-align: middle; }

.travel-list { display: grid; }
.travel-record { border-top: 1px solid var(--line); }
.travel-list > .travel-record:first-child { border-top: 0; }
.travel-record-main {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; width: 100%; min-height: 66px; padding: 9px 2px;
  text-align: left; transition: background-color .15s;
}
.travel-record-main:hover { background: #f6f8ef; }
.travel-record.is-open .travel-record-main { background: #f7f9f1; }
.travel-record-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: #eef2e5; color: var(--ink); font-size: 15px; line-height: 1;
}
.travel-record-icon.rail { color: var(--terracotta); }
.travel-record-copy { display: block; min-width: 0; }
.travel-record-copy b {
  display: block; overflow: hidden; font-size: 13px; font-weight: 600;
  line-height: 1.45; white-space: nowrap; text-overflow: ellipsis;
}
.travel-record-copy small {
  display: block; margin-top: 1px; overflow: hidden;
  font-size: 10.5px; line-height: 1.5; color: var(--text-3);
  white-space: nowrap; text-overflow: ellipsis;
}
.travel-record-side {
  display: grid; justify-items: end; gap: 2px; min-width: 0;
  text-align: right; font-variant-numeric: tabular-nums;
}
.travel-record-side > b { font-size: 13px; line-height: 1.35; font-weight: 600; white-space: nowrap; }
.travel-record-side > small { font-size: 9px; line-height: 1.4; color: var(--text-3); white-space: nowrap; }
.travel-record-side .pill { margin-top: 1px; }
.travel-points { color: var(--text-2) !important; }
.travel-record-detail { padding: 2px 2px 14px; }
.travel-detail-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 9px;
  align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.7;
}
.travel-detail-row > span { font-size: 10.5px; color: var(--text-3); }
.travel-detail-row > b { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.travel-detail-row > p { min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }
.travel-detail-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.travel-detail-meta .linkish { display: inline-flex; align-items: center; min-height: 44px; }
.travel-status-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px;
  align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.travel-status-form .field { margin-top: 8px; }
.travel-status-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.travel-list-card { padding-bottom: 10px; }

.rail-head-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rail-head-tools .linkish {
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: 4px; background: none;
}
.rail-draft-list { margin-top: 12px; border-top: 1px solid var(--line); }
.rail-draft-row { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.rail-draft-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.rail-draft-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 8px;
}
.rail-draft-title { display: block; min-width: 0; }
.rail-draft-title b {
  display: block; overflow: hidden; font-size: 12.5px; line-height: 1.45;
  font-weight: 600; white-space: nowrap; text-overflow: ellipsis;
}
.rail-draft-title small {
  display: block; margin-top: 1px; overflow: hidden;
  font-size: 10px; line-height: 1.5; color: var(--text-3);
  white-space: nowrap; text-overflow: ellipsis;
}
.rail-draft-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; margin-top: 4px; }
.rail-draft-fields .field { margin-top: 8px; }
.rail-draft-note {
  margin-top: 7px; overflow-wrap: anywhere;
  font-size: 10.5px; line-height: 1.7; color: var(--text-3);
}
.rail-row-error { margin-top: 7px; }
.check-field {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 2px; cursor: pointer;
  font-size: 11px; color: var(--text-2); white-space: nowrap;
}
.check-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-box {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid #cdd7c2; border-radius: 6px; background: var(--paper);
  color: transparent; transition: background-color .18s, border-color .18s, color .18s;
}
.check-box .ico { width: 14px; height: 14px; }
.check-field input:checked + .check-box { background: var(--ink); border-color: var(--ink); color: #f4f7e7; }
.check-field input:focus-visible + .check-box { outline: 2px solid var(--focus); outline-offset: 2px; }

.recovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.recovery-cell {
  min-width: 0; padding: 11px 10px;
  background: #fbfaf4; border: 1px solid var(--line); border-radius: 10px;
}
.recovery-cell > span { display: block; font-size: 9.5px; line-height: 1.5; color: var(--text-3); }
.recovery-cell > b {
  display: block; margin-top: 4px; overflow-wrap: anywhere;
  font-size: 15px; line-height: 1.3; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.recovery-cell > small { display: block; margin-top: 1px; font-size: 9px; line-height: 1.4; color: var(--text-3); }
.recovery-cell.is-highlight { background: var(--lime); border-color: #ceddac; }
.recovery-cell.is-highlight > span, .recovery-cell.is-highlight > small { color: #4f6a45; }
.recovery-note { margin-top: 9px; font-size: 10.5px; line-height: 1.75; color: var(--text-3); }

@media (min-width: 640px) {
  .travel-ai-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .travel-note.full { grid-column: 1 / -1; }
  .rail-draft-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .travel-status-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .travel-status-form .btn { grid-column: auto; margin-top: 8px; }
  .recovery-grid { gap: 9px; }
}

