/* ── matchmaker.html — you-vs-roster matchmaker + per-candidate Love Hierarchy breakdown ── */

.mm-intro { font-size: 14px; color: var(--text-muted); line-height: 1.8; max-width: 900px; margin-bottom: 1.6rem; }
.mm-intro strong { color: var(--text); }
.mm-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.mm-tag.lens, .mm-tag.est { background: #EEEDFE; color: #3C3489; }

/* ── form + sticky live-preview layout ── */
.mm-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.2rem; align-items: start; }
@media (max-width: 880px) { .mm-form-wrap { grid-template-columns: 1fr; } }
.mm-preview-col { position: sticky; top: 1rem; }
@media (max-width: 880px) { .mm-preview-col { position: static; } }
.mm-preview { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.05rem; }
.mm-preview-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.mm-preview-h i { color: var(--scarlet); font-size: 15px; }
.mm-preview-sub { font-size: 10.5px; color: var(--text-dim); line-height: 1.5; margin: 0.25rem 0 0.7rem; }
.mm-preview-sub strong { color: var(--text-muted); }
.mm-pv-list { list-style: none; margin: 0; padding: 0; }
.mm-pv-row { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 8px; cursor: pointer; border-bottom: 0.5px dashed var(--border); transition: background 0.1s; }
.mm-pv-row:last-child { border-bottom: none; }
.mm-pv-row:hover { background: var(--surface); }
.mm-pv-rank { width: 15px; flex-shrink: 0; font-size: 10px; font-weight: 800; color: var(--text-dim); text-align: right; }
.mm-pv-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-pv-stretch { font-size: 8px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--scarlet-dim); background: var(--scarlet-pale); padding: 1px 4px; border-radius: 3px; }
.mm-pv-axis { flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-dim); background: var(--surface); border: 0.5px solid var(--border); border-radius: 4px; padding: 1px 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-pv-score { flex-shrink: 0; width: 30px; text-align: right; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mm-pv-score.sc-hi { color: #1D9E75; } .mm-pv-score.sc-mid { color: var(--text); } .mm-pv-score.sc-lo { color: var(--scarlet-dim); }
.mm-pv-empty { font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }
.mm-pv-foot { font-size: 10px; color: var(--text-dim); margin-top: 0.55rem; padding-top: 0.5rem; border-top: 0.5px solid var(--border); }

/* ── step shell ── */
.mm-step { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; margin-bottom: 1.1rem; }
.mm-step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 0.3rem; }
.mm-step-n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--scarlet); color: #fffaf3; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mm-step-title { font-size: 16px; font-weight: 700; color: var(--text); }
.mm-step-sub { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0.1rem 0 1.1rem 32px; }
/* per-step reset — ghost pill pushed to the right of the step header */
.mm-step-reset { margin-left: auto; align-self: center; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--text-dim); background: transparent; border: 0.5px solid var(--border); border-radius: 999px; padding: 3px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color 0.12s, border-color 0.12s; }
.mm-step-reset:hover { color: var(--scarlet); border-color: var(--scarlet); }
.mm-step-reset .ti { font-size: 13px; }

