/* ── Mentum Member Portal v4.9.1 ──────────────────────────────────────────── */

/* Base shell */
.mentum-member-shell{color:#F9FAFB}
.mentum-kicker{color:#22C55E;letter-spacing:.18em;font-size:12px;font-weight:700;margin-bottom:12px;text-transform:uppercase}

/* Hero */
.mentum-member-hero{border:1px solid #374151;border-radius:20px;padding:30px 32px;background:#111827;border-color:#374151;box-shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.4);margin-bottom:22px;max-width:1280px;margin-left:auto;margin-right:auto}
.mentum-member-hero h1{margin:0 0 12px;font-size:52px;line-height:1.02;letter-spacing:-.03em;color:#F9FAFB}
.mentum-member-hero p{margin:0;max-width:900px;font-size:20px;line-height:1.58;color:#94A3B8}

/* Nav */
.mentum-member-nav,.mentum-grid.metrics,.mentum-two-col,.mentum-grid.signals,.mentum-grid.recap,.alerts-grid,.mentum-section-head,.watchlist-row{max-width:1280px;margin-left:auto!important;margin-right:auto!important}
.mentum-member-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:10px;margin-bottom:22px;padding-bottom:4px}
.mentum-member-nav::-webkit-scrollbar{display:none}
.mentum-nav-pill{display:inline-flex;align-items:center;padding:10px 20px;border:1px solid #374151;border-radius:999px;background:#111827;color:#CBD5E1;text-decoration:none;font-weight:700;font-size:14px;transition:background .15s,border-color .15s,color .15s;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.mentum-nav-pill:hover{background:#0F172A;border-color:#4B5563;color:#F9FAFB}
.mentum-nav-pill.active{background:rgba(34,197,94,.12);color:#22C55E;border-color:rgba(34,197,94,.3)}

/* Metrics grid */
.mentum-grid.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.metrics-compact .metric-value{font-size:22px}
.compact-metric .metric-value{white-space:nowrap}

/* Panels, metrics, signal cards */
.mentum-metric,.mentum-panel,.mentum-signal-card{border:1px solid #374151;border-radius:16px;background:#111827;padding:20px 22px;color:#F9FAFB;box-shadow:0 1px 2px rgba(0,0,0,.3),0 3px 10px rgba(0,0,0,.4)}
/* Lock card background on all link states — prevents browser default blue hover */
a.mentum-signal-card,
a.mentum-signal-card:link,
a.mentum-signal-card:visited,
a.mentum-signal-card:hover,
a.mentum-signal-card:active,
a.mentum-signal-card:focus,
a.mentum-signal-card.card-tappable,
a.mentum-signal-card.watchlist-card,
a.mentum-signal-card.card-tappable:link,
a.mentum-signal-card.card-tappable:visited,
a.mentum-signal-card.card-tappable:hover,
a.mentum-signal-card.card-tappable:active,
a.mentum-signal-card.card-tappable:focus,
a.mentum-signal-card.watchlist-card:link,
a.mentum-signal-card.watchlist-card:visited,
a.mentum-signal-card.watchlist-card:hover,
a.mentum-signal-card.watchlist-card:active,
a.mentum-signal-card.watchlist-card:focus{background:#111827!important;color:#F9FAFB!important;text-decoration:none!important}
a.mentum-signal-card.card-tappable:hover,
a.mentum-signal-card.watchlist-card:hover{background:#0F172A!important;border-color:#4B5563!important;transform:translateY(-1px);box-shadow:0 4px 16px rgba(0,0,0,.07)!important}
a.mentum-signal-card:focus-visible{outline:2px solid rgba(15,167,106,.5);outline-offset:2px}
.metric-label{font-size:13px;color:#94A3B8;margin-bottom:8px}
.metric-value{font-size:24px;font-weight:800;color:#F9FAFB;line-height:1.1;overflow-wrap:anywhere}
/* Last Ingest status row — full-width beneath the 3 compact metric cards */
.radar-last-ingest{margin-top:14px;padding-top:12px;border-top:1px solid #374151}
.radar-last-ingest .li-label{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94A3B8;margin-bottom:4px}
.radar-last-ingest .li-value{display:block;font-size:20px;font-weight:800;color:#F9FAFB;line-height:1.1}

/* Radar coverage panel: 3 equal-width cards, full available width */
.radar-coverage-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:0}

/* Two-col layouts */
.mentum-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.mentum-panel h3,.mentum-section-head h2{font-size:20px;margin:0 0 12px;color:#F9FAFB}
.mentum-panel p,.mentum-panel li{color:#CBD5E1;font-size:17px;line-height:1.7}
.mentum-panel ul,.mentum-panel ol{margin:0;padding-left:20px}
.mentum-panel a{color:#22C55E;text-decoration:none;font-weight:700}

/* Section head */
.mentum-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px auto 14px}
.mentum-count-pill{display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;background:rgba(34,197,94,.12);color:#22C55E;font-size:12px;font-weight:700;border:1px solid rgba(34,197,94,.25)}

/* Signal cards grid */
.mentum-grid.signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}
/* signal-head retired — replaced by m20-card-head */
.ticker{font-size:32px;font-weight:800;color:#F9FAFB;line-height:1;margin-bottom:6px}
.label{font-size:14px;font-weight:600;color:#CBD5E1}  /* legacy — cards now use m20-type-chip */
/* confidence-badge — legacy (watchlist/radar use m20-conf now) */
/* radar-nar-pill on radar alert cards */
.radar-nar-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: #0F172A;
  border: 1px solid #374151;
  white-space: nowrap;
  flex-shrink: 0;
}
.stats-line{display:flex;flex-wrap:wrap;gap:6px 10px;color:#94A3B8;font-size:13px;margin-bottom:8px;align-items:center}  /* radar cards only */
.summary{color:#CBD5E1;font-size:14px;line-height:1.6;margin:0 0 14px;min-height:unset}
.signal-link{color:#22C55E;text-decoration:none;font-weight:700;font-size:14px}

/* ── IQ Layer surface ─────────────────────────────────────────────────────── */

/* IQ rank badge on cards */
.iq-rank-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:5px;background:#1F2937;color:#94A3B8;font-size:10px;font-weight:700;letter-spacing:.03em;border:1px solid #374151}

/* IQ score inline in stats-line */
.iq-score-inline{color:#22C55E;font-weight:700}

/* IQ tag strip */
.iq-tag-strip{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.iq-tag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em}
.iq-tag.surge{background:#FEF3C7;color:#92400E;border:1px solid #FCD34D}
.iq-tag.rotate-in{background:rgba(34,197,94,.12);color:#22C55E;border:1px solid rgba(34,197,94,.22)}
.iq-tag.rotate-out{background:#FEF2F2;color:#B91C1C;border:1px solid rgba(185,28,28,.2)}
.iq-tag.quality{background:rgba(34,197,94,.12);color:#22C55E;border:1px solid rgba(34,197,94,.2)}
.iq-tag.decayed{background:#1F2937;color:#94A3B8;border:1px solid #374151}
.iq-tag.extra{background:#1F2937;color:#94A3B8;border:1px solid #374151}

/* IQ pillar bar chart */
.iq-pillars{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #374151}
.iq-pillar{display:flex;flex-direction:column;gap:5px}
.iq-pillar-label{font-size:10px;color:#94A3B8;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.iq-pillar-bar{height:5px;border-radius:3px;background:#374151;overflow:hidden}
.iq-pillar-fill{height:100%;border-radius:3px;background:#22C55E;transition:width .4s ease}
.iq-pillar-pct{font-size:10px;color:#22C55E;font-weight:700}

/* Detail page pillars — taller bars */
.detail-pillars{margin-bottom:22px}
.detail-pillars .pillar-sub{font-size:14px;color:#6B7D77;margin:-4px 0 16px}
.detail-pillars-bars{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.detail-pillars-bars .iq-pillar-label{font-size:12px}
.detail-pillars-bars .iq-pillar-bar{height:10px}
.detail-pillars-bars .iq-pillar-pct{font-size:12px}

/* IQ rank on detail page */
.detail-iq-rank{display:inline-flex;align-items:center;padding:5px 14px;border-radius:999px;background:rgba(34,197,94,.12);color:#22C55E;font-size:13px;font-weight:800;letter-spacing:.06em;margin-bottom:10px;border:1px solid rgba(34,197,94,.2)}

/* ── Sector rotation strip on dashboard ───────────────────────────────────── */
.mentum-rotation-strip{display:flex;flex-wrap:wrap;gap:12px;align-items:center;max-width:1280px;margin:0 auto 18px;padding:12px 18px;border-radius:14px;background:#0F172A;border:1px solid #374151}
.rotation-in{color:#22C55E;font-weight:700;font-size:14px}
.rotation-out{color:#B91C1C;font-weight:700;font-size:14px}

/* ── Lock screen — premium SaaS design ───────────────────────────────────── */
.mlock-wrap{max-width:1100px;margin:48px auto;background:#fff;border-radius:24px;box-shadow:0 2px 4px rgba(0,0,0,.04),0 12px 40px rgba(0,0,0,.08),0 1px 0 rgba(0,0,0,.06);overflow:hidden}
.mlock-accent{height:3px;background:linear-gradient(90deg,#16C47F 0%,#33D17A 60%,#7EF0C3 100%)}
.mlock-body{padding:64px 72px 72px}
.mlock-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:24px}
.mlock-kicker-dot{width:6px;height:6px;border-radius:50%;background:#16C47F;flex-shrink:0}
.mlock-kicker-text{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#16C47F}
.mlock-headline{font-size:48px;line-height:1.06;letter-spacing:-.025em;color:#111827;margin-bottom:18px;font-weight:700}
.mlock-subtext{font-size:18px;line-height:1.65;color:#6b7280;max-width:560px;margin-bottom:40px}
.mlock-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:52px}
.mlock-btn-primary{display:inline-flex;align-items:center;gap:9px;padding:15px 30px;background:#16C47F;color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;letter-spacing:-.01em;transition:background .15s,transform .1s}
.mlock-btn-primary:hover{background:#119E74;transform:translateY(-1px);color:#fff}
.mlock-btn-primary:active{transform:translateY(0)}
.mlock-btn-arrow{width:16px;height:16px;flex-shrink:0;transition:transform .15s}
.mlock-btn-primary:hover .mlock-btn-arrow{transform:translateX(3px)}
.mlock-btn-outline{display:inline-flex;align-items:center;padding:15px 28px;background:transparent;color:#374151;border:1.5px solid #d1d5db;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;letter-spacing:-.01em;transition:border-color .15s,background .15s,transform .1s}
.mlock-btn-outline:hover{border-color:#4B5563;background:#1F2937;transform:translateY(-1px);color:#F9FAFB}
.mlock-btn-outline:active{transform:translateY(0)}
.mlock-divider{width:100%;height:1px;background:#f0f1f3;margin-bottom:44px}
.mlock-features-label{font-size:11px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:#9ca3af;margin-bottom:24px}
.mlock-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.mlock-feature-card{border:1px solid #f0f1f3;border-radius:16px;padding:26px 22px;background:#fafafa;transition:border-color .15s,box-shadow .15s}
.mlock-feature-card:hover{border-color:#e5e7eb;box-shadow:0 4px 16px rgba(0,0,0,.05)}
.mlock-feature-icon{width:36px;height:36px;border-radius:10px;background:#eff4ff;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.mlock-feature-icon svg{width:18px;height:18px}
.mlock-feature-title{font-size:15px;font-weight:700;color:#111827;margin-bottom:8px;letter-spacing:-.01em}
.mlock-feature-desc{font-size:14px;line-height:1.6;color:#6b7280}
.mlock-trust{margin-top:44px;padding-top:28px;border-top:1px solid #f0f1f3;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.mlock-trust-item{display:flex;align-items:center;gap:7px;font-size:13px;color:#9ca3af}
.mlock-trust-check{width:16px;height:16px;border-radius:50%;background:#ecfdf5;display:flex;align-items:center;justify-content:center;flex-shrink:0}
@media(max-width:800px){
  .mlock-body{padding:40px 28px 48px}
  .mlock-headline{font-size:32px}
  .mlock-subtext{font-size:16px}
  .mlock-features-grid{grid-template-columns:1fr}
  .mlock-actions{flex-direction:column}
  .mlock-btn-primary,.mlock-btn-outline{width:100%;justify-content:center}
  .mlock-trust{gap:14px}
}

/* ── Watchlists ───────────────────────────────────────────────────────────── */
.watchlists-head{margin-top:26px}
.watchlist-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,360px));gap:18px;margin-bottom:22px;justify-content:flex-start}
.watchlist-card .summary{min-height:80px}
/* Homepage Early Narrative cards — no minimum height, content determines height */
.movers-grid .mentum-signal-card .summary{min-height:unset}
.signal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #374151;margin-top:auto}
.signal-change{color:#22C55E;font-weight:700;font-size:14px}
.empty-bucket{max-width:1280px;margin:0 auto 10px}

/* ── Signal detail ────────────────────────────────────────────────────────── */
.detail-top .detail-ticker{font-size:52px;font-weight:800;color:#F9FAFB;line-height:1;margin-bottom:8px}
.detail-top .detail-label{font-size:20px;font-weight:700;color:#CBD5E1;margin-bottom:14px}
.detail-top .detail-reason{font-size:19px;line-height:1.7;color:#CBD5E1;margin:0 0 14px}
.detail-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.detail-meta-box{border:1px solid #374151;border-radius:14px;padding:14px 12px;background:#0F172A}
.detail-meta-box span{display:block;font-size:12px;color:#94A3B8;margin-bottom:6px}
.detail-meta-box strong{display:block;font-size:20px;line-height:1.2;color:#F9FAFB;overflow-wrap:anywhere}

/* ── Headlines / recap ────────────────────────────────────────────────────── */
.headline-panel p{margin:8px 0 10px}
.headline-meta,.empty-meta{color:#94A3B8;font-size:12px;line-height:1.6}
.dashboard-intro .headline-row{display:flex;gap:14px;padding:11px 0;border-top:1px solid #374151}
.dashboard-intro .headline-row:first-of-type{border-top:none;padding-top:0}
.dashboard-intro .headline-row strong{flex-shrink:0;color:#F9FAFB}
.mentum-grid.recap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.dashboard-bottom .mentum-panel{min-height:100%}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alerts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}
.alert-card .alert-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.alert-type,.alert-pill{display:inline-flex;align-items:center;padding:6px 13px;border-radius:999px;font-size:12px;font-weight:700}
.alert-type{background:#1F2937;color:#94A3B8;border:1px solid #374151}
.alert-pill{background:#1F2937;color:#CBD5E1}
.alert-capture-row{margin-top:6px}

/* Role-aware alert form */
.alert-form-panel .mentum-alert-form{display:block}
.mentum-field-label{display:block;color:#CBD5E1;font-weight:700;margin-bottom:9px;font-size:15px}
.mentum-text-input{width:100%;padding:13px 15px;border-radius:14px;border:1px solid #374151;background:#0F172A;color:#F9FAFB;margin-bottom:14px;font-size:15px;box-sizing:border-box}
.mentum-checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.mentum-check-card{display:flex;gap:11px;align-items:flex-start;padding:13px;border:1px solid #374151;border-radius:14px;background:#0F172A;cursor:pointer}
.mentum-check-card.locked{opacity:.55;cursor:default}
.mentum-check-card strong{display:block;font-size:14px;color:#F9FAFB}
.alert-upgrade-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:rgba(245,158,11,.13);color:#FCD34D;font-size:10px;font-weight:700;margin-left:6px}
.alert-context-note{border-radius:12px;padding:11px 14px;font-size:14px;margin-bottom:16px!important;border:1px solid transparent}
.alert-context-note.guest{background:#0F172A;border-color:#374151;color:#94A3B8}
.alert-context-note.free{background:#EAF7F1;border-color:rgba(15,167,106,.25);color:#0FA76A}
.alert-context-note.paid{background:#EAF7F1;border-color:rgba(15,167,106,.25);color:#0FA76A}
.mentum-save-button{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border:none;border-radius:14px;background:#16C47F;color:#fff;font-weight:700;cursor:pointer;font-size:15px}

/* Success banner */
.mentum-success-banner{max-width:1280px;margin:0 auto 16px;padding:13px 16px;border-radius:14px;background:rgba(34,197,94,.13);border:1px solid rgba(34,197,94,.28);color:#dcfce7;font-weight:700}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media(max-width:1100px){.mentum-grid.signals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){
  .mentum-member-hero h1,.mentum-lock-shell h1{font-size:36px}
  .mentum-member-hero p,.mentum-lock-shell p{font-size:17px}
  .mentum-grid.metrics,.mentum-two-col,.mentum-grid.signals,.mentum-grid.recap,.alerts-grid,.detail-meta-grid,.watchlist-row,.mentum-checkbox-grid,.mentum-lock-grid,.mentum-lock-preview-grid{grid-template-columns:1fr}
  .mentum-section-head{flex-direction:column;align-items:flex-start}
  .iq-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}
  .metrics-compact .metric-value,.compact-metric .metric-value{white-space:normal}
}
@media(max-width:600px){
  .mentum-lock-shell{padding:28px 20px}
  .mentum-member-hero{padding:24px 20px}
  .iq-pillars,.detail-pillars-bars{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── Free-subscriber limited-access wall (v4.9.3) ───────────────────────────── */

/* Status chip — "Signed in as X" */
.mfree-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: #166534;
    font-weight: 500;
    margin-bottom: 22px;
}

.mfree-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.mfree-status-chip strong {
    font-weight: 700;
    color: #14532d;
}

/* Subtext with inline strong */
.mlock-subtext strong {
    color: #111827;
    font-weight: 700;
}

/* Pro unlock bullet list */
.mfree-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
}

.mfree-bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

.mfree-bullet-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eff4ff;
    border: 1px solid #c7d7fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Accent variant — slightly different left-border tint for free wall */
.mfree-wrap .mlock-accent {
    background: linear-gradient(90deg, #16C47F 0%, #33D17A 100%);
}

@media (max-width: 800px) {
    .mfree-status-chip { font-size: 12px; }
    .mfree-bullets { gap: 10px; }
    .mfree-bullet { font-size: 14px; }
}

/* ── Registration page — Start Free (v5.0.1) ─────────────────────────────── */

/* Page body set by blank template — handled in mentum-blank.php */

/* Card wrapper */
.mreg-wrap {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 48px rgba(0,0,0,.10);
    overflow: hidden;
}

.mreg-body {
    padding: 48px 44px 52px;
}

/* Heading */
.mlock-headline {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.06;
}

.mlock-subtext {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 28px;
}

/* ── Form layout ──────────────────────────────────────────────────────────── */

.mreg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mreg-row {
    display: grid;
    gap: 12px;
}

.mreg-row-two {
    grid-template-columns: 1fr 1fr;
}

/* ── Fields ───────────────────────────────────────────────────────────────── */

.mreg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mreg-field-full {
    grid-column: 1 / -1;
}

.mreg-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    letter-spacing: .02em;
    text-transform: none;
}

/* Normal input */
.mreg-input {
    padding: 11px 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, background .15s, box-shadow .15s;
    outline: none;
    -webkit-appearance: none;
}

.mreg-input:focus {
    border-color: #16C47F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22,196,127,.14);
}

/* ── Error state ──────────────────────────────────────────────────────────── */

/* Field wrapper in error state — BEM double-dash */
.mreg-field--error .mreg-label {
    color: #ff4d4f;
}

.mreg-field--error .mreg-input {
    border-color: #ff4d4f;
    background: rgba(255, 77, 79, 0.04);
    box-shadow: none;
}

.mreg-field--error .mreg-input:focus {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.14);
}

/* Inline error message below input */
.mreg-error-msg {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: #ff4d4f;
    margin-top: 2px;
    line-height: 1.4;
}

.mreg-error-msg a {
    color: #16C47F;
    font-weight: 600;
    text-decoration: underline;
}

/* General / banner error */
.mreg-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,77,79,.06);
    border: 1.5px solid rgba(255,77,79,.28);
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #c0392b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Submit button ────────────────────────────────────────────────────────── */

.mreg-submit {
    width: 100%;
    padding: 14px;
    background: #16C47F;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -.01em;
    transition: background .15s, transform .1s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mreg-submit:hover {
    background: #119E74;
    transform: translateY(-1px);
}

.mreg-submit:active {
    transform: translateY(0);
}

/* ── Secondary link ───────────────────────────────────────────────────────── */

.mreg-signin-link {
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
    margin: 18px 0 0;
}

.mreg-signin-link a {
    color: #16C47F;
    font-weight: 600;
    text-decoration: none;
}

.mreg-signin-link a:hover {
    text-decoration: underline;
}

/* ── Benefit bullets (reuse mfree-bullets from free wall) ─────────────────── */
/* mfree-bullets / mfree-bullet / mfree-bullet-check already defined above */

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .mreg-wrap { border-radius: 0; box-shadow: none; }
    .mreg-body { padding: 32px 22px 36px; }
    .mreg-row-two { grid-template-columns: 1fr; }
    .mlock-headline { font-size: 28px; }
}

/* ── v5.2 Confidence + Explainability ───────────────────────────────────────── */

/* Signal card: confidence reasons strip */
.card-conf-reasons {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 7px 0 5px;
}
.ccr-item {
    font-size: 12px;
    color: #9EADA8;
    line-height: 1.4;
    padding-left: 11px;
    position: relative;
}
.ccr-item::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #16C47F;
    font-weight: 700;
}

/* Signal detail: confidence header bar */
.detail-conf-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    padding: 13px 18px;
    margin-bottom: 18px;
}
.dcb-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.dcb-score {
    font-size: 13px;
    color: #6B7D77;
    font-weight: 600;
}
.dcb-drivers {
    font-size: 13px;
    color: #6B7D77;
}

/* Explainability section headings */
.explain-head {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: #9EADA8;
}
.explain-strength { color: #22c55e; }
.explain-weakness { color: #f59e0b; }

/* Explainability lists */
.explain-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.explain-list li {
    font-size: 14px;
    color: #C4CEC9;
    line-height: 1.5;
}
.explain-empty {
    font-size: 13px;
    color: #6B7D77;
    margin: 0;
    font-style: italic;
}

/* Weekly recap: WHY #1 panel */
.recap-top-why {
    margin-bottom: 18px;
    border-left: 3px solid #16C47F !important;
}
.recap-why-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.recap-why-ticker {
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -.02em;
}
.recap-why-rank {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.06);
    color: #9EADA8;
    border-radius: 999px;
    padding: 3px 10px;
}
.recap-why-label {
    font-size: 13px;
    font-weight: 700;
}
.recap-why-intro {
    font-size: 11px;
    color: #6B7D77;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.recap-why-list {
    margin: 0 0 10px;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.recap-why-list li {
    font-size: 14px;
    color: #C4CEC9;
    line-height: 1.5;
}
.recap-why-drivers {
    font-size: 13px;
    color: #6B7D77;
    margin: 0;
}

/* ── Radar Alerts page ────────────────────────────────────────────────────── */

/* Stage badges — scoped to radar-stage-* variants */
.radar-stage-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:6px;white-space:nowrap;margin-top:5px;letter-spacing:.02em}
.radar-stage-spike{background:#FEF3C7;color:#92400E;border:1px solid rgba(180,83,9,.3)}
.radar-stage-breakout{background:#DCFCE7;color:#166534;border:1px solid rgba(22,163,74,.25)}
.radar-stage-confirming{background:#CCFBF1;color:#115E59;border:1px solid rgba(20,184,166,.35)}
.radar-stage-forming{background:#EDE9FE;color:#4C1D95;border:1px solid rgba(109,40,217,.25)}
.radar-stage-watch{background:#1F2937;color:#CBD5E1;border:1px solid #4B5563}

/* Narrative pill — accent text only, no background */
.radar-nar-pill{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;align-self:flex-start;white-space:nowrap}

/* Alert card — narrative pill replaces confidence-badge, inherits all watchlist-card styles */

/* Snapshot table — inherits panel padding, overrides table internals only */
.radar-snapshot-table{padding:0;overflow:hidden;margin-bottom:0}
.radar-snapshot-table table{width:100%;border-collapse:collapse;font-size:14px}
.radar-snapshot-table thead tr{border-bottom:1px solid #374151}
.radar-snapshot-table th{padding:11px 16px;text-align:left;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6B7D77;white-space:nowrap}
.radar-snapshot-table td{padding:11px 16px;border-bottom:1px solid #374151;vertical-align:middle}
.radar-snapshot-table tbody tr.alt td{background:#0F172A}
.radar-snapshot-table tbody tr:last-child td{border-bottom:none}
.radar-snapshot-table .rt-ticker{font-weight:700;color:#F9FAFB}
.radar-snapshot-table .rt-ticker a{color:#F9FAFB;text-decoration:none}
.radar-snapshot-table .rt-ticker a:hover{color:#16C47F}
.radar-snapshot-table .rt-num{font-variant-numeric:tabular-nums;color:#F9FAFB}
.radar-snapshot-table .rt-muted{color:#94A3B8}
.radar-snapshot-table .rt-meta{color:#6B7D77;font-size:12px;white-space:nowrap}

/* Responsive: collapse table on small screens */
@media(max-width:960px){.radar-snapshot-table{overflow-x:auto}}

/* ── Price range filter chips (Under $10 · $10 - $14 · $15 - $20) ──────── */

.mentum-price-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  padding: 3px;
}

.mpf-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #6B7D77;
  text-decoration: none;
  transition: background .13s, color .13s;
  white-space: nowrap;
}
.mpf-chip:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,.06);
}
.mpf-chip.mpf-active {
  background: rgba(22,196,127,.12);
  color: #5ECFA4;
  border: 1px solid rgba(22,196,127,.26);
}

/* Filter empty state */
.mentum-filter-empty {
  text-align: center;
  padding: 2.4rem 1.8rem !important;
}
.filter-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 .5rem !important;
}
.filter-empty-body {
  font-size: .88rem;
  color: #6B7D77;
  margin: 0 !important;
  line-height: 1.6;
}
.filter-empty-body a {
  color: #16C47F;
  font-weight: 600;
  text-decoration: none;
}
.filter-empty-body a:hover { color: #7EF0C3; }

/* ═══════════════════════════════════════════════════════════════════════════
   MENTUM20 DASHBOARD — Command Center (premium 3-slot)
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD: Top 3 Cards — separate panel layout
   Replaces the single shared .m20-command-center grid with three
   independent cards in a flex row. All inner .m20-slot-* classes preserved.
   ═══════════════════════════════════════════════════════════════════════════ */

.m20-top-cards {
  max-width: 1280px;
  margin: 0 auto 12px;
}

/* Three cards in a row */
.m20-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

/* Each independent card */
.m20-top-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border-radius: 18px;
  border: 1px solid #374151;
  position: relative;
  transition: background .2s, border-color .2s, transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 6px 20px rgba(0,0,0,.3);
  min-height: 200px;
}
.m20-top-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.4);
}

/* Per-card ambient backgrounds — distinct identity */
.m20-top-card--confirmed {
  background: linear-gradient(160deg, rgba(34,197,94,.07) 0%, #111827 60%);
  border-color: rgba(34,197,94,.2);
}
.m20-top-card--confirmed:hover {
  background: linear-gradient(160deg, rgba(34,197,94,.12) 0%, #0F172A 60%);
  border-color: rgba(34,197,94,.35);
}
.m20-top-card--radar {
  background: linear-gradient(160deg, rgba(139,92,246,.07) 0%, #111827 60%);
  border-color: rgba(139,92,246,.2);
}
.m20-top-card--radar:hover {
  background: linear-gradient(160deg, rgba(139,92,246,.11) 0%, #0F172A 60%);
  border-color: rgba(139,92,246,.35);
}
.m20-top-card--catalyst {
  background: linear-gradient(160deg, rgba(245,158,11,.07) 0%, #111827 60%);
  border-color: rgba(245,158,11,.2);
}
.m20-top-card--catalyst:hover {
  background: linear-gradient(160deg, rgba(245,158,11,.11) 0%, #0F172A 60%);
  border-color: rgba(245,158,11,.35);
}
.m20-top-card--empty { cursor: default; opacity: .7; }
.m20-top-card--empty:hover { transform: none; }

/* Category eyebrow label */
.m20-top-card-cat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #64748B;
  line-height: 1.3;
  margin-bottom: 0;
}
.m20-top-card-cat--radar    { color: rgba(139,92,246,.8); }
.m20-top-card-cat--catalyst { color: rgba(245,158,11,.8); }

/* Instrument strip — now standalone below the card row */
.m20-cc-strip--standalone {
  border-radius: 14px;
  border: 1px solid #374151;
  overflow: hidden;
}

/* Responsive: tablet */
@media (max-width: 1000px) {
  .m20-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .m20-top-row .m20-top-card:last-child {
    grid-column: span 2;
  }
}

/* Responsive: mobile */
@media (max-width: 680px) {
  .m20-top-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .m20-top-row .m20-top-card:last-child {
    grid-column: auto;
  }
  .m20-top-card {
    padding: 18px 16px 16px;
    min-height: unset;
    border-radius: 14px;
  }
  .m20-top-card:hover { transform: none; }
}

.m20-command-center {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 28px;
  max-width: 1280px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
}
.m20-cc-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-bottom: 1px solid #374151;
}

/* Base slot — scaffolding only */
.m20-slot {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
  border-right: 1px solid #374151;
  position: relative;
  transition: background .2s;
}
.m20-slot:last-child { border-right: none; }
.m20-slot--empty { cursor: default; }

/* Slot ambient backgrounds — subtle, distinct */
.m20-slot--confirmed { background: linear-gradient(160deg, rgba(34,197,94,.06) 0%, #111827 55%); }
.m20-slot--confirmed:hover { background: linear-gradient(160deg, rgba(34,197,94,.10) 0%, #0F172A 55%); }
.m20-slot--radar { background: #111827; }
.m20-slot--radar:hover { background: #0F172A; }
.m20-slot--catalyst { background: linear-gradient(160deg, rgba(245,158,11,.06) 0%, #111827 50%); }
.m20-slot--catalyst:hover { background: linear-gradient(160deg, rgba(245,158,11,.10) 0%, #0F172A 50%); }

/* Header row */
.m20-slot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 20px;
}
.m20-slot-cat {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94A3B8;
  line-height: 1.3;
}
.m20-slot-cat--radar    { color: #6D28D9; }
.m20-slot-cat--catalyst { color: #92400E; }

/* Header right-side tags */
.m20-slot-score {
  font-size: 11px; font-weight: 800; color: #16C47F; white-space: nowrap;
  background: rgba(22,196,127,.1); border: 1px solid rgba(22,196,127,.22);
  border-radius: 5px; padding: 2px 8px; flex-shrink: 0;
}
.m20-slot-stage {
  font-size: 10px; font-weight: 700; color: rgba(139,92,246,.85);
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2);
  border-radius: 5px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
}
.m20-slot-stage--muted { color: #94A3B8; background: #1F2937; border-color: #374151; }
.m20-slot-event-tag {
  font-size: 10px; font-weight: 700; color: rgba(245,158,11,.9);
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.22);
  border-radius: 5px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
}

/* Ticker */
.m20-slot-ticker {
  font-size: 40px; font-weight: 800; color: #F9FAFB;
  letter-spacing: -.05em; line-height: 1; margin-bottom: 10px;
}
.m20-slot-ticker--md { font-size: 32px; }

/* Radar score bar */
.m20-sbar {
  height: 3px; background: #374151; border-radius: 2px;
  overflow: hidden; margin-bottom: 14px;
}
.m20-sbar-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }

.m20-slot-radar-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.m20-slot-radar-score { font-size: 13px; font-weight: 700; color: #5B21B6; }

/* Setup type chip */
.m20-slot-chip {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 5px; letter-spacing: .03em; white-space: nowrap; margin-bottom: 12px;
  background: color-mix(in srgb, var(--chip-c, #16C47F) 12%, transparent);
  color: var(--chip-c, #16C47F);
  border: 1px solid color-mix(in srgb, var(--chip-c, #16C47F) 30%, transparent);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .m20-slot-chip { background: rgba(22,196,127,.1); color: #16C47F; border-color: rgba(22,196,127,.25); }
}

/* Earnings badge */
.m20-slot-earn-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 6px; background: rgba(245,158,11,.12);
  color: #F59E0B; border: 1px solid rgba(245,158,11,.28); margin-bottom: 12px;
}

/* Context */
.m20-slot-ctx { font-size: 12.5px; color: #94A3B8; margin: 0 0 14px; line-height: 1.6; }

/* Stat row — anchored to bottom with border rule */
.m20-slot-stats {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: auto; padding-top: 14px; border-top: 1px solid #374151; margin-bottom: 14px;
}
.m20-slot-stat { font-size: 11px; font-weight: 700; color: #94A3B8; }
.m20-slot-stat + .m20-slot-stat::before { content: '·'; margin-right: 6px; color: #4B5563; font-weight: 400; }
.m20-slot-stat--pos   { color: #16C47F; }
.m20-slot-stat--neg   { color: #fb7185; }
.m20-slot-stat--score { color: #16C47F; font-size: 12px; }

/* Pre-confirmation note */
.m20-slot-note {
  font-size: 10.5px; color: #94A3B8; margin-top: auto; padding-top: 12px;
  border-top: 1px solid #374151; margin-bottom: 14px; letter-spacing: .02em;
}

/* CTA — text link, colour-matched per slot */
.m20-slot-cta {
  font-size: 12px; font-weight: 700; color: #0FA76A; letter-spacing: .01em;
}
.m20-slot--confirmed:hover .m20-slot-cta { color: #16C47F; }
.m20-slot-cta--radar    { color: #5B21B6; }
.m20-slot--radar:hover .m20-slot-cta--radar { color: rgba(139,92,246,1); }
.m20-slot-cta--catalyst { color: #92400E; }
.m20-slot--catalyst:hover .m20-slot-cta--catalyst { color: #B45309; }

.m20-slot-empty-msg { font-size: 13px; color: #94A3B8; margin: 20px 0; }

/* Instrument strip */
.m20-cc-strip { display: flex; align-items: stretch; background: #0F172A; border-top: 1px solid #374151; }
.m20-cc-strip-item { flex: 1; padding: 13px 22px; display: flex; flex-direction: column; gap: 3px; }
.m20-cc-strip-item--link:hover { background: #1F2937; }
.m20-cc-strip-div { width: 1px; background: #374151; flex-shrink: 0; }
.m20-strip-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; color: #94A3B8; }
.m20-strip-val { font-size: 18px; font-weight: 800; color: #F9FAFB; line-height: 1.1; letter-spacing: -.02em; }
.m20-strip-val--sm { font-size: 13px; font-weight: 700; letter-spacing: 0; }
.m20-strip-sub { font-size: 10.5px; color: #475569; }
.m20-strip-sub--in { color: #16C47F; }
.m20-strip-sub--out { color: #fb7185; }

/* Patterns grid */
.m20-patterns-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 auto 28px;max-width:1280px; }
.m20-pattern-tile { background:#111827;border:1px solid #374151;border-radius:14px;overflow:hidden;display:flex;flex-direction:column; }
.m20-pattern-top { border-color:rgba(22,196,127,.18);background:rgba(22,196,127,.04); }
.m20-pattern-tile-inner { padding:14px 15px 13px;display:flex;flex-direction:column;gap:4px;flex:1; }
.m20-pattern-label { font-size:9.5px;font-weight:700;color:#6B7D77;text-transform:uppercase;letter-spacing:.07em;line-height:1.3;margin-bottom:6px; }
.m20-pattern-count { font-size:26px;font-weight:800;color:#F9FAFB;line-height:1;letter-spacing:-.02em; }
.m20-pattern-count span { font-size:10px;color:#94A3B8;font-weight:600;margin-left:2px; }
.m20-pattern-ticker { font-size:13px;font-weight:800;color:#CBD5E1;margin-top:8px;border-top:1px solid #374151;padding-top:8px; }
.m20-pattern-avg { font-size:11px;font-weight:700;color:#16C47F;margin-left:5px; }
.m20-pattern-sector { font-size:10px;color:#94A3B8;margin-top:2px; }

/* Shared layout helpers */
.m20-section-row { display:flex;align-items:center;justify-content:space-between;max-width:1280px;margin:0 auto 14px; }
.m20-section-head { font-size:20px;font-weight:800;color:#F9FAFB;margin:0; }
.m20-section-meta { display:flex;align-items:center;gap:12px; }
.m20-view-all { font-size:13px;font-weight:700;color:#16C47F;text-decoration:none; }
.m20-view-all:hover { color:#34d399; }
.m20-panel-head { display:flex;align-items:center;gap:8px;margin-bottom:14px; }
.m20-live-dot { width:7px;height:7px;background:#16C47F;border-radius:50%;animation:m20-pulse-dot 2.2s ease-in-out infinite;flex-shrink:0; }
@keyframes m20-pulse-dot { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.35;transform:scale(.75);} }
.m20-hl-row { display:flex;flex-direction:column;gap:3px;padding:10px 0;border-top:1px solid #374151; }
.m20-hl-row:first-of-type { border-top:none;padding-top:0; }
.m20-hl-ticker { font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase; }
.m20-hl-text { font-size:13px;color:#94A3B8;line-height:1.45; }
.m20-workspace-panel { padding:20px 20px 16px!important; }
.m20-workspace-grid { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:4px; }
.m20-ws-card { display:flex;flex-direction:column;gap:4px;padding:14px;background:#0F172A;border:1px solid #374151;border-radius:12px;text-decoration:none;transition:border-color .15s,background .15s; }
.m20-ws-card:hover { background:#1F2937;border-color:rgba(34,197,94,.3); }
.m20-ws-title { font-size:13px;font-weight:800;letter-spacing:-.01em; }
.m20-ws-sub { font-size:11px;color:#94A3B8; }
.m20-sync-line { font-size:10px;color:#94A3B8;margin:10px 0 0;padding-top:10px;border-top:1px solid #374151; }

/* Responsive */
@media(max-width:1000px) {
  .m20-cc-slots { grid-template-columns: 1fr 1fr; }
  .m20-cc-slots .m20-slot:last-child { grid-column: span 2; border-right: none; border-top: 1px solid #374151; }
  .m20-patterns-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .m20-cc-slots { grid-template-columns: 1fr; }
  .m20-cc-slots .m20-slot { border-right: none; border-bottom: 1px solid #374151; }
  .m20-cc-slots .m20-slot:last-child { grid-column: auto; border-bottom: none; }
  .m20-slot-ticker { font-size: 32px; }
  .m20-slot { padding: 20px 18px; }
  .m20-cc-strip { flex-direction: column; }
  .m20-cc-strip-div { width: auto; height: 1px; }
  .m20-patterns-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .m20-workspace-grid { grid-template-columns: 1fr 1fr; }
}

/* ── m20-type-chip: ensure readable text on light card backgrounds ────────
   The inline style uses primary_color (e.g. #16C47F) directly.
   On white cards this is only 3.0:1 contrast — below WCAG AA.
   Use CSS filter to boost perceived contrast without changing PHP logic. */
.m20-type-chip {
  filter: brightness(0.72) saturate(1.1);
}

/* ── Sector heatmap inline chip: boost contrast ────────────────────────── */
.mentum-panel a span[style*="color:#16C47F"] {
  color: #0D8E59 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   MENTUM20 SIGNAL CARDS — premium redesign
   ═══════════════════════════════════════════════════════════════════════ */

/* Card base — override from inject_layout_css ensures white bg */
.mentum-signal-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
}

/* ── Head row: rank # + TICKER on left, nothing competing right ──────── */
.m20-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.m20-card-identity {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

/* Rank number — small, muted, subordinate */
.m20-rank-num {
  font-size: 10px;
  font-weight: 700;
  color: #9EADA8;
  letter-spacing: .03em;
  flex-shrink: 0;
}

/* Ticker — dominant, charcoal */
.m20-ticker {
  font-size: 28px;
  font-weight: 800;
  color: #F9FAFB;
  letter-spacing: -.04em;
  line-height: 1;
}

/* Confidence — top-right, refined text label not a pill */
.m20-conf {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.m20-conf--high     { color: #0FA76A; }
.m20-conf--building { color: #B45309; }
.m20-conf--early    { color: #94A3B8; }

/* ── Meta row: type chip only ────────────────────────────────────────── */
.m20-card-meta {
  margin-bottom: 10px;
}

/* Type chip — CSS variable driven, light tinted */
.m20-type-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: .02em;
  white-space: nowrap;
  background: color-mix(in srgb, var(--tc, #0FA76A) 10%, transparent);
  color: color-mix(in srgb, var(--tc, #0FA76A) 70%, #000);
  border: 1px solid color-mix(in srgb, var(--tc, #0FA76A) 22%, transparent);
  filter: saturate(0.9);
}
/* Fallback for no color-mix support */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .m20-type-chip { background:#EAF7F1; color:#0FA76A; border-color:rgba(15,167,106,.25); }
}

/* ── Stats row: sector · M20 score · breakout ────────────────────────── */
.m20-card-stats {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.m20-stat-sector,
.m20-stat-breakout {
  color: #94A3B8;
}
.m20-stat-score {
  font-weight: 800;
  color: #0FA76A;
  font-size: 13px;
}
/* Dot separators via pseudo */
.m20-stat-sector::after,
.m20-stat-score::after {
  content: '·';
  margin: 0 6px;
  color: #4B5563;
  font-weight: 400;
}

/* Context line — muted prose */
.m20-context-line {
  font-size: 12px;
  color: #94A3B8;
  margin: 0 0 12px;
  line-height: 1.5;
  flex: 1;
}

/* ── Pillar bars — refined, space-efficient ──────────────────────────── */
.m20-pillars {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #374151;
  margin-bottom: 14px;
}
.m20-pillars .iq-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m20-pillars .iq-pillar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9EADA8;
}
.m20-pillars .iq-pillar-bar {
  height: 4px;
  border-radius: 2px;
  background: #EEF0EE;
  overflow: hidden;
}
.m20-pillars .iq-pillar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .4s ease;
}

/* ── CTA row ─────────────────────────────────────────────────────────── */
.m20-card-cta {
  font-size: 12px;
  font-weight: 700;
  color: #0FA76A;
  letter-spacing: .01em;
  transition: color .15s;
}
.mentum-signal-card:hover .m20-card-cta {
  color: #0D8E59;
}

/* Keep .signal-link working for watchlist/detail pages */
.signal-link {
  color: #0FA76A;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.signal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #374151;
  margin-top: auto;
}

.dashboard-bottom{margin-top:24px}
.dashboard-bottom .mentum-panel{background:#111827;}

/* ── Dark theme: m20 card component overrides ─────────────────────────────── */
.m20-card-head { color: #F9FAFB; }
.m20-ticker { color: #F9FAFB; }
.m20-rank-num { color: #64748B; }
.m20-conf { color: #94A3B8; }
.m20-conf--high     { color: #22C55E; }
.m20-conf--building { color: #F59E0B; }
.m20-conf--early    { color: #94A3B8; }
.m20-stat-sector, .m20-stat-breakout { color: #94A3B8; }
.m20-stat-score { color: #22C55E; font-weight: 800; }
.m20-stat-sector::after, .m20-stat-score::after { color: #374151; }
.m20-card-stats { color: #94A3B8; }
.m20-card-cta { color: #22C55E; }
.mentum-signal-card:hover .m20-card-cta { color: #4ADE80; }
.m20-pillars { border-top-color: #374151; }
.m20-pillars .iq-pillar-label { color: #64748B; }
.m20-pillars .iq-pillar-bar { background: #374151; }
/* Radar stage badges — dark theme */
.radar-stage-spike      { background:rgba(245,158,11,.15); color:#FCD34D; border:1px solid rgba(245,158,11,.3) }
.radar-stage-breakout   { background:rgba(34,197,94,.12);  color:#4ADE80; border:1px solid rgba(34,197,94,.25) }
.radar-stage-confirming { background:rgba(20,184,166,.12); color:#2DD4BF; border:1px solid rgba(20,184,166,.25) }
.radar-stage-forming    { background:rgba(139,92,246,.14); color:#C4B5FD; border:1px solid rgba(139,92,246,.3) }
.radar-stage-watch      { background:rgba(255,255,255,.05);color:#94A3B8; border:1px solid #374151 }
/* Radar nar pill */
.radar-nar-pill { background:#1F2937; border:1px solid #374151; color:#CBD5E1; }
/* Signal link */
.signal-link { color: #22C55E; }
/* Summary text */
.m20-context-line { color: #94A3B8; }
/* Section heads */
.mentum-section-head h2 { color: #F9FAFB; }
.mentum-count-pill { background: rgba(34,197,94,.12); color: #22C55E; border: 1px solid rgba(34,197,94,.25); }
/* Alert components */
.alert-card { background: #111827; border-color: #374151; color: #F9FAFB; }
/* Watchlist bucket headers */
.mentum-section-head { border-color: #374151; }
