:root {
  --bg: #f2f2f4;
  --surface: #ffffff;
  --surface-2: #f6f6f8;
  --ink: #0a0a0b;
  --muted: #6e6e73;
  --muted-2: #9a9aa0;
  --line: rgba(10, 10, 11, .09);
  --stage: #050505;
  --stage-ink: #f2f2f2;
  --stage-muted: #86868b;
  --red: #ff453a;
  --green: #3ecf7e;
  --amber: #ff9f0a;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }

/* 禁止缩放 / 竖屏锁配套:
   touch-action:manipulation 关掉双击放大(同时保留 300ms 点击延迟的消除, 不误伤连点);
   text-size-adjust:100% 防止 iOS 横竖屏切换时自作主张放大字号。 */
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  /* 去掉 Google Fonts 的 Inter, 改系统栈: -apple-system/system-ui 在 iOS/安卓
     上分别落到 SF Pro / Roboto, 观感接近 Inter 且零网络请求; 中文仍走苹方/雅黑。 */
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}

::selection { background: rgba(10, 132, 255, .25); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(133, 133, 138, .35); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 126, .5); }
  70% { box-shadow: 0 0 0 5px rgba(62, 207, 126, 0); }
}

.app { max-width: 560px; margin: auto; padding: 18px 16px 40px; }

.topbar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.brand { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 4px 2px; margin: -4px -2px; cursor: pointer; font: inherit; }
.brand:active { opacity: .7; }
.brand h1 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.brand-logo {
  display: block;
  width: 133px;
  height: 13px;
  background-color: var(--ink);
  -webkit-mask: url(/assets/tesla.svg) no-repeat left center / contain;
  mask: url(/assets/tesla.svg) no-repeat left center / contain;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn:hover { background: var(--surface-2); }
.menu-btn[hidden] { display: none; }

/* ---------- Login ---------- */
.login-card {
  margin-top: 12vh;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  animation: rise .4s var(--ease) both;
}
.login-logo {
  display: block;
  width: 182px;
  height: 18px;
  margin-bottom: 28px;
  background-color: var(--ink);
  -webkit-mask: url(/assets/tesla.svg) no-repeat left center / contain;
  mask: url(/assets/tesla.svg) no-repeat left center / contain;
}
.login-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.login-sub { color: var(--muted); line-height: 1.6; margin: 0 0 24px; font-size: 13.5px; }

form { display: grid; gap: 10px; }
label, .label { font-size: 12px; color: var(--muted); font-weight: 600; }

input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  outline: 0;
  font: 16px inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus { border-color: var(--muted-2); box-shadow: 0 0 0 3px var(--line); }

form button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  background: var(--ink);
  color: var(--bg);
  font: 700 15px inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
form button:hover { opacity: .88; }
form button:active { transform: scale(.985); }
.error { min-height: 1.2em; color: var(--red); margin: 0; font-size: 13px; font-weight: 600; }

/* ---------- Vehicle stage (always dark, like Tesla's own app) ---------- */
.vehicle-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 24px;
  background: radial-gradient(120% 90% at 50% -10%, #1c1c1f 0%, var(--stage) 62%);
  border-radius: var(--radius-xl);
  color: var(--stage-ink);
  animation: rise .45s var(--ease) both;
}
.vehicle-head { display: flex; justify-content: space-between; align-items: flex-start; }
.model { font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.state {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--stage-muted);
  font-weight: 500;
}
.state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 2.2s infinite;
}
.update { font-size: 11px; color: #55555a; margin-top: 6px; }
.update svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; color: var(--muted-2); }
.temperature { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12px; line-height: 1.3; color: var(--stage-muted); margin-top: 0px; }
.temperature .ti { width: 36px; height: 36px; color: var(--stage-muted); }
.temperature .ti svg { width: 36px; height: 36px; display: block; }
.temperature .tw { margin-top: 4px; white-space: nowrap; font-weight: 500; }
.temperature b { color: var(--stage-ink); font-weight: 600; }

