/* 0150 Money Finder: header tab + NEW badge, preview pop-up, opt-in, unlocked screen.
   Dark by default (the app's default), light under html[data-theme="light"]. Gold is for money only.
   Kyle's layout rule: nothing spills or overlaps at any width; tables wrap or scroll inside their own card. */

.mf-root, .mf-tab-link, .mf-drawer-link, .mf-quick, .mf-video {
    --mf-bg: #0a1120;
    --mf-bg2: #0f1a2e;
    --mf-card: rgba(255, 255, 255, 0.035);
    --mf-line: rgba(148, 163, 184, 0.18);
    --mf-line2: rgba(148, 163, 184, 0.28);
    --mf-text: #e6edf7;
    --mf-muted: #94a3b8;
    --mf-faint: #64748b;
    --mf-blue: #3b82f6;
    --mf-blue2: #60a5fa;
    --mf-gold: #f2c14e;
    --mf-gold-bg: rgba(242, 193, 78, 0.12);
    --mf-green: #34d399;
    --mf-amber: #fbbf24;
    --mf-red: #f87171;
    --mf-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
html[data-theme="light"] .mf-root, html[data-theme="light"] .mf-tab-link,
html[data-theme="light"] .mf-drawer-link, html[data-theme="light"] .mf-quick, html[data-theme="light"] .mf-video {
    --mf-bg: #ffffff;
    --mf-bg2: #f6f8fb;
    --mf-card: #f8fafc;
    --mf-line: #e2e8f0;
    --mf-line2: #cbd5e1;
    --mf-text: #0f172a;
    --mf-muted: #475569;
    --mf-faint: #64748b;
    --mf-blue: #2563eb;
    --mf-blue2: #1d4ed8;
    --mf-gold: #a16207;
    --mf-gold-bg: rgba(202, 138, 4, 0.10);
    --mf-green: #047857;
    --mf-amber: #b45309;
    --mf-red: #b91c1c;
    --mf-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}
.mf-root { color: var(--mf-text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.mf-root *, .mf-root *::before, .mf-root *::after { box-sizing: border-box; }
.mf-ico { flex: none; vertical-align: -1px; }
.mf-root [hidden] { display: none !important; }

/* ---------------- header tab ---------------- */
.mf-tab-link {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: 34px; padding: 0 10px; margin-right: 4px; border-radius: 10px;
    color: inherit; text-decoration: none; white-space: nowrap;
    font-size: 13.5px; font-weight: 600; line-height: 1;
    border: 1px solid transparent; position: relative;
    transition: background-color .15s ease, border-color .15s ease;
}
.mf-tab-link:hover { background: var(--mf-gold-bg); border-color: rgba(242, 193, 78, 0.28); text-decoration: none; }
.mf-tab-link.is-active { background: var(--mf-gold-bg); border-color: rgba(242, 193, 78, 0.35); }
.mf-tab-link .mf-tab-ico { color: var(--mf-gold); }
.mf-tab-link:focus-visible { outline: 2px solid var(--mf-blue2); outline-offset: 2px; }
.mf-new-badge {
    display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 5px;
    background: linear-gradient(180deg, #f6cf62, #e7ad2c); color: #1a1405;
    font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
/* fit levels, set by money-finder.js only when the header runs out of room */
.mf-tab-link.mf-fit-1 { padding: 0 8px; gap: 5px; }
.mf-tab-link.mf-fit-1 .mf-tab-ico { display: none; }
.mf-tab-link.mf-fit-2 { width: 36px; padding: 0; justify-content: center; }
.mf-tab-link.mf-fit-2 .mf-tab-ico { display: block; width: 18px; height: 18px; }
.mf-tab-link.mf-fit-2 .mf-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mf-tab-link.mf-fit-2 .mf-new-badge { position: absolute; top: -5px; right: -7px; height: 13px; padding: 0 3px; font-size: 8px; }
.mf-tab-link.mf-fit-3 { display: none; }
.mf-tab-link.mf-off { display: none; }
.mf-tab-link.mf-tab-phone { margin-right: 6px; }

.mf-drawer-link, .mf-quick { gap: 10px; }
.mf-drawer-link svg, .mf-quick svg { color: var(--mf-gold); }
.mf-drawer-link .mf-new-badge, .mf-quick .mf-new-badge { margin-left: 2px; }

/* ---------------- pop-up ---------------- */
html.mf-lock, html.mf-lock body { overflow: hidden; }
.mf-overlay {
    position: fixed; inset: 0; z-index: 2147482000; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(2, 6, 23, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
html[data-theme="light"] .mf-overlay { background: rgba(15, 23, 42, 0.45); }
.mf-overlay.is-open { display: flex; animation: mfFade .16s ease-out; }
@keyframes mfFade { from { opacity: 0; } to { opacity: 1; } }
.mf-dialog {
    position: relative; width: min(880px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
    overscroll-behavior: contain; border-radius: 18px; outline: none;
    background: radial-gradient(1200px 400px at 10% -10%, rgba(59, 130, 246, 0.14), transparent 60%), var(--mf-bg);
    border: 1px solid var(--mf-line2); box-shadow: var(--mf-shadow);
    animation: mfRise .2s ease-out;
}
@keyframes mfRise { from { transform: translateY(10px); opacity: .6; } to { transform: none; opacity: 1; } }
.mf-x {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    background: var(--mf-card); border: 1px solid var(--mf-line); color: var(--mf-muted);
}
.mf-x:hover { color: var(--mf-text); border-color: var(--mf-line2); }
.mf-x { padding: 0; min-width: 0; box-sizing: border-box; }
.mf-x svg { width: 18px; height: 18px; flex: none; display: block; }
.mf-dialog-body { padding: 26px 28px 28px; }
.mf-loading { display: flex; gap: 8px; justify-content: center; padding: 120px 0; }
.mf-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--mf-blue2); animation: mfDot 1s infinite ease-in-out; }
.mf-loading span:nth-child(2) { animation-delay: .15s; } .mf-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes mfDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }

/* ---------------- preview content ---------------- */
.mf-preview { color: var(--mf-text); }
.mf-pv-head { padding-right: 44px; margin-bottom: 18px; }
.mf-pv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mf-muted); font-weight: 600; }
.mf-new {
    display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
    background: linear-gradient(180deg, #f6cf62, #e7ad2c); color: #1a1405;
    font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.mf-pv-title { margin: 8px 0 6px; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(26px, 4vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: var(--mf-text); }
.mf-pv-sub { margin: 0; max-width: 680px; font-size: 15.5px; line-height: 1.5; color: var(--mf-muted); }
.mf-pv-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 22px; align-items: start; }

/* the example dashboard */
.mf-mock {
    position: relative; min-width: 0; padding: 14px; border-radius: 14px;
    background: linear-gradient(180deg, var(--mf-bg2), var(--mf-bg)); border: 1px solid var(--mf-line2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.mf-mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mf-example {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
    border: 1px dashed var(--mf-amber); color: var(--mf-amber); font-size: 11px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
}
.mf-mock-co { font-size: 12px; color: var(--mf-faint); }
.mf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
    background: var(--mf-card); border: 1px solid var(--mf-line); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.mf-chip em { font-style: normal; font-weight: 500; color: var(--mf-faint); font-size: 11.5px; }
.mf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mf-green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }
.mf-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.mf-kpi { min-width: 0; padding: 10px 12px; border-radius: 11px; background: var(--mf-card); border: 1px solid var(--mf-line); display: flex; flex-direction: column; gap: 3px; }
.mf-kpi-label { font-size: 11.5px; color: var(--mf-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mf-kpi-val { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mf-kpi-sub { font-size: 12px; color: var(--mf-faint); }
.mf-money { color: var(--mf-gold); }
.mf-good { color: var(--mf-green); }
.mf-warn { color: var(--mf-amber); }
.mf-funnel { display: flex; flex-direction: column; gap: 5px; margin: 4px 0 12px; }
.mf-fn {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    height: 26px; padding: 0 10px; border-radius: 8px; overflow: hidden; font-size: 12.5px; min-width: 0;
    background: var(--mf-card); border: 1px solid var(--mf-line);
}
.mf-fn::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.42), rgba(96, 165, 250, 0.18)); border-radius: 7px;
}
.mf-fn.mf-fn--done::before { background: linear-gradient(90deg, rgba(52, 211, 153, 0.45), rgba(52, 211, 153, 0.15)); }
.mf-fn > * { position: relative; }
.mf-fn span { font-weight: 600; }
.mf-fn b { font-variant-numeric: tabular-nums; }
.mf-fn i { font-style: normal; color: var(--mf-muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.mf-live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mf-live-card {
    min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px;
    background: var(--mf-card); border: 1px solid var(--mf-line); border-left: 3px solid var(--mf-blue2); font-size: 12.5px;
}
.mf-live-card strong { font-size: 13.5px; }
.mf-live-card span:last-child { color: var(--mf-muted); }
.mf-live-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--mf-faint); }
.mf-live--deadline { border-left-color: var(--mf-red); }
.mf-live--deadline .mf-live-k { color: var(--mf-red); }
.mf-live--opened { border-left-color: var(--mf-blue2); }
.mf-live--promised { border-left-color: var(--mf-amber); }
.mf-live--paid { border-left-color: var(--mf-green); }
.mf-sample-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px;
    padding: 11px 12px; border-radius: 11px; background: var(--mf-card); border: 1px solid var(--mf-line2);
}
.mf-sr-main { min-width: 0; flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.mf-sr-job { font-size: 11.5px; color: var(--mf-faint); font-weight: 600; }
.mf-sr-title { font-size: 13.5px; line-height: 1.35; }
.mf-sr-money { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; white-space: nowrap; }
.mf-sr-money b { font-size: 16px; }
.mf-sr-fee { color: var(--mf-muted); font-size: 12.5px; }
.mf-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mf-proof-b {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
    background: rgba(148, 163, 184, 0.10); border: 1px solid var(--mf-line); color: var(--mf-muted);
    font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 100%;
}
.mf-proof-b em { font-style: normal; font-weight: 500; color: var(--mf-faint); overflow: hidden; text-overflow: ellipsis; }
.mf-proof-b.is-open { color: var(--mf-green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.mf-proof-note { font-size: 11.5px; color: var(--mf-faint); }

.mf-pv-copy { min-width: 0; }
.mf-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mf-steps li { display: flex; gap: 12px; align-items: flex-start; }
.mf-steps li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mf-steps strong { font-size: 15px; }
.mf-steps span:not(.mf-step-n) { font-size: 14px; line-height: 1.45; color: var(--mf-muted); }
.mf-step-n {
    flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(59, 130, 246, 0.16); color: var(--mf-blue2); font-weight: 800; font-size: 13px;
}
.mf-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mf-extra { padding: 10px 12px; border-radius: 11px; background: var(--mf-card); border: 1px solid var(--mf-line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mf-extra strong { font-size: 13.5px; }
.mf-extra span { font-size: 13px; color: var(--mf-muted); line-height: 1.4; }
.mf-trust, .mf-asked { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 12px; font-size: 13px; color: var(--mf-muted); line-height: 1.45; }
.mf-trust .mf-ico, .mf-asked .mf-ico { color: var(--mf-green); margin-top: 3px; }
.mf-asked { color: var(--mf-text); font-weight: 600; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.mf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 11px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
    border: 1px solid transparent; transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.mf-btn--primary { background: linear-gradient(180deg, #4f8ff8, #2f6fe0); color: #fff; box-shadow: 0 8px 24px rgba(47, 111, 224, 0.35); }
.mf-btn--primary:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.mf-btn--primary:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }
.mf-btn--ghost { background: transparent; color: var(--mf-text); border-color: var(--mf-line2); }
.mf-btn--ghost:hover { border-color: var(--mf-muted); }
.mf-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.mf-btn:focus-visible { outline: 2px solid var(--mf-blue2); outline-offset: 2px; }

/* opt-in form */
.mf-form { max-width: 720px; }
.mf-form-lead { margin: 0 0 14px; color: var(--mf-muted); font-size: 15px; line-height: 1.5; }
.mf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-bottom: 12px; }
.mf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mf-field[hidden] { display: none; }
.mf-field--wide { grid-column: 1 / -1; }
.mf-field > span { font-size: 13px; font-weight: 600; color: var(--mf-muted); }
.mf-field input, .mf-field select {
    width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 16px;
    color: var(--mf-text); background: var(--mf-card); border: 1px solid var(--mf-line2); outline: none;
}
.mf-field select { appearance: auto; }
.mf-field select option { color: #0f172a; background: #fff; }
.mf-field input:focus, .mf-field select:focus { border-color: var(--mf-blue2); box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2); }
.mf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.mf-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--mf-red); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }
.mf-done { text-align: center; padding: 30px 10px 10px; }
.mf-done h3 { margin: 12px 0 6px; font-size: 22px; color: var(--mf-text); }
.mf-done p { margin: 0 0 20px; color: var(--mf-muted); }
.mf-done .mf-actions { justify-content: center; }
.mf-done-ico { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(52, 211, 153, 0.14); color: var(--mf-green); }
.mf-done-ico .mf-ico { width: 26px; height: 26px; }
.mf-preview[data-step="form"] .mf-pv-sub, .mf-preview[data-step="done"] .mf-pv-sub { display: none; }

/* ---------------- pages ---------------- */
html:not([data-theme="light"]) body.mf-page-body {
    background: radial-gradient(1400px 600px at 15% -10%, rgba(37, 99, 235, 0.16), transparent 60%), #05060f;
    color: #e6edf7;
}
html[data-theme="light"] body.mf-page-body { background: #f0f4f8; }
.mf-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }
.mf-page--locked .mf-card {
    padding: 26px 28px 28px; border-radius: 18px; border: 1px solid var(--mf-line2);
    background: radial-gradient(1200px 400px at 10% -10%, rgba(59, 130, 246, 0.12), transparent 60%), var(--mf-bg);
}
.mf-page--locked .mf-pv-head { padding-right: 0; }
/* the support bubble sits bottom-left: keep this page's buttons right-aligned and let the card scroll clear of it */
.mf-page--locked { padding-bottom: 104px; }
.mf-page--locked .mf-actions { justify-content: flex-end; }

.mf-full-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.mf-full-id { min-width: 0; }
.mf-full-title { margin: 8px 0 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.01em; color: var(--mf-text); }
.mf-demo-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px dashed var(--mf-amber); color: var(--mf-amber); font-size: 11.5px; font-weight: 700; }
.mf-kpis--big { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.mf-kpis--big .mf-kpi { padding: 14px 16px; border-radius: 14px; background: var(--mf-bg); }
.mf-kpis--big .mf-kpi-val { font-size: clamp(22px, 2.6vw, 30px); }
.mf-row2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.mf-panel { min-width: 0; padding: 16px; border-radius: 16px; background: var(--mf-bg); border: 1px solid var(--mf-line); }
.mf-panel-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--mf-muted); text-transform: uppercase; letter-spacing: .06em; }
.mf-funnel--full { margin: 0; gap: 8px; }
.mf-funnel--full .mf-fn { height: 38px; font-size: 14px; }
.mf-live--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }

.mf-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: -4px -4px 12px; padding: 4px; scrollbar-width: thin; }
.mf-tab {
    flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px;
    background: transparent; border: 1px solid var(--mf-line); color: var(--mf-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.mf-tab:hover { color: var(--mf-text); border-color: var(--mf-line2); }
.mf-tab.is-active { color: var(--mf-text); background: rgba(59, 130, 246, 0.14); border-color: rgba(96, 165, 250, 0.5); }
.mf-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(148, 163, 184, 0.16); font-size: 12px; font-variant-numeric: tabular-nums; }

.mf-list { display: flex; flex-direction: column; gap: 8px; }
.mf-item {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: start;
    padding: 14px; border-radius: 13px; background: var(--mf-card); border: 1px solid var(--mf-line);
    transition: border-color .15s ease, background-color .15s ease;
}
.mf-item[hidden] { display: none; }
.mf-item.is-picked { border-color: rgba(96, 165, 250, 0.6); background: rgba(59, 130, 246, 0.07); }
.mf-pick { padding-top: 2px; }
.mf-check { width: 22px; height: 22px; accent-color: var(--mf-blue); cursor: pointer; }
.mf-status { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: rgba(96, 165, 250, 0.14); color: var(--mf-blue2); }
.mf-status--promised { background: rgba(251, 191, 36, 0.14); color: var(--mf-amber); }
.mf-status--collected { background: rgba(52, 211, 153, 0.14); color: var(--mf-green); }
.mf-sdot { display: block; width: 12px; height: 12px; margin: 5px 0 0 5px; border-radius: 50%; background: var(--mf-blue2); box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16); }
.mf-sdot--promised { background: var(--mf-amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16); }
.mf-sdot--collected { background: var(--mf-green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }
.mf-item-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mf-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mf-job { font-size: 12.5px; font-weight: 600; color: var(--mf-faint); min-width: 0; }
.mf-label { height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; }
.mf-label--proven { background: rgba(52, 211, 153, 0.12); color: var(--mf-green); }
.mf-label--likely { background: rgba(96, 165, 250, 0.13); color: var(--mf-blue2); }
.mf-label--lead { background: rgba(148, 163, 184, 0.14); color: var(--mf-muted); }
.mf-deadline { height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; background: rgba(251, 191, 36, 0.12); color: var(--mf-amber); }
.mf-deadline.is-hot { background: rgba(248, 113, 113, 0.14); color: var(--mf-red); }
.mf-item-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; cursor: pointer; color: var(--mf-text); }
.mf-why { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--mf-muted); }
.mf-item-money { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; min-width: 150px; }
.mf-collect { font-size: 13px; color: var(--mf-muted); white-space: nowrap; }
.mf-collect b { font-size: 18px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.mf-peryear { font-size: 12px; color: var(--mf-amber); }
.mf-item-act { position: relative; }
.mf-menu { position: relative; }
.mf-menu-panel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; padding: 6px; border-radius: 11px;
    background: var(--mf-bg); border: 1px solid var(--mf-line2); box-shadow: var(--mf-shadow); display: flex; flex-direction: column;
}
.mf-menu-panel[hidden] { display: none; }
.mf-menu-panel button { text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--mf-text); font: inherit; font-size: 14px; cursor: pointer; }
.mf-menu-panel button:hover, .mf-menu-panel button:focus-visible { background: var(--mf-card); outline: none; }
.mf-empty { margin: 8px 0; padding: 20px; text-align: center; color: var(--mf-muted); border: 1px dashed var(--mf-line2); border-radius: 12px; }
.mf-empty[hidden] { display: none; }

.mf-rivals { display: flex; flex-direction: column; border: 1px solid var(--mf-line); border-radius: 13px; overflow: hidden; }
.mf-rivals[hidden] { display: none; }
.mf-rival { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(70px, .7fr) minmax(50px, .5fr) minmax(120px, 1.2fr) minmax(0, 2fr); gap: 12px; padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--mf-line); align-items: center; }
.mf-rival:first-child { border-top: 0; }
.mf-rival--head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mf-faint); background: var(--mf-card); }
.mf-rival-note { color: var(--mf-muted); }

