/**
 * Mister AI Criteria Finder — frontend styles.
 * Layout matches the mockup: left sidebar with criteria + mention filters,
 * main area with search input and prompt table.
 */

.mcf-app [hidden] {
	display: none !important;
}

.mcf-app {
	--mcf-primary: #1e4a7a;
	--mcf-primary-light: #3676b5;
	--mcf-accent: #f0b429;
	--mcf-bg: #ffffff;
	--mcf-bg-alt: #f6f8fb;
	--mcf-border: #e2e8f0;
	--mcf-text: #1a202c;
	--mcf-text-muted: #64748b;
	--mcf-openai: #10a37f;
	--mcf-anthropic: #cc785c;
	--mcf-gemini: #4285f4;
	--mcf-perplexity: #20b8cd;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--mcf-text);
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px;
	box-sizing: border-box;
}

.mcf-app *,
.mcf-app *::before,
.mcf-app *::after {
	box-sizing: border-box;
}

/* ---------- Intro / header ---------- */
.mcf-intro {
	margin-bottom: 24px;
	padding: 24px 28px;
	background: linear-gradient(135deg, #1e4a7a 0%, #3676b5 100%);
	color: #fff;
	border-radius: 14px;
}
.mcf-intro__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}
.mcf-intro__lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
	max-width: 900px;
}
.mcf-intro__details {
	margin-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 12px;
}
.mcf-intro__details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--mcf-accent, #f0b429);
	list-style: none;
	padding: 4px 0;
}
.mcf-intro__details summary::-webkit-details-marker { display: none; }
.mcf-intro__details summary::before {
	content: "▸ ";
	display: inline-block;
	transition: transform 0.15s;
}
.mcf-intro__details[open] summary::before {
	transform: rotate(90deg);
}
.mcf-intro__details p {
	margin: 12px 0 8px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}
.mcf-intro__list {
	margin: 8px 0 0;
	padding-left: 20px;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}
.mcf-intro__list li { margin-bottom: 6px; }
.mcf-intro__list strong { color: var(--mcf-accent, #f0b429); }

/* ---------- Login gate ---------- */
.mcf-login-required {
	background: var(--mcf-bg-alt, #f6f8fb);
	border: 1px solid #e2e8f0;
	padding: 32px;
	text-align: center;
	border-radius: 8px;
}
.mcf-login-btn {
	display: inline-block;
	background: #1e4a7a;
	color: #fff;
	padding: 10px 24px;
	border-radius: 6px;
	text-decoration: none;
}

/* ---------- Search ---------- */
.mcf-search {
	background: var(--mcf-bg-alt);
	padding: 24px;
	border-radius: 12px;
	margin-bottom: 24px;
}
.mcf-search__label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--mcf-text);
}
.mcf-search__row {
	display: flex;
	gap: 12px;
}
.mcf-search__input {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid var(--mcf-border);
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
}
.mcf-search__input:focus {
	outline: none;
	border-color: var(--mcf-primary-light);
	box-shadow: 0 0 0 3px rgba(54, 118, 181, 0.15);
}
.mcf-search__btn {
	padding: 14px 28px;
	background: var(--mcf-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}
.mcf-search__btn:hover {
	background: var(--mcf-primary-light);
}
.mcf-search__btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}
.mcf-search__meta {
	margin-top: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--mcf-text-muted);
}
.mcf-stage3-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 6px;
	font-size: 13px;
}
.mcf-stage3-toggle small {
	color: var(--mcf-text-muted);
	font-size: 11px;
}
.mcf-stage3-toggle input {
	margin: 0;
}

/* ---------- Loading ---------- */
.mcf-loading {
	padding: 32px;
	text-align: center;
}
.mcf-loading__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.mcf-loading__card {
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.mcf-loading__card.is-done {
	border-color: var(--mcf-openai);
	background: #f0fdf4;
}
.mcf-loading__card.is-error {
	border-color: #dc2626;
	background: #fef2f2;
}
.mcf-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--mcf-border);
	border-top-color: var(--mcf-primary);
	border-radius: 50%;
	animation: mcf-spin 0.9s linear infinite;
}
@keyframes mcf-spin {
	to { transform: rotate(360deg); }
}
.mcf-loading__hint {
	color: var(--mcf-text-muted);
	font-size: 14px;
}