.car {
  display: block;
  width: 104%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  margin: 4px 0 -6px -2%;
  -webkit-mask-image: radial-gradient(72% 68% at 50% 42%, #000 62%, transparent 100%);
  mask-image: radial-gradient(72% 68% at 50% 42%, #000 62%, transparent 100%);
}

.battery-gauge { margin-top: 4px; }
.gauge-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.gauge-level { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.gauge-level small { font-size: 14px; font-weight: 600; color: var(--stage-muted); margin-left: 1px; }
.gauge-range { text-align: right; font-size: 12.5px; color: var(--stage-muted); }
.gauge-range b { display: block; font-size: 15px; color: var(--stage-ink); font-weight: 600; }
.gauge-bar {
  position: relative;
  height: 8px;
  border-radius: 5px;
  background: var(--line);
  overflow: visible;
}
.gauge-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width .6s var(--ease);
}
.gauge-bar.is-charging i { background: var(--green); }
/* 车辆卡片始终是深色底（和 Tesla App 一致），条形图需要单独的浅色配色 */
.vehicle-card .gauge-bar { background: rgba(255, 255, 255, .14); }
.vehicle-card .gauge-bar i { background: linear-gradient(90deg, #d8dee4, #ffffff); }
.vehicle-card .gauge-bar.is-charging i { background: linear-gradient(90deg, #1f8a4c, var(--green)); }

/* ---------- Quick actions: Tesla-style circular shortcuts ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 11.5px inherit;
  font-weight: 500;
  cursor: pointer;
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.quick-icon svg { width: 21px; height: 21px; }
.quick:hover .quick-icon { transform: translateY(-2px); }
.quick:active .quick-icon { transform: scale(.94); }

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 2px 11px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.section-head small { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.section-head small.link-action { color: var(--ink); font-weight: 600; cursor: pointer; }
.section-head small.link-action:active { opacity: .6; }

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  animation: rise .4s var(--ease) both;
}

.board { padding: 18px; }
.board-top { display: flex; justify-content: space-between; align-items: center; }
.board-top h2 { font-size: 15.5px; margin: 0; font-weight: 700; }
.mock-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 4px 8px;
}
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; gap: 8px; }
/* 充电详情的指标卡按 2×2 排（时长+均功率 / 电量+费用）：
   电量和费用要并排对比，一行四格时它们被挤到两端，看不出关系。
   只挂在 .metrics-2x2 上，行程详情那张四格卡不受影响。 */
.metrics-2x2 { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
.metric-label { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; font-weight: 500; }
.metric b { display: block; font-size: 19px; letter-spacing: -.02em; margin-top: 7px; font-weight: 700; }
.metric small { color: var(--muted); font-weight: 500; font-size: 11px; }

/* ---------- 充电累计统计面板（独立于记录列表，单独成块） ---------- */
.stats-board { margin-bottom: 14px; }
.stats-head {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: -.01em; margin-bottom: 12px;
}
.stats-head svg { width: 14px; height: 14px; color: var(--amber); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
/* 费用分析三块的卡片数不一样（通行 2 / 停车 2 / 充电 3），固定 4 列会右半边空一大块。
   用 auto-fit 让它按实际张数铺满。只在 .stats-grid-auto 上生效——全局 statCard
   有 18 处，改公共类会影响行程详情等其他页面。 */
.stats-grid-auto { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
.stat-card {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 11px 10px 12px;
}
.stat-card-top {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.3;
}
.stat-card-top svg { width: 12px; height: 12px; flex: none; color: var(--muted-2); }
.stat-card b {
  display: block; margin-top: 6px;
  font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.stat-card b small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------- 数据洞察入口与子页面 ---------- */
.insight-page-title { margin-top: 20px; }
.insight-section-title { margin-top: 24px; }
.insight-link {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(18, 24, 40, .035);
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.insight-link:hover { transform: translateY(-1px); border-color: rgba(10, 132, 255, .24); box-shadow: 0 6px 18px rgba(18, 24, 40, .07); }
.insight-link:active { transform: scale(.985); }
.insight-link-icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(10, 132, 255, .10);
  color: #0876e8;
}
.insight-link-icon svg { width: 21px; height: 21px; }
.insight-grid .insight-link:nth-child(2) .insight-link-icon { background: rgba(255, 159, 10, .13); color: #dc8500; }
.insight-grid .insight-link:nth-child(3) .insight-link-icon { background: rgba(45, 177, 157, .13); color: #168d7d; }
.insight-link-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.insight-link-copy b { font-size: 15px; font-weight: 700; }
.insight-link-copy small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.insight-link-copy em { margin-top: 2px; color: var(--muted-2); font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.4; }
.insight-link-arrow { color: var(--muted-2); font-size: 24px; font-weight: 300; line-height: 1; }
.insight-grid { display: flex; flex-direction: column; gap: 9px; }
.insight-footnote { margin: 14px 4px 0; color: var(--muted-2); font-size: 11px; line-height: 1.55; }
.insight-hero {
  width: 100%; display: block; padding: 18px 19px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--ink); text-align: left;
  box-shadow: 0 3px 14px rgba(18, 24, 40, .045); transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.insight-hero-main { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.insight-hero-main:hover .insight-hero-footer { color: var(--ink); }
.insight-hero-main:active { opacity: .78; }
.insight-hero-heading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.insight-hero-heading small { color: var(--muted-2); font-size: 11px; font-weight: 500; }
.insight-hero-icon { width: 36px; height: 36px; margin: -5px -6px -5px auto; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background .16s var(--ease), transform .16s var(--ease); }
.insight-hero-icon:hover { background: #e9f2ff; color: #0876e8; }
.insight-hero-icon:active { transform: scale(.93); }
.insight-hero-icon svg { width: 18px; height: 18px; }
.insight-hero-distance { margin-top: 6px; color: var(--ink); font-size: 39px; font-weight: 700; letter-spacing: -.055em; line-height: 1.08; }
.insight-hero-distance small { margin-left: 5px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.insight-hero-caption { margin-top: 2px; color: var(--muted); font-size: 11px; }
.insight-hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.insight-hero-metrics span { display: flex; flex-direction: column; gap: 2px; }
.insight-hero-metrics b { font-size: 15px; font-weight: 700; }
.insight-hero-metrics small { color: var(--muted); font-size: 10px; }
.insight-hero-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; color: var(--muted); font-size: 11px; font-weight: 650; }
.insight-hero-footer span { font-size: 16px; }

/* 用车日历：轻量月历弹层 + 当天时间线，沿用浅色 Metro 卡片语言。 */
.calendar-open { overflow: hidden; }
.calendar-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.calendar-scrim { position: absolute; inset: 0; background: rgba(20, 25, 35, .28); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: calendar-fade .16s ease-out; }
.calendar-dialog { position: relative; width: min(100%, 430px); max-height: calc(100vh - 32px); max-height: min(720px, calc(100dvh - 32px)); overflow-y: auto; padding: 12px 19px 18px; border: 1px solid rgba(10,10,11,.08); border-radius: 25px; background: var(--surface); box-shadow: 0 22px 70px rgba(17,24,39,.2); animation: calendar-rise .2s var(--ease); }
.calendar-dialog-grip { display: none; }
.calendar-dialog-head { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 8px; }
.calendar-dialog-head small { color: var(--muted); font-size: 12px; font-weight: 600; }
.calendar-dialog-head h2 { margin: 1px 0 0; font-size: 24px; font-weight: 750; letter-spacing: -.04em; }
.calendar-close, .calendar-controls button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 13px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.calendar-close svg { width: 18px; height: 18px; }
.calendar-controls { display: flex; align-items: center; justify-content: center; gap: 17px; margin: 8px 0 12px; }
.calendar-controls button { width: 34px; height: 34px; border-radius: 11px; font-size: 23px; line-height: 1; }
.calendar-controls .calendar-today { width: auto; padding: 0 13px; font-size: 12px; font-weight: 650; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekdays { margin-bottom: 4px; color: var(--muted-2); text-align: center; font-size: 11px; font-weight: 650; }
.calendar-weekdays span { padding: 5px 0; }
.calendar-cell { position: relative; display: flex; min-width: 0; min-height: 51px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.calendar-cell:hover { background: var(--surface-2); }
.calendar-cell.is-today { border-color: rgba(8,118,232,.24); color: #0876e8; background: rgba(8,118,232,.055); }
.calendar-cell.has-records { background: #f7f9fc; }
.calendar-cell.has-records.is-today { background: rgba(8,118,232,.07); }
.calendar-cell-empty { pointer-events: none; }
.calendar-dots { display: flex; height: 5px; align-items: center; justify-content: center; gap: 3px; }
.calendar-dot, .calendar-dot-placeholder { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.calendar-dot.drive { background: #1687e8; }
.calendar-dot.charging { background: #36ad75; }
.calendar-dot.parking { background: #edaa36; }
.calendar-legend { display: flex; justify-content: center; gap: 17px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend .calendar-dot { width: 7px; height: 7px; }
.calendar-hint { margin: 12px 0 0; color: var(--muted-2); text-align: center; font-size: 11px; }
@keyframes calendar-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes calendar-rise { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.calendar-day-head { margin: 15px 2px 16px; }
.calendar-day-head .back-btn { margin: 0 0 12px; color: var(--muted); }
.calendar-day-head > div { min-width: 0; }
.calendar-day-head h1 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.calendar-day-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.calendar-day-summary { padding: 16px; }
.calendar-day-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calendar-day-primary > div { display: flex; flex-direction: column; gap: 2px; }
.calendar-day-primary small, .calendar-fee-grid small { color: var(--muted); font-size: 11px; }
.calendar-day-primary b { font-size: 24px; letter-spacing: -.035em; }
.calendar-day-primary i { margin-left: 3px; color: var(--muted); font-size: 12px; font-style: normal; letter-spacing: 0; }
.calendar-day-counts { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.calendar-day-counts span { display: inline-flex; align-items: center; gap: 4px; }
.calendar-day-counts svg { width: 14px; height: 14px; color: #1687e8; }
.calendar-day-counts span:nth-child(2) svg { color: #36ad75; }
.calendar-day-counts span:nth-child(3) svg { color: #edaa36; }
.calendar-fees { margin-top: 10px; padding: 14px 15px 11px; }
.calendar-fees-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-fees-head b { font-size: 13px; }
.calendar-fees-head span { color: var(--ink); font-size: 13px; font-weight: 700; }
.calendar-fee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calendar-fee-grid > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); }
.calendar-fee-grid b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-fee-grid em { min-height: 12px; color: var(--muted-2); font-size: 9px; font-style: normal; }
.calendar-fees p { margin: 9px 1px 0; color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.calendar-day-events { margin-top: 16px; }
.calendar-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 3px 8px; }
.calendar-section-title b { font-size: 14px; }
.calendar-section-title small { color: var(--muted-2); font-size: 11px; }
.calendar-event { position: relative; display: grid; width: 100%; grid-template-columns: 52px minmax(0,1fr) 12px; align-items: center; gap: 8px; padding: 13px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(18,24,40,.025); }
.calendar-event:active { transform: scale(.99); }
/* 时间移到第 2 行，与里程/耗时同排。只置黑、不加粗（老板 2026-10-21 二次调整）：
   加粗会跟下一行的标题抢视觉重心，黑色已足够把它从灰色详情里区分出来。 */
.calendar-event-time { color: var(--ink); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.calendar-event-sep { margin: 0 5px; color: var(--muted-2); font-style: normal; }
/* 左右各留 10px 呼吸位（老板 2026-10-21）：列宽同步加到 52px = 32 + 10 + 10，
   否则图标加 margin 后会溢出固定列宽。 */
.calendar-event-icon { display: grid; width: 32px; height: 32px; margin: 0 10px; place-items: center; border-radius: 11px; background: rgba(22,135,232,.1); color: #1687e8; }
.calendar-event-icon svg { width: 17px; height: 17px; }
.calendar-event-charging .calendar-event-icon { background: rgba(54,173,117,.12); color: #269460; }
.calendar-event-parking .calendar-event-icon { background: rgba(237,170,54,.14); color: #bd7a08; }
.calendar-event-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.calendar-event-copy > b { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
/* 第 2 行：时间 · 里程/耗时 —— 允许换行，窄屏下不至于挤出省略号。 */
.calendar-event-copy > small { display: flex; flex-wrap: wrap; align-items: baseline; color: var(--muted); font-size: 11px; }
.calendar-event-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.calendar-event-chips span { display: inline-flex; align-items: center; gap: 3px; }
.calendar-event-chips svg { width: 12px; height: 12px; }
.calendar-event-arrow { align-self: center; color: var(--muted-2); font-size: 22px; font-weight: 300; }
.calendar-empty { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; text-align: center; }
.calendar-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 3px; border-radius: 14px; background: var(--surface-2); color: var(--muted-2); }
.calendar-empty-icon svg { width: 21px; height: 21px; }
.calendar-empty b { font-size: 14px; }
.calendar-empty small { color: var(--muted); font-size: 11px; }
.calendar-day-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 150px; color: var(--muted); font-size: 12px; }
.calendar-day-loading .map-spinner { width: 18px; height: 18px; }
.insight-trend { margin-top: 13px; padding: 15px 14px 8px; }
.insight-trend-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.insight-trend-heading > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.insight-trend-heading b { font-size: 13px; font-weight: 700; }
.insight-trend-heading small { color: var(--muted-2); font-size: 10px; }
.insight-chart-switch { display: inline-flex; flex: none; padding: 3px; border-radius: 9px; background: var(--surface-2); }
.insight-chart-switch button { padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.insight-chart-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .09); }
.insight-chart-wrap { position: relative; height: 152px; margin-top: 8px; }
.insight-subpage-head { margin: 15px 2px 16px; }
.insight-subpage-head .back-btn { margin: 0 0 12px; color: var(--muted); }
.insight-subpage-head h1 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.insight-subpage-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.commute-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.commute-compare-card { display: flex; min-height: 105px; flex-direction: column; justify-content: center; gap: 5px; padding: 14px; }
.commute-compare-card small { color: var(--muted); font-size: 11px; }
.commute-compare-card b { font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
.commute-compare-card span { color: var(--muted-2); font-size: 11px; line-height: 1.35; }
.commute-period-note { margin: -4px 3px 12px; color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.commute-trend-panel { margin-bottom: 12px; }
.commute-chart-wrap { position: relative; height: 190px; padding: 4px 2px 0; }

.reminder { padding: 18px; margin-top: 12px; }
.reminder h2 { display: flex; align-items: center; gap: 6px; font-size: 15.5px; margin: 0 0 9px; font-weight: 700; }
.reminder h2 svg { width: 15px; height: 15px; color: var(--amber); }
.reminder p { color: var(--muted); margin: 0 0 16px; line-height: 1.6; font-size: 13px; }
.route { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 8px; align-items: center; }
.place {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
}
.place small { display: block; color: var(--muted); margin-bottom: 3px; font-weight: 500; font-size: 11px; }
.place b { font-weight: 600; font-size: 13.5px; }
/* 地名左侧的小地图图标（点它跳高德）。inline-flex 让图标与文字基线对齐，
   不撑高行高；颜色用 muted 保持次级感，点按才变 amber。 */
.place-map {
  display: inline-flex; align-items: center;
  margin-right: 5px; vertical-align: -2px;
  color: var(--muted-2); text-decoration: none;
  transition: color .18s var(--ease);
}
.place-map svg { width: 14px; height: 14px; }
.place-map:hover { color: var(--amber); }
.place-map:active { color: var(--amber); opacity: .7; }
.route-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 16px; }
.route-arrow svg { width: 16px; height: 16px; }
/* 补能概览：同一条轨道叠两层 —— 底层「上次充至」，上层「当前电量」，
   露出的那一段就是上一次充电到现在用掉的。当前高于上次充至时上层会盖住底层。 */
.charge-bar { margin-top: 18px; position: relative; }
.charge-bar i { position: absolute; left: 0; top: 0; }
.charge-bar .charge-to { background: rgba(62, 207, 126, .40); }
.charge-bar .charge-now { background: var(--ink); }
.charge-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.charge-main { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.charge-main small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.charge-place { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; min-width: 0; }
.charge-place svg { width: 12px; height: 12px; margin-right: 4px; flex: none; color: var(--muted-2); }
.charge-legend { display: flex; gap: 14px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.charge-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.charge-legend .dot.now { background: var(--ink); }
.charge-legend .dot.to { background: rgba(62, 207, 126, .6); }
.sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.sub svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; color: var(--muted-2); }

/* ---------- Lists ---------- */
.recent { padding: 2px 16px; }
/* 行程/充电等详情页会连续接多个 .recent 面板（驾驶事件、胎压、地图…），
   面板本身没有外边距，上下会贴死成一块，这里给相邻面板留出间距。 */
.recent + .recent { margin-top: 12px; }
.recent + .panel, .panel + .recent { margin-top: 12px; }
/* .panel.board 与上面 .recent + .panel 特异性相同(两个类)，必须写在它之后
   才生效——否则紧跟 .recent 的 board 仍会被 12px 覆盖。
   所有 .board 前面都有兄弟元素(标题或其它面板)，不存在首元素凭空留白。 */
.panel.board { margin-top: 10px; }
.row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border: 0; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.primary { font-weight: 600; }
.primary svg { width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; color: var(--muted); }
.right { float: right; color: var(--muted); font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 46px 10px; font-weight: 500; font-size: 13px; }
.empty::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px dashed var(--muted-2);
}
.empty.big-empty::before { content: none; }
.empty.big-empty svg { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--muted-2); display: block; }

.drive-row, .charge-row, .parking-row { padding: 15px 0; }
.drive-row, .parking-row { cursor: pointer; margin: 0 -16px; padding: 15px 16px; border-radius: var(--radius-sm); transition: background .15s var(--ease); }
.drive-row:hover, .parking-row:hover { background: var(--surface-2); }
.drive-row:active, .parking-row:active { opacity: .8; }
/* 「在高德地图查看」按钮：位于放大遮罩底部（黑底），用毛玻璃胶囊配 --amber 图标，
   与右上角 .map-close 同一套视觉语言。 */
.map-btn {
  display: inline-flex; align-items: center; gap: 7px;
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff;
  font: 600 14px inherit; text-decoration: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s var(--ease), transform .18s var(--ease);
  /* 与上方图片拉开距离：灯箱是 flex column 居中，img 和按钮默认紧贴，
     黑底上看着像长在地图上。18px 视觉上才明显分成两块。 */
  margin-top: 18px;
  /* 底部安全区：全面屏手势条会盖住按钮 */
  margin-bottom: max(14px, env(safe-area-inset-bottom));
}
.map-btn svg { width: 16px; height: 16px; color: var(--amber); }
.map-btn:hover { background: rgba(255, 255, 255, .24); }
.map-btn:active { transform: scale(.97); }
/* display:inline-flex 会盖掉浏览器默认的 [hidden]{display:none}，不写这行隐藏无效 */
.map-btn[hidden] { display: none; }

/* 停车中徽标：只有进行中的停车才标，已结束的不显示"已完成"（老板要求） */
.park-live { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 18px; margin-left: 5px; vertical-align: middle; color: var(--green); background: rgba(62, 207, 126, .14); }
/* 停车详情不再显示"状态"格，只剩两格，4 列会让它们挤在左边 */
.metrics.two { grid-template-columns: repeat(2, 1fr); }
/* 停车记录的「停车时长 / 哨兵触发」面板：这块 metrics 上方没有标题，
   .metrics 自带的 margin-top: 20px 是给「标题 + 指标」配的间距，在这里
   凭空多出一段空白。首页等处仍需要那 20px，所以只在这一处去掉。 */
.metrics.park-metrics { margin-top: 0; }

/* 月度统计里可点进当月行程的月份行 */
.stat-month-row.linked { cursor: pointer; }
.stat-month-row.linked:hover { background: var(--surface-2); }
.stat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.stat-chip svg { width: 12px; height: 12px; flex: none; color: var(--muted-2); }
.stat-chip:not(:first-child)::before { content: ""; margin-right: 0; }
.stat-chip.rate-valley { color: var(--green); font-weight: 600; }
.stat-chip.rate-peak { color: var(--amber); font-weight: 600; }
.stat-chip.rate-valley svg, .stat-chip.rate-peak svg { color: inherit; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--ink); cursor:pointer; transition:background .15s var(--ease),transform .15s var(--ease); }
.icon-btn:hover { background:var(--bg); }
.icon-btn:active { transform:scale(.96); }
.icon-btn svg { width:18px; height:18px; }
.settings-gear { margin-left:auto; width:32px; height:32px; padding:7px; color:var(--muted); }
.settings-gear:hover { color:var(--ink); }
.notify-list { display:flex; flex-direction:column; gap:2px; }
.notify-row { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:58px; padding:10px 2px; border-bottom:1px solid var(--line); cursor:pointer; }
.notify-row:last-child { border-bottom:0; }
.notify-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.notify-copy b { color:var(--ink); font-size:14.5px; font-weight:700; line-height:1.25; }
.notify-copy small { color:var(--muted); font-size:11.5px; line-height:1.35; }
.notify-switch { position:relative; flex:0 0 46px; width:46px; height:28px; }
.notify-switch input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:2; }
.notify-slider { position:absolute; inset:0; border-radius:999px; background:#d8d8dd; border:1px solid rgba(10,10,11,.08); transition:background .2s var(--ease); }
.notify-slider::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.18); transition:transform .2s var(--ease); }
.notify-switch input:checked + .notify-slider { background:var(--green); border-color:rgba(62,207,126,.4); }
.notify-switch input:checked + .notify-slider::after { transform:translateX(18px); }
.notify-switch input:focus-visible + .notify-slider { outline:3px solid rgba(62,207,126,.28); outline-offset:2px; }
.notify-modal-overlay { position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center; padding:22px; background:rgba(12,12,14,.42); opacity:0; transition:opacity .18s var(--ease); }
.notify-modal-overlay.open { opacity:1; }
.notify-modal { width:100%; max-width:420px; max-height:min(88vh,720px); overflow:auto; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:0 22px 60px rgba(0,0,0,.24); transform:translateY(10px) scale(.98); transition:transform .18s var(--ease); }
.notify-modal-overlay.open .notify-modal { transform:none; }
.notify-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 18px 14px; border-bottom:1px solid var(--line); }
.notify-modal-head h3 { margin:0; color:var(--ink); font-size:17px; font-weight:750; }
.notify-modal-head p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.notify-modal-body { padding:16px 18px 8px; }
.notify-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.notify-field-grid label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:12px; font-weight:600; }
.notify-field-grid .ta-input { margin:0; padding:10px 12px; background:var(--surface-2); color:var(--ink); font:600 15px/1.4 inherit; }
.notify-device-push { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.notify-subhead { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; }
.notify-subhead b { color:var(--ink); font-size:14px; }
.notify-subhead span { color:var(--muted-2); font-size:11px; }
.notify-foot { margin:14px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.notify-modal-actions { display:flex; gap:10px; padding:14px 18px 18px; background:var(--surface); border-top:1px solid var(--line); }
.notify-btn { flex:1; min-height:44px; border-radius:var(--radius-sm); border:1px solid var(--line); font:700 14px/1 inherit; cursor:pointer; transition:background .15s var(--ease),opacity .15s var(--ease),transform .15s var(--ease); }
.notify-btn:active { transform:scale(.98); }
.notify-btn.secondary { color:var(--ink); background:var(--surface-2); }
.notify-btn.secondary:hover { background:var(--bg); }
.notify-btn.primary { border-color:var(--ink); background:var(--ink); color:var(--bg); box-shadow:0 6px 16px rgba(10,10,11,.12); }
.notify-btn.primary:hover { opacity:.9; }
@media (max-width:480px) { .notify-field-grid { grid-template-columns:1fr; } .notify-modal-overlay { align-items:flex-end; padding:0; } .notify-modal { max-width:none; max-height:90vh; border-radius:20px 20px 0 0; } }
.stat-chip.rate-home { color: var(--ink); font-weight: 600; }
.stat-chip.rate-home svg { color: inherit; }
.stat-chip.charge-fast { color: var(--green); font-weight: 600; }
.stat-chip.charge-slow { color: var(--amber); font-weight: 600; }
.stat-chip.charge-fast svg, .stat-chip.charge-slow svg { color: inherit; }
/* 快充/慢充小徽章：置于充电记录第二行「峰值 kW」之后，与峰值并排，不单独占行 */
.charge-tag { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 18px; margin-left: 5px; vertical-align: middle; }
.tag-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: middle;
  color: var(--ink); background: rgba(120, 120, 128, 0.14);
}
.charge-tag.charge-fast { color: var(--green); background: rgba(62, 207, 126, .14); }
.charge-tag.charge-slow { color: var(--amber); background: rgba(255, 159, 10, .14); }

.status-list { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.status-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.status-row .status-k { color: var(--muted); font-weight: 500; flex: none; }
.status-row .status-v { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 14px inherit;
  cursor: pointer;
}
.back-btn svg { width: 17px; height: 17px; }
.detail-date { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0 2px 12px; }
.route-panel { padding: 18px; }
.route-svg { width: 100%; height: 96px; display: block; margin-bottom: 14px; color: var(--ink); }
.route-map { width: 100%; display: block; border-radius: 14px; margin-bottom: 14px; background: var(--stage-bg-2); cursor: zoom-in; transition: opacity .25s ease; opacity: 1; }
.route-map-slot { position: relative; width: 100%; aspect-ratio: 600 / 360; min-height: 150px; border-radius: 14px; margin-bottom: 14px; background: var(--stage-bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted-2); font-size: 12px; }
.map-spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.18); border-top-color: var(--muted); border-radius: 50%; animation: map-spin .8s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }

/* ---------- 导航加载反馈 ---------- */
/* 切页时接口未返回前界面是静止的（旧页面还挂着），用户会以为没点上而反复点击。
   顶部 3px 进度条在切页开始 ~120ms 后显示，请求回来即隐藏。 */
.nav-loading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; overflow: hidden; pointer-events: none; }
.nav-loading[hidden] { display: none; }
.nav-loading::after {
  content: ''; display: block; height: 100%; width: 35%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: nav-progress .9s ease-in-out infinite;
}
@keyframes nav-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}
/* 切页遮罩：与顶部进度条同时出现。默认 pointer-events:auto 吃掉点击，
   避免加载中重复点链接导致请求叠加。
   视觉上要看得出来"正在加载"：半透明压暗 + 背景模糊 + 居中转圈，
   但仍能透出下面的旧内容，不至于像白屏闪一下。 */
.nav-mask {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, .32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .16s ease;
}
.nav-mask.show { opacity: 1; }
.nav-mask[hidden] { display: none; }
/* 居中加载指示：琥珀色呼应顶部进度条，让两者看起来是一套。 */
.nav-mask::after {
  content: ''; width: 34px; height: 34px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: nav-mask-spin .7s linear infinite;
}
@keyframes nav-mask-spin { to { transform: rotate(360deg); } }
/* 行程列表流式加载哨兵：既是提示文案，也是滚动触发点 */
.feed-sentinel {
  text-align: center; color: var(--muted-2);
  font-size: 12px; font-weight: 500; padding: 18px 10px 4px;
}
/* 详情页骨架：详情接口返回前先占位，避免整页空白 */
.detail-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 220px; color: var(--muted-2); font-size: 13px;
}
.map-lightbox { position: fixed; inset: 0; background: #000; display: none; z-index: 1000; }
.map-lightbox.open { display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* 给底部按钮留出空间：原来 img 是 max-height:100vh，加了按钮后按钮会被挤出屏幕，
   点不到。这里用 calc 扣掉按钮高度+上下间距（约 86px：按钮 ~40 + 上 18 + 下 14 +
   余量），行程地图无按钮时仍近似满屏。改 .map-btn 的 margin 时要同步改这里。 */
.map-lightbox img { max-width: 100vw; max-height: calc(100vh - 86px); width: auto; height: auto; display: block; }
.map-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 1001; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.map-close svg { width: 24px; height: 24px; }
body.map-open { overflow: hidden; }

/* ---------- Vehicle authorization page ---------- */
.tesla-auth { padding: 20px; margin-top: 0; }
.tesla-auth .ta-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-bottom: 14px; }
.tesla-auth .ta-badge.ok { background: rgba(62, 207, 126, .15); color: #1f9d57; }
.tesla-auth .ta-lead { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 6px 0 18px; }
.tesla-auth .ta-vin { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.tesla-auth .ta-vin code { display: block; font-size: 15px; color: var(--ink); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; margin-top: 6px; word-break: break-all; }
.tesla-auth .ta-step { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.tesla-auth .ta-step:first-of-type { border-top: 0; margin-top: 0; }
.tesla-auth .ta-step-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.tesla-auth .ta-step p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.tesla-auth .ta-hint { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; word-break: break-all; }
.tesla-auth .ta-foot { font-size: 12px; color: var(--muted-2); line-height: 1.6; padding: 0 16px 20px; }
.tesla-auth .ta-btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.tesla-auth .ta-btn:hover { opacity: .88; }
.tesla-auth .ta-btn:active { transform: scale(.97); }
.tesla-auth .ta-btn:disabled { opacity: .5; cursor: default; }
.tesla-auth .ta-btn.primary { display: block; width: 100%; padding: 14px 18px; margin: 0 0 4px; font-weight: 700; text-align: center; text-decoration: none; box-sizing: border-box; }
.tesla-auth .ta-ghost { border: 1px solid var(--line); background: transparent; color: var(--red); border-radius: var(--radius-sm); padding: 9px 14px; font: 600 13px inherit; cursor: pointer; margin-top: 16px; }
.tesla-auth .ta-ghost:hover { background: var(--surface-2); }

/* ---------- 用户设置页 ---------- */
.settings-page-head { align-items: flex-end; }
.settings-page-head .sh-title { display: flex; flex-direction: column; gap: 2px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.settings-page-head .sh-title small { font-size: 12px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.set-card { padding: 18px; margin-top: 12px; }
.set-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.set-card-head .set-icon { display: inline-flex; width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 9px; background: var(--surface-2); color: var(--ink); }
.set-card-head .set-icon svg { width: 100%; height: 100%; }
.set-card-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
/* 状态徽章：圆点指示 */
.set-card .ta-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 6px 13px 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-bottom: 14px; }
.set-card .ta-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.set-card .ta-badge.ok { background: rgba(62, 207, 126, .15); color: #1f9d57; }
.set-card .ta-badge.ok::before { background: var(--green); }
.set-card .ta-lead { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 6px 0 18px; max-width: 46ch; }
.set-card .ta-vin { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.set-card .ta-vin code { display: block; font-size: 15px; color: var(--ink); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; margin-top: 6px; word-break: break-all; }
.set-card .ta-step { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.set-card .ta-step:first-of-type { border-top: 0; margin-top: 0; }
.set-card .ta-step-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.set-card .ta-step p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.set-card .ta-hint { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; word-break: break-all; }
.set-card .ta-foot { font-size: 12px; color: var(--muted-2); line-height: 1.6; margin-top: 18px; }
/* 分享给 Tesla 的文本输入框。用 16px 字号：iOS Safari 在字号 <16px 时会
   自动放大页面，16px 正好卡在阈值上。颜色/边框全部走变量，深浅色自适应。
   font 用 inherit 保证与系统字体一致，避免 textarea 退回等宽默认字体。 */
.set-card .ta-input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  padding: 12px 14px; margin: 0 0 12px;
  font: 400 16px/1.6 inherit;
  resize: vertical; -webkit-appearance: none;
}
.set-card .ta-input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.set-card .ta-input::placeholder { color: var(--muted-2); }
.set-card .ta-btn { border: 0; border-radius: var(--radius-sm); padding: 14px 18px; background: var(--ink); color: var(--bg); font: 600 14px inherit; cursor: pointer; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.set-card .ta-btn:hover { opacity: .88; }
.set-card .ta-btn:active { transform: scale(.97); }
.set-card .ta-btn:disabled { opacity: .5; cursor: default; }
.set-card .ta-btn.primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; margin: 0 0 4px; font-weight: 700; text-align: center; text-decoration: none; box-sizing: border-box; }
.set-card .ta-btn.primary svg { width: 17px; height: 17px; }
.push-status { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.5; }
.set-card .ta-ghost { border: 1px solid var(--line); background: transparent; color: var(--red); border-radius: var(--radius-sm); padding: 14px 18px; font: 600 13px inherit; cursor: pointer; margin-top: 16px; }
.set-card .ta-ghost:hover { background: var(--surface-2); }
.ta-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ta-actions .ta-btn { flex: 1 1 auto; margin: 0; white-space: nowrap; }
.ta-actions .ta-ghost { margin-top: 0; flex: 0 0 auto; white-space: nowrap; }
.backup-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.backup-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.backup-info { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.backup-file { font-size: 12.5px; color: var(--ink); word-break: break-all; font-variant-numeric: tabular-nums; }
.backup-meta { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.backup-actions { display: flex; gap: 10px; }
.backup-dl { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 0; transition: background .15s var(--ease); }
.backup-dl:hover { background: var(--surface-2); }
.backup-del { flex: 1; font-size: 13px; font-weight: 600; color: var(--red); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 0; cursor: pointer; transition: background .15s var(--ease); }
.backup-del:hover { background: rgba(255, 69, 58, .1); border-color: rgba(255, 69, 58, .4); }
.backup-del:active { transform: scale(.97); }
.backup-empty { text-align: center; color: var(--muted-2); font-size: 13px; padding: 18px 0; }
.backup-kind-manual { color: var(--amber); background: rgba(255, 159, 10, .14); }

/* ---------- 确认弹层（替代原生 confirm） ---------- */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .38);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
}
.confirm-overlay.open { opacity: 1; pointer-events: auto; }
/* 带输入框的弹窗（如修改通行费）用偏上对齐：手机弹出数字键盘会盖住屏幕
   下半部分，居中弹窗正好被挡住看不见。align-items 改成 flex-start 并留出
   顶部间距，弹窗落在键盘上方的可视区。用 vh 而非固定 px，矮屏也不会顶到
   状态栏；max-height + overflow 保证极端矮屏下仍能滚到按钮。 */
.confirm-overlay.top {
  align-items: flex-start;
  padding-top: 14vh;
  max-height: 100%;
  overflow-y: auto;
}
.confirm-overlay.top .confirm-panel { flex: none; }
.confirm-panel {
  width: 100%; max-width: 320px;
  padding: 22px 20px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  transform: scale(.94);
  transition: transform .22s var(--ease);
}
.confirm-overlay.open .confirm-panel { transform: scale(1); }
.confirm-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.confirm-msg { font-size: 13.5px; line-height: 1.65; color: var(--muted); word-break: break-all; }
.confirm-msg b { color: var(--ink); font-weight: 600; }
.confirm-actions { display: flex; gap: 10px; margin-top: 20px; }
.confirm-btn {
  flex: 1; font-size: 14px; font-weight: 600;
  padding: 11px 0; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); cursor: pointer;
  transition: background .15s var(--ease);
}
.confirm-btn:hover { background: var(--bg); }
.confirm-btn:active { transform: scale(.97); }
.confirm-btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.confirm-btn.danger:hover { opacity: .88; background: var(--red); }
.ta-empty { font-size: 13px; color: var(--muted-2); line-height: 1.6; padding: 6px 0 14px; }

/* ---------- 费用编辑（通行费 / 停车费共用：小铅笔 + 弹层） ---------- */
/* 铅笔落在副行（「高速/快速路通行费」/「免费停车」）的最右端：这行用 flex
   左右撑开，文字在左、按钮在右。上方金额行保持干净，不挤进编辑控件。 */
.fee-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fee-edit {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 22px; height: 22px; padding: 0;
  border: none; background: transparent; color: var(--muted-2);
  cursor: pointer; border-radius: 6px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.fee-edit:hover { color: var(--ink); background: var(--surface-2); }
.fee-edit:active { transform: scale(.94); }
.fee-edit svg { width: 13px; height: 13px; display: block; }
.fee-input {
  width: 100%; margin-top: 14px; box-sizing: border-box;
  font-size: 15px; font-family: inherit; font-variant-numeric: tabular-nums;
  padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  outline: none;
}
.fee-input:focus { border-color: var(--blue, #007aff); }
.fee-quick { display: flex; gap: 8px; margin-top: 10px; }
.fee-quick-btn {
  flex: 1; font-size: 13px; font-weight: 600; font-family: inherit;
  padding: 8px 0; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); cursor: pointer;
  transition: background .15s var(--ease);
}
.fee-quick-btn:hover { background: var(--bg); }
.fee-quick-btn:active { transform: scale(.97); }
/* 品牌按钮组：换行平铺，选中的高亮。品牌名长短不齐（2～5 字），固定宽度会
   留出难看的空档，用 auto-fit + minmax 让它按内容自适应排布。 */
.brand-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: 14px; }
.brand-btn {
  font-size: 13px; font-weight: 600; font-family: inherit;
  padding: 9px 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.brand-btn:hover { background: var(--bg); }
.brand-btn:active { transform: scale(.97); }
.brand-btn.active { border-color: var(--blue, #007aff); color: var(--blue, #007aff); background: var(--bg); }
/* 选中「其他」后露出的品牌名 + 费用，并排一行：两个都是这一屏要填的东西，
   上下排会把弹窗拉高，手机上键盘一弹出就顶出可视区。品牌名比费用短，1 : 1.2。
   用 flex 而非 grid：品牌名框 hidden 时，费用框要能自动占满整行；
   若写死 grid-template-columns: 1fr 1.2fr，隐藏后费用框会卡在窄的第一列。 */
.brand-fee-row { display: flex; gap: 8px; margin-top: 10px; }
.brand-fee-row .fee-input { margin-top: 0; min-width: 0; }
.brand-fee-row .brand-custom { flex: 1; }
.brand-fee-row .fee-amount { flex: 1.2; }
/* [hidden] 必须显式声明：.fee-input 设了 width 等属性会盖掉 hidden 的默认 display:none，
   导致「其他品牌名」框在没选「其他」时也露出来 —— 实测踩过。 */
.brand-fee-row .fee-input[hidden] { display: none; }

/* ---------- Charts ---------- */
.chart-wrap { position: relative; height: 170px; padding: 16px 14px 10px; margin-bottom: 12px; }

/* ---------- Nav menu (hamburger + slide-in panel, Tesla App style) ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-panel {
  width: 78%;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 18px) 10px 18px;
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
}
.menu-overlay.open .menu-panel { transform: translateX(0); }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 500 15px inherit;
  text-align: left;
  cursor: pointer;
}
.menu-item .icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; color: var(--muted); }
.menu-item .icon svg { width: 20px; height: 20px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.active { font-weight: 700; }
.menu-item.active .icon { color: var(--ink); }
.menu-divider { height: 1px; margin: 10px 6px; background: var(--line); }
.menu-logout, .menu-logout .icon { color: var(--red); }

@media (max-width: 460px) {
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  /* 统计面板窄屏改 2 列，四格挤在一行字会被压扁 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .quick-grid { gap: 2px; }
  .quick-icon { width: 46px; height: 46px; }
  .app { padding-left: 12px; padding-right: 12px; }
  .insight-grid { gap: 8px; }
  .insight-link { min-height: 82px; gap: 11px; padding: 11px 12px; }
  .insight-link-copy b { font-size: 14px; }
  .insight-hero { padding: 16px; }
  .insight-hero-distance { font-size: 36px; }
  .insight-chart-wrap { height: 142px; }
}

@media (max-width: 520px) {
  .calendar-modal { align-items: flex-end; padding: 0; }
  .calendar-dialog { width: 100%; max-height: calc(100vh - env(safe-area-inset-top) - 8px); max-height: min(720px, calc(100dvh - env(safe-area-inset-top) - 8px)); padding: 8px 17px max(18px, env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; border-bottom: 0; }
  .calendar-dialog-grip { display: block; width: 38px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: #d5d5da; }
  .calendar-cell { min-height: clamp(43px, 12vw, 51px); border-radius: 12px; }
  .calendar-event { grid-template-columns: 50px minmax(0,1fr) 10px; gap: 7px; padding: 12px 10px; }
}

/* ---------- Toast（代替 alert()） ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  transform: translate(-50%, 12px);
  max-width: calc(100% - 48px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg, 0 18px 40px rgba(0, 0, 0, .25));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 60;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--red); color: #fff; }

/* ---------- 导航回家（停车详情） ---------- */
/* 这张卡片是异步插入的（路线要请求高德，1~3 秒），所以放在停车时长面板之后、
   胎压之前：位置固定，插入时不会把已经看的内容顶下去。 */
/* 夹在「停车位置」和「停车时长」两张面板之间，上下都要留出间距。
   12px 与详情页其它面板的相邻间距一致（.recent + .panel 也是 12px）。
   卡片不显示时（车在家）插槽是空的，不产生任何外边距。 */
.nav-home { padding: 16px 18px; margin-top: 12px; margin-bottom: 12px; }
.nh-head { display: flex; align-items: center; justify-content: space-between; }
/* 右上角两个图标按钮：导航(主色实心) + 刷新(描边)。 */
.nh-actions { display: flex; align-items: center; gap: 8px; }
/* 调起高德 App 的导航按钮：与刷新按钮同一套描边+透明底，靠 CSS 变量自适配
   深/浅色，不写死颜色 —— 点击区同样放大到 32px 保证手指点得到。 */
.nh-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted);
  text-decoration: none; cursor: pointer;
}
.nh-nav svg { width: 15px; height: 15px; }
.nh-nav:hover { background: var(--surface-2); color: var(--ink); }
.nh-nav:active { transform: scale(.97); }
.nh-main { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.nh-main b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.nh-main small { font-size: 13px; color: var(--muted); font-weight: 600; }
.nh-main .nh-km { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
/* 刷新按钮：只有图标，点击区放大到 32px 保证手指点得到。 */
.nh-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
}
.nh-refresh svg { width: 15px; height: 15px; }
/* 主色变量叫 --ink（不是 --text），写错了 hover 会拿到无效颜色。 */
.nh-refresh:hover { background: var(--surface-2); color: var(--ink); }
.nh-refresh.is-spinning svg { animation: nh-spin .8s linear infinite; }
@keyframes nh-spin { to { transform: rotate(360deg); } }

/* 路线与成本：高速/地面徽章。复用 .tag-badge 的尺寸，只换配色。
   高速用琥珀（与 --amber 主色一致，表示"要花钱"），地面用绿（省钱）。 */
.tag-badge.route-hw { color: var(--amber); background: rgba(255, 159, 10, .16); }
.tag-badge.route-local { color: var(--green); background: rgba(62, 207, 126, .14); }
/* 少量高速（¥1）：介于两者之间，用中性灰避免读成「全程高速」或「纯地面」。 */
.tag-badge.route-hw1 { color: var(--muted); background: rgba(120, 120, 128, .14); }

/* 车辆授权步骤 / 备份列表弹窗：复用提醒设置的弹窗外观，内容样式不受 .set-card 作用域限制 */
.notify-modal .ta-step { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.notify-modal .ta-step:first-of-type { border-top: 0; margin-top: 0; }
.notify-modal .ta-step-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; color: var(--ink); }
.notify-modal .ta-step p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.notify-modal .ta-hint { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; word-break: break-all; }
.notify-modal .ta-lead { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 6px 0 18px; }
.notify-modal .ta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; margin: 0 0 4px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font: 700 14px inherit; text-align: center; text-decoration: none; box-sizing: border-box; cursor: pointer; }
.notify-modal .ta-btn svg { width: 17px; height: 17px; }
.notify-modal .backup-list { margin-top: 0; }
.notify-head-close { flex: 0 0 auto; width: 32px; height: 32px; padding: 7px; color: var(--muted); }
.notify-head-close:hover { color: var(--ink); }
/* 授权步骤弹窗里的状态/操作区（原样式限定 .set-card / .tesla-auth 作用域） */
.notify-modal .ta-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 6px 13px 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-bottom: 14px; }
.notify-modal .ta-badge.ok { background: rgba(62, 207, 126, .15); color: #1f9d57; }
.notify-modal .ta-vin { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.notify-modal .ta-vin code { display: block; font-size: 15px; color: var(--ink); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; margin-top: 6px; word-break: break-all; }
.notify-modal .ta-actions .ta-btn { width: auto; flex: 1 1 auto; padding: 12px 14px; margin: 0; white-space: nowrap; }
.notify-modal .ta-ghost { border: 1px solid var(--line); background: transparent; color: var(--red); border-radius: var(--radius-sm); padding: 12px 14px; font: 600 13px inherit; cursor: pointer; white-space: nowrap; }
.notify-modal .ta-ghost:hover { background: var(--surface-2); }
.notify-modal .ta-foot { font-size: 12px; color: var(--muted-2); line-height: 1.6; margin-top: 18px; }
/* Message center */
.message-list{display:grid;gap:10px}
.message-item{padding:15px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.message-item.is-suppressed{opacity:.78}
.message-item-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;color:var(--muted);font-size:12px}
.message-category{font-weight:600;color:var(--ink)}
.message-item>b{display:block;font-size:15px}
.message-item p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.message-read{margin-top:10px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit;font-size:12px}
