/* Kirkpatrick Household Finance — warm design system.
   Tokens + shell + core components. Loaded after Bootstrap (grid/JS kept; look overridden).
   Per-screen styles live with their screens; this is the shared foundation. */

:root {
    /* Surfaces */
    --bg: #F3EEE5;
    --sidebar-bg: #EAE3D6;
    --sidebar-border: #DDD3C0;
    --surface: #FFFFFF;
    --surface-subtle: #FBF8F2;
    /* Ink */
    --ink: #221E17;
    --ink-soft: #6E6557;
    --ink-muted: #9A8E78;
    --ink-muted-2: #A89E8D;
    /* Lines */
    --hairline: #E6DECE;
    --divider: #F2ECDF;
    --input-border: #E0D7C5;
    /* Dark panel */
    --dark: #2C2620;
    --dark-text: #EFE9DC;
    --dark-muted: #B6AB94;
    --dark-muted-2: #C7BBA4;
    --dark-inner: #463E33;
    /* Accent (themeable; default green "safe") */
    --accent: #3C6B53;
    --accent-soft: #E7EFE8;
    --accent-line: #CFE0D2;
    /* People */
    --michael: #436690;
    --michael-soft: #E8EEF5;
    --mollie: #A85B74;
    --mollie-soft: #F4E8ED;
    /* Status */
    --amber: #A07320;
    --amber-2: #C2742C;
    --amber-soft: #FBF4E2;
    --amber-soft-2: #F6E6C8;
    --amber-border: #E7D3B4;
    /* Money semantics use the colorblind-safe blue↔orange axis (not red/green):
       teal = money in, terracotta = money out. Parens on negatives are the redundant cue.
       Decoupled from --accent (brand green) on purpose. */
    --negative: #9E4030;
    --positive: #16626F;
    --plum: #6B4E7A;
    --plum-soft: #EFE8F2;
    --tag-bg: #EFE9DC;
    --tag-text: #857B6B;
    /* Radii */
    --r-card: 16px;
    --r-pill: 20px;
    --r-btn: 10px;
    --r-sm: 7px;
    /* Type */
    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
    --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    --shadow-pop: 0 10px 28px rgba(0,0,0,.14);
    --shadow-nav: 0 1px 2px rgba(0,0,0,.05);
}

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    min-width: 1180px;            /* desktop-first per spec */
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.text-soft { color: var(--ink-soft); }
.text-muted-ink { color: var(--ink-muted); }

/* Money / numbers — IBM Plex Mono, tabular */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.money { display: inline-flex; gap: .15em; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.money.negative { color: var(--negative); }
.money.positive { color: var(--positive); }
.money:not(.negative) .money-amt { padding-right: 1ch; }
td .money { display: flex; justify-content: space-between; }

/* ---- App shell: fixed sidebar + main ---- */
.app-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 248px;
    background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border);
    display: flex; flex-direction: column; padding: 22px 16px; z-index: 50;
}
.app-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.app-brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent);
    display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 17px; }
.app-brand .brand-name { font-family: var(--serif); font-size: 16px; line-height: 1; color: var(--ink); }
.app-brand .brand-sub { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-muted); padding: 18px 10px 6px; }
.nav-item-link {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-btn);
    color: var(--ink-soft); font-weight: 500; font-size: 14px; position: relative; text-decoration: none;
}
.nav-item-link:hover { background: rgba(255,255,255,.45); text-decoration: none; }
.nav-item-link .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.nav-item-link.active {
    background: #fff; color: var(--ink); box-shadow: var(--shadow-nav);
}
.nav-item-link.active::before {
    content: ""; position: absolute; left: -16px; top: 7px; bottom: 7px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-item-link.active .dot { background: var(--accent); }
.nav-item-link .nav-badge {
    margin-left: auto; background: var(--amber-soft-2); color: var(--amber-2);
    font-size: 11px; font-weight: 600; border-radius: var(--r-pill); padding: 1px 8px; font-family: var(--mono);
}
.app-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px;
    border-top: 1px solid var(--sidebar-border); }