/* ---------- Error ---------- */
.mcf-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}
.mcf-stage3-progress {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
	padding: 14px 20px;
	border-radius: 8px;
	margin-bottom: 16px;
}
.mcf-stage3-progress__label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.mcf-stage3-progress__label span {
	color: #1d4ed8;
	font-variant-numeric: tabular-nums;
}
.mcf-stage3-progress__bar-wrap {
	height: 8px;
	background: #dbeafe;
	border-radius: 4px;
	overflow: hidden;
}
.mcf-stage3-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #1e40af);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.mcf-diagnostics {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #78350f;
	padding: 12px 18px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 13px;
}
.mcf-diagnostics strong {
	display: block;
	margin-bottom: 6px;
	color: #92400e;
}
.mcf-diagnostics ul {
	margin: 0;
	padding-left: 20px;
}
.mcf-diagnostics li {
	margin-bottom: 3px;
	word-break: break-word;
}

/* ---------- Dashboard (Industry Ranking + Sources + Fan-out + Entities) ---------- */
.mcf-dashboard {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 24px;
}
.mcf-ranking__row--entity .mcf-ranking__label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.mcf-ranking__tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	background: #eef2ff;
	color: #4338ca;
	border-radius: 999px;
	white-space: nowrap;
}
@media (max-width: 900px) {
	.mcf-dashboard { grid-template-columns: 1fr; }
}
.mcf-card {
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 12px;
	padding: 20px 22px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mcf-card__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--mcf-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}
.mcf-card__subtitle {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--mcf-text-muted);
}
.mcf-ranking {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.mcf-ranking__row {
	display: grid;
	grid-template-columns: 28px 1fr 52px;
	gap: 10px;
	align-items: center;
	font-size: 13px;
}
.mcf-ranking__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--mcf-bg-alt);
	color: var(--mcf-text-muted);
	font-size: 11px;
	font-weight: 700;
}
.mcf-ranking__row:nth-child(1) .mcf-ranking__rank { background: #fef3c7; color: #92400e; }
.mcf-ranking__row:nth-child(2) .mcf-ranking__rank { background: #e0e7ff; color: #3730a3; }
.mcf-ranking__row:nth-child(3) .mcf-ranking__rank { background: #fce7f3; color: #9d174d; }
.mcf-ranking__main { min-width: 0; }
.mcf-ranking__label {
	font-weight: 600;
	color: var(--mcf-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.mcf-ranking__label a {
	color: var(--mcf-primary);
	text-decoration: none;
}
.mcf-ranking__label a:hover { text-decoration: underline; }
.mcf-ranking__bar-wrap {
	height: 6px;
	background: var(--mcf-bg-alt);
	border-radius: 3px;
	overflow: hidden;
}
.mcf-ranking__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--mcf-primary-light), var(--mcf-primary));
	border-radius: 3px;
	transition: width 0.3s;
}
.mcf-ranking__value {
	text-align: right;
	font-size: 12px;
	font-weight: 700;
	color: var(--mcf-primary);
}
.mcf-ranking__row--source .mcf-ranking__value {
	color: var(--mcf-text-muted);
	font-weight: 600;
}
.mcf-ranking__empty {
	font-size: 13px;
	color: var(--mcf-text-muted);
	padding: 12px 0;
}

.mcf-fanout-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 420px;
	overflow-y: auto;
}
.mcf-fanout-item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	background: var(--mcf-bg-alt);
	border-radius: 6px;
	font-size: 13px;
}
.mcf-fanout-item__freq {
	display: inline-flex;
	gap: 2px;
	align-items: flex-end;
	height: 14px;
}
.mcf-freq-bar {
	display: inline-block;
	width: 6px;
	background: #e2e8f0;
	border-radius: 1px;
}
.mcf-freq-bar:nth-child(1) { height: 3px; }
.mcf-freq-bar:nth-child(2) { height: 6px; }
.mcf-freq-bar:nth-child(3) { height: 9px; }
.mcf-freq-bar:nth-child(4) { height: 12px; }
.mcf-freq-bar:nth-child(5) { height: 14px; }
.mcf-freq-bar.is-on { background: var(--mcf-primary); }
.mcf-fanout-item__query {
	color: var(--mcf-text);
	line-height: 1.4;
}
.mcf-fanout-list__empty {
	font-size: 13px;
	color: var(--mcf-text-muted);
	padding: 12px 0;
}

/* ---------- Results layout ---------- */
.mcf-results {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.mcf-results { grid-template-columns: 1fr; }
}

/* ---------- Sidebar ---------- */
.mcf-sidebar {
	background: var(--mcf-bg-alt);
	padding: 20px;
	border-radius: 12px;
	border: 2px solid var(--mcf-primary-light);
	position: sticky;
	top: 20px;
}
.mcf-sidebar__title {
	margin: 0 0 14px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mcf-text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}
