:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --card-2: #eaf0f7;
  --text: #182536;
  --muted: #627185;
  --line: #dfe6ef;
  --brand: #234f87;
  --brand-ink: #ffffff;
  --brand-soft: #e5edf8;
  --ok: #247449;
  --warn: #8a590c;
  --bad: #b6383b;
  --bad-soft: #fae9e7;
  --warn-soft: #fff0d1;
  --income: #247449;
  --hero-accent: #c9dfff;
  --hero-accent-ink: #142d4e;
  --hero-bg: #142d4e;
  --hero-text: #ffffff;
  --hero-muted: #c7d8ee;
  --plan-bg: #eaf1fb;
  --shadow: 0 3px 16px rgb(20 45 78 / 3%);
  --radius: 24px;
  --tabbar-h: 78px;
  color-scheme: light;
}

/* Dark only when chosen in Ajustes (app.js sets data-theme); light is the main look. */
:root[data-theme='dark'] {
    --bg: #0e1724;
    --card: #192638;
    --card-2: #23344b;
    --text: #eef3fb;
    --muted: #a8b9ce;
    --line: #35475e;
    --brand: #c9dfff;
    --brand-ink: #142d4e;
    --brand-soft: #263c58;
    --ok: #a7d797;
    --warn: #eac377;
    --bad: #ffabab;
    --bad-soft: #452b2c;
    --warn-soft: #443a25;
    --income: #b4dfa2;
    --hero-bg: #1b385c;
    --hero-text: #f4f7fb;
    --hero-muted: #ccdaec;
    --plan-bg: #20334c;
    --shadow: none;
    color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; min-height: 100svh; overscroll-behavior-y: none; }
/* Keeps scrolled content from showing through the iPhone status bar (viewport-fit=cover). */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 30; pointer-events: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
button:disabled { cursor: wait; }
#app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 20px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 38px);
}
.screen-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 8px 2px 24px; }
.screen-title h1 { font-size: clamp(26px, 6.7vw, 32px); line-height: 1.12; margin: 0; letter-spacing: -.045em; font-weight: 720; }
.screen-title .sub { color: var(--muted); font-size: 14px; margin-top: 5px; }
.screen-title:has(.month-switch) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.back { background: none; border: 0; color: var(--brand); font-size: 15px; min-height: 44px; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; margin: 0; font-weight: 650; }

