/* Myth Box — front. Conceito "aparte costurado": cartão com lavado derivado da
   cor do tema (color-mix), etiqueta costurada na borda superior, abas em
   segmented control e CTA em forma de campo de chat. Sem webfonts. */

:root {
	--mythbox-accent: #0f6fff;
	--mythbox-bg: #ffffff;
	--mythbox-surface: #f5f6f8;
	--mythbox-text: #171a20;
	--mythbox-muted: #69717f;
	--mythbox-border: #e6e8ee;
	--mythbox-radius: 18px;
	--mythbox-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* Derivadas (fallback sem color-mix) */
	--mythbox-wash: var(--mythbox-surface);
	--mythbox-wash-2: var(--mythbox-surface);
	--mythbox-line: var(--mythbox-border);
	--mythbox-glow: rgba(0, 0, 0, 0.10);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
	:root {
		--mythbox-wash: color-mix(in srgb, var(--mythbox-accent) 6%, var(--mythbox-bg));
		--mythbox-wash-2: color-mix(in srgb, var(--mythbox-accent) 12%, var(--mythbox-bg));
		--mythbox-line: color-mix(in srgb, var(--mythbox-accent) 22%, var(--mythbox-border));
		--mythbox-glow: color-mix(in srgb, var(--mythbox-accent) 30%, transparent);
	}
}
/* O modo escuro é controlado pelo admin (Geral > Aparência): claro, escuro ou automático. */
:root { --mythbox-fab-bottom: 18px; }

/* ------------------------------------------------------------ Barra social */
.mythbox-share {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0;
	font-family: var(--mythbox-font);
}
.mythbox-share-row { display: flex; gap: 10px; align-items: stretch; }
.mythbox-share-main {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #1baa4f;
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	height: 52px;
	padding: 0 16px;
	border-radius: 16px;
	text-decoration: none;
	box-shadow: 0 6px 16px -8px rgba(27, 170, 79, 0.55);
	transition: filter 0.16s;
}
.mythbox-share-main:hover { filter: brightness(1.06); color: #fff; }
.mythbox-share-main svg { width: 20px; height: 20px; }
.mythbox-share-sq {
	appearance: none;
	flex: 0 0 52px;
	height: 52px;
	border: 0;
	border-radius: 16px;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.16s, transform 0.16s;
}
.mythbox-share-sq:hover { filter: brightness(1.1); transform: translateY(-1px); }
.mythbox-share-x { background: #000; color: #fff; border: 1px solid #2a2a2a; }
.mythbox-share-fb { background: #1877f2; color: #fff; }
.mythbox-share-tg { background: #229ed9; color: #fff; }
.mythbox-share-copy { background: var(--mythbox-bg); border: 1px solid var(--mythbox-border); color: var(--mythbox-text); }
.mythbox-share-copy.is-copied { background: var(--mythbox-accent); border-color: var(--mythbox-accent); color: #fff; }
.mythbox-share-row:not(:has(.mythbox-share-main)) .mythbox-share-sq { flex: 1; }

.mythbox-follow-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: #ffffff;
	border: 1px solid #dadce0;
	color: #1f1f1f;
	font-size: 15px;
	font-weight: 600;
	height: 50px;
	padding: 0 16px;
	border-radius: 16px;
	text-decoration: none;
	box-sizing: border-box;
	transition: box-shadow 0.16s;
}
.mythbox-follow-google:hover { color: #1f1f1f; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.mythbox-follow-google svg { width: 18px; height: 18px; }
.mythbox-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ea4335; animation: mythbox-pulse 2s infinite; }

/* Blindagem de caixa: independe do box-sizing do tema (WPBakery etc.). */
.mythbox,
.mythbox *,
.mythbox *::before,
.mythbox *::after,
.mythbox-share,
.mythbox-share *,
.mythbox-chat,
.mythbox-chat * {
	box-sizing: border-box !important;
}
.mythbox,
.mythbox-share {
	max-width: 100% !important;
}

/* ------------------------------------------------------------------ Cartão */
.mythbox {
	position: relative;
	overflow: hidden; /* nada escapa do quadrado: track, abas e cards ficam recortados no cartão */
	margin: 28px 0;
	padding: 18px 20px 14px;
	background: var(--mythbox-bg);
	border: 1px solid var(--mythbox-border);
	border-radius: var(--mythbox-radius);
	font-family: var(--mythbox-font);
	color: var(--mythbox-text);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px -14px rgba(16, 24, 40, 0.12);
}

/* Cabeçalho: ponto + nome | IA (etiqueta discreta) */
.mythbox-head { display: flex; flex-direction: column; }
.mythbox-brandrow { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.mythbox-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--mythbox-text);
}
.mythbox-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mythbox-accent); }
.mythbox-sep { width: 1px; height: 16px; background: var(--mythbox-border); }
.mythbox-ia {
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--mythbox-accent);
	background: var(--mythbox-wash-2);
	border: 0;
	border-radius: 999px;
	padding: 4px 10px;
}

/* Abas: sublinhado com contador em selo */
.mythbox-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--mythbox-border);
	margin: 0 -20px;
	padding: 0 16px;
	overflow-x: auto;
	scrollbar-width: none;
}
.mythbox-tabs::-webkit-scrollbar { display: none; }
.mythbox-tab {
	appearance: none;
	position: relative;
	border: 0;
	background: transparent;
	color: var(--mythbox-muted);
	font-family: var(--mythbox-font);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 12px 12px 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.16s;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.mythbox-tab:hover { color: var(--mythbox-text); }
.mythbox-tab em {
	font-style: normal;
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--mythbox-accent);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	opacity: 1;
	margin: 0;
}
.mythbox-tab.is-active { color: var(--mythbox-text); }
.mythbox-tab.is-active { color: var(--mythbox-accent); }
.mythbox-tab.is-active::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--mythbox-accent);
}