.mcf-sidebar__title--sub {
	margin-top: 24px;
}
.mcf-sidebar__count {
	background: var(--mcf-primary);
	color: #fff;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
}
.mcf-criteria-list,
.mcf-mentions-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mcf-criterion-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: var(--mcf-primary);
	color: #fff;
	border: none;
	padding: 10px 14px;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s, transform 0.1s;
}
.mcf-criterion-btn:hover {
	background: var(--mcf-primary-light);
}
.mcf-criterion-btn.is-active {
	background: var(--mcf-accent);
	color: var(--mcf-text);
}
.mcf-criterion-btn__count {
	background: rgba(255, 255, 255, 0.25);
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 8px;
}
.mcf-criterion-btn.is-active .mcf-criterion-btn__count {
	background: rgba(0, 0, 0, 0.15);
}

.mcf-mention-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 6px;
	font-size: 13px;
}
.mcf-mention-toggle input {
	margin: 0;
}
.mcf-mention-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.mcf-mention-badge--openai     { background: var(--mcf-openai); }
.mcf-mention-badge--anthropic  { background: var(--mcf-anthropic); }
.mcf-mention-badge--gemini     { background: var(--mcf-gemini); }
.mcf-mention-badge--perplexity { background: var(--mcf-perplexity); }

/* ---------- Main table ---------- */
.mcf-main {
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 12px;
	min-width: 0;
}
.mcf-table-wrap {
	overflow-x: auto;
}
.mcf-main__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	border-bottom: 1px solid var(--mcf-border);
	gap: 16px;
	flex-wrap: wrap;
}
.mcf-main__header h3 {
	margin: 0;
	font-size: 16px;
	color: var(--mcf-text);
	min-width: 0;
	word-break: break-word;
	flex: 1 1 auto;
}
.mcf-actions {
	display: flex;
	gap: 8px;
}
.mcf-btn {
	padding: 8px 16px;
	border-radius: 6px;
	border: 1px solid var(--mcf-border);
	background: #fff;
	color: var(--mcf-text);
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s;
}
.mcf-btn:hover {
	background: var(--mcf-bg-alt);
}
.mcf-btn--ghost {
	background: #fff;
}

/* ---------- Brand / product filter bar ---------- */
.mcf-brand-bar {
	display: flex;
	gap: 16px;
	padding: 16px 20px;
	background: var(--mcf-bg-alt);
	border-bottom: 1px solid var(--mcf-border);
	align-items: center;
	flex-wrap: wrap;
}
.mcf-brand-bar__field {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
.mcf-brand-bar__label {
	font-weight: 600;
	color: var(--mcf-text);
}
.mcf-brand-bar select {
	padding: 8px 12px;
	border: 1px solid var(--mcf-border);
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	min-width: 200px;
}
.mcf-brand-bar select:disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

/* ---------- Visibility + data columns ---------- */
.mcf-col-visibility { width: 110px; }
.mcf-col-data       { width: 100px; }
.mcf-table [hidden] { display: none !important; }

.mcf-visibility-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 12px;
}
.mcf-visibility-badge.is-high { background: #d1fae5; color: #065f46; }
.mcf-visibility-badge.is-mid  { background: #fef3c7; color: #92400e; }
.mcf-visibility-badge.is-low  { background: #fee2e2; color: #991b1b; }

.mcf-data-dots {
	display: inline-flex;
	gap: 4px;
}
.mcf-data-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e2e8f0;
	display: inline-block;
}
.mcf-data-dot--on {
	background: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mcf-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.mcf-table thead th {
	text-align: left;
	padding: 12px 16px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mcf-text-muted);
	background: var(--mcf-bg-alt);
	border-bottom: 1px solid var(--mcf-border);
	font-weight: 600;
}
.mcf-table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--mcf-border);
	font-size: 14px;
	vertical-align: top;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.mcf-table tbody tr:last-child td {
	border-bottom: none;
}
.mcf-table tbody tr:hover {
	background: var(--mcf-bg-alt);
}
.mcf-table tbody tr.is-selected {
	background: #fff7e0;
}
.mcf-table tbody tr.is-selected:hover {
	background: #fff1c7;
}

.mcf-selection-count {
	font-size: 13px;
	color: var(--mcf-accent);
	font-weight: 600;
	padding: 6px 12px;
	background: #fff7e0;
	border-radius: 6px;
	margin-right: 4px;
}
.mcf-col-check     { width: 36px; }
.mcf-col-mentions  { width: 110px; }
.mcf-col-criterion { width: 140px; }
.mcf-col-prompt    { min-width: 220px; }
.mcf-table tbody td.mcf-col-prompt {
	white-space: normal;
	word-break: break-word;
}

.mcf-mention-dots {
	display: inline-flex;
	gap: 4px;
}
.mcf-mention-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e2e8f0;
	display: inline-block;
}
.mcf-mention-dot--openai     { background: var(--mcf-openai); }
.mcf-mention-dot--anthropic  { background: var(--mcf-anthropic); }
.mcf-mention-dot--gemini     { background: var(--mcf-gemini); }
.mcf-mention-dot--perplexity { background: var(--mcf-perplexity); }

