/* ==========================================================================
   RankPak – customer portal
   Tokens: --mh-primary / --mh-accent are injected from Settings → Branding.
   ========================================================================== */

:root { color-scheme: light; }

.mh-app, .mh-gate {
	--mh-primary: #0f766e;
	--mh-accent: #f59e0b;
	--mh-primary-soft: color-mix(in srgb, var(--mh-primary) 10%, #fff);
	--mh-primary-strong: color-mix(in srgb, var(--mh-primary) 82%, #000);
	--mh-ink: #0f172a;
	--mh-ink-2: #334155;
	--mh-muted: #64748b;
	--mh-faint: #94a3b8;
	--mh-line: #e2e8f0;
	--mh-line-2: #eef2f6;
	--mh-canvas: #f6f7f9;
	--mh-surface: #ffffff;
	--mh-good: #15803d;
	--mh-good-soft: #dcfce7;
	--mh-warn: #b45309;
	--mh-warn-soft: #fef3c7;
	--mh-bad: #b91c1c;
	--mh-bad-soft: #fee2e2;
	--mh-info: #1d4ed8;
	--mh-info-soft: #dbeafe;
	--mh-radius: 12px;
	--mh-radius-sm: 8px;
	--mh-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px -8px rgba(15, 23, 42, .10);
	--mh-shadow-lg: 0 24px 64px -24px rgba(15, 23, 42, .35);
	--mh-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mh-sidebar: 248px;
	font-family: var(--mh-font);
	color: var(--mh-ink);
	font-size: 14.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

html, body.mh-body { margin: 0; padding: 0; background: var(--mh-canvas, #f6f7f9); }
body.mh-body { min-height: 100vh; }
body.mh-body.admin-bar #mh-app { min-height: calc(100vh - 32px); }
.mh-app :where(svg:not([class])) { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.mh-app *, .mh-gate *, .mh-app *::before, .mh-app *::after { box-sizing: border-box; }
.mh-app a { color: var(--mh-primary); text-decoration: none; }
.mh-app a:hover { text-decoration: underline; }
.mh-app h1, .mh-app h2, .mh-app h3 { margin: 0; color: var(--mh-ink); letter-spacing: -.01em; }
.mh-app h1 { font-size: 22px; font-weight: 700; }
.mh-app h2 { font-size: 16px; font-weight: 650; }
.mh-app h3 { font-size: 14.5px; font-weight: 650; }
.mh-app p { margin: 0; }
.mh-app [tabindex="-1"]:focus { outline: none; }
.mh-app :focus-visible, .mh-gate :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mh-primary) 45%, transparent);
	outline-offset: 2px;
	border-radius: 6px;
}
.mh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Boot */
.mh-boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--mh-muted); }
.mh-boot-mark {
	display: inline-block; width: 28px; height: 28px; border-radius: 8px;
	background: linear-gradient(135deg, var(--mh-primary), var(--mh-accent));
	box-shadow: 0 6px 16px -6px var(--mh-primary);
}
.mh-boot .mh-boot-mark { animation: mh-pulse 1.2s ease-in-out infinite; }
@keyframes mh-pulse { 50% { transform: scale(.88); opacity: .7; } }
.mh-noscript { text-align: center; padding: 40px; }

/* ------------------------------------------------------------------ Shell */
.mh-shell { display: grid; grid-template-columns: var(--mh-sidebar) minmax(0, 1fr); min-height: 100vh; }
.mh-side {
	position: sticky; top: 0; height: 100vh; overflow-y: auto;
	background: var(--mh-surface); border-right: 1px solid var(--mh-line);
	display: flex; flex-direction: column; padding: 16px 12px; gap: 6px; z-index: 30;
}
body.admin-bar .mh-side { top: 32px; height: calc(100vh - 32px); }
.mh-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; font-weight: 700; font-size: 15.5px; color: var(--mh-ink); }
.mh-brand .mh-boot-mark { width: 26px; height: 26px; }
.mh-site-switch { position: relative; margin: 0 2px 10px; }
.mh-site-switch select {
	appearance: none; width: 100%; padding: 9px 34px 9px 12px; border: 1px solid var(--mh-line); border-radius: 10px;
	background: var(--mh-canvas); font: inherit; font-weight: 600; color: var(--mh-ink); cursor: pointer;
}
.mh-site-switch::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--mh-muted); border-bottom: 2px solid var(--mh-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.mh-nav { display: flex; flex-direction: column; gap: 2px; }
.mh-nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mh-faint); padding: 12px 12px 4px; }
.mh-nav a {
	display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
	color: var(--mh-ink-2) !important; font-weight: 550; text-decoration: none !important;
	transition: background-color .12s ease, color .12s ease;
}
.mh-nav a svg { width: 18px; height: 18px; flex: none; color: var(--mh-faint); transition: color .12s ease; }
.mh-nav a:hover { background: var(--mh-canvas); }
.mh-nav a.is-active { background: var(--mh-primary-soft); color: var(--mh-primary-strong) !important; }
.mh-nav a.is-active svg { color: var(--mh-primary); }
.mh-nav .mh-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--mh-primary); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.mh-nav .mh-count.is-soft { background: var(--mh-warn-soft); color: var(--mh-warn); }
.mh-side-foot { margin-top: auto; border-top: 1px solid var(--mh-line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.mh-side-foot .mh-avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--mh-primary-soft); color: var(--mh-primary-strong); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; overflow: hidden; }
.mh-side-foot .mh-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-side-foot .mh-who { min-width: 0; flex: 1; }
.mh-side-foot .mh-who strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-side-foot .mh-who span { font-size: 12px; color: var(--mh-muted); }