/* Blindagem: o tema do site não pode recolorir os textos do box. */
.mythbox p,
.mythbox div,
.mythbox span,
.mythbox b,
.mythbox li,
.mythbox button,
.mythbox a:not(.mythbox-ds a) {
	font-family: var(--mythbox-font) !important;
	color: inherit;
}
.mythbox { color: var(--mythbox-text) !important; }
.mythbox .mythbox-chips-hint { margin-top: 12px !important; }
.mythbox .mythbox-chips-hint,
.mythbox .mythbox-foot,
.mythbox .mythbox-foot > span {
	color: var(--mythbox-muted) !important;
	font-family: var(--mythbox-font) !important;
	font-size: 12.5px !important;
	line-height: 1.5 !important;
	margin-top: 10px;
}
.mythbox .mythbox-clave { color: var(--mythbox-text) !important; }
.mythbox .mythbox-chip { color: var(--mythbox-text) !important; }

/* Painéis */
.mythbox-pane { display: none; padding-top: 18px; }
.mythbox-pane.is-active { display: block; }

/* Chaves: cards em carrossel com "espiada" do próximo */
.mythbox-track {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin: 0 -20px;
	padding: 2px 20px;
	scroll-padding-left: 20px;
	-webkit-overflow-scrolling: touch;
}
.mythbox-clave { scroll-snap-align: start; }
.mythbox-track::-webkit-scrollbar { display: none; }
	.mythbox-clave { overflow-wrap: anywhere; }
.mythbox-clave {
	flex: 0 0 calc(100% - 36px);
	scroll-snap-align: start;
	margin: 2px 0 6px;
	box-sizing: border-box;
	position: relative;
	background: var(--mythbox-wash);
	border: 0;
	border-radius: 16px;
	padding: 18px 20px 18px 24px;
	font-size: 16.5px;
	line-height: 1.6;
	font-weight: 500;
	letter-spacing: -0.006em;
	box-shadow: inset 0 0 0 1px var(--mythbox-line);
}
.mythbox-clave::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 16px;
	bottom: 16px;
	width: 3.5px;
	border-radius: 3px;
	background: var(--mythbox-accent);
}
.mythbox-track.is-single .mythbox-clave { flex-basis: 100%; }
.mythbox-carousel-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	min-height: 34px;
}
.mythbox-cnext {
	appearance: none;
	position: absolute;
	right: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--mythbox-line);
	background: var(--mythbox-bg);
	color: var(--mythbox-text);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.16s, color 0.16s;
}
.mythbox-cnext:hover { border-color: var(--mythbox-accent); color: var(--mythbox-accent); }
.mythbox-cdots { display: inline-flex; gap: 7px; align-items: center; }
.mythbox-cdots i {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--mythbox-wash-2);
	box-shadow: inset 0 0 0 1px var(--mythbox-line);
	cursor: pointer;
	transition: all 0.2s;
}
.mythbox-cdots i.is-active { width: 22px; background: var(--mythbox-accent); box-shadow: none; }

/* CTA: campo de chat com envio sólido */
.mythbox-cta {
	appearance: none;
	margin-top: 16px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--mythbox-bg);
	border: 1px solid var(--mythbox-line);
	border-radius: 999px;
	padding: 7px 7px 7px 18px;
	cursor: pointer;
	font-family: var(--mythbox-font);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px -10px rgba(16, 24, 40, 0.14);
	transition: border-color 0.18s, box-shadow 0.18s;
}
.mythbox-cta-ph { color: var(--mythbox-muted); font-size: 14.5px; font-weight: 500; text-align: left; }
.mythbox-cta-go {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--mythbox-accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 17px;
	font-style: normal;
	transition: transform 0.18s;
}
.mythbox-cta:hover { border-color: var(--mythbox-accent); box-shadow: 0 0 0 3px var(--mythbox-wash-2); }
.mythbox-cta:hover .mythbox-cta-go { transform: translateX(2px); }

/* Perguntas: linhas tocáveis */
.mythbox-chips { display: flex; flex-direction: column; gap: 8px; }
.mythbox-chip {
	appearance: none;
	overflow-wrap: anywhere;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
	background: var(--mythbox-bg);
	border: 1px solid var(--mythbox-border);
	border-radius: 14px;
	padding: 12px 14px;
	font-family: var(--mythbox-font);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--mythbox-text);
	cursor: pointer;
	transition: border-color 0.16s, background 0.16s;
}
.mythbox-chip::after {
	content: "→";
	color: var(--mythbox-accent);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.16s, transform 0.16s;
}
.mythbox-chip:hover { border-color: var(--mythbox-accent); background: var(--mythbox-wash); }
.mythbox-chip:active, .mythbox-cta:active, .mythbox-share-main:active, .mythbox-share-sq:active { transform: scale(0.985); }
.mythbox-chip:hover::after { opacity: 1; transform: none; }
.mythbox-chips-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--mythbox-muted); }

/* Descubra */
.mythbox-ds { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.mythbox-ds li { list-style: none !important; margin: 0 !important; padding: 0 !important; text-indent: 0 !important; }
.mythbox-ds li::before, .mythbox-ds li::after { content: none !important; display: none !important; }
.mythbox-ds li::marker { content: '' !important; }
.mythbox-ds li::before { content: none !important; display: none !important; }
.mythbox-ds li + li { border-top: 1px solid var(--mythbox-border); }
.mythbox-ds a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 6px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--mythbox-text);
	transition: background 0.16s;
}
.mythbox-ds a:hover { background: var(--mythbox-wash); }
.mythbox-ds img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.mythbox-ds b {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mythbox-ds small { display: block; margin-top: 3px; font-size: 12px; color: var(--mythbox-muted); }
.mythbox-ds-more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--mythbox-accent); text-decoration: none; }

