/* ==========================================================================
   The Overview (js/overview.js) and its sheet (js/overview-sheets.js),
   ported from the v6 mock-up. Every class is mo- prefixed; colours come from
   the --m- tokens in css/redesign.css, so both themes follow.
   ========================================================================== */
/* minmax(0, …): a bare 1fr grows to its widest content and cut ~28px off the right at 360px. */
.mo { color: var(--m-fg); font-family: var(--m-font-body); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* The eye sits on the headline's row, at the right, where banking apps put it. */
#pane-dashboard { position: relative; }
.mo-head-tools { position: absolute; top: -4px; right: 0; z-index: 1; display: flex; align-items: center; gap: 4px; }
.mo-head-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -12px 0; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--m-muted); cursor: pointer; }
.mo-head-btn .ic { width: 18px; height: 18px; }
.mo-head-btn:focus-visible { outline: 2px solid var(--m-brand); outline-offset: -6px; }
.mo-arranging-pane .mo-head-tools { display: none; }
.mo .dot, .mo-sheet .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.mo-good { color: var(--m-in); }
.mo-warn { color: var(--m-budget); }
.mo-sub { display: block; font-size: 12px; color: var(--m-muted); margin-top: 4px; line-height: 1.4; }
.mo-note { font-size: 12px; color: var(--m-muted); margin: 6px 0 0; line-height: 1.45; }
.mo-lede { font-size: 14px; color: var(--m-muted); margin: 0 0 12px; line-height: 1.45; }
.mo-lbl { font-size: 13px; color: var(--m-muted); }
.mo-status { font-size: 13px; color: var(--m-muted); margin: 0; line-height: 1.45; }
.mo-est { font-size: 10px; font-weight: 600; letter-spacing: .05em; padding: 2px 6px; border-radius: 6px; background: var(--m-surface-2); color: var(--m-muted); text-transform: none; }

/* ---- Hero: open ground, no box ---- */
.mo-hero { padding: 4px 2px 6px; }
.mo-big { font: 600 44px/1.05 var(--m-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.mo-meter { position: relative; display: block; width: 100%; height: 14px; border: 0; padding: 0; margin: 12px 0 8px; border-radius: 99px; background: var(--m-surface-2); cursor: pointer; }
.mo-meter:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 3px; }
.mo-meter-fill { display: flex; gap: 2px; height: 100%; overflow: hidden; border-radius: 99px; }
.mo-meter-fill i { display: block; height: 100%; }
.mo-today { position: absolute; top: -3px; width: 3px; height: 20px; border-radius: 2px; background: var(--m-fg); transform: translateX(-1px); }

/* ---- Tiles ---- */
.mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mo-grid:empty { display: none; }
.mo-grid .size-w { grid-column: span 2; }
.mo-tile { position: relative; display: block; width: 100%; text-align: left; font: inherit; color: var(--m-fg); border: 0; border-radius: 20px; padding: 14px; cursor: pointer; min-width: 0; background: transparent; transition: transform .15s ease; }
.mo-tile:active { transform: scale(.985); }
.mo-tile:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 2px; }
.mo-box { background: var(--m-surface); box-shadow: var(--m-tile-shadow); }
.mo-open { border-radius: 0; padding: 12px 2px; border-block: 1px solid var(--m-line); }
.mo-tint-bill { background: color-mix(in srgb, var(--m-bill) 14%, var(--m-app-bg)); }
.mo-tint-budget { background: color-mix(in srgb, var(--m-budget) 11%, var(--m-app-bg)); }
.mo-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--m-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.mo-eyebrow .ic { width: 14px; height: 14px; }
.mo-tone-bill { color: var(--m-bill); }
.mo-tone-budget { color: var(--m-budget); }
.mo-t-row { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.mo-t-row .mo-sub { margin: 0; }
.mo-t-big { display: block; font: 600 24px/1.1 var(--m-font-display); font-variant-numeric: tabular-nums; }
.mo-t-huge { display: block; font: 600 48px/1 var(--m-font-display); color: var(--m-bill); }
.mo-t-mid { display: block; font: 600 16px/1.3 var(--m-font-display); }
.mo-t-date { display: block; font: 600 22px/1.15 var(--m-font-display); color: var(--m-budget); margin-top: 2px; }
.mo-delta { font-size: 12px; font-weight: 600; }
.mo-count { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--m-muted); background: var(--m-surface); border-radius: 99px; padding: 1px 7px; white-space: nowrap; flex: none; }
.mo-flow { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 14px; }
.mo-vline { background: var(--m-line); }
.mo-cats { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; margin: 2px 0 4px; }
.mo-legend { display: grid; gap: 6px; }
.mo-legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.mo-legend-row span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-legend-row span:last-child { font-variant-numeric: tabular-nums; color: var(--m-muted); }
/* Left to pay off: one line per plan, its name first. */
.mo-payoff { margin-top: 8px; }
.mo-payoff .mo-legend-row span:first-child { font-weight: 600; white-space: nowrap; }
.mo-payoff .mo-legend-row span:nth-child(2) { color: var(--m-muted); }
.mo-stack { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin-top: 10px; }
.mo-stack i { display: block; height: 100%; }