.mh-main { min-width: 0; display: flex; flex-direction: column; }
.mh-topbar {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
	padding: 14px 32px; background: color-mix(in srgb, var(--mh-canvas) 86%, transparent);
	backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent;
}
body.admin-bar .mh-topbar { top: 32px; }
.mh-topbar.is-scrolled { border-bottom-color: var(--mh-line); }
.mh-topbar .mh-title { flex: 1; min-width: 0; }
.mh-topbar .mh-title p { color: var(--mh-muted); font-size: 13.5px; margin-top: 2px; }
.mh-topbar .mh-menu-btn { display: none; }
.mh-content { padding: 8px 32px 48px; max-width: 1280px; width: 100%; }
.mh-view { animation: mh-in .22s ease both; }
@keyframes mh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Buttons */
.mh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 38px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent;
	font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; white-space: nowrap;
	text-decoration: none !important; transition: transform .1s ease, background-color .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mh-btn:active { transform: translateY(1px); }
.mh-btn svg { width: 16px; height: 16px; }
.mh-btn-primary { background: var(--mh-primary); color: #fff !important; box-shadow: 0 1px 2px rgba(15,23,42,.1); }
.mh-btn-primary:hover { background: var(--mh-primary-strong); box-shadow: 0 6px 16px -8px var(--mh-primary); }
.mh-btn-secondary { background: var(--mh-surface); color: var(--mh-ink) !important; border-color: var(--mh-line); }
.mh-btn-secondary:hover { border-color: #cbd5e1; background: #fbfcfd; }
.mh-btn-ghost { background: transparent; color: var(--mh-ink-2) !important; }
.mh-btn-ghost:hover { background: var(--mh-line-2); }
.mh-btn-danger { background: var(--mh-surface); color: var(--mh-bad) !important; border-color: #fecaca; }
.mh-btn-danger:hover { background: var(--mh-bad-soft); }
.mh-btn-sm { min-height: 32px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.mh-btn-lg { min-height: 46px; padding: 12px 22px; font-size: 15px; }
.mh-btn-block { width: 100%; }
.mh-btn-icon { width: 38px; padding: 0; }
.mh-btn[disabled], .mh-btn.is-loading { opacity: .6; cursor: not-allowed; transform: none; }
.mh-btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mh-spin .7s linear infinite; }
@keyframes mh-spin { to { transform: rotate(360deg); } }
kbd { font: 600 11px/1 var(--mh-font); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--mh-line); border-bottom-width: 2px; background: var(--mh-surface); color: var(--mh-muted); }

/* ------------------------------------------------------------------ Cards & grid */
.mh-grid { display: grid; gap: 16px; }
.mh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mh-stack { display: flex; flex-direction: column; gap: 16px; }
.mh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mh-spacer { flex: 1; }
.mh-card { background: var(--mh-surface); border: 1px solid var(--mh-line); border-radius: var(--mh-radius); box-shadow: var(--mh-shadow); padding: 20px; }
.mh-card-flush { padding: 0; overflow: hidden; }
.mh-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mh-card-head h2 { flex: 1; }
.mh-muted { color: var(--mh-muted); }
.mh-small { font-size: 13px; }
.mh-mt { margin-top: 16px; }
.mh-mt-lg { margin-top: 24px; }

/* Hero / callout */
.mh-hero {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 22px 24px;
	border-radius: 16px; color: #fff; margin-bottom: 16px;
	background:
		radial-gradient(600px 220px at 100% 0%, color-mix(in srgb, var(--mh-accent) 45%, transparent), transparent 70%),
		linear-gradient(120deg, var(--mh-primary), var(--mh-primary-strong));
	box-shadow: 0 16px 40px -24px var(--mh-primary);
}
.mh-hero h2 { color: #fff; font-size: 19px; }
.mh-hero p { color: rgba(255,255,255,.86); margin-top: 4px; }
.mh-hero .mh-hero-text { flex: 1; min-width: 0; }
.mh-hero .mh-btn-primary { background: #fff; color: var(--mh-primary-strong) !important; }
.mh-hero .mh-btn-primary:hover { background: #f1f5f9; }
.mh-hero .mh-btn-ghost { color: #fff !important; }
.mh-hero .mh-btn-ghost:hover { background: rgba(255,255,255,.14); }
.mh-hero-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }

/* KPI tiles */
.mh-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.mh-kpi-label { color: var(--mh-muted); font-size: 13px; font-weight: 550; }
.mh-kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.mh-kpi-value { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.mh-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; }
.mh-delta.is-up { color: var(--mh-good); background: var(--mh-good-soft); }
.mh-delta.is-down { color: var(--mh-bad); background: var(--mh-bad-soft); }
.mh-delta.is-flat { color: var(--mh-muted); background: var(--mh-line-2); }
.mh-spark { width: 96px; height: 32px; flex: none; }
.mh-spark path.line { fill: none; stroke: var(--mh-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-spark path.area { fill: color-mix(in srgb, var(--mh-primary) 12%, transparent); }

/* Chart */
.mh-chart { width: 100%; height: 220px; display: block; }
.mh-chart .grid { stroke: var(--mh-line-2); stroke-width: 1; }
.mh-chart .axis { fill: var(--mh-faint); font-size: 11px; }
.mh-chart .line { fill: none; stroke: var(--mh-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mh-chart .line-2 { fill: none; stroke: var(--mh-accent); stroke-width: 2; stroke-dasharray: 4 4; }
.mh-chart .area { fill: url(#mh-grad); }
.mh-chart .dot { fill: var(--mh-surface); stroke: var(--mh-primary); stroke-width: 2; }
.mh-chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--mh-muted); }
.mh-chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--mh-primary); }
.mh-chart-legend i.is-2 { background: var(--mh-accent); }
.mh-chart-tip { position: absolute; pointer-events: none; background: var(--mh-ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .1s; }
.mh-chart-wrap { position: relative; }

/* Meters */
.mh-meter { display: grid; gap: 6px; }
.mh-meter + .mh-meter { margin-top: 14px; }
.mh-meter-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.mh-meter-bar { height: 8px; background: var(--mh-line-2); border-radius: 999px; overflow: hidden; }
.mh-meter-bar span { display: block; height: 100%; border-radius: inherit; background: var(--mh-primary); transition: width .5s ease; }
.mh-meter-bar span.is-full { background: var(--mh-accent); }

/* Badges */
.mh-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--mh-line-2); color: var(--mh-ink-2); }
.mh-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.mh-badge.is-plain::before { display: none; }
.mh-badge.is-good { background: var(--mh-good-soft); color: var(--mh-good); }
.mh-badge.is-warn { background: var(--mh-warn-soft); color: var(--mh-warn); }
.mh-badge.is-bad { background: var(--mh-bad-soft); color: var(--mh-bad); }
.mh-badge.is-info { background: var(--mh-info-soft); color: var(--mh-info); }
.mh-badge.is-brand { background: var(--mh-primary-soft); color: var(--mh-primary-strong); }
.mh-score { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mh-muted); }
.mh-score b { font-weight: 700; color: var(--mh-ink); }
.mh-score-ring { --v: 80; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--mh-good) calc(var(--v) * 1%), var(--mh-line) 0); display: grid; place-items: center; }
.mh-score-ring::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--mh-surface); }
.mh-score-ring.is-mid { background: conic-gradient(var(--mh-warn) calc(var(--v) * 1%), var(--mh-line) 0); }

/* Channel icon chip */
.mh-chip { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mh-primary-soft); color: var(--mh-primary-strong); flex: none; }
.mh-chip svg { width: 18px; height: 18px; }
.mh-chip.is-social { background: #ede9fe; color: #6d28d9; }
.mh-chip.is-ad { background: var(--mh-warn-soft); color: var(--mh-warn); }
.mh-chip.is-email { background: var(--mh-info-soft); color: var(--mh-info); }
.mh-chip.is-gbp { background: var(--mh-good-soft); color: var(--mh-good); }

/* Lists */
.mh-list { list-style: none; margin: 0; padding: 0; }
.mh-list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--mh-line-2); }
.mh-list > li:first-child { border-top: 0; padding-top: 0; }
.mh-list .mh-li-main { flex: 1; min-width: 0; }
.mh-list .mh-li-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mh-list .mh-li-main span { font-size: 12.5px; color: var(--mh-muted); }
.mh-feed { list-style: none; margin: 0; padding: 0; }
.mh-feed li { display: flex; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.mh-feed .mh-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--mh-info); }
.mh-feed .mh-dot.is-good { background: var(--mh-good); }
.mh-feed .mh-dot.is-bad { background: var(--mh-bad); }
.mh-feed .mh-dot.is-warn { background: var(--mh-accent); }