/* Rodapé */
.mythbox-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	padding-top: 10px;
	border-top: 1px solid var(--mythbox-border);
	font-size: 11px;
	color: var(--mythbox-muted);
	opacity: 0.85;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mythbox-foot > span { overflow: hidden; text-overflow: ellipsis; }
.mythbox-foot > span::before { content: "ⓘ"; margin-right: 6px; opacity: 0.7; }
.mythbox-foot a { color: inherit; text-decoration: underline; white-space: nowrap; }
.mythbox-foot a:hover { color: var(--mythbox-accent); }

/* ------------------------------------------------------------ Chat / botão */
.mythbox-launcher {
	position: fixed;
	right: 18px;
	bottom: var(--mythbox-fab-bottom, 18px);
	z-index: 2147482989;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: var(--mythbox-accent);
	color: #fff;
	font-family: var(--mythbox-font);
	font-weight: 700;
	font-size: 14px;
	padding: 12px 18px;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 10px 28px -6px var(--mythbox-glow);
	transition: transform 0.16s;
}
.mythbox-launcher:hover { transform: translateY(-2px); }
.mythbox-launcher-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mythbox-pulse 2s infinite; }
.mythbox-launcher-x { font-style: normal; opacity: 0.7; margin-left: 4px; padding: 0 2px; }
.mythbox-launcher-x:hover { opacity: 1; }

.mythbox-chat { position: fixed; inset: 0; z-index: 2147482990; pointer-events: none; font-family: var(--mythbox-font); }
.mythbox-chat[hidden] { display: none !important; }
/* Durante o card de login, o painel desce de camada para o One Tap/o popup do Google ficarem NA FRENTE. */
.mythbox-chat.mythbox-under-google { z-index: 999999; }
.mythbox-chat-panel {
	pointer-events: auto;
	position: absolute;
	right: 18px;
	bottom: var(--mythbox-fab-bottom, 18px);
	width: min(400px, calc(100vw - 24px));
	height: min(560px, calc(100vh - 40px));
	display: flex;
	flex-direction: column;
	background: var(--mythbox-bg);
	color: var(--mythbox-text);
	border: 1px solid var(--mythbox-line);
	border-radius: 20px;
	box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
.mythbox-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	background: linear-gradient(180deg, var(--mythbox-wash-2), var(--mythbox-wash));
	border-bottom: 1px solid var(--mythbox-line);
	color: var(--mythbox-text);
	font-size: 14px;
	font-weight: 700;
}
.mythbox-chat-head::before { content: "✦"; color: var(--mythbox-accent); margin-right: 8px; }
.mythbox-chat-tools { display: inline-flex; align-items: center; gap: 10px; }
.mythbox-chat-logout {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--mythbox-muted);
	font-size: 11px;
	font-weight: 600;
	text-decoration: underline;
	opacity: 0.65;
	cursor: pointer;
	padding: 2px 4px;
}
.mythbox-chat-logout:hover { opacity: 1; color: var(--mythbox-text); }
.mythbox-chat-clear { appearance: none; border: 0; background: transparent; color: var(--mythbox-muted); font-size: 11px; font-weight: 600; text-decoration: underline; opacity: 0.65; cursor: pointer; padding: 2px 4px; }
.mythbox-chat-clear:hover { opacity: 1; color: var(--mythbox-text); }
.mythbox-chat-close {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--mythbox-muted);
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	min-width: 40px;
	min-height: 40px;
	display: grid;
	place-items: center;
	margin: -8px -8px -8px 0;
}
.mythbox-chat-close:hover { color: var(--mythbox-text); }

