/* Panora Life — Money (js/money.js; design/money-mock.html). Built from the shell's
   own tokens, so every theme and dark mode come with it. */

.dom-money{ background:var(--canvas); color:var(--ink); }
.screen.dom-money{ padding:8px 18px calc(32px + var(--tabbar-h)); }
.dom-money .mn-card{ background:var(--surface); border-radius:18px; padding:14px 16px; margin:0 0 12px; box-shadow:0 1px 2px rgba(0,0,0,.05); display:block; }
.dom-money .mn-cap{ margin:0 0 4px; font:800 12px/1.3 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); }
.dom-money .mn-big{ font:800 34px/1.1 var(--font-ui); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.dom-money .mn-mid{ font:800 22px/1.2 var(--font-ui); font-variant-numeric:tabular-nums; }
.dom-money .mn-mid small{ font-size:14px; font-weight:600; color:var(--ink-muted); }
.dom-money .mn-sub{ font-size:14px; color:var(--ink-muted); line-height:1.4; margin-top:2px; }
.dom-money .mn-center{ text-align:center; margin-top:8px; }
.dom-money .mn-up{ color:var(--accent-text, var(--accent)); font-weight:700; }
.dom-money .mn-down{ color:var(--ink); font-weight:700; }
.dom-money .mn-note{ font-size:12.5px; color:var(--ink-muted); line-height:1.45; margin:4px 2px 12px; }
.dom-money .mn-two{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dom-money .mn-two .mn-card{ min-width:0; }
.dom-money .mn-bar{ height:10px; border-radius:99px; background:var(--surface-quiet, rgba(0,0,0,.08)); overflow:hidden; margin:8px 0 4px; }
.dom-money .mn-bar i{ display:block; height:100%; background:var(--accent); border-radius:99px; }
.dom-money [data-mn-go]{ cursor:pointer; }
.dom-money .mn-hello h3{ margin:0 0 6px; font-size:19px; }
.dom-money .mn-hello p{ margin:0 0 10px; color:var(--ink-muted); line-height:1.45; }

/* The net worth line */
.dom-money .mn-spark{ display:block; width:100%; height:46px; margin-top:8px; }
.dom-money .mn-spark-fill{ fill:var(--accent-wash, rgba(0,0,0,.06)); }
.dom-money .mn-spark-line{ fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.dom-money .mn-spark-dot{ fill:var(--accent); }

/* The check-in: one row per account */
.dom-money .mn-line{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid var(--edge); }
.dom-money .mn-card .mn-cap + .mn-line, .dom-money .mn-card .mn-cap + .mn-sub + .mn-line{ border-top:0; }
.dom-money .mn-acc{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; font-size:15px; }
.dom-money .mn-name{ font:600 15px var(--font-ui); color:var(--ink); background:transparent; border:0; border-bottom:1px dashed var(--edge); padding:2px 0; width:100%; min-width:0; }
.dom-money .mn-name:focus{ outline:none; border-bottom-color:var(--accent); }
.dom-money .mn-small{ font-size:12.5px; color:var(--ink-muted); display:flex; align-items:center; gap:3px; flex-wrap:wrap; }
.dom-money .mn-tiny{ width:46px; font:600 12.5px var(--font-ui); color:var(--ink); background:var(--canvas); border:1px solid var(--edge); border-radius:6px; padding:2px 4px; text-align:right; }
.dom-money .mn-ef{ cursor:pointer; }
.dom-money .mn-amt{ display:flex; align-items:center; gap:2px; font-weight:700; color:var(--ink-muted); }
.dom-money .mn-amt input{ width:104px; text-align:right; font:700 16px var(--font-ui); color:var(--ink); background:var(--canvas); border:1.5px solid var(--edge); border-radius:10px; padding:8px 9px; font-variant-numeric:tabular-nums; }
.dom-money .mn-amt input:focus, .dom-money .mn-tiny:focus{ outline:none; border-color:var(--accent); }
.dom-money .mn-x{ width:32px; height:32px; border:0; border-radius:8px; background:transparent; color:var(--ink-muted); font-size:20px; cursor:pointer; flex:none; }
.dom-money .mn-add{ border:0; background:none; color:var(--accent-text, var(--accent)); font:700 14px var(--font-ui); padding:10px 0 2px; cursor:pointer; }

/* Debts: the extra amount and the two ways */
.dom-money .mn-seg{ display:flex; background:var(--surface-quiet, rgba(0,0,0,.06)); border-radius:12px; padding:3px; margin:10px 0; }
.dom-money .mn-seg button{ flex:1; border:0; background:transparent; border-radius:9px; padding:8px 0; font:700 14px var(--font-ui); color:var(--ink-muted); cursor:pointer; min-height:36px; }
.dom-money .mn-seg button.on{ background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.dom-money .mn-seg-sm{ margin-bottom:2px; }
.dom-money .mn-cmp{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 8px; }
.dom-money .mn-opt{ text-align:left; border:1.5px solid var(--edge); border-radius:14px; padding:10px; background:transparent; color:var(--ink); font:inherit; cursor:pointer; display:flex; flex-direction:column; gap:1px; min-width:0; }
.dom-money .mn-opt.on{ border-color:var(--accent); background:var(--accent-wash, rgba(0,0,0,.04)); }
.dom-money .mn-opt b{ font-size:15px; } .dom-money .mn-opt small{ font-size:12.5px; color:var(--ink-muted); }
.dom-money .mn-opt .mn-n{ font:800 19px var(--font-ui); margin-top:6px; font-variant-numeric:tabular-nums; }
.dom-money .mn-order{ margin:6px 0 8px; padding-left:22px; }
.dom-money .mn-order li{ margin:4px 0; font-size:14.5px; }

/* Goals */
.dom-money .mn-goal-top{ display:flex; justify-content:space-between; align-items:center; }
.dom-money .mn-goal-top b{ font-size:16px; }
/* Goals on Overview (Phase 5): each a name, an amount and a bar. */
.dom-money .mn-ov-goal + .mn-ov-goal{ margin-top:12px; }
.dom-money .mn-ov-goal-top{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:15px; }
.dom-money .mn-ov-goal-top b{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dom-money .mn-ov-goal-top span{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.dom-money .mn-how{ margin-top:8px; }

/* Learn */
.dom-money .mn-lesson summary{ display:flex; gap:12px; align-items:flex-start; cursor:pointer; list-style:none; }
.dom-money .mn-lesson summary::-webkit-details-marker{ display:none; }
.dom-money .mn-lesson summary b{ display:block; font-size:15.5px; }
.dom-money .mn-lesson summary small{ display:block; font-size:13.5px; color:var(--ink-muted); line-height:1.35; }
.dom-money .mn-ic{ width:40px; height:40px; border-radius:12px; background:#c3cf98; display:grid; place-items:center; flex:none; }
html[data-sky="sunrise"] .dom-money .mn-ic{ background:#f0d9a6; }
html[data-sky="glacier"] .dom-money .mn-ic{ background:#b6dccf; }
.dom-money .mn-ic svg{ width:22px; height:22px; fill:none; stroke:var(--wheel-ink, #1f3a2c); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.dom-money .mn-lesson p{ margin:10px 0 0 52px; font-size:14.5px; line-height:1.5; }
.dom-money .mn-you{ font-weight:700; color:var(--accent-text, var(--accent)); }

/* Every check-in */
.dom-money .mn-hv{ display:flex; flex-direction:column; align-items:flex-end; font-variant-numeric:tabular-nums; }
.dom-money .mn-hv small{ font-size:12.5px; }

/* Its Home tile, in each theme's soft set */
#wins-home.sky .tile[data-tile="money"]{ --c1:#c3cf98; --c2:#a3b073; }
html[data-sky="sunrise"] #wins-home.sky .tile[data-tile="money"]{ --c1:#f0d9a6; --c2:#d6bb83; }
html[data-sky="glacier"] #wins-home.sky .tile[data-tile="money"]{ --c1:#b6dccf; --c2:#91beb0; }

/* Learn cards say they open (UI review UI-55): a chevron on the right that turns when open. */
.dom-money .mn-lesson summary::after{ content:""; flex:none; margin-left:auto; align-self:center; width:8px; height:8px; border-right:2px solid var(--ink-muted); border-bottom:2px solid var(--ink-muted); transform:rotate(-45deg); transition:transform .15s ease; }
.dom-money .mn-lesson[open] summary::after{ transform:rotate(45deg); }

/* The month in plain words (decision 0026). */
.mn-plain-t{ font-weight:700; margin-bottom:6px; }
.mn-plain-text{ margin:0 0 8px; font-size:16px; line-height:1.45; }