/* Alert strips */
.mh-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid; font-size: 13.5px; }
.mh-alert + .mh-alert { margin-top: 8px; }
.mh-alert svg { width: 18px; height: 18px; flex: none; }
.mh-alert.is-warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.mh-alert.is-bad { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.mh-alert.is-good { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.mh-alert.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.mh-alert .mh-alert-text { flex: 1; }

/* ------------------------------------------------------------------ Approvals */
.mh-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mh-segment { display: inline-flex; padding: 3px; background: var(--mh-line-2); border-radius: 10px; gap: 2px; flex-wrap: wrap; }
.mh-segment button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--mh-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mh-segment button.is-active { background: var(--mh-surface); color: var(--mh-ink); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.mh-segment button span { font-size: 11.5px; color: var(--mh-faint); }
.mh-queue { display: flex; flex-direction: column; gap: 10px; }
.mh-qcard {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
	padding: 14px 16px; background: var(--mh-surface); border: 1px solid var(--mh-line); border-radius: var(--mh-radius);
	cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease, opacity .25s ease;
}
.mh-qcard:hover { border-color: #cbd5e1; box-shadow: var(--mh-shadow); }
.mh-qcard.is-focused { border-color: var(--mh-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-primary) 18%, transparent); }
.mh-qcard.is-leaving { opacity: 0; transform: translateX(16px); }
.mh-qcard h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-qcard p { color: var(--mh-muted); font-size: 13px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh-qmeta { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.mh-qactions { display: flex; gap: 6px; }
.mh-kbd-hint { font-size: 12px; color: var(--mh-faint); display: flex; gap: 10px; flex-wrap: wrap; }

/* Drawer */
.mh-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); z-index: 100; opacity: 0; transition: opacity .2s ease; }
.mh-overlay.is-open { opacity: 1; }
.mh-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); z-index: 101;
	background: var(--mh-surface); box-shadow: var(--mh-shadow-lg); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.mh-drawer.is-open { transform: none; }
.mh-drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--mh-line); }
.mh-drawer-head .mh-drawer-title { flex: 1; min-width: 0; }
.mh-drawer-head h2 { font-size: 18px; line-height: 1.35; }
.mh-drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 28px; }
.mh-drawer-foot { display: flex; gap: 8px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--mh-line); background: #fbfcfd; flex-wrap: wrap; }
.mh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mh-fact { padding: 10px 12px; border-radius: 10px; background: var(--mh-canvas); }
.mh-fact span { display: block; font-size: 11.5px; color: var(--mh-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mh-fact b { font-size: 14px; }
.mh-prose { font-size: 15px; line-height: 1.7; color: var(--mh-ink-2); }
.mh-prose h2 { font-size: 18px; margin: 22px 0 6px; }
.mh-prose h3 { font-size: 16px; margin: 18px 0 6px; }
.mh-prose p { margin: 0 0 12px; }
.mh-prose ul, .mh-prose ol { padding-left: 20px; }
.mh-social-preview { border: 1px solid var(--mh-line); border-radius: 12px; padding: 16px; background: #fbfcfd; white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.mh-feedback { background: var(--mh-warn-soft); color: #78350f; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.mh-edit-area { width: 100%; min-height: 320px; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ------------------------------------------------------------------ Forms */
.mh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mh-label { font-weight: 600; font-size: 13.5px; color: var(--mh-ink); }
.mh-help { font-size: 12.5px; color: var(--mh-muted); }
.mh-input, .mh-app input[type=text], .mh-app input[type=url], .mh-app input[type=email], .mh-app input[type=number], .mh-app input[type=password], .mh-app input[type=search], .mh-app select, .mh-app textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: var(--mh-surface);
	font: inherit; color: var(--mh-ink); transition: border-color .12s ease, box-shadow .12s ease;
}
.mh-app textarea { min-height: 96px; resize: vertical; }
.mh-app input:focus, .mh-app select:focus, .mh-app textarea:focus { outline: none; border-color: var(--mh-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-primary) 18%, transparent); }
.mh-input-prefix { position: relative; }
.mh-input-prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mh-muted); font-weight: 600; }
.mh-input-prefix > input { padding-left: 26px !important; }
.mh-field-error { color: var(--mh-bad); font-size: 12.5px; }
.mh-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.mh-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; }
.mh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mh-switch .mh-switch-ui { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s ease; flex: none; }
.mh-switch .mh-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease; }
.mh-switch input:checked + .mh-switch-ui { background: var(--mh-primary); }
.mh-switch input:checked + .mh-switch-ui::after { transform: translateX(16px); }
.mh-switch input:focus-visible + .mh-switch-ui { outline: 3px solid color-mix(in srgb, var(--mh-primary) 45%, transparent); outline-offset: 2px; }
.mh-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mh-choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--mh-line); border-radius: 10px; cursor: pointer; background: var(--mh-surface); transition: border-color .12s ease, background .12s ease; }
.mh-choice:hover { border-color: #cbd5e1; }
.mh-choice input { margin-top: 3px; accent-color: var(--mh-primary); }
.mh-choice.is-checked { border-color: var(--mh-primary); background: var(--mh-primary-soft); }
.mh-choice.is-disabled { opacity: .55; cursor: not-allowed; }
.mh-choice strong { display: block; font-weight: 600; }
.mh-choice small { color: var(--mh-muted); font-size: 12px; }

/* ------------------------------------------------------------------ Wizard */
.mh-wizard { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.mh-wizard-top { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 28px; }
.mh-steps { display: flex; gap: 8px; padding: 0; margin: 0 0 26px; list-style: none; }
.mh-step { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--mh-faint); }
.mh-step::before { content: ""; height: 4px; border-radius: 999px; background: var(--mh-line); transition: background .2s ease; }
.mh-step.is-done::before, .mh-step.is-current::before { background: var(--mh-primary); }
.mh-step.is-current { color: var(--mh-ink); }
.mh-wizard .mh-card { padding: 28px; }
.mh-wizard h1 { font-size: 24px; }
.mh-wizard .mh-lead { color: var(--mh-muted); margin: 6px 0 22px; font-size: 15px; }
.mh-wizard-foot { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--mh-line); }