/* ---- Midori noticed ---- */
.mo-band { margin: 2px 0; }
.mo-band-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 8px; }
.mo-band-head h3 { margin: 0; font: 600 17px var(--m-font-display); display: flex; align-items: center; gap: 6px; }
.mo-band-head h3 .ic { width: 17px; height: 17px; color: var(--m-budget); }
.mo-ins { background: color-mix(in srgb, var(--tone) 8%, var(--m-surface)); border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent); }
.mo-ins.size-w .mo-t-mid { font-size: 17px; }
.mo-ins-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); display: flex; align-items: center; gap: 4px 6px; margin: 0 0 6px; }
.mo-ins-eyebrow .ic { width: 14px; height: 14px; flex: none; }
.mo-ins .mo-ins-eyebrow { flex-wrap: nowrap; }
.mo-ins .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-ins-sheet .mo-ins-head { font: 600 20px/1.25 var(--m-font-display); margin: 2px 0 8px; }
.mo-ins-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.mo-ins-foot p { font-size: 12px; color: var(--m-muted); margin: 0 0 2px; line-height: 1.4; }
.mo-ins-count { font-size: 13px; color: var(--m-muted); font-weight: 600; padding: 0 2px; white-space: nowrap; }
.mo-ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mo-ins-list button { width: 100%; text-align: left; display: block; border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent); background: color-mix(in srgb, var(--tone) 8%, var(--m-surface)); border-radius: 14px; padding: 12px; color: var(--m-fg); cursor: pointer; font: inherit; }