.mythbox-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mythbox-chat, .mythbox-chat * { font-family: var(--mythbox-font) !important; }
.mythbox-chat-panel { color: var(--mythbox-text) !important; }
.mythbox-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.mythbox-msg-user { white-space: pre-wrap; }
.mythbox-msg-assistant span { display: block; margin: 0 0 6px; }
.mythbox-msg-assistant span:last-child { margin-bottom: 0; }
.mythbox-msg-assistant br { display: block; content: ''; margin-top: 2px; }
.mythbox-msg-assistant ul, .mythbox-msg-assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.mythbox-msg-assistant li { margin: 0 0 5px; list-style: revert !important; }
.mythbox-msg-assistant ul li { list-style-type: disc !important; }
.mythbox-msg-assistant ol li { list-style-type: decimal !important; }
.mythbox-msg-assistant li::marker { color: var(--mythbox-accent); content: revert !important; }
.mythbox-msg-assistant b { font-weight: 700; }
.mythbox-md-h { display: block; margin: 8px 0 4px; font-size: 14px; }
.mythbox-msg-user { color: #fff !important; }
.mythbox-msg-assistant { color: var(--mythbox-text) !important; }
.mythbox-msg-user { align-self: flex-end; background: var(--mythbox-accent); color: #fff; border-bottom-right-radius: 5px; }
.mythbox-msg-assistant { align-self: flex-start; background: var(--mythbox-wash-2); border-bottom-left-radius: 5px; }
.mythbox-msg.is-typing { color: var(--mythbox-muted); font-style: italic; }

.mythbox-chat-upgrade { padding: 8px 14px; background: var(--mythbox-wash); border-top: 1px solid var(--mythbox-border); font-size: 13px; }
.mythbox-chat-upgrade a { color: var(--mythbox-accent); font-weight: 700; text-decoration: none; }

.mythbox-chat-reg { padding: 14px; border-top: 1px solid var(--mythbox-border); background: transparent; }
.mythbox-reg-inner {
	background: var(--mythbox-bg);
	border: 1px solid var(--mythbox-line);
	border-radius: 18px;
	padding: 20px 18px 16px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 28px -16px var(--mythbox-glow);
}
.mythbox-reg-spark {
	width: 40px;
	height: 40px;
	margin: 0 auto 10px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--mythbox-wash-2);
	color: var(--mythbox-accent);
	font-size: 18px;
}
.mythbox-reg-inner h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.mythbox-reg-inner p { margin: 0 auto 14px; font-size: 13.5px; line-height: 1.5; color: var(--mythbox-muted); max-width: 300px; }
.mythbox-reg-google { display: flex; justify-content: center; margin-bottom: 4px; }
.mythbox-reg-inner .mythbox-reg-optin { justify-content: center; text-align: left; max-width: 300px; margin: 12px auto 0; }
.mythbox-reg-optin { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin-top: 10px; color: var(--mythbox-muted); }
.mythbox-reg-legal { font-size: 11.5px !important; margin: 8px 0 0 !important; }
.mythbox-reg-login {
	display: inline-block;
	background: var(--mythbox-accent);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 999px;
	text-decoration: none;
}

.mythbox-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--mythbox-border); }
.mythbox-chat-form input {
	flex: 1;
	border: 1px solid var(--mythbox-border) !important;
	background: var(--mythbox-bg) !important;
	color: var(--mythbox-text) !important;
	-webkit-text-fill-color: var(--mythbox-text) !important;
	caret-color: var(--mythbox-accent);
	border-radius: 999px !important;
	padding: 10px 15px !important;
	font-size: 14px !important;
	font-family: var(--mythbox-font) !important;
	line-height: 1.4 !important;
	height: auto !important;
	box-shadow: none;
	outline: none;
	transition: border-color 0.16s, box-shadow 0.16s;
}
.mythbox-chat-form input::placeholder { color: var(--mythbox-muted) !important; -webkit-text-fill-color: var(--mythbox-muted) !important; opacity: 1; }
/* Autofill do Chrome (pinta o campo de branco por conta própria) */
.mythbox-chat-form input:-webkit-autofill,
.mythbox-chat-form input:-webkit-autofill:hover,
.mythbox-chat-form input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--mythbox-text) !important;
	-webkit-box-shadow: 0 0 0 40px var(--mythbox-bg) inset !important;
	transition: background-color 99999s ease-in-out 0s;
}
.mythbox-chat-form input:focus { border-color: var(--mythbox-accent); box-shadow: 0 0 0 3px var(--mythbox-wash-2); }
.mythbox-chat-form button {
	appearance: none;
	border: 0;
	background: var(--mythbox-accent);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
}

/* ------------------------------------------------------- Acessibilidade */
.mythbox :focus-visible,
.mythbox-share :focus-visible,
.mythbox-chat :focus-visible,
.mythbox-launcher:focus-visible {
	outline: 2px solid var(--mythbox-accent);
	outline-offset: 2px;
}

@keyframes mythbox-rise {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
@keyframes mythbox-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
	.mythbox-launcher-dot { animation: none; }
	.mythbox-share-sq:hover,
	.mythbox-launcher:hover,
	.mythbox-cta:hover .mythbox-cta-go { transform: none; }
	.mythbox-live-dot { animation: none; }
	.mythbox-track { scroll-behavior: auto; }
}

@media (max-width: 520px) {
	.mythbox { padding: 16px 14px 12px; }
	.mythbox-tabs { margin: 0 -14px; padding: 0 6px; }
	.mythbox-track { margin: 0 -14px; padding: 2px 14px; }
	.mythbox-tab { font-size: 12px; padding: 11px 9px 13px; }
	.mythbox-follow-google { margin-left: 0; }
	/* Celular: folha ancorada embaixo (não cobre a página inteira),
	   terminando ACIMA da zona do anúncio sticky. */
	.mythbox-chat-panel {
		left: 8px;
		right: 8px;
		top: auto;
		bottom: var(--mythbox-fab-bottom, 8px);
		width: auto;
		height: min(74dvh, 620px);
		max-height: calc(100dvh - var(--mythbox-fab-bottom, 8px) - 16px);
		border-radius: 18px;
	}
}

/* Descubra: item patrocinado (nativo controlado) */
.mythbox-ds-sponsor { padding: 11px 6px; position: relative; }
.mythbox-ds-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mythbox-muted);
	border: 1px solid var(--mythbox-border);
	border-radius: 6px;
	padding: 2px 7px;
	margin-bottom: 8px;
}