/* ------------------------------------------------------------------ Connections */
.mh-conn-group + .mh-conn-group { margin-top: 26px; }
.mh-conn-group > h2 { margin-bottom: 12px; }
.mh-conn { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.mh-conn-head { display: flex; align-items: center; gap: 12px; }
.mh-conn-head .mh-chip { width: 40px; height: 40px; }
.mh-conn-head div { flex: 1; min-width: 0; }
.mh-conn p { color: var(--mh-muted); font-size: 13.5px; }
.mh-conn-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.mh-conn-account { font-size: 12.5px; color: var(--mh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ Questions */
.mh-question { padding: 18px 20px; }
.mh-question .mh-q-context { font-size: 12.5px; color: var(--mh-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mh-question h3 { font-size: 15.5px; line-height: 1.45; margin-bottom: 12px; }
.mh-question.is-done { background: #fbfcfd; }
.mh-question .mh-answer { white-space: pre-wrap; color: var(--mh-ink-2); font-size: 14px; background: var(--mh-canvas); border-radius: 10px; padding: 10px 12px; }

/* ------------------------------------------------------------------ Tables */
.mh-table-wrap { overflow-x: auto; }
.mh-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mh-table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--mh-muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; background: #fbfcfd; border-bottom: 1px solid var(--mh-line); white-space: nowrap; }
.mh-table td { padding: 12px 16px; border-bottom: 1px solid var(--mh-line-2); vertical-align: middle; }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-table tbody tr { transition: background .1s ease; }
.mh-table tbody tr.is-clickable { cursor: pointer; }
.mh-table tbody tr.is-clickable:hover { background: #fafbfc; }
.mh-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mh-table .mh-cell-title { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.mh-table .mh-cell-title strong { font-weight: 600; }

/* ------------------------------------------------------------------ Empty / skeleton */
.mh-empty { text-align: center; padding: 48px 24px; }
.mh-empty .mh-empty-art { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--mh-primary-soft); color: var(--mh-primary); }
.mh-empty .mh-empty-art svg { width: 30px; height: 30px; }
.mh-empty h2 { margin-bottom: 6px; }
.mh-empty p { color: var(--mh-muted); max-width: 440px; margin: 0 auto 16px; }
.mh-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef2f6 25%, #f6f8fa 37%, #eef2f6 63%); background-size: 400% 100%; animation: mh-shimmer 1.3s ease infinite; }
@keyframes mh-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------------------------------------------ Toasts & modal */
.mh-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.mh-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--mh-ink); color: #fff; padding: 11px 14px 11px 16px; border-radius: 12px; box-shadow: var(--mh-shadow-lg); font-size: 14px; animation: mh-toast-in .22s ease both; max-width: min(560px, 92vw); }
.mh-toast.is-error { background: var(--mh-bad); }
.mh-toast button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 7px; padding: 5px 10px; font: inherit; font-weight: 650; font-size: 13px; cursor: pointer; }
.mh-toast button:hover { background: rgba(255,255,255,.24); }
@keyframes mh-toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.mh-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.mh-modal-card { position: relative; z-index: 1; width: min(480px, 100%); background: var(--mh-surface); border-radius: 16px; box-shadow: var(--mh-shadow-lg); padding: 24px; animation: mh-in .2s ease both; }
.mh-modal-card h2 { font-size: 18px; margin-bottom: 6px; }
.mh-modal-card > p { color: var(--mh-muted); margin-bottom: 18px; }
.mh-modal .mh-overlay { opacity: 1; position: absolute; z-index: 0; }

/* ------------------------------------------------------------------ Gate (signed out) */
.mh-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px;
	background:
		radial-gradient(1000px 520px at 0% -10%, color-mix(in srgb, var(--mh-primary) 16%, transparent), transparent 60%),
		radial-gradient(800px 480px at 110% 110%, color-mix(in srgb, var(--mh-accent) 14%, transparent), transparent 60%),
		var(--mh-canvas);
}
.mh-gate-card { width: min(420px, 100%); background: var(--mh-surface); border: 1px solid var(--mh-line); border-radius: 18px; box-shadow: var(--mh-shadow-lg); padding: 32px; }
.mh-gate-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; margin-bottom: 22px; }
.mh-gate h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.mh-gate-sub { color: var(--mh-muted); margin: 0 0 22px; }
.mh-gate form p { margin: 0 0 14px; }
.mh-gate label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.mh-gate input[type=text], .mh-gate input[type=password] { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 15px; }
.mh-gate input[type=text]:focus, .mh-gate input[type=password]:focus { outline: none; border-color: var(--mh-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-primary) 18%, transparent); }
.mh-gate .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--mh-muted); }
.mh-gate input[type=submit] { width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: var(--mh-primary); color: #fff; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; }
.mh-gate input[type=submit]:hover { background: var(--mh-primary-strong); }
.mh-gate-links { display: flex; gap: 8px; justify-content: center; margin-top: 18px; font-size: 13.5px; color: var(--mh-faint); }
.mh-gate-links a { color: var(--mh-muted); text-decoration: none; }
.mh-gate-links a:hover { color: var(--mh-primary); }
.mh-gate .mh-btn { display: flex; }

.mh-bottom-nav {
	display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--mh-surface); border-top: 1px solid var(--mh-line);
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.mh-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--mh-muted) !important; text-decoration: none !important; border-radius: 8px; position: relative; }
.mh-bottom-nav a svg { width: 20px; height: 20px; }
.mh-bottom-nav a.is-active { color: var(--mh-primary) !important; }
.mh-bottom-nav a .mh-count { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; border-radius: 999px; background: var(--mh-bad); color: #fff; text-align: center; padding: 0 4px; }

/* ------------------------------------------------------------------ Responsive */
/* ==========================================================================
   Beta: creative, Demand Radar, voice, media, results, brand kit
   ========================================================================== */

/* Thumbnails + provenance */
.mh-thumb { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--mh-line-2); aspect-ratio: 1; }
.mh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.mh-thumb-play svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); fill: rgba(255,255,255,.9); }
.mh-thumb.is-q { width: 64px; height: 64px; flex: none; }
.mh-thumb.is-q .mh-thumb-play svg { width: 20px; height: 20px; }
.mh-stars { display: inline-flex; gap: 1px; color: #e2e8f0; }
.mh-stars svg { width: 14px; height: 14px; }
.mh-stars .on { color: #f59e0b; }
.mh-stars .on svg { fill: currentColor; }
.mh-chip.is-radar { background: #fff1e6; color: #c2410c; }

/* Drawer creative panel */
.mh-creative { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 14px; margin-bottom: 18px; background: var(--mh-surface); }
.mh-creative-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mh-creative-head h3 { margin-right: auto; }
.mh-creative-main { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: #0f172a; }
.mh-creative-empty { display: grid; place-items: center; gap: 8px; aspect-ratio: 16 / 9; border: 1.5px dashed var(--mh-line); border-radius: 10px; color: var(--mh-muted); font-size: 13.5px; }
.mh-creative-empty svg { width: 28px; height: 28px; }
.mh-variants { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.mh-variant { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; width: 76px; flex: none; transition: border-color .15s ease; }
.mh-variant .mh-thumb { border-radius: 9px; }
.mh-variant:hover:not(:disabled) { border-color: var(--mh-line); }
.mh-variant.is-selected { border-color: var(--mh-primary); }
.mh-variant:disabled { cursor: default; opacity: .7; }
.mh-creative-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mh-creative .mh-help { margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.mh-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 50vh; overflow: auto; padding: 2px; }
.mh-pick { position: relative; display: grid; gap: 4px; cursor: pointer; font-size: 12.5px; color: var(--mh-ink-2); }
.mh-pick input { position: absolute; opacity: 0; }
.mh-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; transition: border-color .15s ease; }
.mh-pick input:checked + img { border-color: var(--mh-primary); box-shadow: 0 0 0 3px var(--mh-primary-soft); }
.mh-pick input:focus-visible + img { outline: 3px solid color-mix(in srgb, var(--mh-primary) 45%, transparent); outline-offset: 2px; }
.mh-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-review { background: var(--mh-canvas); border-radius: 10px; padding: 12px 14px; }
.mh-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mh-review p { color: var(--mh-ink-2); font-size: 14px; }

/* Overview: radar + proof */
.mh-score-pill { min-width: 38px; text-align: center; padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 12.5px; background: #fff1e6; color: #c2410c; }
.mh-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mh-proof .mh-kpi-value { font-size: 22px; }
.mh-bars { display: grid; gap: 8px; }
.mh-bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 13px; }
.mh-bar-row.is-compact { grid-template-columns: minmax(60px, 1fr) 28px; min-width: 120px; }
.mh-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mh-ink-2); }
.mh-bar-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.mh-bar { height: 8px; border-radius: 999px; background: var(--mh-line-2); overflow: hidden; }
.mh-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mh-primary); transition: width .5s ease; }

