/* Tainacan Painel de Indicadores — página pública.
 * Tudo sob .tind-root: o tema não deve vazar para dentro nem o painel para fora. */

.tind-root {
	--tind-surface: #ffffff;
	--tind-plane: #f6f6f3;
	--tind-ink: #0b0b0b;
	--tind-ink2: #52514e;
	--tind-muted: #898781;
	--tind-line: #e7e6e0;
	--tind-line2: #d9d8d0;
	--tind-accent: #2a78d6;
	--tind-accent-ink: #1c5cab;
	--tind-accent-wash: rgba(42, 120, 214, .09);
	--tind-warn: #b86a00;
	--tind-warn-bg: #fff6e6;
	--tind-strong: #b03030;
	--tind-strong-bg: #fdeeee;
	--tind-info-bg: #eef4fc;
	--tind-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--tind-shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 48px rgba(16, 24, 40, .12);
	--tind-radius: 16px;

	position: relative;
	color: var(--tind-ink);
	font-size: 15px;
	line-height: 1.5;
	background: var(--tind-plane);
	color-scheme: light;
	border-radius: 24px;
	padding: 0 0 24px;
	/* Sai da coluna estreita do tema: até 1.600 px, centralizado na tela, 24 px de respiro nas
	   bordas. Margem negativa, não transform — transform quebraria o position: fixed do modal. */
	--tind-w: min(1600px, calc(100vw - 48px));
	width: var(--tind-w);
	max-width: none;
	margin: 0 0 32px calc(50% - var(--tind-w) / 2);
	isolation: isolate;
	text-align: left;
}

.tind-root *,
.tind-root *::before,
.tind-root *::after { box-sizing: border-box; }