/* ---- Buttons ---- */
.mo-pill-btn { border: 0; border-radius: 999px; background: var(--m-brand-strong); color: var(--m-on-brand); font: 600 14px var(--m-font-body); padding: 10px 18px; min-height: 44px; cursor: pointer; }
.mo-pill-btn:disabled { opacity: .45; cursor: default; }
.mo-pill-btn.mo-wide { width: 100%; }
.mo-ghost-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--m-line); background: transparent; color: var(--m-fg); border-radius: 999px; padding: 9px 16px; min-height: 44px; font: 600 14px var(--m-font-body); cursor: pointer; margin-top: 14px; }
.mo-row-btns .mo-ghost-btn { margin-top: 0; }
.mo-ghost-btn .ic { width: 16px; height: 16px; }
.mo-txt-btn { border: 0; background: none; color: var(--m-brand); font: 600 14px var(--m-font-body); padding: 9px 4px; cursor: pointer; }
.mo-txt-btn.mo-danger { color: var(--m-out); padding-left: 0; }
.mo-row-btns { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mo-pill-btn:focus-visible, .mo-ghost-btn:focus-visible, .mo-txt-btn:focus-visible,
.mo-roomtabs button:focus-visible, .mo-seg button:focus-visible, .mo-cat-row:focus-visible,
.mo-link-row:focus-visible, .mo-cu button:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 2px; }
.mo-seg { display: inline-flex; background: var(--m-surface-2); border-radius: 999px; padding: 3px; gap: 2px; margin: 0 0 8px; }
.mo-seg button { border: 0; background: transparent; color: var(--m-muted); font: 600 12px var(--m-font-body); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.mo-seg button[aria-pressed="true"] { background: var(--m-surface); color: var(--m-fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---- Charts ---- */
.mo-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.mo-axis { fill: var(--m-muted); font-size: 10px; font-family: var(--m-font-body); }
.mo-grid-line { stroke: var(--m-line); stroke-width: 1; }
.mo-dot-count { fill: var(--m-surface); font: 700 9px var(--m-font-body); pointer-events: none; }
.mo-scrub-label { fill: var(--m-fg); font: 600 11px var(--m-font-body); }
.mo-donut { width: 100%; height: auto; display: block; }
.mo-donut text { fill: var(--m-fg); font-family: var(--m-font-display); }
.mo-donut .mo-donut-center { font-size: 20px; font-weight: 600; }
.mo-donut .mo-donut-big { font-size: 24px; font-weight: 600; }
.mo-donut .mo-donut-small { font-size: 12px; fill: var(--m-muted); font-family: var(--m-font-body); }
.mo-runway { display: block; width: 100%; height: 16px; margin: 6px 0 2px; }
.mo-forecast { touch-action: pan-y; cursor: crosshair; outline: none; border-radius: 8px; }
.mo-forecast:focus-visible { box-shadow: 0 0 0 2px var(--m-brand); }
.mo-ev { cursor: pointer; }
.mo-ev .vis { transition: r .15s; }
.mo-ev.on .vis { r: 8; }
body.amounts-hidden .mo-axis-money { visibility: hidden; }

/* ---- The sheet (#modalOv) ---- */
.modal-window.mo-sheet { display: flex; flex-direction: column; padding: 14px 0 0; background: var(--m-surface); color: var(--m-fg); max-height: 92vh; max-height: 92dvh; overflow: hidden; }
.modal-window.mo-sheet.mo-tall { height: 92vh; height: 92dvh; }
.mo-sheet .modal-header { margin: 0; padding: 0 10px 8px 18px; gap: 4px; border-bottom: 0; flex: none; }
.mo-sheet .modal-header h3 { flex: 1; margin: 0; font: 600 20px var(--m-font-display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-sheet-nav { display: flex; align-items: center; gap: 2px; }
.mo-sheet-body { overflow-y: auto; padding: 6px 18px 22px; flex: 1; min-height: 0; }
.mo-sheet-body.mo-rooms-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.mo-roomtabs { display: flex; gap: 6px; padding: 4px 18px 10px; flex: none; }
.mo-roomtabs button { flex: 1; border: 1px solid var(--m-line); background: transparent; color: var(--m-fg); border-radius: 999px; padding: 8px 6px; min-height: 40px; font: 600 13px var(--m-font-body); cursor: pointer; white-space: nowrap; }
.mo-roomtabs button[aria-selected="true"] { background: var(--m-fg); color: var(--m-surface); border-color: transparent; }
.mo-rooms { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.mo-rooms::-webkit-scrollbar { display: none; }
.mo-room { flex: 0 0 100%; scroll-snap-align: start; overflow-y: auto; padding: 6px 18px 28px; min-width: 0; }
.mo-room-h { margin: 22px 0 8px; }
.mo-r-big { font: 600 46px/1 var(--m-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.mo-room .mo-status { margin-top: 8px; }
.mo-hbar { margin-top: 16px; }
.mo-hbar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.mo-hbar-top span:last-child { font-variant-numeric: tabular-nums; }
.mo-hbar-top small { font-weight: 500; color: var(--m-muted); }
.mo-hbar-track { height: 20px; border-radius: 8px; background: var(--m-surface-2); margin-top: 6px; overflow: hidden; }
.mo-hbar-track i { display: block; height: 100%; border-radius: 8px; }
.mo-hbar-track.mo-two { display: flex; }
.mo-hbar-track.mo-two i { border-radius: 0; }
.mo-hbar-track.mo-two i:first-child { border-radius: 8px 0 0 8px; }
.mo-hbar-track .mo-ghost { background: color-mix(in srgb, var(--m-out) 28%, transparent); border-radius: 0 8px 8px 0; }
.mo-hbar-foot { font-size: 12px; color: var(--m-muted); text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mo-key { font-size: 12px; color: var(--m-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; }
.mo-key > span { display: inline-flex; align-items: center; gap: 6px; }
.mo-tbl-wrap { overflow-x: auto; margin-top: 10px; }
table.mo-fig { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mo-fig th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--m-muted); font-weight: 600; text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--m-line); }
.mo-fig td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--m-line); vertical-align: top; }
.mo-fig th:first-child, .mo-fig td:first-child { text-align: left; }
.mo-fig small { color: var(--m-muted); font-size: 12px; }
details.mo-figs { margin-top: 12px; }
details.mo-figs summary, details.mo-fine summary, details.mo-later summary { list-style: none; cursor: pointer; }
details.mo-figs summary::-webkit-details-marker, details.mo-fine summary::-webkit-details-marker, details.mo-later summary::-webkit-details-marker { display: none; }
details.mo-figs summary { font-size: 14px; font-weight: 600; color: var(--m-brand); display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
details.mo-figs summary .ic { width: 16px; height: 16px; }
.mo-room-donut { display: grid; place-items: center; margin: 4px 0 14px; }
.mo-room-donut .mo-donut { max-width: 200px; }
.mo-cat-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.mo-cat-rows li { padding: 4px 0 10px; border-bottom: 1px solid var(--m-line); }
.mo-cat-row { display: block; width: 100%; text-align: left; font: inherit; color: var(--m-fg); background: none; border: 0; border-radius: 8px; padding: 8px 6px 0; cursor: pointer; }
.mo-cat-row[aria-pressed="true"] { background: var(--m-surface-2); }
.mo-cr-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.mo-cr-top span:nth-child(2) { flex: 1; min-width: 0; }
.mo-cr-top span:last-child { font-variant-numeric: tabular-nums; color: var(--m-muted); font-size: 13px; }
.mo-cr-status { font-size: 12px; color: var(--m-muted); padding: 0 6px; }
.mo-cr-status b { font-weight: 600; }
.mo-cr-status .mo-txt-btn { font-size: 12px; padding: 4px 0; }
.mo-link-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--m-fg); background: none; border: 0; border-bottom: 1px solid var(--m-line); padding: 12px 2px; cursor: pointer; }
.mo-link-row > span:nth-child(2) { flex: 1; }
.mo-lead .ic { width: 18px; height: 18px; color: var(--m-muted); }
.mo-chev { width: 16px; height: 16px; color: var(--m-muted); }
.mo-tl { list-style: none; margin: 6px 0 0; padding: 0 0 0 20px; position: relative; display: grid; gap: 10px; }
.mo-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--m-line); }
.mo-tl li { position: relative; font-size: 14px; }
.mo-tl li::before { content: ""; position: absolute; left: -20px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--m-bill)); box-shadow: 0 0 0 3px var(--m-surface); }
.mo-tl small { display: block; color: var(--m-muted); font-size: 12px; }
.mo-cu { border-radius: 8px; transition: opacity .15s, box-shadow .15s, background .15s; }
.mo-cu button { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.mo-cu.hl { background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.mo-cu.past { opacity: .4; }
details.mo-later { margin-top: 14px; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); }
details.mo-later summary { display: flex; align-items: center; gap: 8px; padding: 12px 2px; font-size: 14px; font-weight: 600; }
details.mo-later summary span:first-child { flex: 1; }
details.mo-later summary span:nth-child(2) { font-weight: 500; font-size: 12px; color: var(--m-muted); }
details.mo-later summary .ic { width: 16px; height: 16px; transition: transform .2s; }
details.mo-later[open] summary .ic { transform: rotate(180deg); }
details.mo-later .mo-tl { margin-bottom: 14px; }
details.mo-fine { margin: 18px 0 0; font-size: 12px; color: var(--m-muted); }
details.mo-fine summary { display: flex; align-items: center; gap: 6px; }
details.mo-fine summary .ic { width: 14px; height: 14px; flex: none; }
details.mo-fine p { margin: 6px 0 0; line-height: 1.45; }

/* ---- Groups ---- */
.mo-legend-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mo-legend-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mo-legend-list li span:nth-child(2) { flex: 1; }
.mo-legend-list li span:last-child { font-variant-numeric: tabular-nums; color: var(--m-muted); }
.mo-rename { display: block; font-size: 13px; color: var(--m-muted); margin: 18px 0 6px; }
.mo-pick { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.mo-pick button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-fg); border-radius: 12px; padding: 10px; font: inherit; cursor: pointer; }
.mo-pick button[aria-pressed="true"] { border-color: var(--m-brand); background: var(--m-brand-soft); }
.mo-bx { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--m-line); display: grid; place-items: center; flex: none; color: transparent; }
.mo-pick button[aria-pressed="true"] .mo-bx { background: var(--m-brand-strong); border-color: transparent; color: var(--m-on-brand); }
.mo-bx .ic { width: 13px; height: 13px; }
.mo-pick button > span:nth-child(2) { flex: 1; min-width: 0; }
.mo-pick small { display: block; color: var(--m-muted); font-size: 12px; }
/* Add stays in reach however long the list is. */
#ovGroupAdd { position: sticky; bottom: 0; box-shadow: 0 -8px 16px var(--m-surface); }