/* Cards de matérias dentro do chat (Similares) */
.mythbox-msg-cards { background: transparent !important; padding: 0 !important; max-width: 94% !important; }
.mythbox-card-link {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--mythbox-wash);
	border: 1px solid var(--mythbox-line);
	border-radius: 14px;
	padding: 10px 12px;
	margin: 0 0 8px;
	text-decoration: none;
	color: var(--mythbox-text) !important;
	transition: border-color 0.16s, background 0.16s;
}
.mythbox-card-link:hover { border-color: var(--mythbox-accent); }
.mythbox-card-link img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.mythbox-card-tx b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.mythbox-card-tx small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--mythbox-muted); }
.mythbox-card-more {
	appearance: none;
	border: 0;
	background: var(--mythbox-wash-2);
	color: var(--mythbox-accent);
	font-family: var(--mythbox-font);
	font-size: 13px;
	font-weight: 700;
	padding: 9px 14px;
	border-radius: 999px;
	cursor: pointer;
}
.mythbox-card-more:hover { background: var(--mythbox-accent); color: #fff; }

/* Estado vazio das Chaves (não geradas) */
.mythbox-clave-empty {
	color: var(--mythbox-muted) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	font-style: italic;
	border-left-color: var(--mythbox-border) !important;
	background: var(--mythbox-bg) !important;
}

/* Destaque clicável (mapeado a parágrafo do artigo) */
.mythbox-clave[data-mythbox-para] { cursor: pointer; }
.mythbox-clave-see {
	display: block;
	margin-top: 12px;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mythbox-accent) !important;
	white-space: nowrap;
	font-style: normal !important;
}
.mythbox-clave[data-mythbox-para]:hover .mythbox-clave-see { text-decoration: underline; }

/* Engagement: pulso do launcher (back button + curiosity timer) */
@keyframes mythbox-launcher-pulse {
	0%   { box-shadow: 0 10px 28px -6px var(--mythbox-glow), 0 0 0 0 var(--mythbox-glow); }
	50%  { box-shadow: 0 10px 28px -6px var(--mythbox-glow), 0 0 0 14px transparent; transform: translateY(-3px); }
	100% { box-shadow: 0 10px 28px -6px var(--mythbox-glow), 0 0 0 0 transparent; transform: translateY(0); }
}
.mythbox-launcher.mythbox-pulse { animation: mythbox-launcher-pulse 0.9s ease 2; }
@media (prefers-reduced-motion: reduce) { .mythbox-launcher.mythbox-pulse { animation: none; } }

/* Google One Tap / GIS sempre ACIMA do painel do chat */
#credential_picker_container,
#credential_picker_iframe,
iframe[src*="accounts.google.com/gsi"] {
	z-index: 2147483200 !important;
}

/* iOS: respeitar notch e barra inferior do Safari */
@supports (padding: env(safe-area-inset-bottom)) {
	.mythbox-launcher { bottom: max(var(--mythbox-fab-bottom, 18px), calc(env(safe-area-inset-bottom) + 72px)); }
}

/* Estilos do launcher */
.mythbox-launcher--circle { padding: 0; width: 56px; height: 56px; border-radius: 50%; justify-content: center; }
.mythbox-launcher--circle .mythbox-launcher-label, .mythbox-launcher--circle .mythbox-launcher-x { display: none; }
.mythbox-launcher--circle::before { content: "✦"; font-size: 22px; }
.mythbox-launcher--circle .mythbox-launcher-dot { position: absolute; top: 6px; right: 6px; }
.mythbox-launcher--mini { padding: 9px 14px; font-size: 12.5px; }

/* Posições */
.mythbox-launcher.pos-bl { right: auto; left: 18px; }
.mythbox-launcher.pos-mr { bottom: auto; top: 50%; transform: translateY(-50%); }
.mythbox-launcher.pos-ml { right: auto; left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
.mythbox-chat.pos-bl .mythbox-chat-panel { right: auto; left: 18px; }
@media (max-width: 520px) {
	.mythbox-launcher.pos-mr, .mythbox-launcher.pos-ml { top: auto; bottom: var(--mythbox-fab-bottom, 18px); transform: none; }
}

/* Estilos do botão flutuante */
.mythbox-launcher--bubble { padding: 0; width: 56px; height: 56px; border-radius: 50%; justify-content: center; font-size: 22px; }
.mythbox-launcher--bubble .mythbox-launcher-label, .mythbox-launcher--bubble .mythbox-launcher-x { display: none; }
.mythbox-launcher--bubble::before { content: "✦"; }
.mythbox-launcher--tab {
	padding: 10px 12px;
	border-radius: 12px 0 0 12px;
	right: 0 !important;
	font-size: 12px;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: 0.08em;
}
.mythbox-launcher--tab .mythbox-launcher-dot { display: none; }

/* Posição à esquerda */
.mythbox-launcher.mythbox-side-left { left: 18px; right: auto; }
.mythbox-launcher--tab.mythbox-side-left { left: 0 !important; right: auto !important; border-radius: 0 12px 12px 0; }
.mythbox-chat.mythbox-side-left .mythbox-chat-panel { left: 18px; right: auto; }
@media (max-width: 520px) {
	.mythbox-chat.mythbox-side-left .mythbox-chat-panel { left: 8px; right: 8px; }
}

/* Sugestões dentro do chat (boas-vindas + follow-ups pós-resposta) */
.mythbox-fu { align-self: stretch; max-width: 100% !important; background: transparent !important; padding: 0 !important; margin: 2px 0 4px; }
.mythbox-fu-item {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	background: transparent;
	border: 0;
	border-top: 1px solid var(--mythbox-border);
	padding: 12px 4px;
	font-family: var(--mythbox-font);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--mythbox-text);
	text-align: left;
	cursor: pointer;
	transition: color 0.15s, gap 0.15s;
}
.mythbox-fu-item:last-child { border-bottom: 1px solid var(--mythbox-border); }
.mythbox-fu-item i { font-style: normal; color: var(--mythbox-accent); transition: transform 0.15s; }
.mythbox-fu-item:hover { color: var(--mythbox-accent); }
.mythbox-fu-item:hover i { transform: translateX(3px); }
.mythbox-fu-welcome { margin-top: 6px; }