/* Demand Radar */
.mh-signal { padding: 18px 20px; }
.mh-signal-head { display: flex; gap: 12px; align-items: flex-start; }
.mh-signal-meta { flex: 1; min-width: 0; }
.mh-signal-meta h3 { font-size: 15.5px; line-height: 1.4; margin-top: 2px; }
.mh-signal-score { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.mh-signal-score span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ea580c calc(var(--v) * 1%), var(--mh-line-2) 0); -webkit-mask: radial-gradient(circle, transparent 17px, #000 18px); mask: radial-gradient(circle, transparent 17px, #000 18px); }
.mh-signal-score b { font-size: 14px; }
.mh-signal-sum { margin: 10px 0 4px; color: var(--mh-ink-2); }
.mh-signal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mh-line-2); }
.mh-signal .mh-help { margin-top: 8px; }
.mh-steps-v { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.mh-steps-v li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 13.5px; }
.mh-steps-v li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mh-primary-soft); color: var(--mh-primary-strong); font-weight: 700; font-size: 12.5px; }
.mh-steps-v span { color: var(--mh-muted); }
.mh-rule { display: grid; grid-template-columns: 1.4fr .8fr .7fr 1.3fr .8fr 1.4fr auto; gap: 6px; align-items: center; }
.mh-rule :is(input, select) { min-width: 0; }
.mh-input-suffix { position: relative; }
.mh-input-suffix > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--mh-muted); font-weight: 600; pointer-events: none; }
.mh-input-suffix > input { padding-right: 24px !important; width: 100%; }
.mh-modal-card:has(.mh-rule) { max-width: 860px; }