.mcf-criterion-tag {
	display: inline-block;
	background: var(--mcf-primary);
	color: #fff;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.mcf-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--mcf-text-muted);
}

/* ---------- Export-All Section (bottom of results) ---------- */
.mcf-export-all {
	margin: 36px 0 16px;
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
	color: #fff;
	border-radius: 16px;
	padding: 32px 36px;
	box-shadow: 0 8px 24px rgba(30, 58, 138, 0.2);
}
.mcf-export-all__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
@media (min-width: 900px) {
	.mcf-export-all__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
.mcf-export-all__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}
.mcf-export-all__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 620px;
}
.mcf-export-all__buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
}
.mcf-btn--xl {
	font-size: 15px;
	font-weight: 600;
	padding: 14px 22px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.2s ease;
	text-decoration: none;
}
.mcf-btn--xl:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.mcf-btn--primary.mcf-btn--xl {
	background: #fff;
	color: #1e3a8a;
	border-color: #fff;
}
.mcf-btn--primary.mcf-btn--xl:hover {
	background: #f8fafc;
}
.mcf-btn--outline.mcf-btn--xl {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.8);
}
.mcf-btn--outline.mcf-btn--xl:hover {
	background: rgba(255, 255, 255, 0.1);
}
.mcf-btn__icon {
	font-size: 20px;
	line-height: 1;
}