/* ============================================================
   SKIN "ASSISTENTE" (Modelo 2 do redesign) — camada final
   Deriva 100% dos tokens; --mythbox-ink e --mythbox-onaccent
   vêm do handoff do design (contraste AA garantido).
   ============================================================ */
@keyframes mbxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mbxPop { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes mbxGlow { 0% { box-shadow: 0 0 0 0 var(--mythbox-glow); } 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes mbxPing { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* Cartão */
.mythbox {
	border-radius: 22px;
	background: var(--mythbox-bg);
	border: 1px solid var(--mythbox-border);
	box-shadow: 0 1px 2px rgba(12, 16, 24, 0.05), 0 16px 40px -16px var(--mythbox-glow);
	animation: mbxPop 0.5s ease;
}
.mythbox-dot { width: 9px; height: 9px; box-shadow: 0 0 0 4px var(--mythbox-wash-2); }
.mythbox-ia {
	background: var(--mythbox-wash-2);
	color: var(--mythbox-ink);
	border-radius: 999px;
	padding: 3px 9px;
	font-size: 10.5px;
	letter-spacing: 0.06em;
}
.mythbox-ia::before { content: "✦ "; }

/* Abas: segmented control */
.mythbox-tabs {
	display: flex;
	gap: 4px;
	margin: 14px 0 0;
	padding: 4px;
	background: var(--mythbox-surface);
	border-radius: 999px;
	border-bottom: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.mythbox-tab {
	flex: 1;
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	border-radius: 999px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 800;
	color: var(--mythbox-muted);
	border-bottom: 0;
}
.mythbox-tab.is-active {
	background: var(--mythbox-bg);
	color: var(--mythbox-ink);
	box-shadow: 0 1px 3px rgba(10, 14, 20, 0.12);
}
.mythbox-tab.is-active::after { content: none; }
.mythbox-tab em {
	background: var(--mythbox-wash-2);
	color: var(--mythbox-ink);
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	min-width: 18px;
	padding: 0;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	vertical-align: middle;
	position: relative;
	top: -1px;
}
.mythbox-tab.is-active em { background: var(--mythbox-accent); color: var(--mythbox-onaccent); }

/* Destaques */
.mythbox-clave {
	background: var(--mythbox-wash);
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: inset 0 0 0 1px var(--mythbox-line);
	animation: mbxIn 0.4s ease;
}
.mythbox-clave::before { content: none; }
.mythbox-clave-see {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--mythbox-ink) !important;
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px !important;
}
.mythbox-clave-see::first-letter { font-size: 0; }
.mythbox-clave-see::before {
	content: "↓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mythbox-wash-2);
	font-size: 12px;
}
.mythbox-cdots i { background: var(--mythbox-wash-2); box-shadow: inset 0 0 0 1px var(--mythbox-line); }
.mythbox-cdots i.is-active { background: var(--mythbox-accent); box-shadow: none; }

/* CTA: campo + envio circular sólido */
.mythbox-cta {
	background: var(--mythbox-surface);
	border: 1px solid var(--mythbox-border);
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
	min-height: 46px;
	box-shadow: none;
}
.mythbox-cta-ph { color: var(--mythbox-muted); }
.mythbox-cta-go {
	width: 40px;
	height: 40px;
	background: var(--mythbox-accent);
	color: var(--mythbox-onaccent);
	box-shadow: 0 8px 20px -8px var(--mythbox-glow);
	animation: mbxGlow 2.4s ease-out 1.2s 3;
}
.mythbox-cta:hover { border-color: var(--mythbox-accent); box-shadow: 0 0 0 3px var(--mythbox-wash-2); }

/* Rodapé */
.mythbox-foot a { color: var(--mythbox-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Botão flutuante — 3 estilos, texto NUNCA vaza */
.mythbox-launcher {
	background: var(--mythbox-accent);
	color: var(--mythbox-onaccent);
	border-radius: 999px;
	padding: 13px 18px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	gap: 8px;
	box-shadow: 0 12px 30px -8px var(--mythbox-glow);
}
.mythbox-launcher-dot { background: var(--mythbox-onaccent); }
.mythbox-launcher--bubble {
	width: 56px;
	height: 56px;
	padding: 0;
	font-size: 0; /* esconde QUALQUER texto interno, independa do markup */
	justify-content: center;
}
.mythbox-launcher--bubble > * { display: none !important; }
.mythbox-launcher--bubble::before { content: "✦"; font-size: 21px; line-height: 1; }
.mythbox-launcher--tab {
	writing-mode: vertical-rl;
	padding: 16px 11px;
	border-radius: 14px 0 0 14px;
	font-size: 12px;
	letter-spacing: 0.1em;
	right: 0 !important;
	left: auto !important;
}
.mythbox-launcher--tab .mythbox-launcher-dot { display: none; }

/* Posições (mini-celular do admin): br padrão, bl, mr, ml */
.mythbox-launcher.pos-br { right: 16px; left: auto; bottom: var(--mythbox-fab-bottom, 112px); top: auto; }
.mythbox-launcher.pos-bl { left: 16px; right: auto; bottom: var(--mythbox-fab-bottom, 112px); top: auto; }
.mythbox-launcher.pos-mr { right: 16px; left: auto; top: 50%; bottom: auto; transform: translateY(-50%); }
.mythbox-launcher.pos-ml { left: 16px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); }
.mythbox-launcher--tab.pos-mr, .mythbox-launcher--tab.pos-br { right: 0 !important; }
.mythbox-launcher--tab.pos-ml, .mythbox-launcher--tab.pos-bl { left: 0 !important; right: auto !important; border-radius: 0 14px 14px 0; }
@media (max-width: 768px) {
	/* No celular, meio cai pra base (polegar alcança) */
	.mythbox-launcher.pos-mr { top: auto; bottom: var(--mythbox-fab-bottom, 112px); transform: none; }
	.mythbox-launcher.pos-ml { top: auto; bottom: var(--mythbox-fab-bottom, 112px); transform: none; }
}
.mythbox-launcher.mythbox-pulse { animation: mbxGlow 0.9s ease 3; }

/* Chat */
.mythbox-chat-panel { border-radius: 22px; box-shadow: 0 2px 6px rgba(12, 16, 24, 0.08), 0 24px 60px -20px var(--mythbox-glow); }
.mythbox-chat-head { background: var(--mythbox-surface); }
.mythbox-chat-form button[type="submit"], .mythbox-chat-form button {
	background: var(--mythbox-accent);
	color: var(--mythbox-onaccent);
	box-shadow: 0 8px 20px -8px var(--mythbox-glow);
}
.mythbox-msg-user { background: var(--mythbox-accent); color: var(--mythbox-onaccent) !important; }
.mythbox-msg-assistant { background: var(--mythbox-wash); box-shadow: inset 0 0 0 1px var(--mythbox-line); }
.mythbox-fu-item { color: var(--mythbox-text); }
.mythbox-fu-item i { color: var(--mythbox-ink); }
.mythbox-fu-item:hover { color: var(--mythbox-ink); }

/* Card de login */
.mythbox-reg-spark { width: 44px; height: 44px; background: var(--mythbox-wash-2); color: var(--mythbox-ink); font-size: 19px; }
.mythbox-reg-inner h4 { font-size: 16px; font-weight: 800; }

/* Ponto vivo do Seguir no Google */
.mythbox-live-dot { position: relative; }
.mythbox-live-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: mbxPing 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.mythbox, .mythbox-clave, .mythbox-cta-go, .mythbox-launcher.mythbox-pulse, .mythbox-live-dot::after { animation: none !important; }
}

/* ============================================================
   MODELO 1 — EDITORIAL PREMIUM (hairlines, serif, régua no topo)
   ============================================================ */
.mythbox--m1 {
	font-family: var(--mythbox-font);
	border-radius: 4px;
	border: 1px solid var(--mythbox-border);
	border-top: 3px solid var(--mythbox-accent);
	box-shadow: none;
	animation: none;
}
.mythbox--m1 .mythbox-brand { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0.04em; }
.mythbox--m1 .mythbox-ia { background: transparent; color: var(--mythbox-ink); border: 1px solid var(--mythbox-line); border-radius: 3px; }
.mythbox--m1 .mythbox-ia::before { content: ""; }
.mythbox--m1 .mythbox-tabs { background: transparent; border-radius: 0; padding: 0; gap: 18px; margin: 14px 0 0; border-bottom: 1px solid var(--mythbox-border); }
.mythbox--m1 .mythbox-tab { flex: 0 0 auto; border-radius: 0; padding: 0 2px 10px; min-height: 0; font-weight: 800; letter-spacing: 0.05em; }
.mythbox--m1 .mythbox-tab.is-active { background: transparent; box-shadow: none; color: var(--mythbox-text); position: relative; }
.mythbox--m1 .mythbox-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--mythbox-accent); border-radius: 0; }
.mythbox--m1 .mythbox-tab em { background: transparent; color: var(--mythbox-ink); border: 1px solid var(--mythbox-line); }
.mythbox--m1 .mythbox-clave {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 17px;
	line-height: 1.6;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	border-top: 1px solid var(--mythbox-border);
	padding: 14px 4px 12px;
	animation: none;
}
.mythbox--m1 .mythbox-clave-see { font-family: var(--mythbox-font); }
.mythbox--m1 .mythbox-cta { border-radius: 8px; background: var(--mythbox-bg); }
.mythbox--m1 .mythbox-cta-go { border-radius: 8px; animation: none; }
.mythbox--m1 .mythbox-msg { border-radius: 8px; }

/* ============================================================
   MODELO 3 — INVISÍVEL / NATIVO (sem caixa; só filetes + cor)
   ============================================================ */
.mythbox--m3 {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--mythbox-border);
	border-bottom: 1px solid var(--mythbox-border);
	border-radius: 0;
	box-shadow: none;
	animation: none;
	padding-left: 0;
	padding-right: 0;
}
.mythbox--m3 .mythbox-head { padding-left: 0; padding-right: 0; }
.mythbox--m3 .mythbox-ia { background: transparent; color: var(--mythbox-ink); padding: 0; }
.mythbox--m3 .mythbox-tabs { background: transparent; padding: 0; gap: 16px; border-radius: 0; margin: 12px 0 0; }
.mythbox--m3 .mythbox-tab { flex: 0 0 auto; border-radius: 0; padding: 0 0 8px; min-height: 0; }
.mythbox--m3 .mythbox-tab.is-active { background: transparent; box-shadow: none; color: var(--mythbox-text); position: relative; }
.mythbox--m3 .mythbox-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mythbox-accent); }
.mythbox--m3 .mythbox-tab em { background: transparent; color: var(--mythbox-muted); border: 1px solid var(--mythbox-border); }
.mythbox--m3 .mythbox-clave {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	border-left: 2px solid var(--mythbox-accent);
	padding: 4px 4px 4px 14px;
	animation: none;
}
.mythbox--m3 .mythbox-cta {
	background: transparent;
	border: 1px solid var(--mythbox-border);
	box-shadow: none;
}
.mythbox--m3 .mythbox-cta-go { animation: none; box-shadow: none; }
.mythbox--m3 .mythbox-foot { border-top: 0; opacity: 0.7; }
.mythbox--m3.mythbox { overflow: visible; }