/* Your voice */
.mh-voice { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--mh-primary-soft); margin-bottom: 12px; }
.mh-mic { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--mh-primary); color: #fff; cursor: pointer; flex: none; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--mh-primary) 70%, transparent); transition: transform .15s ease; }
.mh-mic:hover { transform: scale(1.05); }
.mh-mic svg { width: 22px; height: 22px; }
.mh-voice-text { display: grid; gap: 2px; font-size: 13.5px; flex: 1; }
.mh-voice-text span { color: var(--mh-ink-2); }
.mh-voice.is-recording { background: #fef2f2; }
.mh-voice.is-recording .mh-mic { background: var(--mh-bad); animation: mh-pulse 1.4s ease-in-out infinite; }
@keyframes mh-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, .35); } 50% { box-shadow: 0 0 0 10px rgba(185, 28, 28, 0); } }
.mh-question audio { width: 100%; margin-top: 4px; }
.mh-progress { display: block; height: 6px; border-radius: 999px; background: var(--mh-line-2); overflow: hidden; margin-top: 6px; min-width: 160px; }
.mh-progress i { display: block; height: 100%; background: var(--mh-primary); transition: width .2s ease; }

/* Media */
.mh-split-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.mh-dropzone { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px dashed #cbd5e1; border-radius: var(--mh-radius); background: var(--mh-surface); cursor: pointer; transition: border-color .15s ease, background .15s ease; flex-wrap: wrap; }
.mh-dropzone > svg { width: 28px; height: 28px; color: var(--mh-primary); flex: none; }
.mh-dropzone > div { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.mh-dropzone span { color: var(--mh-muted); font-size: 13px; }
.mh-dropzone .mh-progress { flex-basis: 100%; }
.mh-dropzone:hover, .mh-dropzone.is-over { border-color: var(--mh-primary); background: var(--mh-primary-soft); }
.mh-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mh-media { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mh-media .mh-thumb { transition: transform .15s ease, box-shadow .15s ease; }
.mh-media:hover .mh-thumb { transform: translateY(-2px); box-shadow: var(--mh-shadow); }
.mh-media-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; }
.mh-media-cap > span:first-child { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mh-media-cap .mh-badge { font-size: 11px; padding: 1px 7px; }
.mh-asset-preview { border-radius: 10px; overflow: hidden; background: #0f172a; }
.mh-asset-preview :is(img, video) { display: block; width: 100%; max-height: 46vh; object-fit: contain; }
.mh-media-grid .mh-skel { display: block; border-radius: 10px; }

/* Results tabs */
.mh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mh-line); margin-bottom: 18px; overflow-x: auto; }
.mh-app .mh-tabs a { padding: 10px 14px; color: var(--mh-muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mh-app .mh-tabs a:hover { color: var(--mh-ink); text-decoration: none; }
.mh-app .mh-tabs a.is-active { color: var(--mh-ink); border-bottom-color: var(--mh-primary); }
.mh-code { margin: 12px 0; padding: 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; max-height: 160px; overflow: auto; }
.mh-leads > li { padding-left: 16px; padding-right: 16px; }
.mh-leads > li:first-child { padding-top: 12px; }
.mh-lead-status { width: auto !important; padding: 4px 26px 4px 10px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 650; }
.mh-lead-status.is-info { background-color: var(--mh-info-soft) !important; color: var(--mh-info); border-color: transparent !important; }
.mh-lead-status.is-warn { background-color: var(--mh-warn-soft) !important; color: var(--mh-warn); border-color: transparent !important; }
.mh-lead-status.is-good { background-color: var(--mh-good-soft) !important; color: var(--mh-good); border-color: transparent !important; }
.mh-lead-value { width: 96px; flex: none; }
.mh-lead-value input { padding-top: 5px !important; padding-bottom: 5px !important; }
.mh-ai-grid td:first-child { min-width: 220px; }
.mh-ai-cell { text-align: center !important; }
.mh-ai-cell svg { width: 18px; height: 18px; }
.mh-ai-cell small { display: block; font-size: 11px; font-weight: 600; }
.mh-ai-cell.is-yes { color: var(--mh-good); }
.mh-ai-cell.is-cited { color: var(--mh-good); background: color-mix(in srgb, var(--mh-good-soft) 60%, transparent); }
.mh-ai-cell.is-no { color: var(--mh-bad); }
.mh-ai-cell.is-none { color: var(--mh-faint); }

/* Brand kit */
.mh-brand-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mh-logo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-logo-box { width: 120px; height: 64px; border-radius: 10px; border: 1px solid var(--mh-line); display: grid; place-items: center; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 14px 14px; color: var(--mh-faint); overflow: hidden; }
.mh-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.mh-logo-box.is-loading { opacity: .5; }
.mh-color { display: flex; align-items: center; gap: 8px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-sm); padding: 4px 10px 4px 4px; background: var(--mh-surface); }
.mh-color input[type="color"] { width: 34px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; flex: none; }
.mh-color code { font-size: 12.5px; color: var(--mh-ink-2); text-transform: uppercase; }
.mh-brand-preview { margin-top: 6px; border-radius: var(--mh-radius); overflow: hidden; box-shadow: var(--mh-shadow); }
.mh-bp-card { aspect-ratio: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: var(--bs, #0b1f33); color: #fff; position: relative; }
.mh-bp-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--bp, #0f766e); }
.mh-bp-top { height: 34px; display: flex; align-items: center; }
.mh-bp-top img { max-height: 100%; max-width: 60%; object-fit: contain; }
.mh-bp-card h4 { margin: auto 0 0; font-size: 22px; line-height: 1.15; font-weight: 800; color: #fff; }
.mh-bp-cta { align-self: flex-start; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--ba, #f59e0b); color: #111; }
.mh-bp-card small { opacity: .75; font-size: 12px; }

@media (max-width: 1180px) {
	.mh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
	.mh-shell { grid-template-columns: minmax(0, 1fr); }
	.mh-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: var(--mh-shadow-lg); z-index: 120; }
	.mh-side.is-open { transform: none; }
	.mh-side-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 110; }
	.mh-topbar .mh-menu-btn { display: inline-flex; }
	.mh-topbar { padding: 12px 16px; }
	.mh-content { padding: 8px 16px 96px; }
	.mh-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.mh-grid-2 { grid-template-columns: minmax(0, 1fr); }
	.mh-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
	.mh-app { font-size: 14px; }
	.mh-grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
	.mh-kpi { padding: 12px 14px; }
	.mh-kpi-value { font-size: 21px; }
	.mh-spark { display: none; }
	.mh-qcard { grid-template-columns: auto minmax(0, 1fr); }
	.mh-qcard .mh-qactions { grid-column: 1 / -1; justify-content: flex-end; }
	.mh-topbar .mh-title p { display: none; }
	.mh-topbar .mh-top-actions .mh-btn-label { display: none; }
	.mh-drawer-foot .mh-btn { flex: 1; }
	.mh-kbd-hint { display: none; }
	.mh-wizard { padding: 20px 14px 48px; }
	.mh-wizard .mh-card { padding: 20px; }
	.mh-steps { overflow-x: auto; }
	.mh-step span { display: none; }
	.mh-bottom-nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
	.mh-app *, .mh-app *::before, .mh-app *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
	.mh-split-wide, .mh-brand-grid { grid-template-columns: minmax(0, 1fr); }
	.mh-rule { grid-template-columns: 1fr 1fr; }
	.mh-rule [data-del] { justify-self: end; }
	.mh-brand-preview { max-width: 320px; }
}
@media (max-width: 640px) {
	.mh-signal { padding: 16px; }
	.mh-signal-actions .mh-btn { flex: 1 1 auto; }
	.mh-leads > li { flex-wrap: wrap; }
	.mh-leads .mh-li-main { flex-basis: calc(100% - 50px); }
	.mh-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-bar-row { grid-template-columns: 84px minmax(0, 1fr) 28px; }
}
@media (prefers-reduced-motion: reduce) { .mh-voice.is-recording .mh-mic { animation: none; } }