.tind-root h2, .tind-root h3, .tind-root h4, .tind-root p { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.tind-root h2, .tind-root h3, .tind-root h4 { color: var(--tind-ink); font-family: inherit; }

/* Ícones */
.tind-ico { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.tind-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Carregando */
.tind-boot { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 64px 16px; color: var(--tind-muted); }
.tind-boot.is-small { padding: 16px; font-size: 13px; }
.tind-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tind-line2); border-top-color: var(--tind-accent); animation: tind-spin .8s linear infinite; }
@keyframes tind-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Capa (clara)                                                        */
/* ------------------------------------------------------------------ */
.tind-hero {
	position: relative;
	overflow: hidden;
	border-radius: 24px 24px 0 0;
	color: var(--tind-ink);
	background: linear-gradient(160deg, #ffffff 0%, #f3f8ff 45%, #eaf3ff 100%);
	border: 1px solid var(--tind-line);
	border-bottom: 0;
	padding: 56px 48px 96px;
}
.tind-hero-bg {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(420px 260px at 92% 0%, rgba(42, 120, 214, .20), transparent 70%),
		radial-gradient(360px 240px at 70% 100%, rgba(27, 175, 122, .14), transparent 70%),
		radial-gradient(300px 200px at 0% 0%, rgba(232, 123, 164, .12), transparent 70%),
		radial-gradient(circle at 1px 1px, rgba(28, 92, 171, .10) 1px, transparent 0) 0 0 / 22px 22px;
	mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.tind-hero-inner { position: relative; display: flex; gap: 40px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.tind-hero-text { flex: 1 1 420px; min-width: 0; }
.tind-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tind-accent-ink); background: #fff; border: 1px solid #cde2fb; box-shadow: 0 2px 8px rgba(42, 120, 214, .10); padding: 5px 12px 5px 10px; border-radius: 999px; }
.tind-eyebrow .tind-ico { width: 15px; height: 15px; }
.tind-root .tind-hero-title { color: var(--tind-ink); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 800; margin: 18px 0 10px; letter-spacing: -.025em; }
.tind-root .tind-hero-desc { color: var(--tind-ink2); font-size: 16px; max-width: 64ch; }
.tind-intro { color: var(--tind-ink2); margin-top: 12px; max-width: 70ch; }
.tind-intro a { color: var(--tind-accent-ink); }
.tind-hero-stat { text-align: right; }
.tind-hero-num {
	font-size: clamp(48px, 8vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -.035em;
	color: var(--tind-accent-ink);
	background: linear-gradient(120deg, #1c5cab 0%, #2a78d6 55%, #1baf7a 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tind-hero-numlabel { color: var(--tind-muted); font-size: 13px; font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }
.tind-hero-picker { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--tind-ink2); }
.tind-root .tind-hero-select {
	width: auto; max-width: 100%; min-height: 40px; padding: 8px 36px 8px 14px; border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
	color: var(--tind-ink); border: 1px solid var(--tind-line2); font: inherit; font-size: 15px; appearance: none; -webkit-appearance: none;
	box-shadow: 0 2px 8px rgba(16, 24, 40, .05);
}

/* ------------------------------------------------------------------ */
/* Abas                                                                */
/* ------------------------------------------------------------------ */
.tind-navbar {
	position: sticky; top: 8px; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin: -28px 24px 0; padding: 8px;
	background: color-mix(in srgb, var(--tind-surface) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border: 1px solid var(--tind-line); border-radius: 16px; box-shadow: var(--tind-shadow-lg);
}
.admin-bar .tind-navbar { top: 40px; }
.tind-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tind-root .tind-tab, .tind-root .tind-toggle {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--tind-ink2);
	transition: background .15s, color .15s;
}
.tind-root .tind-tab:hover, .tind-root .tind-toggle:hover { background: var(--tind-accent-wash); color: var(--tind-ink); }
.tind-root .tind-tab.is-active { background: var(--tind-accent); color: #fff; box-shadow: 0 4px 12px rgba(42, 120, 214, .35); }
.tind-root .tind-tab:focus-visible, .tind-root .tind-toggle:focus-visible, .tind-root .tind-btn:focus-visible, .tind-root button:focus-visible, .tind-root a:focus-visible, .tind-root select:focus-visible, .tind-root input:focus-visible { outline: 2px solid var(--tind-accent); outline-offset: 2px; }
.tind-root .tind-toggle { font-weight: 500; font-size: 13px; }
.tind-root .tind-toggle[aria-pressed="true"] { background: var(--tind-accent-wash); color: var(--tind-accent-ink); }

/* ------------------------------------------------------------------ */
/* Área principal                                                      */
/* ------------------------------------------------------------------ */
.tind-main { padding: 28px 24px 8px; transition: opacity .2s; }
.tind-main.is-loading { opacity: .55; }

.tind-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tind-kpi {
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: var(--tind-radius);
	padding: 20px 22px; box-shadow: var(--tind-shadow);
	animation: tind-rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.tind-kpi-label { font-size: 13px; color: var(--tind-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tind-kpi-value { font-size: 34px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; color: var(--tind-ink); }
.tind-kpi-hint { font-size: 13px; color: var(--tind-muted); margin-top: 4px; }
.tind-meter { height: 6px; background: var(--tind-accent-wash); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.tind-meter span { display: block; height: 100%; background: var(--tind-accent); border-radius: 99px; }

@keyframes tind-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tind-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tind-stack { display: grid; gap: 20px; }

.tind-card {
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: var(--tind-radius);
	box-shadow: var(--tind-shadow); padding: 22px 22px 18px; min-width: 0;
	animation: tind-rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.tind-card.is-wide { margin-bottom: 20px; }
.tind-card-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tind-card-head h3 { font-size: 17px; font-weight: 700; flex: 1 1 auto; }
.tind-card-sub { flex: 1 1 100%; order: 3; color: var(--tind-muted); font-size: 13.5px; }
.tind-card-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.tind-chart { width: 100%; min-height: 120px; }

.tind-legend-note { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 12px; color: var(--tind-muted); margin-top: 8px; }
.tind-swatch { display: inline-block; width: 22px; height: 8px; border-radius: 3px; margin-left: 6px; }
.tind-swatch.is-ramp { background: linear-gradient(90deg, #cde2fb, #2a78d6, #104281); }
.tind-swatch.is-gray { background: #b9b7ae; }

.tind-section-title { margin: 36px 0 14px; }
.tind-section-title h3 { font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.tind-section-title p { color: var(--tind-muted); margin-top: 4px; }

.tind-highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tind-card.is-highlight { transition: transform .2s, box-shadow .2s; }
.tind-card.is-highlight:hover { transform: translateY(-2px); box-shadow: var(--tind-shadow-lg); }

/* Alertas / ressalvas */
.tind-alerts, .tind-caveats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tind-alerts li, .tind-caveats li {
	display: flex; gap: 10px; align-items: flex-start; margin: 0;
	padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--tind-ink); background: var(--tind-info-bg);
}
.tind-alerts li .tind-ico, .tind-caveats li .tind-ico { margin-top: 2px; color: var(--tind-accent); }
.tind-alerts li.is-warn, .tind-caveats li.is-warn { background: var(--tind-warn-bg); }
.tind-alerts li.is-warn .tind-ico, .tind-caveats li.is-warn .tind-ico { color: var(--tind-warn); }
.tind-caveats li.is-strong { background: var(--tind-strong-bg); font-weight: 500; }
.tind-caveats li.is-strong .tind-ico { color: var(--tind-strong); }

/* Sugestões */
.tind-suggestions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tind-root .tind-suggestion {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: flex; align-items: center; gap: 12px; padding: 16px 18px;
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: 14px; box-shadow: var(--tind-shadow);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tind-root .tind-suggestion:hover { border-color: var(--tind-accent); transform: translateY(-2px); box-shadow: var(--tind-shadow-lg); }
.tind-suggestion-ico { display: inline-flex; padding: 9px; border-radius: 10px; background: var(--tind-accent-wash); color: var(--tind-accent); }
.tind-suggestion-label { flex: 1; font-weight: 600; font-size: 14.5px; color: var(--tind-ink); }
.tind-suggestion-go { color: var(--tind-muted); transition: transform .15s; }
.tind-suggestion:hover .tind-suggestion-go { transform: translateX(3px); color: var(--tind-accent); }

/* Chamada final */
.tind-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-top: 36px; padding: 28px 30px; border-radius: 20px;
	background: linear-gradient(120deg, #eef5ff 0%, #f1fbf6 100%); border: 1px solid #d6e6fb; color: var(--tind-ink);
}
.tind-cta strong { font-size: 20px; }
.tind-cta p { color: var(--tind-ink2); margin-top: 4px; }

/* Destaques curados */
.tind-card.is-featured { background: linear-gradient(180deg, var(--tind-accent-wash), var(--tind-surface) 60%); }
.tind-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tind-featured-wrap { position: relative; }
.tind-root .tind-featured {
	all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%;
	display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px;
	background: var(--tind-surface); border: 1px solid var(--tind-line); transition: border-color .15s, box-shadow .15s;
}
.tind-root .tind-featured:hover { border-color: var(--tind-accent); box-shadow: var(--tind-shadow); }
.tind-featured-ico { color: var(--tind-accent); }
.tind-featured strong { font-size: 15px; color: var(--tind-ink); }
.tind-featured-desc { font-size: 13.5px; color: var(--tind-ink2); }
.tind-featured-meta { font-size: 12px; color: var(--tind-muted); margin-top: auto; }

/* ------------------------------------------------------------------ */
/* Botões e campos                                                     */
/* ------------------------------------------------------------------ */
.tind-root .tind-btn {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 38px; padding: 8px 14px; border-radius: 10px;
	font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
	color: var(--tind-ink); background: var(--tind-surface); border: 1px solid var(--tind-line2);
	transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.tind-root .tind-btn:hover { border-color: var(--tind-accent); color: var(--tind-accent-ink); }
.tind-root .tind-btn:active { transform: translateY(1px); }
.tind-root .tind-btn .tind-ico { width: 17px; height: 17px; }
.tind-root .tind-btn.is-primary { background: var(--tind-accent); border-color: var(--tind-accent); color: #fff; }
.tind-root .tind-btn.is-primary:hover { background: var(--tind-accent-ink); border-color: var(--tind-accent-ink); color: #fff; }
.tind-root .tind-btn.is-ghost { background: transparent; border-color: transparent; color: var(--tind-ink2); }
.tind-root .tind-btn.is-ghost:hover { background: var(--tind-accent-wash); }
.tind-root .tind-btn.is-link { background: transparent; border: 0; padding: 4px 0; min-height: 0; color: var(--tind-accent-ink); font-size: 13.5px; }
.tind-root .tind-btn.is-link:hover { text-decoration: underline; }
.tind-root .tind-btn.is-dashed { border-style: dashed; color: var(--tind-accent-ink); background: transparent; min-height: 32px; padding: 5px 12px; font-size: 13px; }
.tind-root .tind-btn.is-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.tind-root .tind-btn.is-block { width: 100%; }
.tind-root .is-hidden { display: none !important; }

.tind-root .tind-select, .tind-root .tind-input, .tind-root .tind-modal input, .tind-root .tind-modal textarea {
	width: 100%; max-width: 100%; min-height: 42px; margin: 0; padding: 9px 36px 9px 12px;
	font: inherit; font-size: 14.5px; color: var(--tind-ink); background-color: var(--tind-surface);
	border: 1px solid var(--tind-line2); border-radius: 10px; box-shadow: none;
}
.tind-root .tind-select {
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.tind-root .tind-input, .tind-root .tind-modal input, .tind-root .tind-modal textarea { padding-right: 12px; }
.tind-root .tind-select:focus, .tind-root .tind-input:focus { border-color: var(--tind-accent); outline: none; box-shadow: 0 0 0 3px var(--tind-accent-wash); }

/* ------------------------------------------------------------------ */
/* Explorador                                                          */
/* ------------------------------------------------------------------ */
.tind-explorer { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
/* O sticky cria uma camada própria: o seletor de filtro (absoluto, dentro dela) só fica por
   cima do resultado se a camada inteira estiver acima dele. */
.tind-controls {
	position: sticky; top: 92px; z-index: 15;
	display: grid; gap: 18px; padding: 20px;
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: var(--tind-radius); box-shadow: var(--tind-shadow);
}
.tind-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.tind-step.is-plain { grid-template-columns: minmax(0, 1fr); }
.tind-step > label, .tind-step > div { display: grid; gap: 8px; min-width: 0; position: relative; }
.tind-step-n {
	display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--tind-accent-wash); color: var(--tind-accent-ink); font-weight: 700; font-size: 13px; margin-top: 1px;
}
.tind-step-label { font-size: 13px; font-weight: 700; color: var(--tind-ink2); text-transform: uppercase; letter-spacing: .04em; }

.tind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tind-chip {
	display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
	padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--tind-accent-wash); color: var(--tind-ink); font-size: 13px;
}
.tind-chip-dim { color: var(--tind-muted); }
.tind-chip-dim::after { content: ":"; }
.tind-chip-val { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.tind-root .tind-chip-x {
	all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%; color: var(--tind-muted);
}
.tind-root .tind-chip-x:hover { background: rgba(0, 0, 0, .06); color: var(--tind-ink); }
.tind-root .tind-chip-x .tind-ico { width: 15px; height: 15px; }
.tind-root .tind-chip-x.is-float { position: absolute; top: 8px; right: 8px; background: var(--tind-surface); }

.tind-picker {
	position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, 86vw);
	display: grid; gap: 10px; padding: 14px;
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: 14px; box-shadow: var(--tind-shadow-lg);
}
.tind-picker-head { display: flex; align-items: center; justify-content: space-between; }
.tind-picker-list { max-height: 300px; overflow-y: auto; overflow-x: hidden; display: grid; gap: 2px; }
.tind-root .tind-picker-item {
	all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
	padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--tind-ink);
}
.tind-root .tind-picker-item:hover, .tind-root .tind-picker-item:focus-visible { background: var(--tind-accent-wash); }
.tind-picker-item span { flex: 1 1 auto; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.tind-picker-item em { flex: 0 0 auto; font-style: normal; color: var(--tind-muted); font-variant-numeric: tabular-nums; }
.tind-muted { color: var(--tind-muted); font-size: 13px; }

.tind-result {
	position: relative; min-width: 0;
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: var(--tind-radius); box-shadow: var(--tind-shadow);
	padding: 24px; transition: opacity .2s;
}
.tind-result.is-loading { opacity: .6; }
.tind-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tind-root .tind-result-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.tind-result-sub { color: var(--tind-muted); margin-top: 4px; }
.tind-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tind-muted); border: 1px solid var(--tind-line2); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

.tind-views { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; padding: 4px; background: var(--tind-plane); border-radius: 12px; }
.tind-root .tind-view {
	all: unset; box-sizing: border-box; cursor: pointer; position: relative;
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px;
	font-size: 13.5px; font-weight: 600; color: var(--tind-ink2);
}
.tind-root .tind-view:hover { color: var(--tind-ink); background: var(--tind-surface); }
.tind-root .tind-view.is-active { background: var(--tind-surface); color: var(--tind-accent-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tind-view-rec { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: #1baf7a; padding: 1px 6px; border-radius: 999px; }

.tind-stage { position: relative; }
.tind-chart.is-main { margin-top: 6px; }
.tind-howto { display: flex; gap: 8px; align-items: flex-start; color: var(--tind-muted); font-size: 13px; margin-top: 8px; }
.tind-howto .tind-ico { width: 16px; height: 16px; margin-top: 1px; }

.tind-insights { display: grid; gap: 12px; margin-top: 20px; }
.tind-reading { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--tind-line); background: linear-gradient(180deg, var(--tind-accent-wash), transparent); }
.tind-reading h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tind-accent-ink); margin-bottom: 8px; }
.tind-narrative { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; }
.tind-narrative li { margin: 0; color: var(--tind-ink); }

/* Tabela */
.tind-table-wrap { margin-top: 20px; border: 1px solid var(--tind-line); border-radius: 12px; overflow: hidden; }
.tind-table-wrap summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.tind-table-wrap summary::-webkit-details-marker { display: none; }
.tind-table-wrap summary > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.tind-table-scroll { overflow: auto; max-height: 560px; border-top: 1px solid var(--tind-line); }
.tind-root .tind-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; border: 0; }
.tind-root .tind-table th, .tind-root .tind-table td { padding: 9px 14px; border: 0; border-bottom: 1px solid var(--tind-line); text-align: left; vertical-align: middle; background: transparent; color: var(--tind-ink); }
.tind-root .tind-table thead th { position: sticky; top: 0; z-index: 1; background: var(--tind-surface); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tind-muted); font-weight: 700; }
.tind-root .tind-table tbody th { font-weight: 500; min-width: 190px; max-width: 360px; }
.tind-root .tind-table thead th.is-num { min-width: 110px; max-width: 200px; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.tind-root .tind-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tind-root .tind-table .is-strong { font-weight: 700; }
.tind-root .tind-table .is-muted { color: var(--tind-muted); }
.tind-root .tind-table .is-bar { width: 22%; min-width: 90px; }
.tind-root .tind-table .is-bar span { display: block; height: 8px; border-radius: 4px; background: var(--tind-accent); opacity: .85; }
.tind-root .tind-table tr.is-nonvalue .is-bar span, .tind-root .tind-table tr.is-other .is-bar span { background: #b9b7ae; }
.tind-root .tind-table tr.is-nonvalue th, .tind-root .tind-table tr.is-other th { color: var(--tind-muted); font-style: italic; }
.tind-root .tind-table tbody tr:hover th, .tind-root .tind-table tbody tr:hover td { background: var(--tind-accent-wash); }
.tind-root .tind-table .is-link { width: 36px; text-align: center; }
.tind-root .tind-table .is-link a { display: inline-flex; color: var(--tind-accent); }
.tind-root .tind-table tfoot th, .tind-root .tind-table tfoot td { border-bottom: 0; background: var(--tind-plane); font-size: 13px; }

/* Ações */
.tind-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--tind-line); }
.tind-actions-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tind-actions-group.is-admin { flex-basis: 100%; padding-top: 10px; border-top: 1px dashed var(--tind-line2); }
.tind-actions-group.is-admin::before { content: "Equipe:"; align-self: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tind-muted); }

/* Menu do ponto */
.tind-pop {
	position: absolute; z-index: 40; width: 280px; padding: 8px;
	background: var(--tind-surface); border: 1px solid var(--tind-line); border-radius: 12px; box-shadow: var(--tind-shadow-lg);
	animation: tind-rise .15s ease-out;
}
.tind-pop-head { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--tind-line); margin-bottom: 4px; }
.tind-pop-head span { color: var(--tind-muted); font-size: 13px; }
.tind-root .tind-pop-item {
	all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; width: 100%;
	padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--tind-ink); text-decoration: none;
}
.tind-root .tind-pop-item:hover, .tind-root .tind-pop-item:focus-visible { background: var(--tind-accent-wash); color: var(--tind-accent-ink); }
.tind-pop-note { padding: 8px 10px; font-size: 13px; color: var(--tind-muted); }

/* Salvos */
.tind-saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tind-saved li { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 8px 6px 6px; border: 1px solid var(--tind-line); border-radius: 12px; }
.tind-root .tind-saved-open { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; }
.tind-root .tind-saved-open:hover { background: var(--tind-accent-wash); }
.tind-saved-open strong { color: var(--tind-ink); }
.tind-saved-open span { font-size: 13px; color: var(--tind-muted); }

/* Vazio */
.tind-empty { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 56px 16px; color: var(--tind-ink2); }
.tind-empty.is-inline { padding: 32px 16px; }
.tind-empty strong { font-size: 17px; color: var(--tind-ink); }

/* Modal */
.tind-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(11, 15, 25, .5); backdrop-filter: blur(3px); animation: tind-fade .15s; }
.tind-modal.is-out { opacity: 0; transition: opacity .2s; }
.tind-modal-box { width: min(480px, 100%); display: grid; gap: 14px; padding: 24px; border-radius: 18px; background: var(--tind-surface); box-shadow: var(--tind-shadow-lg); color: var(--tind-ink); }
.tind-modal-box h3 { font-size: 19px; font-weight: 700; }
.tind-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tind-ink2); }
.tind-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@keyframes tind-fade { from { opacity: 0; } }

/* Avisos */
.tind-toasts { position: fixed; z-index: 100001; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.tind-toast { padding: 12px 18px; border-radius: 12px; background: #1c2b3f; color: #fff; font-size: 14px; box-shadow: var(--tind-shadow-lg); animation: tind-rise .2s; max-width: 90vw; }
.tind-toast.is-error { background: #9b2c2c; }
.tind-toast.is-out { opacity: 0; transform: translateY(6px); transition: all .3s; }

.tind-foot { padding: 16px 24px 0; color: var(--tind-muted); font-size: 12.5px; text-align: center; }

/* Compacto (shortcode com compact="1"): sem capa grande */
.tind-root.is-compact .tind-hero { padding: 24px 28px 64px; }
.tind-root.is-compact .tind-hero-desc, .tind-root.is-compact .tind-intro { display: none; }
.tind-root.is-compact .tind-hero-num { font-size: 44px; }

/* ------------------------------------------------------------------ */
/* Responsivo                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1080px) {
	.tind-grid { grid-template-columns: minmax(0, 1fr); }
	.tind-explorer { grid-template-columns: minmax(0, 1fr); }
	.tind-controls { position: relative; top: auto; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
	.tind-root { border-radius: 16px; font-size: 14.5px; }
	.tind-hero { padding: 32px 20px 72px; border-radius: 16px 16px 0 0; }
	.tind-hero-stat { text-align: left; }
	.tind-navbar { margin: -24px 12px 0; }
	.tind-root .tind-tab { padding: 9px 11px; font-size: 13px; }
	.tind-tabs-tools { display: none; }
	.tind-main { padding: 20px 12px 8px; }
	.tind-result { padding: 16px; }
	.tind-highlights, .tind-suggestions { grid-template-columns: minmax(0, 1fr); }
	.tind-root .tind-view span:not(.tind-ico) { display: none; }
	.tind-root .tind-view.is-active span:not(.tind-ico) { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
	.tind-root *, .tind-root *::before, .tind-root *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ */
/* Impressão: só o resultado                                           */
/* ------------------------------------------------------------------ */
@media print {
	.tind-root { background: #fff; border-radius: 0; }
	.tind-hero { background: none; color: #000; padding: 0 0 12px; }
	.tind-hero-bg, .tind-navbar, .tind-controls, .tind-views, .tind-actions, .tind-toasts, .tind-foot, .tind-cta, .tind-pop, .tind-picker { display: none !important; }
	.tind-root .tind-hero-title, .tind-hero-num { color: #000; -webkit-text-fill-color: #000; background: none; }
	.tind-hero-desc, .tind-hero-numlabel, .tind-eyebrow { color: #555; background: none; border: 0; }
	.tind-explorer { grid-template-columns: 1fr; }
	.tind-card, .tind-result, .tind-kpi { box-shadow: none; break-inside: avoid; }
	.tind-table-scroll { max-height: none; overflow: visible; }
	.tind-root .tind-table thead th { position: static; }
}