/* ---------- Print / PDF ---------- */
@media print {
	body * { visibility: hidden; }
	.mcf-app, .mcf-app * { visibility: visible; }
	.mcf-app { position: absolute; left: 0; top: 0; max-width: none; padding: 0; }
	.mcf-search, .mcf-sidebar, .mcf-actions, .mcf-col-check,
	.mcf-selection-count, #mcf-loading, #mcf-error,
	.mcf-intro__details { display: none !important; }
	.mcf-intro {
		background: none !important;
		color: #000 !important;
		padding: 0 !important;
		margin-bottom: 12px !important;
	}
	.mcf-intro__title { font-size: 16px !important; }
	.mcf-intro__lead { color: #000 !important; font-size: 11px !important; }
	.mcf-dashboard { grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-bottom: 12px !important; }
	.mcf-card { box-shadow: none !important; padding: 10px 12px !important; }
	.mcf-card__title { font-size: 12px !important; }
	.mcf-ranking__row { font-size: 10px !important; }
	.mcf-results { grid-template-columns: 1fr; }
	.mcf-main { border: none; }
	.mcf-table tbody td { font-size: 11px; padding: 6px 8px; }
	.mcf-table tbody tr.is-selected { background: transparent !important; }

	/* Hide the export-all block on every print */
	.mcf-export-all { display: none !important; }

	/* When "print selection only" mode is active, hide all rows that are not selected */
	body.mcf-print-selection-only .mcf-table tbody tr:not(.is-selected) {
		display: none !important;
	}

	/* Full-report PDF: ensure everything is visible and nicely paginated */
	body.mcf-print-full .mcf-dashboard {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px !important;
		page-break-inside: avoid;
	}
	body.mcf-print-full .mcf-card {
		break-inside: avoid;
		page-break-inside: avoid;
	}
	body.mcf-print-full .mcf-table tbody tr {
		page-break-inside: avoid;
	}
	body.mcf-print-full .mcf-sidebar { display: none !important; }
	body.mcf-print-full .mcf-actions,
	body.mcf-print-full .mcf-col-check,
	body.mcf-print-full .mcf-selection-count,
	body.mcf-print-full .mcf-brand-bar { display: none !important; }
	body.mcf-print-full .mcf-results { grid-template-columns: 1fr !important; }
	body.mcf-print-full .mcf-main { border: none !important; padding: 0 !important; }
	body.mcf-print-full .mcf-main__header { padding: 0 !important; margin-bottom: 8px !important; }
	body.mcf-print-full #mcf-base-query {
		font-size: 16px !important;
		font-weight: 700 !important;
		margin: 12px 0 6px !important;
	}
	body.mcf-print-full .mcf-fanout-list { font-size: 10px !important; }
	body.mcf-print-full .mcf-fanout-item { padding: 4px 0 !important; }
	body.mcf-print-full .mcf-ranking__row--entity .mcf-ranking__tag {
		background: #eef2ff !important;
		color: #4338ca !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

/* =========================================================================
   Credits & Stripe
   ========================================================================= */

/* Buy-credits link inside the tool meta bar */
.mcf-buy-link {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #c7d2fe;
	transition: background 0.15s, color 0.15s;
}
.mcf-buy-link:hover,
.mcf-buy-link:focus {
	background: #4338ca;
	color: #fff;
	text-decoration: none;
}

/* Top-up error — prominent CTA when the user runs out of credits */
.mcf-error.mcf-error--topup {
	background: linear-gradient( 135deg, #fff7ed 0%, #fef3c7 100% );
	border: 1px solid #fbbf24;
	color: #92400e;
	padding: 20px 24px;
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.mcf-error.mcf-error--topup strong {
	font-size: 16px;
	flex: 1 1 auto;
}
.mcf-error.mcf-error--topup .mcf-topup__meta {
	font-size: 13px;
	color: #78350f;
	flex: 1 1 100%;
	margin-top: -8px;
}
.mcf-topup__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	background: #4338ca;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s, transform 0.1s;
}
.mcf-topup__btn:hover,
.mcf-topup__btn:focus {
	background: #3730a3;
	color: #fff !important;
	text-decoration: none;
	transform: translateY( -1px );
}

/* =========================================================================
   Pricing page ([mister_ai_pricing])
   ========================================================================= */
.mcf-pricing {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1f2937;
}
.mcf-pricing__intro {
	text-align: center;
	margin-bottom: 32px;
}
.mcf-pricing__title {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 12px 0;
	color: #111827;
}
.mcf-pricing__lead {
	font-size: 16px;
	color: #4b5563;
	max-width: 640px;
	margin: 0 auto 12px auto;
	line-height: 1.6;
}
.mcf-pricing__balance {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	font-weight: 600;
	font-size: 14px;
}

.mcf-pricing__grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 24px;
	margin-bottom: 24px;
}

.mcf-pack {
	position: relative;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
	transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}
.mcf-pack:hover {
	border-color: #c7d2fe;
	transform: translateY( -2px );
	box-shadow: 0 10px 25px -5px rgba( 67, 56, 202, 0.15 );
}
.mcf-pack--popular {
	border-color: #4338ca;
	box-shadow: 0 10px 25px -5px rgba( 67, 56, 202, 0.2 );
}
.mcf-pack--disabled {
	opacity: 0.55;
	filter: grayscale( 0.3 );
}
.mcf-pack__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX( -50% );
	background: #4338ca;
	color: #fff;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.mcf-pack__name {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #111827;
}
.mcf-pack__price {
	margin-bottom: 8px;
}
.mcf-pack__amount {
	font-size: 42px;
	font-weight: 800;
	color: #4338ca;
	line-height: 1;
}
.mcf-pack__credits {
	font-size: 15px;
	color: #374151;
	margin: 8px 0 12px 0;
}
.mcf-pack__credits strong {
	font-size: 18px;
	color: #111827;
}
.mcf-pack__desc {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 24px 0;
	flex: 1 1 auto;
}
.mcf-pack__btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border-radius: 10px;
	background: #4338ca;
	color: #fff;
	border: none;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}
.mcf-pack__btn:hover:not( :disabled ) {
	background: #3730a3;
	transform: translateY( -1px );
}
.mcf-pack__btn:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}
.mcf-pack--popular .mcf-pack__btn {
	background: linear-gradient( 135deg, #4338ca 0%, #6366f1 100% );
}

.mcf-pricing__note {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin: 16px 0 0 0;
}
.mcf-pricing__error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 16px 0;
	font-size: 14px;
}

/* Notice boxes (success / warn) used on pricing page */
.mcf-notice {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
}
.mcf-notice--success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}
.mcf-notice--warn {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	color: #92400e;
}
.mcf-notice a {
	color: inherit;
	text-decoration: underline;
	font-weight: 600;
}