/* ---- Settings › Overview ---- */
.mo-set { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mo-set legend { font: 600 14px var(--m-font-display); margin-bottom: 8px; padding: 0; }
.mo-radio, .mo-check { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid var(--m-line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.mo-radio:has(input:checked) { border-color: var(--m-brand); background: var(--m-brand-soft); }
.mo-radio input, .mo-check input { margin-top: 3px; accent-color: var(--m-brand-strong); flex: none; width: 18px; height: 18px; }
.mo-radio b, .mo-check b { display: block; font: 600 15px var(--m-font-display); }
.mo-radio small, .mo-check small { display: block; font-size: 13px; color: var(--m-muted); line-height: 1.4; }

/* ---- Small tiles (arrange mode can make a wide tile small) ---- */
.mo-grid .size-s .mo-cats { grid-template-columns: 1fr; justify-items: center; }
.mo-grid .size-s .mo-cats .mo-donut { max-width: 104px; }
.mo-grid .size-s .mo-t-big { font-size: 20px; }

/* ---- Arrange mode (js/overview-arrange.js) ---- */
.mo-arrange-bar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 3; background: var(--m-app-bg); padding: 6px 0; }
.mo-arrange-bar h2 { flex: 1; margin: 0; font: 600 22px var(--m-font-display); }
.mo-hint { font-size: 12px; color: var(--m-muted); margin: 0; text-align: center; line-height: 1.45; }
.mo-arranging { padding-top: 10px; row-gap: 22px; }
.mo-arranging .mo-tile { cursor: default; padding-top: 28px; animation: mo-wiggle .32s ease-in-out infinite alternate; }
.mo-arranging .mo-tile:nth-child(2n) { animation-delay: -.16s; }
.mo-arranging .mo-tile:active { transform: none; }
.mo-arranging .mo-open { padding-inline: 8px; border: 1px dashed var(--m-line); border-radius: 20px; }
@keyframes mo-wiggle { from { transform: rotate(-.5deg); } to { transform: rotate(.5deg); } }
@media (prefers-reduced-motion: reduce) { .mo-arranging .mo-tile { animation: none; } }
.mo-tile-body { display: block; pointer-events: none; }
.mo-tools { position: absolute; top: -12px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.mo-tool { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--m-line); background: var(--m-surface); color: var(--m-fg); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.mo-tool .ic { width: 16px; height: 16px; }
.mo-tool:disabled { opacity: .35; cursor: default; }
.mo-tool:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 2px; }
/* A small tile is narrower than five floating tools: they sit in a row inside it. */
.mo-arranging .mo-tile.size-s { padding: 12px 10px 14px; }
.mo-arranging .size-s .mo-tools { position: static; justify-content: space-between; gap: 2px; margin: 0 -2px 10px; }
.mo-arranging .size-s .mo-tool { width: 30px; height: 30px; box-shadow: none; }
.mo-grip { cursor: grab; touch-action: none; background: var(--m-brand-strong); color: var(--m-on-brand); border-color: transparent; }
.mo-tile.mo-dragging { opacity: .55; animation: none; outline: 2px dashed var(--m-brand); outline-offset: 2px; }
.mo-tile.mo-dragging .mo-grip { cursor: grabbing; }
.mo-tray { margin-top: 6px; }
.mo-tray h3 { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--m-muted); margin: 0 0 8px; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--m-line); background: var(--m-surface); color: var(--m-fg); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 600 13px var(--m-font-body); cursor: pointer; }
.mo-chip .ic { width: 14px; height: 14px; color: var(--m-brand); }
.mo-chip:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 2px; }

/* ---- Reset confirm ---- */
.mo-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px; border-radius: 14px; background: var(--m-app-bg); }
.mo-mini { font-size: 11px; font-weight: 600; color: var(--m-muted); background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 7px; padding: 7px 6px; text-align: center; }
.mo-mini.size-w { grid-column: span 2; }
.mo-mini-ins { color: var(--m-budget); border-style: dashed; }
.mo-row-btns.mo-end { justify-content: flex-end; }
.mo-end .mo-ghost-btn { margin-top: 0; }

