:root, :root:where(*) {
	color-scheme: light;
	--bg: #fbf6ee;
	--fg: #1d1a16;
	--muted: #6f665b;
	--accent: #0f6b4f;
	--border: #e8dfd0;
	--in: #0f8a5f;
	--out: #d4572a;
	--sun: #f2b33d;
	--radius: 16px;
	--font: "DM Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #fbf6ee; --fg: #1d1a16; --muted: #6f665b; --accent: #0f6b4f; --border: #e8dfd0; }
}
h1, h2, .logo, .hero-amount { font-family: "Bricolage Grotesque", sans-serif; }
h2 { margin: 0; font-size: 1.15rem; }
.card { background: #fff; }
.shell { padding: 1rem 1rem 6rem; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; max-width: 42rem; margin: 0 auto; }
.logo { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.logo span { color: var(--sun); }
.btn.small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; text-align: center; }
.banner { max-width: 40rem; margin: 0 auto; padding: 0.55rem 1rem; background: #fdecc8; color: #6b4a07; font-size: 0.9rem; border-radius: 12px; width: calc(100% - 2rem); }
.hero { background: var(--accent); color: #fff; border-radius: 22px; padding: 1.3rem; position: relative; overflow: hidden;
	background-image: radial-gradient(circle at 110% -10%, #f2b33d 0 22%, transparent 23%), repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.04) 14px 28px); }
.hero-label { margin: 0; opacity: 0.8; text-transform: capitalize; }
.hero-amount { margin: 0.2rem 0 1rem; font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-split { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.92rem; }
.hero-split strong { display: block; font-size: 1.05rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.in { background: #7ee2b5; } .dot.out { background: #ffab86; }
.ratio { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 1rem; gap: 3px; }
.ratio-in { background: #7ee2b5; } .ratio-out { background: #ffab86; }
.bars { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.7rem; font-size: 0.92rem; }
.bar-track { grid-column: 1 / -1; grid-row: 2; height: 8px; background: var(--border); border-radius: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--out); border-radius: 8px; }
.bar-val { font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--border); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: none; padding: 0.55rem; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg .on.out { background: var(--out); color: #fff; } .seg .on.in { background: var(--in); color: #fff; }
.input.big { font-size: 1.6rem; font-weight: 700; text-align: center; padding: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 0.35rem 0.75rem; font: inherit; font-size: 0.9rem; cursor: pointer; color: var(--fg); }
.chip.on { background: var(--fg); color: #fff; border-color: var(--fg); }
.list-item { background: #fff; flex-wrap: nowrap; }
.tx-ico { font-size: 1.3rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--bg); border-radius: 50%; flex: none; }
.tx-main { flex: 1; min-width: 0; display: grid; }
.tx-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-main small { color: var(--muted); }
.tx-amt { font-weight: 700; white-space: nowrap; font-size: 0.92rem; }
.tx-amt.in { color: var(--in); } .tx-amt.out { color: var(--out); }
.x { border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; padding: 0 0.2rem; }
.between { justify-content: space-between; }
.progress { height: 10px; background: var(--border); border-radius: 10px; overflow: hidden; margin: 0.7rem 0 0.4rem; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--sun)); border-radius: 10px; transition: width .4s; }
.turns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; counter-reset: t; }
.turns li { counter-increment: t; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px dashed var(--border); font-size: 0.88rem; }
.turns li::before { content: counter(t) ". "; color: var(--muted); }
.turns li.done { opacity: 0.5; text-decoration: line-through; }
.turns li.now { background: var(--sun); border-color: var(--sun); font-weight: 700; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--border); padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom)); }
.tabbar button { border: 0; background: none; font: inherit; font-size: 0.75rem; color: var(--muted); display: grid; gap: 2px; justify-items: center; padding: 0.4rem 0; cursor: pointer; }
.tabbar button span { font-size: 1.2rem; }
.tabbar button.on { color: var(--accent); font-weight: 700; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20,15,10,.45); display: grid; align-items: end; z-index: 10; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; padding: 1.4rem 1.2rem 2rem; max-width: 32rem; width: 100%; margin: 0 auto; }
@media (min-width: 40rem) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