.mf-thrown { margin-top: 12px; border: 1px solid var(--mf-line); border-radius: 12px; padding: 10px 14px; }
.mf-thrown[hidden] { display: none; }
.mf-thrown summary { cursor: pointer; font-weight: 600; color: var(--mf-muted); font-size: 14px; }
.mf-thrown-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mf-thrown-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; }
.mf-thrown-row span { flex: 1 1 200px; min-width: 0; }
.mf-thrown-row em { font-style: normal; color: var(--mf-faint); }

.mf-full { padding-bottom: 24px; }
.mf-end { height: 1px; }
/* fixed, not sticky: body has overflow-x hidden, which breaks position: sticky */
.mf-footer { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 900; padding: 0 16px; pointer-events: none; }
/* keep the support chat bubble above the footer on this page, never on top of it */
body.mf-page-body #supportBubble { bottom: 100px !important; }
/* at the end of the list the bar docks into the page, so it never sits over the site footer */
.mf-footer.is-docked { position: static; padding: 0; margin-top: 16px; }
.mf-footer-in {
    max-width: 1200px; margin: 0 auto; pointer-events: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px 12px 18px; border-radius: 16px;
    background: var(--mf-bg); border: 1px solid var(--mf-line2); box-shadow: var(--mf-shadow);
}
.mf-full.has-picks .mf-footer-in { border-color: rgba(96, 165, 250, 0.6); }
.mf-footer-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; flex: 1 1 260px; min-width: 0; font-size: 14px; color: var(--mf-muted); }
.mf-footer-sum strong { color: var(--mf-text); font-size: 15px; }
.mf-footer-sum b { font-variant-numeric: tabular-nums; }
.mf-footer-sum .mf-money { font-size: 17px; }
.mf-agree { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mf-agree input { width: 20px; height: 20px; accent-color: var(--mf-blue); }
.mf-toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2147482001;
    max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45;
    background: #0f172a; color: #e6edf7; border: 1px solid rgba(148, 163, 184, 0.3); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.mf-toast[hidden] { display: none; }

/* ---------------- 0151: sample packet ---------------- */
.mf-packet-overlay {
    position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(2, 6, 23, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mf-root .mf-packet-overlay[hidden] { display: none !important; }
.mf-packet-dialog {
    width: min(860px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; border-radius: 18px;
    background: var(--mf-bg); border: 1px solid var(--mf-line2); box-shadow: var(--mf-shadow);
}
.mf-packet-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px;
    background: var(--mf-bg); border-bottom: 1px solid var(--mf-line); }
.mf-packet-bar strong { font-size: 16px; }
.mf-packet-sub { color: var(--mf-muted); font-size: 13px; min-width: 0; }
.mf-packet-x { position: static; margin-left: auto; flex: none; }
.mf-packet-body { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: start; }
.mf-paper {
    position: relative; overflow: hidden; background: #ffffff; color: #0f172a; border-radius: 10px; padding: 28px 30px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 14px; line-height: 1.5;
}
.mf-paper-sample { position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: #fef3c7; color: #92400e;
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 40px; }
.mf-paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid #0f172a; }
.mf-paper-co { font-family: "Space Grotesk", Inter, sans-serif; font-size: 20px; font-weight: 700; }
.mf-paper-kind { color: #475569; font-weight: 600; }
.mf-paper-amt { text-align: right; padding-right: 24px; }
.mf-paper-amt span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; font-weight: 700; }
.mf-paper-amt b { font-size: 24px; font-variant-numeric: tabular-nums; }
.mf-paper-meta { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 12px; margin: 14px 0; }
.mf-paper-meta dt { color: #64748b; font-weight: 600; }
.mf-paper-meta dd { margin: 0; }
.mf-paper-ask { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #f1f5f9; font-weight: 600; }
.mf-paper-proof { padding: 12px 0; border-top: 1px solid #e2e8f0; }
.mf-paper-proof-k { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.mf-paper-n { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: #0f172a; color: #fff; font-size: 12px; }
.mf-paper-proof blockquote { margin: 0 0 4px; padding-left: 12px; border-left: 3px solid #f2c14e; font-style: italic; }
.mf-paper-proof mark { background: #fef08a; color: inherit; padding: 0 2px; }
.mf-paper-proof cite { font-style: normal; font-size: 12.5px; color: #64748b; }
.mf-paper-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 12.5px; color: #475569; }
.mf-packet-track { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; }
.mf-packet-track li { position: relative; padding: 0 0 18px 22px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.mf-packet-track li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--mf-blue2); }
.mf-packet-track li::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--mf-line2); }
.mf-packet-track li.is-last::after { display: none; }
.mf-packet-track li.is-last::before { background: var(--mf-green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.mf-packet-track b { color: var(--mf-text); }
.mf-packet-track span { color: var(--mf-muted); font-size: 12.5px; }

/* ---------------- 0153: demo video ---------------- */
.mf-video { margin: 0; min-width: 0; }
.mf-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
    border: 1px solid var(--mf-line2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.mf-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mf-video-play {
    /* below the poster's title and tagline, above the controls bar */
    position: absolute; left: 50%; top: 77%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px 14px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer; white-space: nowrap;
    background: rgba(10, 17, 32, 0.82); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
    transition: transform .15s ease, background-color .15s ease;
}
.mf-video-play:hover { background: rgba(15, 26, 46, 0.92); transform: translate(-50%, -50%) scale(1.04); }
.mf-video-play:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.mf-video-play svg { color: #f6cf62; flex: none; }
.mf-video.is-started .mf-video-play { display: none; }
.mf-video figcaption { margin-top: 8px; font-size: 12.5px; text-align: center; color: var(--mf-faint); }
.mf-pv-body--video { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mf-pv-body--video .mf-pv-copy { order: 0; }   /* video first at every width (0150 put the copy first on narrow screens) */
.mf-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.mf-points li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.5; color: var(--mf-muted); min-width: 0; }
.mf-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--mf-gold); }
.mf-points strong { color: var(--mf-text); }
.mf-page--locked .mf-card { max-width: 920px; margin: 0 auto; }

/* ---------------- widths ---------------- */
@media (max-width: 1024px) {
    .mf-kpis--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .mf-pv-body { grid-template-columns: minmax(0, 1fr); }
    .mf-pv-copy { order: -1; }
    .mf-row2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .mf-item { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "pick main" "pick money" "pick act"; }
    .mf-pick { grid-area: pick; }
    .mf-item-main { grid-area: main; }
    .mf-item-money { grid-area: money; align-items: flex-start; text-align: left; min-width: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
    .mf-item-act { grid-area: act; }
    .mf-menu-panel { left: 0; right: auto; }
    .mf-rival--head { display: none; }
    .mf-rival { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; }
    .mf-rival strong { grid-column: 1 / -1; font-size: 15px; }
    .mf-rival span[data-k]::before { content: attr(data-k) ": "; color: var(--mf-faint); }
    .mf-rival-note { grid-column: 1 / -1; }
    .mf-item-top .mf-job { flex-basis: 100%; }
}
@media (max-width: 760px) {
    .mf-packet-body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
    .mf-paper { padding: 22px 18px 18px; }
}
@media (max-width: 640px) {
    .mf-points { grid-template-columns: minmax(0, 1fr); }
    .mf-video-play { padding: 11px 18px 11px 14px; font-size: 15px; }
    .mf-packet-overlay { padding: 0; }
    .mf-packet-dialog { max-height: none; height: 100dvh; border-radius: 0; border: 0; }
    .mf-overlay { padding: 0; align-items: stretch; }
    .mf-dialog { width: 100%; max-height: none; height: 100dvh; border-radius: 0; border: 0; }
    .mf-dialog-body { padding: 20px 16px 28px; }
    .mf-x { top: 10px; right: 10px; }
    .mf-fields { grid-template-columns: minmax(0, 1fr); }
    .mf-live { grid-template-columns: minmax(0, 1fr); }
    .mf-extras { grid-template-columns: minmax(0, 1fr); }
    .mf-sr-money { align-items: flex-start; }
    .mf-page { padding: 16px 12px 32px; }
    .mf-page--locked .mf-card { padding: 20px 16px; border-radius: 14px; }
    .mf-actions .mf-btn { flex: 1 1 auto; }
    .mf-footer { bottom: 8px; padding: 0 8px; }
    .mf-footer.is-docked { padding: 0; }
    body.mf-page-body #supportBubble { bottom: 168px !important; }
    .mf-footer-in { padding: 12px; gap: 10px; }
    .mf-footer-in .mf-btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
    .mf-kpi-val { font-size: 19px; }
    .mf-kpis--big .mf-kpi { padding: 12px; }
    .mf-kpis--big .mf-kpi-val { font-size: 20px; }
    .mf-kpi-label { font-size: 10.5px; }
    .mf-chip { height: 26px; padding: 0 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .mf-overlay.is-open, .mf-dialog { animation: none; }
}