.app-user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--dark); color: var(--dark-text);
    display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.app-user .u-name { font-size: 13px; font-weight: 500; }
.app-user .u-logout { font-size: 11px; color: var(--ink-muted); }

.app-main { margin-left: 248px; max-width: 1180px; padding: 34px 44px 80px; }
/* Neutralize Bootstrap's centered container inside the main column */
.app-main > .container, .app-main > .container-fluid { max-width: none; width: auto; padding: 0; margin: 0; }

/* ---- Core components ---- */
.card-w { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 22px; }
.well { background: var(--surface-subtle); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; }
.panel-dark { background: var(--dark); color: var(--dark-text); border-radius: var(--r-card); padding: 22px 24px; }
.panel-dark .eyebrow { color: var(--dark-muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill);
    padding: 3px 11px; font-size: 12px; font-weight: 600; }
.pill .pdot { width: 7px; height: 7px; border-radius: 50%; }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-michael { background: var(--michael-soft); color: var(--michael); }
.pill-mollie { background: var(--mollie-soft); color: var(--mollie); }
.pill-amber { background: var(--amber-soft); color: var(--amber-2); border: 1px solid var(--amber-border); }
.pill-neutral { background: var(--tag-bg); color: var(--tag-text); }
.pdot-accent { background: var(--accent); } .pdot-michael { background: var(--michael); }
.pdot-mollie { background: var(--mollie); } .pdot-joint { background: var(--ink-muted); }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill);
    padding: 2px 9px; font-size: 11px; font-weight: 500; background: var(--tag-bg); color: var(--tag-text); }

/* Segmented control — Joint/Michael/Mollie split + toggles (cash-flow pool/horizon).
   .toggle = white-active variant; .sm = compact (review cards). */
.seg { display: inline-flex; background: #F1EADD; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button, .seg a { border: 0; background: transparent; color: #8A7F6B; font-family: var(--sans);
    font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 7px; cursor: pointer;
    transition: all .12s; text-decoration: none; display: inline-block; }
.seg .on-joint { background: var(--dark); color: #fff; }
.seg .on-michael { background: var(--michael); color: #fff; }
.seg .on-mollie { background: var(--mollie); color: #fff; }
.seg.toggle .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-nav); }
.seg.sm button, .seg.sm a { font-size: 11.5px; padding: 5px 10px; }

/* Buttons */
.btn-accent { background: var(--accent); color: #fff; border: 0; border-radius: var(--r-btn);
    padding: 9px 16px; font-family: var(--sans); font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-accent:hover { filter: brightness(1.06); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--input-border);
    border-radius: var(--r-btn); padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-ghost:hover { background: var(--surface-subtle); }
.btn-dark { background: var(--dark); color: var(--dark-text); border: 0; border-radius: var(--r-btn);
    padding: 9px 16px; font-weight: 600; font-size: 13px; cursor: pointer; }

/* Section rhythm */
.section { margin-bottom: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }

/* ---- Review screen ---- */
.rv-grid { display: grid; grid-template-columns: 1fr 372px; gap: 22px; align-items: start; }
.rv-settle { position: sticky; top: 24px; }
.rv-progress { width: 160px; height: 5px; background: var(--divider); border-radius: 3px; overflow: hidden; margin-left: auto; }
.rv-progress-bar { height: 100%; background: var(--accent); transition: width .2s; }
.rv-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.rv-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--divider); }
.rv-row:last-child { border-bottom: 0; }
.rv-desc { font-size: 14px; }
.rv-desc .chip { vertical-align: middle; }
.rv-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid; flex: none; box-sizing: border-box; position: relative; }
.ring-needs { border-color: var(--amber-border); background: var(--amber-soft); }
.ring-reviewed { border-color: var(--accent); background: var(--accent); }
.ring-reviewed::after { content: "\2713"; color: #fff; font-size: 10px; font-weight: 700; position: absolute; inset: 0; display: grid; place-items: center; }
#rv-reviewed.collapsed { display: none; }
.rv-empty { color: var(--accent); font-weight: 600; padding: 14px 2px; }
.rv-excluded { border: 1.5px dashed var(--input-border); border-radius: var(--r-card); padding: 14px 18px;
    background: var(--surface-subtle); margin-bottom: 22px; }
.sp-person { display: flex; justify-content: space-between; align-items: center; }
.sp-person .money { font-size: 18px; }
.sp-sub { font-size: 11.5px; color: var(--ink-muted); margin-top: 3px; }
.sp-break { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); padding: 3px 0; }
.sp-drift { background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--amber-2);
    border-radius: 8px; padding: 10px 12px; font-size: 12px; margin-top: 14px; }