/* FAB e chat acompanham o modelo */
.mythbox-launcher.mbx-m1:not(.mythbox-launcher--bubble) { border-radius: 8px; box-shadow: 0 6px 18px -8px var(--mythbox-glow); }
.mythbox-launcher.mbx-m3 { background: var(--mythbox-bg); color: var(--mythbox-ink); border: 1px solid var(--mythbox-line); box-shadow: 0 4px 14px -8px rgba(12, 16, 24, 0.25); }
.mythbox-launcher.mbx-m3 .mythbox-launcher-dot { background: var(--mythbox-accent); }
.mbx-m1 .mythbox-chat-panel { border-radius: 8px; }
.mbx-m3 .mythbox-chat-panel { border-radius: 12px; box-shadow: 0 2px 6px rgba(12, 16, 24, 0.1), 0 18px 44px -18px rgba(12, 16, 24, 0.3); }
.mbx-m1 .mythbox-msg-user, .mbx-m1 .mythbox-chat-form button { border-radius: 8px; }

/* A bolha vence qualquer skin de modelo: círculo perfeito sempre. */
.mythbox-launcher.mythbox-launcher--bubble { border-radius: 50% !important; width: 56px !important; height: 56px !important; padding: 0 !important; }

/* Telas estreitas: mais perguntas cabendo com conforto */
@media (max-width: 400px) {
	.mythbox-tab { font-size: 12px; letter-spacing: 0.03em; padding-left: 8px; padding-right: 8px; }
	.mythbox--m1 .mythbox-tab, .mythbox--m3 .mythbox-tab { padding-left: 2px; padding-right: 2px; }
	.mythbox-chip { font-size: 13.5px; padding: 11px 12px; }
	.mythbox-fu-item { font-size: 13.5px; padding: 11px 2px; }
	.mythbox-chips { gap: 8px; }
}

