/* 家庭账本 · 样式
   配色只在这里定义一次，别的地方一律用变量。
   想换季，改 :root 里那几行就行。 */

:root {
  color-scheme: light dark;

  --bg: light-dark(#f7f4ee, #14161a);
  --surface: light-dark(#ffffff, #1f2329);
  --surface-2: light-dark(#f4f1ea, #262b32);
  --text: light-dark(#1d1f24, #f2f3f5);
  --muted: light-dark(#6e7480, #98a0ab);
  --line: light-dark(rgba(29, 31, 36, 0.08), rgba(255, 255, 255, 0.09));

  --accent: light-dark(#1a8f70, #55c79c);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-ink: light-dark(#146b54, #9becc9);
  --warn: light-dark(#b26a12, #f0b268);
  --warn-soft: light-dark(rgba(178, 106, 18, 0.12), rgba(240, 178, 104, 0.16));

  --daily: #e9a52a;
  --education: #b4761c;
  --emergency: #5b7fc7;
  --dream: #dd7d99;
  --travel: #2fa39a;

  --sky-top: light-dark(#dceff8, #16202c);
  --sky-bottom: light-dark(#fdf3f7, #1b2836);
  --ground: light-dark(#bcdda8, #35503a);
  --ground-2: light-dark(#9fce8c, #2a4230);
  --sun: light-dark(#ffe08a, #ffe9b0);
  --cloud: light-dark(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.22));
  --leaf: light-dark(#6fae59, #4f7d45);
  --stem: light-dark(#5f9c4d, #456f3d);

  --radius: 16px;
  --gutter: 16px;

  /* 字号只用这五档。之前是随手写的 11px、11.5px、12px、12.5px、13px……
     看着差不多，但一屏里五种"小字"就是会显得乱。 */
  --f-xs: 12.5px; /* 最小的辅助信息 */
  --f-sm: 14px;   /* 次要文字 */
  --f-md: 15.5px; /* 正文 */
  --f-lg: 17px;   /* 强调的数字、输入框 */
  --f-xl: 21px;   /* 页面标题 */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 0 10px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.topbar .eyebrow { margin: 0 0 2px; font-size: var(--f-xs); color: var(--muted); }
.topbar h1 { margin: 0; font-size: var(--f-xl); font-weight: 500; letter-spacing: -0.01em; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface); font-size: var(--f-sm); font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 12px;
}

.card h2 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 10px; font-size: var(--f-sm); font-weight: 500;
}
.card h2 .sub { font-size: var(--f-xs); font-weight: 400; color: var(--muted); }

.hint { margin: 0; padding: 0 2px; font-size: var(--f-xs); line-height: 1.65; color: var(--muted); }

/* ---------- 按钮 ---------- */
button { font: inherit; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 13px 16px; border-radius: 14px;
  background: var(--surface); color: var(--text);
  font-size: var(--f-lg); font-weight: 500;
  /* 按下去要有反应。手机上没有鼠标悬停，指头按下去那一下就是全部反馈。 */
  transition: transform 110ms ease, filter 110ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.975); filter: brightness(0.955); }
.btn-primary { background: var(--accent); color: light-dark(#fff, #0d1210); }
.btn-primary {
  /* 一点点从上到下的渐变 + 顶部高光 + 往下投的影，立体感就有了。
     全是 1px 级别的差别，但按钮有没有"实体感"，就靠这几像素。 */
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent) 86%, white),
    var(--accent)
  );
  box-shadow:
    0 6px 18px -10px color-mix(in oklab, var(--accent) 85%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-block { display: block; width: 100%; }
.btn:disabled { background: color-mix(in oklab, var(--text) 10%, transparent); color: var(--muted); cursor: default; }
.btn:disabled { box-shadow: none; transform: none; filter: none; }

/* 主行动按钮：图标 + 标题 + 一行说明 + 箭头。
   它跟普通按钮的区别是"带路"——不只告诉你按什么，还告诉你按了会怎样。 */
.btn-hero {
  display: flex; align-items: center; gap: 13px;
  text-align: left; padding: 15px 16px;
}
.btn-hero .hicon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}
.btn-hero .hicon svg { width: 24px; height: 24px; display: block; }
.btn-hero .htext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btn-hero .htitle { font-size: var(--f-lg); font-weight: 500; }
.btn-hero .hsub { font-size: var(--f-xs); font-weight: 400; opacity: 0.82; }
.btn-hero .harrow { margin-left: auto; flex: none; opacity: 0.7; display: grid; place-items: center; }
.btn-hero .harrow svg { width: 20px; height: 20px; display: block; }

.chip {
  appearance: none; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: var(--f-sm);
  white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent); color: light-dark(#fff, #0d1210); font-weight: 500; }
.chip.locked { color: var(--muted); background: color-mix(in oklab, var(--muted) 11%, transparent); border: 1px dashed color-mix(in oklab, var(--muted) 45%, transparent); padding: 6px 11px; }

/* ---------- 花园 ---------- */
.scene {
  position: relative;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  margin-bottom: 12px;
}

.sun { position: absolute; top: 14px; right: 32px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 26px 10px color-mix(in oklab, var(--sun) 55%, transparent); }

.cloud { position: absolute; height: 15px; border-radius: 999px; background: var(--cloud); filter: blur(1px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 58%; height: 230%; left: 10%; bottom: 8%; }
.cloud::after { width: 44%; height: 175%; right: 12%; bottom: 26%; }
.cloud.a { top: 32px; left: 22px; width: 58px; }
.cloud.b { top: 56px; left: 46px; width: 38px; }
.cloud.c { top: 74px; right: 76px; width: 44px; }

.hill-far { position: absolute; left: -40%; bottom: 56px; width: 170%; height: 150px;
  border-radius: 50% 50% 0 0 / 92px 92px 0 0;
  background: color-mix(in oklab, var(--ground) 55%, var(--sky-bottom)); }
.hill-mid { position: absolute; left: -30%; bottom: 20px; width: 140%; height: 176px;
  border-radius: 50% 50% 0 0 / 82px 82px 0 0;
  background: color-mix(in oklab, var(--ground) 70%, var(--sky-bottom)); }
.ground { position: absolute; left: -12%; right: -12%; bottom: -46px; height: 150px;
  border-radius: 50% 50% 0 0 / 58px 58px 0 0;
  background: linear-gradient(180deg, var(--ground), var(--ground-2)); }

.house { position: absolute; right: 16px; bottom: 52px; width: 96px; height: 78px; }
.house i { position: absolute; font-style: normal; }
.house .base { left: -8px; right: -8px; bottom: -4px; height: 9px; border-radius: 4px;
  background: color-mix(in oklab, #a9694a 45%, var(--muted)); }
.house .wall { left: 0; right: 0; bottom: 5px; height: 42px; border-radius: 4px; background: light-dark(#e0b985, #b9945f); }
.house .roof { left: -10px; right: -10px; bottom: 45px; height: 32px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); background: light-dark(#a9694a, #8a5238); }
.house .door { left: 16px; bottom: 5px; width: 16px; height: 25px; border-radius: 8px 8px 0 0;
  background: light-dark(#7a4a2e, #603a24); }
.house .win { left: 52px; bottom: 24px; width: 18px; height: 16px; border-radius: 3px;
  background: light-dark(#cfe6ef, #8fb6c6); }
.house .smoke { right: 24px; bottom: 86px; width: 5px; height: 5px; border-radius: 50%;
  background: light-dark(rgba(255,255,255,.72), rgba(255,255,255,.22)); animation: smoke 6.5s ease-out infinite; }
.house .smoke:nth-of-type(2) { animation-delay: 2.2s; }
.house .smoke:nth-of-type(3) { animation-delay: 4.4s; }
@keyframes smoke {
  0% { transform: translate(0,0) scale(.5); opacity: 0; }
  18% { opacity: .85; }
  100% { transform: translate(11px,-32px) scale(2); opacity: 0; }
}

.flower { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 46px;
  transform: translate(-50%,-100%) scale(var(--s,1)); transform-origin: 50% 100%;
  background: none; border: 0; padding: 0; }
.flower .stem { position: absolute; left: 50%; bottom: 0; width: 3px; height: 28px; margin-left: -1.5px;
  border-radius: 2px; background: var(--stem); }
.flower .bloom { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin-left: -13px; }
.flower .petal { position: absolute; left: 50%; top: 50%; width: 10px; height: 14px; margin: -7px 0 0 -5px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 26%, color-mix(in oklab, var(--petal) 78%, white), var(--petal));
  transform-origin: 50% 50%; transform: rotate(calc(var(--p) * 1deg)) translateY(-6px); }
.flower .core { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--core); }
.flower.ready { cursor: pointer; }
.flower.ready .bloom { animation: breathe 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px color-mix(in oklab, #ffdca0 85%, transparent)); }
.flower.done .bloom { opacity: .62; transform: scale(.72); filter: saturate(.72); }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .flower.ready .bloom, .house .smoke { animation: none; }
}

/* ---------- 花圃行 ---------- */
/* 每一行都是明确摆位的。之前靠自动布局，两个标签抢了同一个格子，
   结果叠成了「开花锁着」。 */
.bucket { display: grid; grid-template-columns: 11px minmax(0,1fr) auto; align-items: center;
  column-gap: 9px; row-gap: 2px; padding: 9px 0; }
.bucket + .bucket { border-top: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.bucket .dot  { grid-area: 1 / 1; }
.bucket .name { grid-area: 1 / 2; font-size: var(--f-md); font-weight: 500; }
.bucket .amt  { grid-area: 1 / 3; font-size: var(--f-md); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.bucket .meta { grid-area: 2 / 2; font-size: var(--f-xs); color: var(--muted); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bucket .tag  { grid-area: 2 / 3; justify-self: end; }
.bucket .meta.warn { color: var(--warn); }

.tag { font-size: var(--f-xs); padding: 2px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--text) 7%, transparent); color: var(--muted); white-space: nowrap; }
.tag.done { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent-ink); }
.tag.locked { background: var(--warn-soft); color: var(--warn); }

/* ---------- 记一笔 ---------- */
.amount-display { text-align: center; font-size: 46px; font-weight: 500; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; padding: 18px 0 10px; }
.amount-display span { font-size: 22px; color: var(--muted); margin-right: 6px; }

.suggest { display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px 13px; border-radius: 14px; background: var(--surface); border: 0;
  color: var(--text); text-align: left; cursor: pointer; }
.suggest .src { flex: 1; text-align: right; font-size: var(--f-xs); color: var(--muted); }
.suggest .src.warn { color: var(--warn); }

.field { display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 14px; background: var(--surface); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--f-lg);
  color: var(--text); padding: 13px 0; }
.field input:focus { outline: none; }

.keypad { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.key { appearance: none; border: 0; cursor: pointer; padding: 12px 0; border-radius: 14px;
  background: var(--surface); color: var(--text); font-size: 22px; font-weight: 500; }

.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end;
  background: color-mix(in oklab, var(--text) 34%, transparent); }
.sheet .panel { width: 100%; max-width: 430px; margin: 0 auto; background: var(--bg);
  border-radius: 22px 22px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 86dvh; overflow: auto; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }

.notice { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px;
  background: var(--warn-soft); color: var(--warn); font-size: var(--f-xs); line-height: 1.5; }

/* ---------- 账本 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters .chip { display: inline-flex; align-items: center; gap: 6px; }
.filters .chip .dot { width: 8px; height: 8px; }

.listcard { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.daytitle { margin: 0; padding: 11px 14px 4px; font-size: var(--f-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.day + .day .daytitle { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.row + .row { border-top: 1px solid var(--line); }
.row .main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.row .name { font-size: var(--f-md); font-weight: 500; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .note { flex: 1; min-width: 0; font-size: var(--f-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { flex: none; font-size: var(--f-md); font-weight: 500; font-variant-numeric: tabular-nums; }
.row .amt.in { color: var(--accent-ink); }
.row.redeem { cursor: pointer; }

/* ---------- 底部导航 ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav button {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 10px;
  color: var(--muted); font-size: var(--f-xs);
}
/* 图标外头套一个胶囊，选中时点亮它。
   光靠四个灰字变色，在一屏里太不显眼 —— 扫一眼分不出哪个是当前的。 */
.nav .nico {
  display: grid; place-items: center;
  width: 50px; height: 30px; border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}
.nav .nico svg { width: 23px; height: 23px; display: block; }
.nav button[aria-current="page"] { color: var(--accent-ink); font-weight: 500; }
.nav button[aria-current="page"] .nico { background: var(--accent-soft); }

/* ---------- 登录 ---------- */
.login { max-width: 340px; margin: 18vh auto 0; text-align: center; padding: 0 20px; }
.login h1 { font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.login p { color: var(--muted); font-size: var(--f-sm); margin: 0 0 22px; line-height: 1.6; }
.login input { width: 100%; text-align: center; font-size: 18px; letter-spacing: 0.2em;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
/* 焦点框用我们自己的绿色，别用系统默认那个橙圈 */
.login input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.login .err { color: var(--warn); font-size: var(--f-xs); min-height: 18px; margin-top: 10px; }

/* ---------- 小东西 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 30;
  background: var(--accent); color: light-dark(#fff, #0d1210);
  padding: 10px 16px; border-radius: 999px; font-size: var(--f-sm); font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); animation: pop .25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

.spark { position: fixed; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 50;
  background: var(--travel); animation: sparkfly .88s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes sparkfly {
  0% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(.5); opacity: 0; }
  22% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1.15); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.15); opacity: 0; }
}

[hidden] { display: none !important; }

/* ---------- 回顾：图表 ---------- */
.chart { display: block; width: 100%; height: auto; }
.chart text { font-family: inherit; font-size: var(--f-xs); fill: var(--muted); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: var(--accent-soft); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent); }
.chart .bar { fill: var(--accent); opacity: .72; }
.chart .bar.now { opacity: 1; }

/* 明细榜：名字 + 占比条 + 金额，一行一个 */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rank li { display: grid; grid-template-columns: 96px minmax(0,1fr) 62px; align-items: center;
  column-gap: 8px; padding: 4px 0; }
.rank .rname { font-size: var(--f-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .rtrack { height: 9px; border-radius: 3px; background: color-mix(in oklab, var(--text) 8%, transparent); overflow: hidden; }
.rank .rfill { display: block; height: 100%; border-radius: 3px; background: var(--daily); }
.rank .ramt { font-size: var(--f-xs); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 花圃的进度条 */
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bars .bhead { display: flex; justify-content: space-between; gap: 8px; font-size: var(--f-sm); margin-bottom: 6px; }
.bars .bpct { font-size: var(--f-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .btrack { height: 7px; border-radius: 999px; background: color-mix(in oklab, var(--text) 8%, transparent); overflow: hidden; }
/* display:block 不能省。span 默认是行内元素，行内元素上的 height 是不生效的
   —— 少了这一行，所有进度条都会是空的，而且看起来像"数据没加载出来"。 */
.bars .bfill { display: block; height: 100%; border-radius: 999px; }

/* 兑现清单 */
.trips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trips li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; }
.trips .tname { font-size: var(--f-sm); font-weight: 500; }
.trips .tamt { font-size: var(--f-sm); font-weight: 500; color: var(--travel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trips .tmeta { grid-column: 1 / span 2; font-size: var(--f-xs); color: var(--muted); }
.triptotal { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding-top: 11px;
  border-top: 1px solid var(--line); font-size: var(--f-xs); color: var(--muted); }
.triptotal b { font-size: var(--f-md); color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); gap: 2px; }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; font-size: var(--f-sm);
  padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: light-dark(#fff, #0d1210); font-weight: 500; }

/* ---------- 首次设置向导 ---------- */
.wizard {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.wizard .wbody {
  flex: 1; overflow-y: auto;
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: 22px 22px 16px;
  display: flex; flex-direction: column;
}
.wizard .wkicker { margin: 6px 0 6px; font-size: var(--f-xs); color: var(--accent-ink); font-weight: 500; }
.wizard h1 { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.wizard .wsub { margin: 0 0 22px; font-size: var(--f-sm); line-height: 1.7; color: var(--muted); }
.wizard .wfield { margin-bottom: 16px; }
.wizard .wlabel { display: block; font-size: var(--f-xs); color: var(--muted); margin-bottom: 7px; }
.wizard .winput {
  width: 100%; font: inherit; font-size: var(--f-lg);
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.wizard .winput:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.wizard .wrow { display: flex; gap: 10px; }
.wizard .wrow > * { flex: 1; min-width: 0; }
.wizard .wfoot { padding: 14px 22px 18px; width: 100%; max-width: 430px; margin: 0 auto; }
.wizard .wdots { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.wizard .wdots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--text) 16%, transparent); }
.wizard .wdots i.on { background: var(--accent); }
.wizard .werr { color: var(--warn); font-size: var(--f-xs); min-height: 17px; margin: 0 0 8px; text-align: center; }

.splitrow {
  display: grid; grid-template-columns: 12px minmax(0,1fr) 62px;
  align-items: center; column-gap: 10px; row-gap: 2px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.splitrow .sname { font-size: var(--f-md); }
.splitrow .spct {
  width: 100%; text-align: right; font: inherit; font-size: var(--f-md); font-weight: 500;
  padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums;
}
.splitrow .samt { grid-column: 2 / span 2; font-size: var(--f-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.sumline {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: var(--f-xs); color: var(--muted);
}
.sumline b { font-size: var(--f-md); font-variant-numeric: tabular-nums; }
.sumline b.ok { color: var(--accent-ink); }
.sumline b.bad { color: var(--warn); }