/* Reviewed checkmark on the Transactions workbench */
.rev-check { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
    background: #E7EFE8; color: var(--accent); font-size: 10px; font-weight: 700; vertical-align: middle; margin-right: 6px; }

/* ---- Review cards ---- */
.rvc { padding: 13px 18px; border-top: 1px solid var(--divider); border-left: 3px solid transparent; }
.rvc:first-child { border-top: 0; }
.rvc.acc-michael { border-left-color: var(--michael); }
.rvc.acc-mollie { border-left-color: var(--mollie); }
.rvc-top { display: flex; align-items: flex-start; gap: 12px; }
.rvc-check { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #D8CBB2; background: #fff;
    cursor: pointer; display: grid; place-items: center; color: transparent; font-size: 12px; font-weight: 700; transition: all .12s; margin-top: 1px; }
.rvc-check:hover { border-color: var(--accent); }
.rvc-check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rvc-body { flex: 1; min-width: 0; }
.rvc-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvc-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.rvc-amount { font-family: var(--mono); font-size: 14.5px; flex: none; text-align: right; }
.rvc-bottom { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-left: 32px; position: relative; }
.rvc-cat { cursor: pointer; border-radius: 8px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; background: var(--tag-bg); color: #4A4236; }
.rvc-cat.uncat { background: var(--amber-soft-2); color: var(--amber); }
.rvc-master { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #C9BDA6; background: #fff; cursor: pointer;
    display: grid; place-items: center; color: var(--ink-muted); font-size: 12px; font-weight: 700; }
#rv-reviewed.collapsed, .rvc-reviewed-wrap.collapsed .rvc-reviewed-list { display: none; }

/* ---- Transactions workbench ---- */
.cf-select { border: 1px solid var(--input-border); border-radius: 8px; padding: 6px 10px;
    font-family: var(--sans); font-size: 12.5px; background: var(--surface); color: var(--ink); }
.cf-select-dark { background: rgba(255,255,255,.06); border-color: var(--dark-inner); color: var(--dark-text); }
.cf-select-dark::placeholder { color: var(--dark-muted); }
.txn-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.txn-table thead th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.txn-table tbody td { padding: 9px 14px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.txn-table tbody tr:last-child td { border-bottom: 0; }
.txn-table tbody tr:hover { background: var(--surface-subtle); }
.row-uncat { background: var(--amber-soft); }
/* Excluded rows should recede, not highlight: no fill, just muted content. */
.row-excluded td, .row-excluded .txn-desc, .row-excluded .txn-date { color: var(--ink-muted); }
.row-excluded .txn-desc { font-weight: 400; }
.row-excluded .money, .row-excluded .money.negative, .row-excluded .money.positive { color: var(--ink-muted); }
.row-excluded .chip { opacity: .8; }
.row-selected, .row-selected:hover { background: #F3EFE7; }
.txn-date { color: var(--ink-soft); text-decoration: none; font-size: 12.5px; }
.txn-date:hover { color: var(--accent); }
.txn-desc { font-weight: 500; }
.cat-cell { cursor: pointer; }
.cat-label { border-bottom: 1px dashed var(--input-border); font-size: 13px; }
.cat-empty { color: var(--amber-2); background: var(--amber-soft); border: 1px solid var(--amber-border);
    border-radius: var(--r-pill); padding: 2px 10px; font-size: 11.5px; font-weight: 600; }
.tag-add { border: 1px dashed var(--input-border); background: transparent; color: var(--ink-muted);
    border-radius: 50%; width: 18px; height: 18px; line-height: 15px; text-align: center; cursor: pointer;
    font-size: 13px; padding: 0; vertical-align: middle; }
.tag-add:hover { border-color: var(--accent); color: var(--accent); }
#popover-backdrop { position: fixed; inset: 0; z-index: 90; display: none; }
.txn-popover { position: absolute; z-index: 100; background: #fff; border: 1px solid var(--hairline);
    border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; min-width: 210px; }
.pop-list { display: flex; flex-direction: column; gap: 1px; max-height: 230px; overflow: auto; }
.pop-item { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--ink); }
.pop-item:hover { background: var(--surface-subtle); }
.pop-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pop-head { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); padding: 4px 10px; }
.pop-new { display: flex; gap: 6px; padding: 6px; border-top: 1px solid var(--divider); margin-top: 4px; }
.pop-new input { flex: 1; border: 1px solid var(--input-border); border-radius: 6px; padding: 5px 8px;
    font-size: 12px; font-family: var(--sans); min-width: 0; }
.pop-new .btn-accent { padding: 5px 12px; }

/* ---- Transaction detail drawer (slide-over; used by Transactions + Review) ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(34,30,23,0.32); z-index: 60; display: none; animation: kffade .18s ease; }
@keyframes kffade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kfslide { from { transform: translateX(34px); opacity: .3; } to { transform: translateX(0); opacity: 1; } }
.txn-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 472px; max-width: 94vw; z-index: 61;
    background: #F7F2E9; border-left: 1px solid var(--input-border); box-shadow: -22px 0 60px rgba(34,30,23,0.20);
    display: none; flex-direction: column; }
.txn-drawer.open { display: flex; animation: kfslide .28s cubic-bezier(.2,.85,.25,1); }
.drawer-topbar { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid #E6DDCC; }
.drawer-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--input-border); background: #fff;
    color: var(--ink-soft); cursor: pointer; font-size: 13px; line-height: 1; display: grid; place-items: center; }
.drawer-btn:hover { background: #F1EADD; }
.drawer-btn:disabled { color: #CFC4B0; cursor: default; background: #fff; }
.drawer-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted-2); }
.drawer-counter { font-size: 11.5px; color: var(--ink-muted-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 24px 22px; }
.drawer-identity { display: flex; align-items: flex-start; gap: 14px; }
.drawer-name { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.drawer-name-input { font-family: var(--serif); font-size: 25px; font-weight: 500; width: 100%;
    border: 1px solid var(--input-border); border-radius: 8px; padding: 2px 8px; background: #fff; color: var(--ink); }
.drawer-amount { font-size: 20px; font-weight: 500; text-align: right; white-space: nowrap; }
.drawer-meta { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.drawer-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 4px; }
.decode-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin: 22px 0 8px; }
.decode-card { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; }
.field-label { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted-2); margin-bottom: 5px; }
.raw-feed { font-size: 13px; color: #2C2620; background: #F4EFE4; border: 1px solid #E6DDCC; border-radius: 9px;
    padding: 11px 13px; line-height: 1.5; word-break: break-word; }
.decode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 16px; }
.field-val { font-size: 14.5px; color: var(--ink); }
.field-val .field-sub { font-size: 11.5px; color: var(--ink-muted); font-family: var(--mono); margin-top: 2px; }
.field-val .field-none { color: var(--ink-muted-2); }
.classify-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted-2); margin: 22px 0 6px; }
.classify-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--ink-soft); }
.cat-chip { cursor: pointer; border-radius: 8px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; background: var(--tag-bg); color: #4A4236; }
.cat-chip.uncat { background: var(--amber-soft-2); color: var(--amber); }
.drawer-collapse { border-top: 1px solid #EAE2D2; margin-top: 6px; }
.collapse-head { display: flex; align-items: center; gap: 7px; padding: 12px 0; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.collapse-head .caret { transition: transform .15s; font-size: 11px; color: var(--ink-muted); }
.collapse-head.collapsed .caret { transform: rotate(-90deg); }
.collapse-hint { font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.collapse-body { padding-bottom: 12px; }
.collapse-body textarea { width: 100%; border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px;
    font-family: var(--sans); font-size: 13px; resize: vertical; min-height: 64px; background: #FFFDF8; }
.note-read { background: #FFFDF8; border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.rec-row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 12px; }
.rec-row .rec-label { color: var(--ink-muted); } .rec-row .rec-val { font-family: var(--mono); color: var(--ink-soft); word-break: break-all; text-align: right; }
.drawer-footer { border-top: 1px solid #E6DDCC; background: #F2EBDD; padding: 14px 18px; display: flex; gap: 10px; }
.txn-table tbody tr { cursor: pointer; }

/* ---- Forecasting v2: certainty tiers (ledger, recurring hub, drawers) ----
   The shared icon vocabulary: Known (solid green), Scheduled (hollow ring),
   Estimated (dashed amber), In flight (solid Michael-blue). */
.ci { display: inline-block; width: 13px; height: 13px; border-radius: 50%; box-sizing: border-box; flex: none; vertical-align: middle; }
.ci-known { background: var(--accent); }
.ci-scheduled { border: 2.5px solid #C9BDA6; background: #fff; }
.ci-estimated { border: 2.5px dashed var(--amber-2); background: var(--amber-soft); }
.ci-inflight { background: var(--michael); }

/* Drawer form controls — shared by the Recurring item drawer and the Cash Flow
   occurrence/transfer/one-off drawers. */
.rf-field { margin-bottom: 15px; }
.rf-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.rf-label .rf-opt { font-weight: 400; color: var(--ink-muted); }
.rf-input, .rf-select, .rf-textarea { width: 100%; border: 1px solid var(--input-border); border-radius: 10px;
    padding: 11px 13px; font-family: var(--sans); font-size: 14.5px; background: #fff; color: var(--ink); box-sizing: border-box; }
.rf-input.mono { font-family: var(--mono); }
.rf-textarea { font-family: var(--sans); resize: vertical; }
.rf-help { font-size: 12px; color: var(--ink-muted); margin-top: 6px; line-height: 1.45; }
.rf-amt-wrap { position: relative; }
.rf-amt-wrap .rf-cur { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-family: var(--mono); }
.rf-amt-wrap input { padding-left: 26px; }
.rf-seg-full { display: flex; width: 100%; }
.rf-seg-full > * { flex: 1; text-align: center; justify-content: center; }
.rf-card { background: var(--surface-subtle); border: 1px solid var(--input-border); border-radius: 10px; padding: 13px 15px; }
.rf-toggle { position: relative; width: 46px; height: 26px; flex: 0 0 auto; display: inline-block; }
.rf-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.rf-toggle .rf-slider { position: absolute; inset: 0; background: #D8CFBE; border-radius: 20px; transition: .15s; cursor: pointer; }
.rf-toggle .rf-slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.rf-toggle input:checked + .rf-slider { background: var(--accent); }
.rf-toggle input:checked + .rf-slider:before { transform: translateX(20px); }

/* Amount-method badge (recurring hub) */
.method-badge { display: inline-block; border-radius: var(--r-pill); padding: 2px 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.method-fixed { background: #F1EADD; color: #857B6B; }
.method-schedule { background: var(--accent-soft); color: var(--accent); }
.method-avg { background: var(--amber-soft); color: var(--amber-2); }
.method-actuals { background: var(--tag-bg); color: var(--tag-text); }

/* Toast — bottom-center dark pill, auto-dismissed by window.toast() */
@keyframes kfpop { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.kf-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120;
    background: var(--dark); color: var(--dark-text); border-radius: 11px; padding: 12px 20px;
    font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 28px rgba(0,0,0,.24); animation: kfpop .2s ease; }