/* ============================================================
   AJUSTES: contadores das abas + Perguntas em telas pequenas
   ============================================================ */
/* Contadores: sempre centrados na linha do rótulo, nunca "caindo" */
.mythbox-tab { align-items: center; }
.mythbox-tab em {
	position: relative;
	top: 0;
	line-height: 1;
	flex: 0 0 auto;
	transform: none;
}
/* Modelos 1 e 3: número limpo na cor de tinta, sem circulinho quebrado */
.mythbox--m1 .mythbox-tab em,
.mythbox--m3 .mythbox-tab em {
	background: transparent;
	border: 0;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 0;
	font-size: 11px;
	font-weight: 800;
	color: var(--mythbox-ink);
}
.mythbox--m1 .mythbox-tab.is-active em,
.mythbox--m3 .mythbox-tab.is-active em { background: transparent; color: var(--mythbox-ink); }

/* Perguntas da matéria são frases: quebram em até 2 linhas com respiro */
.mythbox-chip {
	white-space: normal;
	line-height: 1.4;
	text-align: left;
}

/* Telas pequenas: pilha de 5 perguntas fica compacta e confortável */
@media (max-width: 400px) {
	.mythbox-chip { font-size: 13.5px; padding: 11px 12px; }
	.mythbox-chips { gap: 8px; }
	.mythbox-tabs { gap: 12px; }
	.mythbox-tab { font-size: 12px; letter-spacing: 0.03em; }
	.mythbox-fu-item { font-size: 13.5px; padding: 11px 4px; }
}
@media (max-width: 340px) {
	.mythbox-chip { font-size: 13px; padding: 10px 11px; }
	.mythbox-tab { font-size: 11.5px; }
}

/* ============================================================
   Chat: teto respeitando o topo do site + rolagem contida
   ============================================================ */
/* O painel nunca invade os primeiros 80px da tela (masthead do site fica visível) */
.mythbox-chat-panel {
	max-height: calc(100dvh - var(--mythbox-fab-bottom, 112px) - 80px);
}
@supports not (height: 100dvh) {
	.mythbox-chat-panel { max-height: calc(100vh - var(--mythbox-fab-bottom, 112px) - 80px); }
}

/* Rolar o chat não arrasta a página junto (fim da corrente de scroll) */
.mythbox-chat-msgs { overscroll-behavior: contain; }
.mythbox-chat-panel { overscroll-behavior: contain; }

/* ============================================================
   PAINEL DO CHAT — posição canônica (camada final, vence tudo)
   ============================================================ */
.mythbox-chat-panel {
	top: auto !important;
	bottom: var(--mythbox-fab-bottom, 18px);
	height: min(560px, calc(100dvh - var(--mythbox-fab-bottom, 18px) - 90px));
	max-height: calc(100dvh - var(--mythbox-fab-bottom, 18px) - 80px);
}
@media (max-width: 640px) {
	.mythbox-chat-panel {
		left: 8px;
		right: 8px;
		width: auto;
		bottom: max(var(--mythbox-fab-bottom, 8px), calc(env(safe-area-inset-bottom, 0px) + 64px));
		/* Preenche até a reserva do topo: consistente em qualquer altura de tela */
		height: calc(100dvh - var(--mythbox-fab-bottom, 8px) - 88px);
		max-height: calc(100dvh - var(--mythbox-fab-bottom, 8px) - 80px);
		border-radius: 18px;
	}
}

/* Botão flutuante escondido é ESCONDIDO — vence qualquer display do skin */
.mythbox-launcher[hidden] { display: none !important; }

/* [hidden] SEMPRE vence: o display:flex do botão não pode ressuscitá-lo */
.mythbox-launcher[hidden] { display: none !important; }
