:root {
  --bg: var(--tg-theme-secondary-bg-color, #f2f2f7);
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --text: var(--tg-theme-text-color, #111114);
  --hint: var(--tg-theme-hint-color, #8e8e93);
  --sub: var(--tg-theme-subtitle-text-color, #6d6d72);
  --link: var(--tg-theme-link-color, #2f7cf6);
  --accent: var(--tg-theme-accent-text-color, var(--tg-theme-button-color, #2f7cf6));
  --btn: var(--tg-theme-button-color, #2f7cf6);
  --btn-text: var(--tg-theme-button-text-color, #ffffff);
  --sep: var(--tg-theme-section-separator-color, rgba(60, 60, 67, .14));
  --danger: var(--tg-theme-destructive-text-color, #e5484d);
  --ok: #2fb468;
  --warn: #f2a33a;
  --tabbar: var(--tg-theme-bottom-bar-bg-color, var(--card));
  --radius: 16px;
  --safe-b: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --iris: linear-gradient(120deg, #7b5cff 0%, #2f7cf6 30%, #1fc7c1 55%, #8bd450 75%, #ffb547 100%);
  --soft: color-mix(in srgb, var(--btn) 10%, transparent);
  --soft-ok: color-mix(in srgb, var(--ok) 13%, transparent);
  --soft-danger: color-mix(in srgb, var(--danger) 16%, transparent);
  --soft-warn: color-mix(in srgb, var(--warn) 16%, transparent);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.38 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", Roboto, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
[hidden] { display: none !important; }

.view { padding: 8px 16px calc(96px + var(--safe-b)); max-width: 680px; margin: 0 auto; min-height: 100vh; }

/* header */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 2px 12px; }
.head h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-weight: 750; }
.head .sub { color: var(--hint); font-size: 14px; margin-top: 4px; text-transform: lowercase; }
.head .sub::first-letter { text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand .iris { width: 30px; height: 30px; border-radius: 10px; background: var(--iris); box-shadow: 0 4px 14px rgba(47,124,246,.28); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--card); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--soft-ok); color: var(--ok); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.status.pause { background: var(--soft-warn); color: #c27a10; }
.status.night { background: var(--soft); color: var(--accent); }

/* sections & lists */
.section { margin: 18px 0 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; color: var(--hint); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.section-title button { color: var(--link); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 52px; position: relative; width: 100%; text-align: left; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.6); }
.cell.plain + .cell.plain::before { left: 14px; }
.cell .main { flex: 1; min-width: 0; }
.cell .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .s { color: var(--sub); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cell .s.wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cell .r { color: var(--hint); font-size: 13px; text-align: right; flex: none; }
.cell .chev { color: var(--hint); opacity: .6; flex: none; }
.cell:active { background: color-mix(in srgb, var(--text) 5%, transparent); }

.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; letter-spacing: .02em; }
.ava.lg { width: 64px; height: 64px; font-size: 22px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--accent); vertical-align: 1px; }
.pill.ok { background: var(--soft-ok); color: var(--ok); }
.pill.danger { background: var(--soft-danger); color: var(--danger); }
.pill.warn { background: var(--soft-warn); color: #c27a10; }
.pill.gray { background: color-mix(in srgb, var(--hint) 16%, transparent); color: var(--sub); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--card); border-radius: 14px; padding: 11px 10px 10px; min-width: 0; }
.tile b { display: block; font-size: 22px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { display: block; color: var(--hint); font-size: 12px; margin-top: 3px; line-height: 1.2; }
.tile.hot b { color: var(--accent); }

/* action cards */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.card .top { display: flex; gap: 12px; align-items: center; }
.card .who { flex: 1; min-width: 0; }
.card .who .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .who .s { color: var(--hint); font-size: 13px; }
.card .summary { margin: 10px 0 0; font-size: 15px; }
.quote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 10px 10px 0; color: var(--sub); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.draft { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.draft small { display: block; color: var(--hint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.actions.one { grid-template-columns: 1fr; }
.actions.three { grid-template-columns: 1fr 1fr 1fr; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 14px; border-radius: 12px; font-weight: 650; font-size: 15px; background: var(--btn); color: var(--btn-text); transition: transform .08s ease, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn.soft { background: var(--soft); color: var(--accent); }
.btn.ghost { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger-soft { background: var(--soft-danger); color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 28%, transparent); }
.btn.ghost { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* inputs */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 0 12px; height: 42px; }
.search svg { width: 18px; height: 18px; color: var(--hint); flex: none; }
.search input { border: 0; outline: 0; background: none; flex: 1; height: 100%; min-width: 0; font-size: 16px; }
.field { width: 100%; border: 0; outline: 0; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 16px; }
textarea.field { min-height: 96px; resize: vertical; line-height: 1.4; }
.label { color: var(--hint); font-size: 13px; font-weight: 600; margin: 14px 2px 6px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; margin: 12px -16px 0; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--sub); }
.chip.on { background: var(--btn); color: var(--btn-text); }
.chip .n { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* switch rows */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.6); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 550; }
.row .s { color: var(--hint); font-size: 13px; margin-top: 1px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--hint) 35%, transparent); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.row select { border: 0; background: var(--bg); border-radius: 10px; padding: 7px 10px; font-weight: 600; }

/* person / chat */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.profile h2 { margin: 10px 0 2px; font-size: 22px; letter-spacing: -.01em; }
.profile .s { color: var(--hint); font-size: 14px; }
.profile .pills { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.bubbles { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--card); border-radius: var(--radius); }
.bubble { max-width: 84%; padding: 8px 12px 6px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; word-break: break-word; background: var(--bg); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.mine { align-self: flex-end; background: var(--btn); color: var(--btn-text); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble time { display: block; font-size: 11px; opacity: .6; text-align: right; margin-top: 2px; }
.day-sep { align-self: center; font-size: 12px; color: var(--hint); padding: 6px 0 2px; }
.composer { position: sticky; bottom: calc(76px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; padding: 10px 0 0; background: linear-gradient(to bottom, transparent, var(--bg) 22%); }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; border: 0; outline: 0; border-radius: 22px; padding: 11px 16px; background: var(--card); resize: none; line-height: 1.35; }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--btn); color: var(--btn-text); display: grid; place-items: center; flex: none; }
.composer .send svg { width: 20px; height: 20px; }

.facts { padding: 14px; background: var(--card); border-radius: var(--radius); }
.facts .line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; }
.facts .line + .line { border-top: 1px solid var(--sep); }
.facts .line span:first-child { color: var(--hint); }
.facts .line span:last-child { text-align: right; font-weight: 600; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; margin: 0 4px 0 2px; box-shadow: 0 0 0 3px var(--soft-ok); }
.dot.down { background: var(--danger); box-shadow: 0 0 0 3px var(--soft-danger); }

.empty { text-align: center; padding: 28px 20px; color: var(--hint); background: var(--card); border-radius: var(--radius); }
.empty .big { font-size: 34px; margin-bottom: 6px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

.skel { height: 66px; border-radius: var(--radius); margin-bottom: 10px; background: linear-gradient(90deg, var(--card) 25%, color-mix(in srgb, var(--card) 70%, var(--bg)) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

.fab { position: fixed; right: 18px; bottom: calc(88px + var(--safe-b)); width: 56px; height: 56px; border-radius: 18px; background: var(--btn); color: var(--btn-text); display: grid; place-items: center; box-shadow: 0 8px 24px color-mix(in srgb, var(--btn) 40%, transparent); z-index: 5; }
.fab svg { width: 26px; height: 26px; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--tabbar) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--sep); padding: 6px 4px calc(6px + var(--safe-b)); z-index: 10; }
.tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--hint); font-size: 11px; font-weight: 600; }
.tabs button svg { width: 25px; height: 25px; stroke-width: 1.7; }
.tabs button.on { color: var(--accent); }
.tabs .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--tabbar); }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.36); animation: fade .18s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 8px 16px calc(18px + var(--safe-b)); animation: up .22s cubic-bezier(.2,.8,.2,1); max-width: 680px; margin: 0 auto; }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--hint) 45%, transparent); margin: 2px auto 10px; }
.sheet h3 { margin: 4px 0 6px; font-size: 20px; }
.sheet .field { background: var(--bg); }
.seg { display: flex; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1 1 auto; height: 34px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; padding: 0 10px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.summary-html { white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 50; background: color-mix(in srgb, var(--text) 88%, transparent); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: drop .2s ease; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } }

.link-box { font: 13px/1.35 ui-monospace, Menlo, monospace; word-break: break-all; background: var(--bg); padding: 10px 12px; border-radius: 12px; user-select: all; -webkit-user-select: all; max-height: 120px; overflow: auto; }
.muted { color: var(--hint); font-size: 14px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.grow { flex: 1; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); font-size: 22px; font-weight: 700; }
.stepper b { min-width: 70px; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .tiles { grid-template-columns: repeat(2, 1fr); } .head h1 { font-size: 26px; } }

/* ---------- v2 ---------- */
.head-r { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn.spinning svg { animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: rot .7s linear infinite; }
.view > * { animation: fadein .22s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.pop { animation: popin .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes popin { from { opacity: 0; transform: scale(.98) translateY(6px); } }
.card.gone { transition: opacity .25s, transform .25s; opacity: 0; transform: translateX(40px); }
.strong { color: var(--text) !important; }
.soft-ava { background: var(--soft) !important; color: var(--accent); font-size: 18px; }
.soft-ava svg { width: 20px; height: 20px; }
.empty.slim { padding: 16px; font-size: 14px; }
.mt4 { margin-top: 4px; }
.big-search { height: 48px; border-radius: 14px; }
.big-search input { font-size: 17px; }

.mg-strip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border-radius: var(--radius); padding: 12px 14px; position: relative; overflow: hidden; }
.mg-strip::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--iris); }
.mg-strip b { display: block; font-size: 15px; }
.mg-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.mg-ico svg { width: 22px; height: 22px; }
.mg-line { display: block; color: var(--sub); font-size: 13px; margin-top: 1px; }
.mg-line.warn { color: #c27a10; }
.mg-strip:active { transform: scale(.99); }

.hero { background: var(--card); border-radius: 20px; padding: 16px 16px 12px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--iris); opacity: .10; filter: blur(8px); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hero-label { color: var(--hint); font-size: 13px; font-weight: 600; }
.hero-num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero-sub { color: var(--sub); font-size: 13px; margin-top: 3px; }
.hero-today { text-align: right; flex: none; }
.hero-today span { display: block; color: var(--hint); font-size: 12px; }
.hero-today b { font-size: 17px; color: var(--ok); }
.chart { width: 100%; height: 96px; display: block; margin-top: 14px; }
.chart rect { fill: color-mix(in srgb, var(--accent) 55%, transparent); transition: fill .15s; cursor: pointer; }
.chart rect.zero { fill: color-mix(in srgb, var(--hint) 25%, transparent); }
.chart rect.today { fill: var(--ok); }
.chart rect.sel { fill: var(--accent); }
.chart-cap { color: var(--hint); font-size: 12px; margin-top: 6px; text-align: center; min-height: 16px; }
.chart-cap b { color: var(--text); }
.tile.warn-t b { color: #e08a12; }
.node { font-weight: 550 !important; }
.bar { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--hint) 18%, transparent); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--ok); }
.money { color: var(--ok); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.money.minus { color: var(--sub); }
details > summary { padding: 8px 4px; list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; }
details[open] > summary::before { content: "▾ "; }

.days { padding: 16px; }
.days-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.days-num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.days-num.warn-c { color: #e08a12; }
.days .r { color: var(--hint); font-size: 13px; text-align: right; }
.progress { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--hint) 18%, transparent); margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--iris); }
.actions.four { grid-template-columns: repeat(4, 1fr); }
.dev-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 20px; flex: none; }
.icon-btn.del { background: var(--soft-danger); color: var(--danger); }
.icon-btn.ghost-del { width: 32px; height: 32px; background: none; color: var(--hint); }
button.row { width: 100%; text-align: left; }
/* v2 fixes: stepper rule must not hit the action button; grid cells may shrink */
.stepper button.btn { width: auto; height: 44px; font-size: 15px; background: var(--ok); color: #fff; padding: 10px 18px; flex: none; }
.actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions.one { grid-template-columns: minmax(0, 1fr); }
.actions.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.actions .btn { min-width: 0; white-space: nowrap; }
.actions.three .btn { padding: 10px 6px; font-size: 14px; gap: 4px; }
.actions.three .btn svg { width: 16px; height: 16px; }
.days .r .pill { margin-top: 6px; }
.chart-axis { display: flex; justify-content: space-between; color: var(--hint); font-size: 11px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.chart rect { fill: color-mix(in srgb, var(--accent) 72%, transparent); }
/* v3 */
.delta { display: inline-block; margin-left: 6px; font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--soft-ok); }
.delta.down { color: var(--danger); background: var(--soft-danger); }
.offer-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: linear-gradient(120deg, color-mix(in srgb, #ffb547 18%, var(--card)), var(--card) 60%); border-radius: var(--radius); padding: 13px 14px; }
.offer-card b { display: block; font-size: 15px; }
.offer-card span { display: block; color: var(--sub); font-size: 13px; margin-top: 1px; }
.offer-ico { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, #ffb547 25%, transparent); display: grid; place-items: center; font-size: 21px; flex: none; }
.step { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin-top: 10px; }
.step b { display: block; }
.step span { display: block; color: var(--hint); font-size: 13px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--soft); color: var(--accent); flex: none; }
.step.done .step-n { background: var(--soft-ok); color: var(--ok); }
.step.locked { opacity: .55; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; flex: none; }
.btn[disabled] { opacity: .45; }
.offer-row { align-items: center; }
.result-line { background: var(--card); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--sub); }
.okc { color: var(--ok); }
.pills-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
button.cell.plain { width: 100%; text-align: left; }