/* The financial values and status classes still come from the original controller. */
.hero, .hero.ok { position: relative; isolation: isolate; padding: 25px 23px; background: var(--hero-bg); color: var(--hero-text); border-color: transparent; box-shadow: none; overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 170px; height: 170px; right: -80px; top: -90px; border: 30px solid rgb(201 223 255 / 5%); border-radius: 50%; z-index: -1; pointer-events: none; }
.hero .label { font-size: 13px; color: var(--hero-muted); line-height: 1.5; max-width: 95%; }
.hero .big, .hero.todo .big { color: var(--hero-accent); font-size: clamp(32px, 9.8vw, 44px); font-weight: 650; line-height: 1.2; letter-spacing: -.045em; margin: 9px 0 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hero.ok .big { color: var(--hero-text); }
.hero.over { background: #5a3033; }
.hero.over .big { color: #ffe1dc; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--hero-muted); font-size: 12px; line-height: 1.55; margin-top: 8px; }
.hero.ok .label, .hero.ok .meta { color: var(--hero-muted); }
.hero .btn.secondary, .hero.ok .btn.secondary { background: var(--hero-accent); color: var(--hero-accent-ink); border: 0; padding: 11px 15px; font-size: 13px; min-height: 44px; border-radius: 12px; font-weight: 700; }
.month-switch { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: transparent; padding: 0; border-radius: 16px; }
.month-switch button { border: 1px solid var(--line); background: var(--card); width: 44px; height: 44px; border-radius: 15px; font-size: 23px; color: var(--text); }
.month-switch button:active { background: var(--brand-soft); }
.month-switch span { font-size: 14px; font-weight: 600; text-align: center; letter-spacing: -.01em; }

.row { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.row:last-child { border-bottom: 0; }
.row.tap { cursor: pointer; }
.row.tap:active, .line-item:active { background: var(--card-2); }
.row .icon { width: 39px; height: 39px; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; font-size: 19px; flex: none; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.015em; }
.row .meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .end { text-align: right; font-variant-numeric: tabular-nums; flex: none; font-size: 14px; font-weight: 600; }
.row .end .meta { font-size: 11px; font-weight: 400; }
.chev::after { content: ''; width: 20px; height: 20px; flex: none; margin-left: 1px; background: var(--muted); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.amount-neg { color: var(--text); font-weight: 600; }
.amount-pos { color: var(--income); font-weight: 600; }
.bar { height: 5px; border-radius: 20px; background: var(--card-2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .25s ease; }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--bad); }
.bar.big { height: 8px; }
.line-item { padding: 17px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.line-item:last-child { border-bottom: 0; }
.line-item .top { display: flex; align-items: center; gap: 10px; }
.line-item .name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-item .left { font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 650; }
.line-item .left.bad { color: var(--bad); }
.line-item .sub { color: var(--muted); font-size: 12px; margin-top: 7px; display: flex; justify-content: space-between; gap: 8px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 18px 10px; }
.group-head h2 { margin: 0; }
.group-head span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.btn { appearance: none; border: 1px solid transparent; border-radius: 16px; padding: 15px 18px; min-height: 50px; font-weight: 650; font-size: 15px; letter-spacing: -.015em; background: var(--brand); color: var(--brand-ink); width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .15s, transform .15s; }
.btn:active { opacity: .85; transform: scale(.985); }
.btn:disabled { opacity: .55; transform: none; }
.btn.secondary { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: var(--card-2); color: var(--text); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.small { width: auto; padding: 10px 13px; min-height: 44px; font-size: 13px; border-radius: 13px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.link { background: none; border: 0; color: var(--brand); font-weight: 650; min-height: 44px; cursor: pointer; padding: 8px 0; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 650; background: var(--card-2); color: var(--muted); }
.pill.ok { background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 34px 22px; font-size: 14px; line-height: 1.65; }
.empty .emoji { font-size: 36px; display: block; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 10px 2px 0; }
.tip { background: var(--brand-soft); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 15px 17px; font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
.tip b { color: var(--brand); }

/* Alist UI icon system. Decorative SVGs inherit contrast from their control. */
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.row .icon { color: var(--brand); background: var(--brand-soft); }
.row .icon .ui-icon { width: 21px; height: 21px; }
.line-item .top > .ui-icon, .plan-line > .ui-icon { color: var(--brand); }
.cat .ce .ui-icon { display: block; width: 25px; height: 25px; margin: 0 auto; color: var(--brand); }
.empty .emoji .ui-icon { display: block; width: 40px; height: 40px; margin: 0 auto 12px; color: var(--muted); }
.pill .ui-icon { width: 14px; height: 14px; }
.compare .t { display: flex; align-items: center; justify-content: center; gap: 6px; }
.back .ui-icon, .month-switch .ui-icon { width: 20px; height: 20px; }
.sheet header button .ui-icon { width: 22px; height: 22px; }

/* Bottom navigation: icon geometry is CSS/vector; routes and accessible text are unchanged. */
.tabbar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 20; width: calc(100% - 24px); max-width: 528px; background: var(--card); border: 1px solid var(--line); border-radius: 25px; padding: 6px 8px; box-shadow: 0 8px 30px rgb(20 45 78 / 9%); }
.tabbar nav { height: 59px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 2px; }
.tabbar a { display: flex; min-height: 49px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; border-radius: 15px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.tabbar a.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.tabbar a .ti { display: block; width: 21px; height: 21px; font-size: 0; line-height: 0; }
.tabbar a .ti::before { content: ''; display: block; width: 21px; height: 21px; background: currentColor; mask: var(--nav-icon) center / contain no-repeat; -webkit-mask: var(--nav-icon) center / contain no-repeat; }
.tabbar a .ti.ui-icon-slot::before { display: none; }
.tabbar .ti .ui-icon { display: block; width: 21px; height: 21px; }
.tabbar .plus .ui-icon { width: 26px; height: 26px; }
.tabbar a[href='#inicio'] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.tabbar a[href='#extrato'] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2zM9 7h6M9 11h6M9 15h3'/%3E%3C/svg%3E"); }
.tabbar a[href='#dividas'] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8a9 9 0 1 0 1 7M16 3v6h6M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.tabbar a[href='#mais'] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='3' y='3' width='6' height='6' rx='1.5'/%3E%3Crect x='15' y='3' width='6' height='6' rx='1.5'/%3E%3Crect x='3' y='15' width='6' height='6' rx='1.5'/%3E%3Crect x='15' y='15' width='6' height='6' rx='1.5'/%3E%3C/svg%3E"); }
.tabbar .plus { justify-self: center; width: 50px; height: 50px; border-radius: 17px; background: var(--brand); color: var(--brand-ink); border: 0; font-size: 29px; line-height: 1; font-weight: 350; display: grid; place-items: center; }

.field { display: block; margin-bottom: 17px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 2px 7px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; border: 1px solid var(--line); background: var(--card); border-radius: 15px; padding: 13px 14px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
/* These fields have their own focus style; the global 3px outline drew a second ring (over "R$" on the amount). */
.input:focus-visible, .amount-input:focus-visible { outline: none; }
select.input { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23627185' stroke-width='1.5'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-size: 14px; background-repeat: no-repeat; background-position: right 12px center; }
.input.money { font-variant-numeric: tabular-nums; }
.amount-input { font-size: clamp(36px, 10.8vw, 48px); font-weight: 650; text-align: center; border: 0; background: none; width: 100%; outline: none; letter-spacing: -.045em; font-variant-numeric: tabular-nums; padding: 6px 0; }
.amount-input::placeholder { color: var(--muted); opacity: .5; }
.amount-wrap { text-align: center; margin: 8px 0 22px; }
.amount-wrap .cur { color: var(--muted); font-size: 12px; }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; min-width: 0; }
.seg { display: flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 15px; padding: 4px; gap: 3px; margin-bottom: 18px; }
.seg button { flex: 1; min-height: 44px; border: 0; background: none; padding: 9px 6px; border-radius: 11px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgb(20 45 78 / 7%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { min-height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 13px; padding: 9px 13px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.cat { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 13px 4px 10px; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.3; min-height: 72px; overflow-wrap: anywhere; }
.cat .ce { font-size: 22px; display: block; margin-bottom: 7px; }
.cat.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

.sheet-backdrop { position: fixed; inset: 0; background: rgb(10 23 42 / 45%); z-index: 40; opacity: 0; transition: opacity .2s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -20px 60px rgb(10 23 42 / 12%); }
.sheet.open { transform: translateY(0); }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px 12px; }
.sheet header h2 { font-size: 19px; letter-spacing: -.025em; margin: 0; }
.sheet header button { background: var(--card-2); border: 0; width: 44px; height: 44px; border-radius: 15px; font-size: 15px; color: var(--muted); flex: none; }
.sheet .grabber { width: 36px; height: 4px; border-radius: 20px; background: var(--muted); opacity: .35; margin: 10px auto 0; }
.sheet .body { overflow-y: auto; padding: 4px 20px calc(env(safe-area-inset-bottom) + 24px); -webkit-overflow-scrolling: touch; }
/* Sheet is modal: the page behind does not scroll and the focused dialog has no ring. */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet .body { overscroll-behavior: contain; }
.sheet:focus { outline: none; }
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -150%); z-index: 60; background: var(--text); color: var(--bg); padding: 13px 19px; border-radius: 17px; font-size: 13px; line-height: 1.5; font-weight: 550; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgb(0 0 0 / 12%); transition: transform .25s ease; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* Login uses the same DOM, phone fields, autofill and verification handlers. */
#app:has(.login) { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.login { min-height: calc(100vh - 80px); min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 64px); display: flex; flex-direction: column; justify-content: center; padding: 28px 6px; }
.login .logo { width: 88px; height: 88px; border-radius: 26px; margin: 0 auto 27px; display: block; box-shadow: 0 12px 28px rgb(20 45 78 / 13%); }
.login h1 { text-align: center; margin: 0 0 9px; font-size: 31px; line-height: 1.15; letter-spacing: -.045em; font-weight: 700; }
.login p { text-align: center; color: var(--muted); margin: 0 0 35px; font-size: 14px; line-height: 1.6; }
.login .field > span { font-size: 12px; }
.login .input { min-height: 56px; }
.login .btn { min-height: 54px; margin-top: 3px; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.compare .opt { background: var(--card); border-radius: 19px; padding: 17px 14px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; }
.compare .opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.compare .opt .t { font-weight: 650; font-size: 13px; margin-bottom: 8px; }
.compare .opt .v { font-size: clamp(19px, 5.3vw, 24px); font-weight: 650; letter-spacing: -.035em; line-height: 1.3; overflow-wrap: anywhere; }
.compare .opt .m { color: var(--muted); font-size: 12px; line-height: 1.6; }
.range { width: 100%; min-height: 44px; accent-color: var(--brand); margin: 12px 0 4px; }
.card:has(.step-dots) { background: var(--plan-bg); border-color: color-mix(in srgb, var(--brand) 15%, transparent); }
.card:has(.step-dots) h2 { color: var(--brand); }
.card:has(.step-dots) h3 { font-size: 19px; }
.step-dots { display: flex; gap: 7px; margin: 16px 0 4px; }
.step-dots i { flex: 1; height: 5px; border-radius: 20px; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.step-dots i.done { background: var(--brand); }
.step-dots i.now { background: linear-gradient(90deg, var(--brand) var(--p, 0%), color-mix(in srgb, var(--brand) 12%, transparent) var(--p, 0%)); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat .k { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.stat .v { font-size: clamp(19px, 5.4vw, 24px); font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sticky-top { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: calc(env(safe-area-inset-top) + 10px) 0 12px; margin: calc(-1 * env(safe-area-inset-top) - 20px) 0 8px; }
.sticky-bottom { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); z-index: 10; }
.plan-line { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.plan-line:last-child { border-bottom: 0; }
.plan-line .name { flex: 1; min-width: 0; font-size: 14px; }
.plan-line .name .meta { color: var(--muted); font-size: 11px; }
.plan-line input { width: 112px; text-align: right; padding: 10px; font-size: 16px; }
.day-head { font-size: 11px; color: var(--muted); font-weight: 650; letter-spacing: .05em; margin: 22px 4px 10px; text-transform: capitalize; }
.badge-wa { font-size: 10px; font-weight: 700; color: var(--brand); margin-left: 4px; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.prose p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
.prose h3 { color: var(--brand); }
.prose ol, .prose ul { padding-left: 21px; margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
.prose li { margin-bottom: 8px; }
.prose code { background: var(--card-2); padding: 2px 6px; border-radius: 6px; font-size: 12px; }
@media (max-width: 359px) {
  #app { padding-left: 14px; padding-right: 14px; }
  .card { padding: 17px; }
  .card.flush { padding: 0; }
  .row { gap: 8px; padding: 13px; }
  .row .icon { width: 32px; height: 32px; border-radius: 11px; font-size: 16px; }
  .row .title { font-size: 13px; }
  .row .end { font-size: 12px; }
  .btn.small { padding: 9px; font-size: 12px; }
  .group-head { padding-left: 14px; padding-right: 14px; }
  .group-head span { font-size: 11px; }
  .line-item { padding-left: 14px; padding-right: 14px; }
  .line-item .name, .line-item .left { font-size: 13px; }
  .cat-grid { gap: 6px; }
  .sheet .body { padding-left: 15px; padding-right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
