/* Myth Box — front (v1.23.0). Base: redesign "aparte costurado" + revisão do player
   (Claude Design). Exceção deliberada de cor: .mythbox-listen-follow usa o verde-marca
   do Spotify (#1DB954) por decisão de design — todo o resto segue --mythbox-accent. */
/* ====== CSS REAL DO PLUGIN (assets/css/mythbox.css, v1.17.1) ====== */
/* 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-cprev,
.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-cprev:hover,
.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; }

/* ============================================================
   [hidden] é lei dentro do box (fim da espécie "CSS ressuscita")
   ============================================================ */
.mythbox [hidden] { display: none !important; }

/* Botão oficial "Fontes preferidas": centrado, no ritmo dos irmãos,
   e sem a caixa padrão do Google (fundo/borda/sombra transparentes) */
.mythbox-gsb {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 44px;
}
.mythbox-gsb [google-add-preferred-source-btn],
.mythbox-gsb [google-add-preferred-source-btn] *,
.mythbox-gsb [google-add-preferred-source-btn] iframe {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}
.mythbox-gsb [google-add-preferred-source-btn] { line-height: 0; }

/* Agradecimento pós-retorno do fluxo de seguir (discreto, some sozinho) */
.mythbox-gsb { flex-wrap: wrap; }
.mythbox-gsb-ty {
	width: 100%;
	text-align: center;
	font-size: 12.5px;
	color: var(--mythbox-ink, #445);
	padding-top: 6px;
	animation: mbxTyIn 0.35s ease;
}
@keyframes mbxTyIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Toast flutuante (acima do anchor, sempre visível) */
.mythbox-toast {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(var(--mythbox-fab-bottom, 112px) + 64px);
	z-index: 2147483000;
	background: #14161b;
	color: #fff;
	font: 600 13px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 11px 16px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(10, 14, 22, 0.35);
	max-width: min(92vw, 420px);
	text-align: center;
	animation: mbxTyIn 0.35s ease;
}
.mythbox-toast.is-out { opacity: 0; transition: opacity 0.6s ease; }

/* Estado "Seguindo": sereno, sem cara de botão de ação */
.mythbox-gsb .mythbox-follow-google.is-following {
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--mythbox-ink, #445) 28%, transparent);
	color: var(--mythbox-ink, #445);
	box-shadow: none;
	cursor: pointer;
}
.mythbox-gsb .mythbox-follow-google.is-following:hover { border-color: var(--mythbox-ink, #445); }

/* ============================================================
   Rodada de QA 320px: abas cabendo, reticências, botão anterior
   ============================================================ */
/* FIX 3: as três abas + contadores cabem em 320px sem corte */
@media (max-width: 360px) {
	.mythbox-tabs { gap: 9px; }
	.mythbox-tab { font-size: 10.5px; letter-spacing: 0.01em; padding-left: 1px; padding-right: 1px; }
	.mythbox-tab em { font-size: 10px; }
}
/* FIX 4a: placeholders truncam com reticências, nunca corte seco */
.mythbox-chat-input input::placeholder,
.mythbox-cta-ph {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mythbox-cta-ph { display: block; max-width: calc(100% - 40px); }
/* FIX 4b: anterior espelhado ao próximo */
.mythbox-cprev {
	position: absolute;
	right: auto;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
}

/* Faixa de perguntas acima do input (visível sobre o teclado no mobile) */
.mythbox-chat [hidden] { display: none !important; }
.mythbox-qs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 8px 12px 2px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.mythbox-qs::-webkit-scrollbar { display: none; }
.mythbox-qs-chip {
	appearance: none;
	flex: 0 0 auto;
	max-width: 78%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: 1px solid var(--mythbox-line);
	background: var(--mythbox-bg);
	color: var(--mythbox-text);
	font: 600 12.5px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 9px 12px;
	border-radius: 999px;
	cursor: pointer;
}
.mythbox-qs-chip:active { border-color: var(--mythbox-accent); color: var(--mythbox-accent); }

/* Aba Fale com a redação */
.mythbox-relatos { display: flex; flex-direction: column; gap: 12px; }
.mythbox-relato-btn {
	appearance: none;
	position: relative;
	text-align: left;
	border: 1px solid var(--mythbox-line);
	border-left: 3px solid var(--mythbox-accent);
	background: var(--mythbox-bg);
	border-radius: 14px;
	padding: 15px 44px 15px 16px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.mythbox-relato-btn::after {
	content: "›";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	line-height: 1;
	color: var(--mythbox-accent);
	transition: transform 0.16s;
}
.mythbox-relato-btn:hover {
	border-color: var(--mythbox-accent);
	box-shadow: 0 10px 26px -14px var(--mythbox-glow, rgba(0, 0, 0, 0.25));
	transform: translateY(-1px);
}
.mythbox-relato-btn:hover::after { transform: translateY(-50%) translateX(3px); }
.mythbox-relato-btn b { font-size: 15px; color: var(--mythbox-text); letter-spacing: -0.01em; }
.mythbox-relato-btn span { font-size: 12.5px; color: var(--mythbox-muted, #667085); line-height: 1.45; }
.mythbox-relatos-consent {
	font-size: 11.5px;
	color: var(--mythbox-muted, #667085);
	line-height: 1.55;
	margin: 2px 2px 0;
	padding-left: 10px;
	border-left: 2px solid var(--mythbox-line);
}

/* Skins por modelo: 1 editorial reto, 3 minimal */
.mythbox--m1 .mythbox-relato-btn { border-radius: 4px; border-left-width: 3px; }
.mythbox--m1 .mythbox-relato-btn b { font-family: Georgia, 'Times New Roman', serif; }
.mythbox--m3 .mythbox-relato-btn { border-radius: 10px; border-left-width: 2px; box-shadow: none; }
@media (max-width: 400px) {
	.mythbox-relato-btn { padding: 13px 38px 13px 14px; }
	.mythbox-relato-btn b { font-size: 14px; }
}

/* Barra do modo relato + microfone */
.mythbox-report-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--mythbox-muted, #667085);
	background: color-mix(in srgb, var(--mythbox-accent) 7%, transparent);
	border: 1px solid color-mix(in srgb, var(--mythbox-accent) 22%, transparent);
	border-radius: 10px;
	padding: 7px 10px;
	margin: 0 0 10px;
}
.mythbox-report-bar span { flex: 1; }
.mythbox-report-bar button {
	appearance: none;
	border: 0;
	background: none;
	color: var(--mythbox-accent);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 6px;
}
.mythbox-report-bar.is-confirm { border-color: #d63638; background: rgba(214, 54, 56, 0.06); }
.mythbox-report-bar.is-confirm button { color: #d63638; }
.mythbox-report-bar .mythbox-report-stay { color: var(--mythbox-muted, #667085); }
.mythbox-mic {
	appearance: none;
	border: 1px solid var(--mythbox-line);
	background: var(--mythbox-bg);
	border-radius: 999px;
	min-width: 40px;
	height: 40px;
	font-size: 17px;
	cursor: pointer;
	padding: 0 10px;
	transition: border-color 0.16s, background 0.16s;
}
.mythbox-mic:hover { border-color: var(--mythbox-accent); }
.mythbox-mic.is-rec {
	border-color: #d63638;
	color: #d63638;
	font-size: 12.5px;
	font-weight: 800;
	animation: mythbox-rec 1.2s ease-in-out infinite;
}
@keyframes mythbox-rec { 0%, 100% { background: rgba(214, 54, 56, 0.05); } 50% { background: rgba(214, 54, 56, 0.14); } }

.mythbox-mic.is-paused {
	animation: none;
	border-color: #b45309;
	color: #b45309;
	background: rgba(180, 83, 9, 0.07);
}

/* Pulso na aba de relatos */
.mythbox-tab { position: relative; }
.mythbox-tpulse {
	position: absolute;
	top: 2px;
	right: -8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d63638;
	animation: mythbox-tp 1.5s ease-in-out infinite;
}
.mythbox-tab.is-active .mythbox-tpulse { display: none; }
@keyframes mythbox-tp { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: 0.5; } }

/* Faixa-convite fixa */
.mythbox-strip {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 9px;
	width: calc(100% - 28px);
	margin: 10px 14px 0;
	text-align: left;
	background: linear-gradient(92deg, color-mix(in srgb, var(--mythbox-accent) 10%, transparent), color-mix(in srgb, var(--mythbox-accent) 3%, transparent));
	border: 1px solid color-mix(in srgb, var(--mythbox-accent) 28%, transparent);
	border-left: 3px solid var(--mythbox-accent);
	border-radius: 11px;
	padding: 9px 12px;
	font-size: 12.5px;
	color: var(--mythbox-muted, #667085);
	cursor: pointer;
	transition: box-shadow 0.16s, transform 0.16s;
}
.mythbox-strip b { color: var(--mythbox-text); font-weight: 700; }
.mythbox-strip-go { margin-left: auto; color: var(--mythbox-accent); font-weight: 900; font-size: 17px; transition: transform 0.16s; }
.mythbox-strip:hover { box-shadow: 0 8px 22px -14px var(--mythbox-glow, rgba(0,0,0,0.3)); transform: translateY(-1px); }
.mythbox-strip:hover .mythbox-strip-go { transform: translateX(3px); }
.mythbox--m1 .mythbox-strip { border-radius: 4px; }
.mythbox--m3 .mythbox-strip { border-radius: 9px; box-shadow: none; }

/* Cartão pós-matéria */
.mythbox-postcard {
	margin: 26px 0 10px;
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--mythbox-text, #17233b) 88%, #000), var(--mythbox-accent, #0f6fff));
	color: #fff;
}
.mythbox-postcard h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; color: #fff; }
.mythbox-postcard p { margin: 0 0 12px; font-size: 13px; opacity: 0.88; line-height: 1.5; color: #fff; }
.mythbox-postcard-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mythbox-postcard button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 10px 15px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.14s;
}
.mythbox-postcard button:hover { transform: translateY(-1px); }
.mythbox-pc1 { background: #fff; color: #17233b; }
.mythbox-pc2 { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45) !important; }

/* Convite no fim da resposta */
.mythbox-invite {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	background: none;
	border: 0;
	border-top: 1px solid var(--mythbox-line);
	padding: 11px 4px 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mythbox-text);
	cursor: pointer;
	text-align: left;
}
.mythbox-invite b { color: var(--mythbox-accent); font-weight: 900; }
.mythbox-invite:hover span { text-decoration: underline; }

/* ===== Cobertura dos elementos novos nos 3 modelos ===== */
/* Modelo 1 — editorial reto/serif */
.mythbox--m1 .mythbox-strip b { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.mythbox--m1 .mythbox-report-bar { border-radius: 4px; }
.mythbox--m1 .mythbox-mic { border-radius: 8px; }
.mythbox--m1 .mythbox-invite { border-top: 2px solid var(--mythbox-line); }
.mythbox--m1 .mythbox-tpulse { border-radius: 0; width: 5px; height: 5px; }
.mythbox-postcard--m1 { border-radius: 4px; background: #1a2438; }
.mythbox-postcard--m1 h3 { font-family: Georgia, 'Times New Roman', serif; }
.mythbox-postcard--m1 button { border-radius: 6px; }

/* Modelo 3 — minimal claro */
.mythbox--m3 .mythbox-report-bar { border-radius: 8px; background: transparent; }
.mythbox--m3 .mythbox-mic { box-shadow: none; }
.mythbox--m3 .mythbox-invite { font-weight: 600; }
.mythbox-postcard--m3 {
	background: var(--mythbox-bg, #fff);
	color: var(--mythbox-text, #17233b);
	border: 1px solid var(--mythbox-line, #dfe5f2);
	border-left: 3px solid var(--mythbox-accent, #0f6fff);
	border-radius: 12px;
}
.mythbox-postcard--m3 h3 { color: var(--mythbox-text, #17233b); }
.mythbox-postcard--m3 p { color: var(--mythbox-muted, #667085); opacity: 1; }
.mythbox-postcard--m3 .mythbox-pc1 { background: var(--mythbox-accent, #0f6fff); color: #fff; }
.mythbox-postcard--m3 .mythbox-pc2 { background: transparent; color: var(--mythbox-accent, #0f6fff); border: 1px solid var(--mythbox-accent, #0f6fff) !important; }

/* Faixa e convite: respiro no mobile estreito em todos os modelos */
@media (max-width: 400px) {
	.mythbox-strip { font-size: 12px; padding: 8px 10px; gap: 7px; }
	.mythbox-postcard { padding: 15px; }
	.mythbox-postcard h3 { font-size: 16px; }
}

/* ===== Barras: tratamento completo por modelo ===== */
/* Modelo 1 — editorial: reto, tracking, sem gradiente */
.mythbox--m1 .mythbox-report-bar {
	border-radius: 0;
	background: transparent;
	border: 0;
	border-left: 3px solid var(--mythbox-accent);
	border-bottom: 1px solid var(--mythbox-line);
	padding: 7px 10px 8px;
}
.mythbox--m1 .mythbox-report-bar span {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 10.5px;
	font-weight: 700;
}
.mythbox--m1 .mythbox-report-bar button { text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
.mythbox--m1 .mythbox-report-bar.is-confirm { background: rgba(214, 54, 56, 0.04); border-left-color: #d63638; }
.mythbox--m1 .mythbox-strip {
	background: transparent;
	border: 1px solid var(--mythbox-line);
	border-left: 3px solid var(--mythbox-accent);
	border-radius: 0;
}
.mythbox--m1 .mythbox-qs button { border-radius: 4px; }

/* Modelo 3 — minimal: flat, hairline, nada gritando */
.mythbox--m3 .mythbox-report-bar {
	border: 1px solid var(--mythbox-line);
	background: transparent;
	border-radius: 10px;
}
.mythbox--m3 .mythbox-report-bar.is-confirm { border-color: rgba(214, 54, 56, 0.5); background: transparent; }
.mythbox--m3 .mythbox-strip {
	background: color-mix(in srgb, var(--mythbox-accent) 4%, transparent);
	border: 1px solid var(--mythbox-line);
	border-left: 2px solid var(--mythbox-accent);
	box-shadow: none;
}
.mythbox--m3 .mythbox-strip:hover { box-shadow: none; transform: none; }
.mythbox--m3 .mythbox-strip-go { font-weight: 700; }
.mythbox--m3 .mythbox-qs button { border-radius: 8px; box-shadow: none; }

/* Balão-pregoeiro: linha rotativa de convite */
.mythbox-launcher.has-teaser { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 9px; padding-bottom: 9px; }
.mythbox-launcher-teaser {
	display: block;
	font-size: 11px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(3px);
	transition: opacity 0.22s, transform 0.22s;
	max-width: 210px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mythbox-launcher-teaser.is-in { opacity: 0.92; transform: translateY(0); }
.mythbox-launcher--icon .mythbox-launcher-teaser { display: none; }
.mbx-m1 .mythbox-launcher-teaser { font-family: Georgia, 'Times New Roman', serif; font-size: 11.5px; }
.mbx-m3 .mythbox-launcher-teaser { font-weight: 500; opacity: 0.8; }
@media (max-width: 400px) { .mythbox-launcher-teaser { max-width: 160px; } }

/* Estilos compactos (bubble/circle/icon/mini/tab): pregoeiro proibido, miolo cravado no centro */
.mythbox-launcher--bubble.has-teaser,
.mythbox-launcher--circle.has-teaser,
.mythbox-launcher--icon.has-teaser,
.mythbox-launcher--mini.has-teaser,
.mythbox-launcher--tab.has-teaser { flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 0 !important; }
.mythbox-launcher--bubble .mythbox-launcher-teaser,
.mythbox-launcher--circle .mythbox-launcher-teaser,
.mythbox-launcher--icon .mythbox-launcher-teaser,
.mythbox-launcher--mini .mythbox-launcher-teaser,
.mythbox-launcher--tab .mythbox-launcher-teaser { display: none !important; }
.mythbox-launcher--bubble,
.mythbox-launcher--circle {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	gap: 0 !important;
	overflow: hidden;
}
.mythbox-launcher--bubble::before,
.mythbox-launcher--circle::before {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
	text-indent: 0;
	letter-spacing: 0;
}
.mythbox-launcher--bubble .mythbox-launcher-dot,
.mythbox-launcher--circle .mythbox-launcher-dot { margin: 0 !important; position: absolute; top: 6px; right: 6px; }
.mythbox-launcher--bubble .mythbox-launcher-label,
.mythbox-launcher--circle .mythbox-launcher-label { display: none !important; }

/* Abas: 4 cabem — compressão progressiva + dica de rolagem */
.mythbox-tab { flex: 0 0 auto; white-space: nowrap; }
.mythbox-tabs-wrap { position: relative; }
.mythbox-tabs::after { content: ""; flex: 0 0 14px; }
.mythbox-tabs-fade {
	position: absolute;
	top: 50%;
	right: 2px;
	transform: translateY(-58%);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--mythbox-accent, #0f6fff);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	line-height: 23px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35);
	z-index: 2;
	user-select: none;
}
.mythbox--m1 .mythbox-tabs-fade { border-radius: 4px; }
.mythbox--m3 .mythbox-tabs-fade { box-shadow: none; opacity: 0.85; }
@media (max-width: 480px) {
	.mythbox-tab { font-size: 12px; letter-spacing: 0.02em; }
	.mythbox-tabs { gap: 2px; }
	.mythbox-tab em { font-size: 10px; }
}
@media (max-width: 400px) {
	.mythbox-tab { font-size: 11px; padding-left: 7px; padding-right: 7px; }
	.mythbox-tab em { font-size: 9.5px; }
}

/* Ouvir o resumo */
.mythbox-listen {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	margin: 0 0 12px;
	padding: 9px 12px;
	border: 1px solid var(--mythbox-line);
	border-left: 3px solid var(--mythbox-accent);
	border-radius: 12px;
	background: color-mix(in srgb, var(--mythbox-accent) 5%, transparent);
}
.mythbox-listen-play {
	appearance: none;
	border: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--mythbox-accent);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	flex: 0 0 auto;
	transition: transform 0.14s;
}
.mythbox-listen-play:hover { transform: scale(1.06); }
.mythbox-listen-txt { font-size: 13px; font-weight: 700; color: var(--mythbox-text); }
.mythbox-listen-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--mythbox-line); overflow: hidden; }
.mythbox-listen-bar i { display: block; height: 100%; width: 0; background: var(--mythbox-accent); transition: width 0.3s linear; }
.mythbox-listen-rate {
	appearance: none;
	border: 1px solid var(--mythbox-line);
	background: var(--mythbox-bg);
	border-radius: 99px;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 9px;
	cursor: pointer;
	color: var(--mythbox-muted, #667085);
}
.mythbox--m1 .mythbox-listen { border-radius: 4px; }
.mythbox--m1 .mythbox-listen-play { border-radius: 6px; }
.mythbox--m3 .mythbox-listen { background: transparent; border-left-width: 2px; }

/* Modo rádio */
.mythbox-listen-open {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--mythbox-accent);
	color: var(--mythbox-accent);
	font-weight: 900;
	font-size: 13px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
}
.mythbox-listen-next {
	appearance: none;
	border: 0;
	background: none;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	text-align: left;
	cursor: pointer;
	font-size: 12.5px;
	color: var(--mythbox-text);
	white-space: nowrap;
	overflow: hidden;
}
.mythbox-listen-next span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mythbox-listen-next b { flex: 0 0 auto; }
.mythbox-listen-next i { flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--mythbox-muted, #667085); }
/* Espaço reservado: nada aparece "do nada" (CLS zero no play e na 1ª faixa) */
.mythbox-listen-bar[hidden] { display: block; visibility: hidden; }
.mythbox-listen-rate[hidden] { display: inline-block; visibility: hidden; }
.mythbox-listen-open[hidden] { display: inline-block; visibility: hidden; }
.mythbox-listen-next span { overflow: hidden; text-overflow: ellipsis; }
.mythbox-listen-next i { font-style: normal; font-size: 11px; color: var(--mythbox-muted, #667085); flex: 0 0 auto; }
.mythbox-listen-next b { font-weight: 800; }
.mythbox-listen-next i { font-style: normal; font-size: 11px; color: var(--mythbox-muted, #667085); }
.mythbox--m1 .mythbox-listen-next { border-radius: 4px; }
.mythbox--m1 .mythbox-listen-open { border-radius: 6px; }
.mythbox--m3 .mythbox-listen-next { background: transparent; }

/* Modo compacto: nasce dobrado, abre por gesto */
.mythbox.is-folded > *:not(.mythbox-head):not(.mythbox-unfold) { display: none !important; }
.mythbox-unfold {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 8px;
	width: calc(100% - 28px);
	margin: 10px 14px 14px;
	padding: 10px 12px;
	text-align: left;
	background: color-mix(in srgb, var(--mythbox-accent) 5%, transparent);
	border: 1px dashed color-mix(in srgb, var(--mythbox-accent) 45%, transparent);
	border-radius: 11px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mythbox-text);
	cursor: pointer;
	transition: background 0.16s;
}
.mythbox-unfold:hover { background: color-mix(in srgb, var(--mythbox-accent) 9%, transparent); }
.mythbox:not(.is-folded) .mythbox-unfold { display: none; }
.mythbox--m1 .mythbox-unfold { border-radius: 4px; }
.mythbox--m3 .mythbox-unfold { background: transparent; border-style: solid; border-width: 1px; }

/* ============================================================
   v1.18 — CAMADA MOBILE UX (delta: copiar daqui até o fim
   para o final do mythbox.css). Só CSS; classes e
   data-attributes intactos. Foco: celular.
   ============================================================ */

/* 1 · Toque cru: sem flash cinza do navegador, sem atraso/zoom
   de duplo-toque nos controles do box */
.mythbox button, .mythbox-share a, .mythbox-share button,
.mythbox-chat button, .mythbox-launcher, .mythbox-ds a,
.mythbox-card-link, .mythbox-follow-google, .mythbox-cta {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* 2 · Pressão universal: TODO controle responde ao dedo
   (encolhe 3% imediatamente — o feedback que o hover dava no desktop) */
.mythbox-chip:active, .mythbox-cta:active, .mythbox-relato-btn:active,
.mythbox-strip:active, .mythbox-fu-item:active, .mythbox-qs-chip:active,
.mythbox-card-link:active, .mythbox-unfold:active, .mythbox-invite:active,
.mythbox-listen-play:active, .mythbox-listen-rate:active, .mythbox-listen-next:active,
.mythbox-postcard button:active, .mythbox-share-main:active, .mythbox-share-sq:active,
.mythbox-follow-google:active, .mythbox-launcher:active, .mythbox-tab:active,
.mythbox-chat-form button:active, .mythbox-mic:active,
.mythbox-cprev:active, .mythbox-cnext:active, .mythbox-card-more:active {
	transform: scale(0.97);
	transition-duration: 0.08s;
}
/* Linhas/tiles acendem com o wash da casa ao pressionar */
.mythbox-chip:active, .mythbox-relato-btn:active, .mythbox-qs-chip:active {
	background: var(--mythbox-wash);
	border-color: var(--mythbox-accent);
}
.mythbox-fu-item:active, .mythbox-ds a:active, .mythbox-invite:active { background: var(--mythbox-wash); }
.mythbox-cta:active { border-color: var(--mythbox-accent); }
.mythbox-cta:active .mythbox-cta-go { transform: scale(0.92); }

/* 3 · Touch (hover:none): o que só existia no hover fica visível,
   e efeitos de hover que "grudam" após o toque são neutralizados */
@media (hover: none) {
	.mythbox-chip::after { opacity: 0.5; transform: none; }
	.mythbox-chip:active::after { opacity: 1; }
	.mythbox-launcher:hover, .mythbox-relato-btn:hover, .mythbox-strip:hover,
	.mythbox-share-sq:hover { transform: none; }
	.mythbox-cta:hover .mythbox-cta-go { transform: none; }
	.mythbox-fu-item:hover i { transform: none; }
}

/* 4 · Alvos de toque ≥44px */
.mythbox-carousel-nav { min-height: 44px; margin-top: 10px; }
.mythbox-cprev, .mythbox-cnext { width: 44px; height: 44px; font-size: 19px; }
.mythbox-cprev { left: 0; }
.mythbox-cnext { right: 0; }
/* Dots: bolinha de 8px, área de toque de 24px (halo invisível de borda) */
.mythbox-cdots { gap: 0; }
.mythbox-cdots i {
	box-sizing: content-box !important;
	border: 8px solid transparent;
	background-clip: padding-box !important;
	transition-property: width, background; /* borda nunca anima (o "all" clampava o halo) */
}
.mythbox-listen { min-height: 58px; }
.mythbox-listen-play { width: 44px; height: 44px; font-size: 15px; }
.mythbox-listen-rate { min-height: 30px; padding: 5px 11px; }
.mythbox-listen-open { width: 34px; height: 34px; line-height: 32px; }
.mythbox-cta { min-height: 52px; }
.mythbox-cta-go { width: 42px; height: 42px; }
.mythbox-strip, .mythbox-unfold { min-height: 44px; align-items: center; }
.mythbox-qs-chip { min-height: 40px; display: inline-flex; align-items: center; }
.mythbox-launcher-x { padding: 10px; margin: -10px -8px -10px -2px; }
.mythbox-chat-clear, .mythbox-chat-logout { padding: 10px 8px; margin: -8px -4px; }
@media (max-width: 640px) {
	.mythbox-tab { min-height: 42px; }
	.mythbox-chip { min-height: 48px; }
}

/* 5 · Formulário do chat: dedos e iOS
   (input a 16px = Safari NÃO dá zoom ao focar) */
.mythbox-chat-form { align-items: stretch; }
.mythbox-chat-form input { font-size: 16px !important; min-height: 44px; }
.mythbox-chat-form button { min-height: 44px; min-width: 44px; }
.mythbox-mic { min-width: 44px; height: 44px; }
@media (max-width: 640px) {
	.mythbox-chat-form { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}

/* 6 · Folha do chat no celular: alça de arrastar (affordance de sheet) */
@media (max-width: 640px) {
	.mythbox-chat-head { position: relative; padding-top: 19px; }
	.mythbox-chat-head::after {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		transform: translateX(-50%);
		width: 42px;
		height: 4px;
		border-radius: 99px;
		background: var(--mythbox-line);
	}
}

/* 7 · Pílula com pregoeiro: bolinha + rótulo na MESMA linha (grid),
   teaser embaixo, × ancorado no canto — nada flutua sobre texto */
.mythbox-launcher.has-teaser {
	position: fixed;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 8px;
	row-gap: 2px;
	text-align: left;
	padding-right: 40px;
}
.mythbox-launcher.has-teaser .mythbox-launcher-teaser { grid-column: 1 / -1; }
.mythbox-launcher.has-teaser .mythbox-launcher-x {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 6px;
	margin: 0;
	padding: 10px;
}

/* 7b · Seta de rolagem das abas: centrada, com degradê atrás —
   o conteúdo some suavemente sob a seta em vez de ser coberto seco */
.mythbox-tabs-wrap .mythbox-tabs { padding-right: 36px; }
.mythbox-tabs-wrap:has(.mythbox-tabs-fade)::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 58px;
	pointer-events: none;
	border-radius: 0 999px 999px 0;
	background: linear-gradient(90deg, transparent, var(--mythbox-surface) 72%);
}
.mythbox--m1 .mythbox-tabs-wrap:has(.mythbox-tabs-fade)::after,
.mythbox--m3 .mythbox-tabs-wrap:has(.mythbox-tabs-fade)::after {
	border-radius: 0;
	background: linear-gradient(90deg, transparent, var(--mythbox-bg) 72%);
}
.mythbox-tabs-fade { top: 50%; transform: translateY(-50%); right: 6px; z-index: 3; }

/* 8 · Centralização: box centrado na coluna do artigo; convite do
   modo compacto com texto centrado */
.mythbox, .mythbox-share { margin-left: auto; margin-right: auto; }
.mythbox-unfold { justify-content: center; text-align: center; }

/* 8b · Modo compacto com ações rápidas (novo, opt-in): em vez de só
   o convite, o box dobrado expõe 3 atalhos — chat, resumo e áudio.
   Markup: <div class="mythbox-fold-actions"> com botões
   .mythbox-fold-act (o do chat leva --primary). */
.mythbox.is-folded > .mythbox-fold-actions.mythbox-fold-actions.mythbox-fold-actions { display: flex !important; }
.mythbox-fold-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 12px 14px 14px;
}
.mythbox-fold-act {
	appearance: none;
	flex: 1;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid var(--mythbox-line);
	background: var(--mythbox-wash);
	color: var(--mythbox-text);
	font-family: var(--mythbox-font);
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
	padding: 0 10px;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.16s, background 0.16s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.mythbox-fold-act:hover { border-color: var(--mythbox-accent); }
.mythbox-fold-act:active { transform: scale(0.97); background: var(--mythbox-wash-2); }
.mythbox-fold-act--primary {
	background: var(--mythbox-accent);
	border-color: var(--mythbox-accent);
	color: var(--mythbox-onaccent);
	box-shadow: 0 8px 20px -10px var(--mythbox-glow);
}
.mythbox-fold-act--primary:active { background: var(--mythbox-accent); }
.mythbox--m1 .mythbox-fold-act { border-radius: 4px; background: transparent; }
.mythbox--m1 .mythbox-fold-act--primary { background: var(--mythbox-accent); color: var(--mythbox-onaccent); }
.mythbox--m3 .mythbox-fold-act { border-radius: 10px; background: transparent; box-shadow: none; }
.mythbox--m3 .mythbox-fold-act--primary { background: transparent; color: var(--mythbox-ink); border-color: var(--mythbox-accent); }
@media (max-width: 400px) {
	.mythbox-fold-act { font-size: 12px; gap: 5px; padding: 0 8px; }
	.mythbox-fold-actions { gap: 6px; }
}

/* 8c · Seguir no Spotify (player): pill na cor da MARCA Spotify
   (#1DB954 + logo oficial — como o verde WhatsApp, não deriva do
   accent). Autoexplicativo: logo + "Seguir", sem precisar de texto.
   Markup: <a class="mythbox-listen-follow"><svg…/>Seguir</a>
   como último filho de .mythbox-listen */
.mythbox-listen-follow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	margin-left: auto;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: #1DB954;
	color: #fff !important;
	font-family: var(--mythbox-font);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.16s, transform 0.12s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.mythbox-listen-follow svg { width: 15px; height: 15px; flex: 0 0 auto; }
.mythbox-listen-txt { white-space: nowrap; } /* rótulo nunca quebra; a barra invisível cede espaço */
/* Linha "A seguir" (rádio): a barra reservada não rouba espaço do título */
.mythbox-listen:has(.mythbox-listen-next) .mythbox-listen-bar { display: none !important; }
.mythbox-listen-follow:hover { filter: brightness(1.07); color: #fff; }
.mythbox-listen-follow:active { transform: scale(0.96); }
.mythbox--m1 .mythbox-listen-follow { border-radius: 4px; }
/* Tocando (barra visível): sobra pouco espaço — só o logo, redondo */
.mythbox-listen.is-playing .mythbox-listen-follow { width: 32px; min-width: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
.mythbox-listen.is-playing .mythbox-listen-follow svg { width: 17px; height: 17px; }
@media (max-width: 400px) { .mythbox-listen-follow { padding: 0 10px; font-size: 11.5px; } }

/* 9 · Movimento reduzido: pressão sem escala */
@media (prefers-reduced-motion: reduce) {
	.mythbox :active, .mythbox-chat :active, .mythbox-share :active,
	.mythbox-launcher:active { transform: none !important; }
}

/* ====== 

/* ===== Blocos funcionais (mantidos do plugin; o handoff do design não os conhecia) ===== */
/* Tempo do áudio */
.mythbox-listen-time { font-size: 11px; font-weight: 700; color: var(--mythbox-muted, #667085); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.mythbox-listen-time[hidden] { display: inline-block; visibility: hidden; min-width: 30px; }
/* Estado gerando */
.mythbox.is-generating .mythbox-listen-play, .mythbox-listen.is-generating .mythbox-listen-play { animation: mbxpulse 1s ease-in-out infinite; cursor: wait; }
@keyframes mbxpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
/* Follow serve de <a> e de <button> (chooser) */
.mythbox-listen { position: relative; }
.mythbox-listen-follow { appearance: none; border: 0; }
.mythbox-listen-follow i { font-style: normal; font-size: 10px; opacity: 0.85; }
/* Chooser (multi-shows) + fallback standalone quando não há player */
.mythbox-sf { position: relative; margin: 0 0 12px; }
.mythbox-sf-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border: 1px solid color-mix(in srgb, var(--mythbox-accent) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--mythbox-accent) 7%, transparent);
	color: var(--mythbox-text);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}
.mythbox-sf-btn:hover { background: color-mix(in srgb, var(--mythbox-accent) 14%, transparent); }
.mythbox-sf-menu {
	position: absolute;
	z-index: 6;
	top: calc(100% + 6px);
	left: 0;
	min-width: 190px;
	background: var(--mythbox-bg);
	border: 1px solid var(--mythbox-line);
	border-radius: 12px;
	box-shadow: 0 10px 26px rgba(10, 14, 22, 0.16);
	padding: 6px;
}
.mythbox-listen .mythbox-sf-menu { left: auto; right: 10px; }
.mythbox-sf-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--mythbox-text); text-decoration: none; }
.mythbox-sf-menu a:hover { background: color-mix(in srgb, var(--mythbox-accent) 9%, transparent); }
.mythbox--m1 .mythbox-sf-btn, .mythbox--m1 .mythbox-sf-menu { border-radius: 4px; }
.mythbox--m1 .mythbox-sf-menu a { border-radius: 2px; }
.mythbox--m3 .mythbox-sf-btn { background: transparent; }
.mythbox--m3 .mythbox-sf-menu { box-shadow: none; }

/* Compacto vira alternância: aberto, a barra fica um filete "Recolher" */
.mythbox-unfold .mythbox-unfold-close { display: none; }
.mythbox:not(.is-folded) .mythbox-unfold {
	display: flex;
	width: auto;
	margin: 6px 14px 4px auto;
	padding: 4px 10px;
	background: transparent;
	border-color: transparent;
	color: var(--mythbox-muted, #667085);
	font-size: 11px;
	font-weight: 700;
}
.mythbox:not(.is-folded) .mythbox-unfold .mythbox-unfold-open { display: none; }
.mythbox:not(.is-folded) .mythbox-unfold .mythbox-unfold-close { display: inline; }
.mythbox:not(.is-folded) .mythbox-unfold:hover { color: var(--mythbox-text); background: transparent; }

/* Badge de marca (canal de vendas — remoção só por plano, via Kernel) */
.mythbox-badge{display:block;text-align:right;margin:10px 2px 0;font-size:11px;letter-spacing:.2px;color:var(--mythbox-muted,#8a8f98);text-decoration:none;opacity:.85}
.mythbox-badge:hover{opacity:1;color:var(--mythbox-accent,#0f6fff)}

/* 1.31.0: convite do modo compacto com pulso */
.mythbox.is-folded .mythbox-unfold{animation:mbxConvite 2.2s ease-in-out infinite;transform-origin:center}
@keyframes mbxConvite{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(37,99,235,.28)}50%{transform:scale(1.015);box-shadow:0 0 0 9px rgba(37,99,235,0)}}
.mythbox.is-folded .mythbox-unfold .mythbox-tpulse{display:inline-block;margin-left:8px}
.mythbox:not(.is-folded) .mythbox-unfold .mythbox-tpulse{display:none}
@media (prefers-reduced-motion: reduce){.mythbox.is-folded .mythbox-unfold{animation:none}}
