/* Money (#/money) and the money cards in Connections. Uses the tokens from styles.css (light + dark).
   Look: a bank statement, not a dashboard. Ink rules, tabular figures, one big number, no gradients. */
.mo .num, .mo-cards .num, .num { font-variant-numeric: tabular-nums; }

/* ---------- hero: cash, this month, auto-paid ---------- */
.mo-hero { display: grid; gap: 1.2rem; padding: 1rem 0 1.3rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.mo-hero > div { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.mo-big { font-weight: 900; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.mo-big.sm { font-size: 2rem; }
.mo-accts { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .15rem; font-size: .9rem; color: var(--ink-2); }
.mo-accts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line-2); padding: .15rem 0; }
.mo-flow { display: grid; gap: .25rem; }
.mo-flow-l { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.mo-flow-l strong { font-weight: 800; }
.mo-track { height: 8px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.mo-track span { display: block; height: 100%; background: var(--good); }
.mo-flow.out .mo-track span { background: var(--accent-2); }
.mo-net { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: .35rem; margin-top: .2rem; font-weight: 700; }
.mo-auto p { color: var(--ink-2); }
@media (min-width: 900px) { .mo-hero { grid-template-columns: 1.15fr 1.2fr .9fr; gap: 2rem; } .mo-hero > div + div { border-left: 1px solid var(--line); padding-left: 2rem; } }

/* ---------- confidence: five ticks + the number ---------- */
.mo-conf { display: inline-flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: 0; }
.mo-conf i { width: 6px; height: 12px; border-radius: 1px; background: var(--line-2); }
.mo-conf i.on { background: var(--accent); }
.mo-conf b { margin-left: .35rem; font-size: .8rem; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- paid automatically ---------- */
.mo-matched { list-style: none; margin: 0; padding: 0; }
.mo-matched li { display: grid; gap: .4rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.mo-m-main { display: grid; gap: .1rem; min-width: 0; }
.mo-m-main strong { font-size: 1.05rem; font-weight: 900; }
.mo-m-side { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mo-m-amt { font-weight: 900; font-size: 1.15rem; }
.mo-paid { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--good); }
@media (min-width: 700px) { .mo-matched li { grid-template-columns: 1fr auto; align-items: center; } .mo-m-side { justify-content: flex-end; } }
.mo-ask { border-left: 4px solid var(--warn); padding-left: .9rem; }

/* ---------- VAT return: the 9 boxes ---------- */
.mo-vat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .8rem; margin: .8rem 0; }
.mo-return { border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--surface); padding: .9rem 1rem 1rem; margin-top: .4rem; }
.mo-return.done { border-color: var(--good); }
.mo-return-kicker { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--warn); }
.mo-return.done .mo-return-kicker { color: var(--good); }
.mo-return-sum { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.mo-return-sum strong { font-size: 1.6rem; font-weight: 900; margin-left: .3rem; }
.mo-boxes th { width: 2.4rem; border-bottom: 1px solid var(--line); padding: .5rem .2rem; }
.mo-boxno { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1.5px solid var(--ink); border-radius: 50%; font-size: .8rem; font-weight: 900; }
.mo-boxes td.r { font-weight: 800; }
.mo-boxes tr.mo-b5 td, .mo-boxes tr.mo-b5 th { background: var(--sunk); }
.mo-boxes tr.mo-b5 td.r { font-size: 1.1rem; font-weight: 900; }
.mo-submit { margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--ink); background: var(--sunk); border-radius: 0 var(--r-sm) var(--r-sm) 0; display: grid; gap: .4rem; }
.mo-decl { font-weight: 700; line-height: 1.4; }
.mo-decl input { margin-top: 3px; }

/* ---------- bank lines ---------- */
.mo-lines { list-style: none; margin: 0; padding: 0; }
.mo-lines li { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.mo-lines li.uncat { box-shadow: inset 3px 0 0 var(--warn); padding-left: .7rem; }
.mo-l-main { display: grid; gap: .05rem; min-width: 0; }
.mo-l-date { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mo-l-desc { font-weight: 700; overflow-wrap: anywhere; }
.mo-l-st { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.mo-l-st.matched { color: var(--good); } .mo-l-st.suggested { color: var(--warn); }
.mo-l-amt { font-weight: 800; white-space: nowrap; }
.mo-l-amt.in { color: var(--good); }
.mo-l-cat { grid-column: 1 / -1; display: grid; gap: .15rem; }
.mo-l-cat select { min-height: 40px; font-size: .92rem; }
@media (min-width: 900px) { .mo-lines li { grid-template-columns: 1fr 240px 8rem; align-items: center; } .mo-l-cat { grid-column: 2; grid-row: 1; } .mo-l-amt { grid-column: 3; text-align: right; } }
.mo-rules { margin-top: .8rem; }

/* ---------- Connections: money cards ---------- */
.mo-cards { display: grid; gap: .9rem; margin-top: .8rem; }
@media (min-width: 900px) { .mo-cards { grid-template-columns: 1fr 1fr; } .mo-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.mo-card, .mo-chooser .mo-card { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); padding: .9rem 1rem; display: grid; gap: .45rem; align-content: start; }
.mo-chooser { display: grid; gap: .2rem; align-content: start; }
.mo-chooser .seg { margin: .2rem 0 .3rem; }
.mo-card.on { border-color: var(--good); }
.mo-card.warn { border-color: var(--warn); }
.mo-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.mo-card-head .kicker { flex-basis: 100%; }
.mo-card-head h3 { font-size: 1.1rem; }
.mo-status { margin-left: auto; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mo-status.on { color: var(--good); } .mo-status.warn { color: var(--warn); }
.mo-details summary { cursor: pointer; font-weight: 700; font-size: .92rem; min-height: 32px; padding: .3rem 0; }
.mo-consent-lists { display: grid; gap: .6rem; margin: .4rem 0; }
.mo-consent-lists h4 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.mo-consent-lists ul { margin: .2rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
@media (min-width: 700px) { .mo-consent-lists { grid-template-columns: 1fr 1fr; } }

/* ---------- mock consent page ---------- */
.mo-consent h1 { font-size: 1.4rem; margin: .4rem 0; }
.mo-consent h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .8rem; }
.mo-consent ul { margin: .3rem 0; padding-left: 1.2rem; }
.mo-demo-flag { display: inline-block; background: var(--warn-bg); color: var(--warn); font-weight: 800; font-size: .8rem; padding: .25rem .55rem; border-radius: 4px; }