/* ── toggles ── */
.mm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0 0 1rem 32px; }
.mm-ctl { display: flex; align-items: center; gap: 10px; }
.mm-ctl-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.mm-toggle { display: inline-flex; gap: 4px; background: var(--surface); border: 0.5px solid var(--border); border-radius: 999px; padding: 3px; }
.mm-toggle-btn { border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-muted); padding: 6px 15px; border-radius: 999px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.mm-toggle-btn.active { background: var(--scarlet); color: #fffaf3; }
.mm-toggle-btn:not(.active):hover { color: var(--text); }

/* ── intake chips + manual fallback ── */
.mm-intake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-left: 32px; }
.mm-chip { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem 0.95rem; }
.mm-chip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mm-chip-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.mm-chip-state { font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.mm-chip-state.found { background: #E1F5EE; color: #0F6E56; }
.mm-chip-state.manual { background: #FAEEDA; color: #854F0B; }
.mm-chip-val { font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mm-chip-val small { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.mm-chip-src { font-size: 10.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.mm-chip-src a { color: var(--scarlet-dim); }
.mm-range { width: 100%; margin-top: 8px; accent-color: var(--scarlet); cursor: pointer; }
.mm-ovr { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin-top: 8px; cursor: pointer; }
.mm-ovr input { accent-color: var(--scarlet); cursor: pointer; }

/* ── paste-import box ── */
.mm-import { margin: 1.1rem 0 0 32px; padding-top: 0.95rem; border-top: 0.5px solid var(--border); }
.mm-import-label { font-size: 11.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.55rem; }
.mm-import-label a { color: var(--scarlet-dim); }
.mm-import-box { width: 100%; min-height: 52px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--text); background: var(--card-solid); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; resize: vertical; box-sizing: border-box; }
.mm-import-box:focus { outline: 2px solid var(--scarlet); outline-offset: 1px; }
.mm-import-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.mm-import-btn { font-family: inherit; font-size: 12.5px; font-weight: 700; color: #fffaf3; background: var(--scarlet); border: none; border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.mm-import-btn:hover { background: var(--scarlet-dim); }
.mm-import-status { font-size: 11px; color: var(--text-dim); }
.mm-export { margin-top: 0.95rem; padding-top: 0.9rem; border-top: 0.5px dashed var(--border); }
.mm-iobox { padding: 0.8rem 0.9rem; border: 0.5px solid var(--border); border-radius: var(--radius-md); background: rgba(0,0,0,0.012); margin-top: 0.8rem; }
.mm-iobox:first-child { margin-top: 0; }
.mm-import-btn.mm-btn-ghost { background: transparent; color: var(--scarlet); border: 0.5px solid var(--border); }
.mm-import-btn.mm-btn-ghost:hover { background: rgba(196,30,58,0.08); color: var(--scarlet-dim); }
.pkg-readout { margin: 8px 0 0; }
.pkg-readout:empty { display: none; }
.pkg-readout-name { font-weight: 700; color: var(--text); font-size: 12.5px; }
.pkg-readout-sub { color: var(--text-dim); font-size: 11px; margin-top: 1px; }
.pkg-readout-stats { list-style: none; margin: 7px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pkg-readout-stats li { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; border-bottom: 0.5px solid var(--border); padding: 2.5px 0; }
.pkg-readout-stats li span { color: var(--text-muted); }
.pkg-readout-stats li b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 560px){ .pkg-readout-stats { grid-template-columns: 1fr; } }

/* ── self-grade sliders + pyramid pick ── */
.mm-pyr-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem 32px; }
.mm-pyr-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; line-height: 1.2; font-family: inherit; color: var(--text-muted); background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; transition: all 0.12s; }
.mm-pyr-btn b { font-size: 12.5px; font-weight: 700; }
.mm-pyr-btn small { font-size: 10px; font-weight: 500; color: var(--text-dim); }
.mm-pyr-btn.active { background: var(--scarlet-pale); border-color: var(--scarlet); color: var(--scarlet-dim); }
.mm-pyr-btn.active small { color: var(--scarlet-dim); }
.mm-grade-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin: 0.85rem 0 0.45rem; }
.mm-grade-note { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-top: 0.7rem; }
.mm-grade-note a { color: var(--scarlet-dim); }
.mm-grade-host { margin-left: 32px; }
.mm-grade-tier { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin: 0.9rem 0 0.5rem; }
.mm-grade-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.mm-grade-name { width: 180px; flex-shrink: 0; font-size: 12px; color: var(--text); }
.mm-grade-name small { display: block; color: var(--text-dim); font-size: 10px; line-height: 1.3; }
.mm-grade-slider { flex: 1; accent-color: var(--scarlet); cursor: pointer; }
.mm-grade-num { width: 26px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── desire quiz ── */
.mm-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.5rem; margin-left: 32px; align-items: start; }
.mm-qgroup { grid-column: 1 / -1; font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); margin: 0.8rem 0 0.15rem; padding-bottom: 0.3rem; border-bottom: 0.5px solid var(--border); }
.mm-qgroup:first-child { margin-top: 0; }
.mm-q { margin-bottom: 0.35rem; min-width: 0; }
.mm-q-text { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
/* "pick any" tag — flags the few multi-select (list) questions vs the single-choice dials */
.mm-q-multi { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); border: 0.5px solid var(--border); border-radius: 999px; padding: 1px 6px; margin-left: 5px; vertical-align: 1px; }
.mm-q-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.mm-opt { font-family: inherit; font-size: 11px; color: var(--text-muted); background: var(--surface); border: 0.5px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer; transition: all 0.1s; }
.mm-opt:hover { color: var(--text); }
.mm-opt.active { background: var(--scarlet); border-color: var(--scarlet); color: #fffaf3; font-weight: 600; }
/* neutral default still selected — show it as "untouched" (outlined, not scarlet) so the
   scarlet pills are only the dials you actually moved. */
.mm-opt.active.is-neutral { background: var(--surface); border-color: var(--text-dim); color: var(--text-muted); font-weight: 600; box-shadow: inset 0 0 0 1px var(--text-dim); }
.mm-opt.active.is-neutral:hover { color: var(--text); }
/* multi-select options get a real checkbox box (empty → ticked when selected), so the
   "pick any" lists read as checkboxes vs the single-choice (radio) dials. */
.mm-opt.mm-check::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1.5px; border: 1px solid var(--text-dim); border-radius: 3px; background: transparent center / 9px 9px no-repeat; transition: all 0.1s; }
.mm-opt.mm-check.active::before { border-color: #fffaf3; background-color: #fffaf3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 5 8.8 9.5 3.8' fill='none' stroke='%23c41e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* when the ticked option is the neutral "No preference", keep the box readable on the beige pill */
.mm-opt.mm-check.active.is-neutral::before { border-color: var(--text-dim); background-color: var(--text-dim); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4 5 8.8 9.5 3.8' fill='none' stroke='%23F3E6D8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 600px){ .mm-quiz { grid-template-columns: 1fr; } }

/* ── find matches button ── */
.mm-find-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0.5rem 0 1.4rem; }
.mm-find { font-family: inherit; font-size: 14px; font-weight: 700; color: #fffaf3; background: var(--scarlet); border: none; border-radius: var(--radius-sm); padding: 12px 26px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.12s; }
.mm-find:hover { background: var(--scarlet-dim); }
/* secondary "hide matches" button beside the scarlet Find button */
.mm-hide { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); background: transparent; border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: color 0.12s, border-color 0.12s; }
.mm-hide:hover { color: var(--text); border-color: var(--text-dim); }
.mm-find-note { font-size: 11.5px; color: var(--text-dim); }

/* ── simple head-to-head mode (Step 2 opt-out) ── */
.mm-simple-toggle { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 1rem 32px; padding: 0.7rem 0.9rem; border: 0.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.mm-simple-toggle:hover { border-color: var(--text-dim); }
.mm-simple-toggle input { margin: 2px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--scarlet); cursor: pointer; }
.mm-simple-main { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.mm-simple-main strong { color: var(--text); }
.mm-simple-note { display: none; font-size: 11.5px; color: var(--scarlet-dim); line-height: 1.55; margin: -0.5rem 0 1rem 32px; padding: 0.6rem 0.9rem; background: var(--scarlet-pale); border: 0.5px solid #E0B0B8; border-radius: var(--radius-md); }
.mm-form-col.simple-on .mm-simple-note { display: block; }
.mm-form-col.simple-on #step2-sub,
.mm-form-col.simple-on #pyr-row,
.mm-form-col.simple-on #grade-host,
.mm-form-col.simple-on #step3 { display: none; }
/* ladder legend above the simple results */
.mm-sledger { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: 11px; color: var(--text-muted); margin-bottom: 0.9rem; line-height: 1.9; }
/* compact ranked rows — each expands to the gap + probability math */
.mm-srows { display: flex; flex-direction: column; gap: 6px; }
.mm-srow { border: 0.5px solid var(--border); border-radius: var(--radius-md); background: var(--card); overflow: hidden; }
.mm-srow.open { border-color: var(--scarlet); box-shadow: var(--shadow-soft); }
.mm-srow-head { display: flex; align-items: center; gap: 11px; width: 100%; background: transparent; border: none; font-family: inherit; text-align: left; padding: 0.55rem 0.85rem; cursor: pointer; }
.mm-srow-head:hover { background: var(--surface); }
.mm-srow .mm-avatar { width: 34px; height: 34px; font-size: 13px; }
.mm-srow-rank { width: 16px; flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--text-dim); text-align: right; }
.mm-srow-id { flex: 1; min-width: 0; }
.mm-srow-name { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-srow-meta { font-size: 10.5px; color: var(--text-dim); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-srow-head .mm-tier-badge { flex-shrink: 0; min-width: 74px; text-align: center; }
.mm-srow-chev { color: var(--text-dim); font-size: 15px; flex-shrink: 0; }
/* expandable per-row detail (the desire math + the odds math) */
.mm-srow-bd { padding: 0 0.85rem 0.7rem; }
.mm-srow-bd-inner { border-top: 0.5px dashed var(--border); padding-top: 0.6rem; display: flex; flex-direction: column; gap: 0.55rem; }
/* scorecard: your Looks·SMV vs theirs, set before the math so the numbers aren't a cipher */
.mm-sb-card { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; font-size: 11.5px; color: var(--text-muted); padding: 6px 10px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-sm); }
.mm-sb-card b { color: var(--text); }
.mm-sb-vs { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.mm-sb-h { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px; }
.mm-sb-line { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.mm-sb-line + .mm-sb-line { margin-top: 3px; }
.mm-sb-line b { color: var(--text); }
.mm-sb-line .mm-tier-badge { vertical-align: middle; }
.mm-sb-line a { color: var(--scarlet-dim); }
.mm-sb-rank { font-size: 11.5px; color: var(--text-dim); font-style: italic; border-top: 0.5px dashed var(--border); padding-top: 0.5rem; }
.mm-sb-rank b { color: var(--text); font-style: normal; }
/* pairing-probability bubble next to the stamp (green/amber/scarlet by odds) */
.mm-prob { flex-shrink: 0; min-width: 44px; text-align: center; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 999px; }
.mm-prob.p-hi { background: #E6F5EF; color: #0F6E56; }
.mm-prob.p-mid { background: #FAEEDA; color: #854F0B; }
.mm-prob.p-lo { background: var(--scarlet-pale); color: var(--scarlet-dim); }
/* the legend's second line (stamp vs % explainer) */
.mm-sledger-note { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin: -0.45rem 0 0.95rem; }
.mm-sledger-note a { color: var(--scarlet-dim); }
/* "show all / show top 10" toggle under the simple rows */
.mm-srow-more { display: block; width: 100%; margin: 0.7rem 0 0; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--scarlet-dim); background: transparent; border: 0.5px dashed var(--border); border-radius: var(--radius-md); padding: 0.6rem; cursor: pointer; transition: color 0.12s, border-color 0.12s; }
.mm-srow-more:hover { color: var(--scarlet); border-color: var(--scarlet); }
/* simple-mode preview: static rows + a probability column */
.mm-pv-row.mm-pv-static { cursor: default; }
.mm-pv-row.mm-pv-static:hover { background: transparent; }
.mm-pv-prob { flex-shrink: 0; width: 38px; text-align: right; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mm-pv-prob.p-hi { color: #0F6E56; } .mm-pv-prob.p-mid { color: #854F0B; } .mm-pv-prob.p-lo { color: var(--scarlet-dim); }

/* ── honest-mirror banner ── */
.mm-mirror { font-size: 12.5px; line-height: 1.6; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--scarlet-pale); color: var(--scarlet-dim); margin-bottom: 1.1rem; border: 0.5px solid #E0B0B8; }
.mm-mirror strong { color: var(--scarlet-deep); }

/* ── results shell ── */
.mm-results-head { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.8rem; }
.mm-rcards { display: flex; flex-direction: column; gap: 12px; }
.mm-avatar { position: relative; overflow: hidden; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #fffaf3; letter-spacing: 0.02em; }
/* headshot overlays the initials; if it fails to load it removes itself and the initials show through */
.mm-avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.mm-card-name { font-size: 15px; font-weight: 700; color: var(--text); }
.mm-card-meta { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

/* ── result card (expandable) ── */
.mm-rcard { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.mm-rcard.open { border-color: var(--scarlet); box-shadow: var(--shadow); }
.mm-rcard-head { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; border: none; font-family: inherit; padding: 0.85rem 1rem 0.7rem; cursor: pointer; text-align: left; }
.mm-rc-id { min-width: 0; flex: 1; }
.mm-rc-score { display: flex; align-items: baseline; gap: 5px; margin-left: auto; flex-shrink: 0; }
.mm-rc-num { font-size: 24px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.mm-rc-den { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.mm-rc-chev { color: var(--text-dim); font-size: 17px; flex-shrink: 0; }
.mm-rc-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 1rem 0.85rem; }
.mm-score-pill { font-size: 10px; font-weight: 700; color: var(--text-muted); background: var(--surface); border: 0.5px solid var(--border); border-radius: 5px; padding: 2px 7px; }
.mm-score-pill b { color: var(--text); }
.mm-score-pill.stretch { background: var(--scarlet-pale); color: var(--scarlet-dim); border-color: #E0B0B8; }
.mm-rc-headline { font-size: 11.5px; font-style: italic; color: var(--text-dim); }

/* ── band badge (shared) ── */
.mm-tier-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #fffaf3; white-space: nowrap; }
.mm-tier-badge.is-exceptional { background: #0F6E56; }
.mm-tier-badge.is-strong { background: #1D9E75; }
.mm-tier-badge.is-promising { background: var(--gold); }
.mm-tier-badge.is-mixed { background: #C08A2E; }
.mm-tier-badge.is-weak { background: var(--scarlet-dim); }
.mm-tier-badge.is-hardno { background: var(--scarlet-deep); }
.mm-tier-badge.is-fair { background: #C08A2E; }
/* simple-mode top tier: best-case landing — dark green, the strongest positive (matches full-mode "exceptional") */
.mm-tier-badge.is-excellent { background: #0F6E56; }

/* ── breakdown body ── */
.mm-bd { border-top: 0.5px solid var(--border); background: var(--card-solid); }
.mm-bd-inner { display: grid; grid-template-columns: 200px 1fr; gap: 0 22px; padding: 1rem 1.1rem 1.1rem; align-items: start; }
@media (max-width: 700px) { .mm-bd-inner { grid-template-columns: 1fr; } }

/* mini pyramid */
.mm-pyramid.mini { display: flex; flex-direction: column; align-items: center; gap: 5px; grid-row: span 2; padding-top: 3px; }
.mm-ptier { width: 100%; border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; display: flex; align-items: center; gap: 6px; box-sizing: border-box; }
.mm-ptier.pt0 { width: 70%; } .mm-ptier.pt1 { width: 85%; } .mm-ptier.pt2 { width: 100%; }
@media (max-width: 700px) { .mm-ptier.pt0, .mm-ptier.pt1, .mm-ptier.pt2 { width: 100%; } }
.mm-ptier.cleared { background: linear-gradient(145deg, var(--scarlet-pale), var(--card-solid)); border-color: #E0B0B8; }
.mm-ptier.strained { background: #FCF3E2; border-color: #E6C98C; }
.mm-ptier.failed { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 7px, #F6E2E4 7px, #F6E2E4 14px); border: 1px dashed var(--scarlet-dim); }
.mm-ptier-kick { font-size: 8.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--scarlet-dim); display: inline-flex; align-items: center; gap: 4px; flex: 1; line-height: 1.2; }
.mm-ptier-warn { color: var(--scarlet); font-size: 12px; }
.mm-ptier.strained .mm-ptier-warn { color: #B07A18; }
.mm-ptier-score { font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mm-ptier-bar { width: 40px; min-width: 24px; height: 5px; background: rgba(0,0,0,0.09); border-radius: 4px; overflow: hidden; flex-shrink: 1; }
.mm-ptier-bar-fill { display: block; height: 100%; background: var(--scarlet); }
.mm-ptier.strained .mm-ptier-bar-fill { background: var(--gold); }
.mm-ptier.failed .mm-ptier-bar-fill { background: var(--scarlet-deep); }

/* tiered factor table */
.mm-bd-table { min-width: 0; }
.mm-bd-tier { display: flex; align-items: center; gap: 8px; margin: 0.7rem 0 0.4rem; padding-bottom: 4px; border-bottom: 0.5px solid var(--border); }
.mm-bd-tier:first-child { margin-top: 0; }
.mm-bd-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mm-bd-dot.s-cleared { background: #1D9E75; } .mm-bd-dot.s-strained { background: var(--gold); } .mm-bd-dot.s-failed { background: var(--scarlet); }
.mm-bd-tname { font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-dim); flex: 1; }
.mm-bd-tavg { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mm-bd-legendline { font-size: 10px; color: var(--text-dim); margin-bottom: 0.5rem; }
.mm-bd-legendline b { color: var(--text-muted); }
.mm-bd-row { display: grid; grid-template-columns: 148px 28px 34px 1fr; gap: 8px; align-items: baseline; padding: 5px 0; }
@media (max-width: 520px) { .mm-bd-row { grid-template-columns: 1fr 28px 34px; } .mm-bd-fc { grid-column: 1 / -1; } }
.mm-bd-fn { font-size: 12px; font-weight: 600; color: var(--text); }
.mm-bd-fs { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.mm-bd-match { font-size: 12px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.mm-bd-match.sc-hi { color: #1D9E75; } .mm-bd-match.sc-mid { color: var(--gold); } .mm-bd-match.sc-lo { color: var(--scarlet-dim); }
.mm-bd-tlbl { font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.mm-bd-fc { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.mm-bd-overall { display: flex; align-items: center; gap: 9px; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.mm-bd-overall span:first-child { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.mm-bd-overall b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }

/* compatibility insights */
.mm-insights { grid-column: 2; margin-top: 0.6rem; }
@media (max-width: 700px) { .mm-insights { grid-column: 1; } }
.mm-block-h2 { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.5rem; }
.mm-block-h2 i { color: var(--scarlet); font-size: 14px; }
.mm-insight { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 3px; }
.mm-insight b { color: var(--text); }
.mm-summary { font-size: 12.5px; color: var(--text); line-height: 1.6; margin: 0.6rem 0 0; padding: 0.6rem 0.75rem; background: var(--scarlet-pale); border-radius: var(--radius-sm); border: 0.5px solid #E0B0B8; }
.mm-summary b { color: var(--scarlet-deep); }

.mm-empty { font-size: 13px; color: var(--text-muted); line-height: 1.7; padding: 1rem; background: var(--surface); border-radius: var(--radius-sm); }
.mm-foot { font-size: 10.5px; color: var(--text-dim); line-height: 1.55; margin-top: 1.2rem; padding-top: 0.9rem; border-top: 0.5px solid var(--border); }
.mm-foot a { color: var(--scarlet-dim); }
.mm-foot strong { color: var(--text-muted); }

/* ── SMV methodology note (collapsible) ── */
.mm-method { margin: 1.3rem 0 0; border: 0.5px solid var(--border); border-radius: var(--radius-sm); background: var(--card); padding: 0 1.1rem; }
.mm-method > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--scarlet-dim); padding: 0.85rem 0; list-style: none; }
.mm-method > summary::-webkit-details-marker { display: none; }
.mm-method > summary::before { content: '\25B8'; margin-right: 7px; font-size: 11px; }
.mm-method[open] > summary::before { content: '\25BE'; }
.mm-method:not([open]) .mm-method-body { display: none; }   /* explicit collapse — don't rely on UA details hiding */
.mm-method-body { font-size: 12px; color: var(--text-muted); line-height: 1.65; padding-bottom: 1rem; }
.mm-method-body p { margin: 0 0 0.6rem; }
.mm-method-body ul { margin: 0.4rem 0 0.7rem; padding-left: 1.1rem; }
.mm-method-body li { margin-bottom: 0.25rem; }
.mm-method-body a { color: var(--scarlet-dim); }
.mm-method-foot { font-size: 11px; color: var(--text-dim); border-top: 0.5px solid var(--border); padding-top: 0.65rem; margin-top: 0.4rem; }

/* ════════════════════════════════════════════════════════════════════ */
/* ── Floating roster-profile widget (minimize/maximize HUD) ──          */
/* ════════════════════════════════════════════════════════════════════ */
.mmw {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 870px;   /* narrow viewports switch to a both-sides anchor below (avoids the 100vw+scrollbar overcount) */
  max-height: min(calc(100vh - 7.5rem), 1600px);   /* clear the 77px sticky nav (z-index 20 < widget 60) with margin */
  display: flex; flex-direction: column;
  background: var(--card); border: 0.5px solid var(--border); border-top: 2px solid var(--scarlet);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px -22px rgba(80, 40, 30, 0.45);
  backdrop-filter: blur(8px);
  transition: max-height .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mmw.is-updating { border-color: var(--scarlet); box-shadow: 0 18px 54px -20px rgba(196, 30, 58, 0.5); }
.mmw-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .85rem; border-bottom: 0.5px solid var(--border); }
.mmw-kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--scarlet); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.mmw-kicker i { font-size: 15px; }
.mmw-toggle { font-family: inherit; width: 26px; height: 26px; flex-shrink: 0; border: 0.5px solid var(--border); background: var(--bg); color: var(--text-dim); border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: all .12s; }
.mmw-toggle:hover { color: var(--scarlet); border-color: var(--scarlet); }

.mmw-bodywrap { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.mmw-controls { padding: .7rem .85rem .55rem; border-bottom: 0.5px solid var(--border); }

/* segmented standard toggle */
.mmw-seg { display: inline-flex; border: 0.5px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--bg); }
.mmw-seg button { font-family: inherit; font-size: 12.5px; padding: .4rem .85rem; border: none; background: transparent; color: var(--text-dim); cursor: pointer; transition: all .12s; white-space: nowrap; }
.mmw-seg button + button { border-left: 0.5px solid var(--border); }
.mmw-seg button.active { background: var(--scarlet); color: #fff; }
.mmw-seg button:hover:not(.active) { color: var(--text); }
.mmw-seg-sub { font-size: 12px; color: var(--text-dim); margin: .4rem 0 0; }

/* the profile card (scrolls only if a profile overflows a short viewport) */
.mmw-card { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.1rem; }
.mmw-card-top { display: flex; align-items: center; gap: .8rem; }
.mmw-av-lg { width: 58px !important; height: 58px !important; font-size: 21px !important; }
.mmw-name { font-family: Georgia, serif; font-size: 22px; color: var(--text); line-height: 1.1; }
.mmw-meta { font-size: 13px; color: var(--text-dim); margin-top: .15rem; }
.mmw-card-pill { margin-left: auto; text-align: right; }
.mmw-pill-lab { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.mmw-pill-std { font-size: 15px; color: var(--scarlet); font-weight: bold; }

/* enlarged hero profile image + photo carousel */
.mmw-hero { display: flex; align-items: center; gap: 1rem; }
.mmw-hero-av { width: 116px !important; height: 116px !important; font-size: 40px !important; }
.mmw-hero-id { min-width: 0; }
.mmw-carousel-wrap { position: relative; margin: .9rem 0 0; }
.mmw-carousel { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: 2px; }
.mmw-carousel::-webkit-scrollbar { display: none; }
.mmw-shot { flex: 0 0 auto; height: 168px; min-width: 96px; max-width: 240px; border-radius: 12px; object-fit: cover; object-position: center center; scroll-snap-align: start; border: 0.5px solid var(--border); background: var(--bg); cursor: zoom-in; }
.mmw-car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0.5px solid var(--border); background: rgba(255,250,243,.92); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; z-index: 2; box-shadow: 0 2px 8px -3px rgba(80,40,30,.4); transition: all .12s; }
.mmw-car-btn:hover { color: var(--scarlet); border-color: var(--scarlet); }
.mmw-car-prev { left: -8px; } .mmw-car-next { right: -8px; }
/* fullscreen lightbox for a tapped carousel shot */
.mmw-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,12,10,.86); display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; cursor: zoom-out; backdrop-filter: blur(3px); }
.mmw-lightbox img { max-width: 100%; max-height: 94vh; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); }
.mmw-blurb { font-size: 14px; line-height: 1.55; color: var(--text); margin: .8rem 0 .9rem; padding-bottom: .9rem; border-bottom: 0.5px solid var(--border); }
.mmw-overall { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mmw-overall-num { font-family: Georgia, serif; font-size: 38px; line-height: 1; }
.mmw-overall-den { font-size: 17px; color: var(--text-dim); }
.mmw-overall-cap { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }

.mmw-tier { margin-bottom: 1rem; }
.mmw-tier-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.mmw-tier-name { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--scarlet-dim); font-weight: bold; }
.mmw-tier-avg { font-size: 11.5px; color: var(--text-dim); margin-left: auto; }
.mmw-factor { padding: .5rem 0; border-top: 0.5px solid var(--border); }
.mmw-factor-row { display: flex; align-items: baseline; gap: .5rem; }
.mmw-factor-name { font-size: 14px; color: var(--text); font-weight: bold; }
.mmw-factor-score { margin-left: auto; font-family: Georgia, serif; font-size: 16px; }
.mmw-bar { height: 5px; border-radius: 999px; background: var(--border); margin: .4rem 0 .35rem; overflow: hidden; }
.mmw-bar > span { display: block; height: 100%; border-radius: 999px; }
.mmw-factor-note { font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.mmw-s-hi { color: #0F6E56; } .mmw-bar-hi > span { background: #0F6E56; }
.mmw-s-mid { color: #C08A2E; } .mmw-bar-mid > span { background: #C08A2E; }
.mmw-s-lo { color: #B5531A; } .mmw-bar-lo > span { background: #B5531A; }
.mmw-empty { padding: 2.4rem 1.2rem; text-align: center; color: var(--text-dim); }
.mmw-empty i { font-size: 30px; color: var(--scarlet); opacity: .65; }
.mmw-empty-h { font-family: Georgia, serif; font-size: 17px; color: var(--text); margin: .6rem 0 .5rem; }
.mmw-empty-sub { font-size: 13px; line-height: 1.55; }
.mmw-foot { margin-top: 1rem; padding-top: .8rem; border-top: 0.5px solid var(--border); font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.mmw-by { margin-top: .5rem; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); opacity: .8; }
.mmw-export { margin-top: 1rem; padding-top: .8rem; border-top: 0.5px solid var(--border); }
.mmw-export-head { font-size: 11.5px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.mmw-export-head i { color: var(--scarlet); }
.mmw-export-sub { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin: .35rem 0 .5rem; }
.mmw-export-sub a { color: var(--scarlet-dim); }
.mmw-export-box { width: 100%; min-height: 46px; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: var(--text-muted); background: var(--card-solid); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 9px; resize: vertical; line-height: 1.45; }
.mmw-export-box:focus { outline: 2px solid var(--scarlet); outline-offset: 1px; }
.mmw-export-actions { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.mmw-export-btn { font-family: inherit; font-size: 12px; font-weight: 700; color: #fffaf3; background: var(--scarlet); border: none; border-radius: var(--radius-sm); padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mmw-export-btn:hover { background: var(--scarlet-dim); }
.mmw-export-status { font-size: 10.5px; color: var(--text-dim); }

/* minimized state — collapse to just the title bar */
.mmw.is-minimized { max-height: none; width: auto; }
.mmw.is-minimized .mmw-bodywrap { display: none; }
.mmw.is-minimized .mmw-top { border-bottom: none; cursor: pointer; }

/* below ~920px the 870 panel no longer fits with margins — span between both edges instead */
@media (max-width: 920px) {
  .mmw:not(.is-minimized) { left: 1rem; right: 1rem; width: auto; }
}
@media (max-width: 560px) {
  .mmw:not(.is-minimized) { left: .6rem; right: .6rem; bottom: .6rem; width: auto; }
  .mmw-card { padding: .85rem; }
  .mmw-card-top { gap: .6rem; }
  .mmw-name { font-size: 20px; }
}
