:root {
  --paper: #f8f8f2;
  --surface: #ffffff;
  --soft: #eef1e4;
  --green: #e7edda;
  --ink: #20342c;
  --ink-hover: #35513a;
  --muted: #5f6b62;
  --line: #dedfd4;
  --accent: #5f7f3e;
  --lime: #c9ed8e;
  --danger: #a83229;
  --q-libertarian: #d4e6a5;
  --q-progressive: #cde2d9;
  --q-conservative: #eee2bd;
  --q-statist: #e9d6cf;
  --q-center: #fbfaf1;
  --serif: Georgia, 'Times New Roman', serif;
  --radius: 14px;
  --shadow: 0 18px 50px #20342c14;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.auth-gate,.mail-notice{padding:14px 16px;background:#eef1e4;border:1px solid #d3ddc5;border-radius:10px;line-height:1.7;font-size: calc(13px * var(--text-scale, 1))}
.report-consent{font-size: calc(13px * var(--text-scale, 1))!important;line-height:1.7!important}.report-consent .text-link{font-size:inherit}.report-success{padding:14px;background:#e4efd5;border-radius:10px;color:#28462b}.save-result{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.save-result summary{cursor:pointer;font-size: calc(13px * var(--text-scale, 1));font-weight:600}.save-result form{margin-top:16px}.legal-details{margin-top:32px;border:1px solid #c9d4bc;border-radius:14px;background:#f8f8f2;overflow:hidden}.legal-details summary{cursor:pointer;padding:22px;font-weight:600;line-height:1.7}.legal-details summary small{display:block;font-weight:400;color:var(--muted);margin-left:20px}.legal-details-body{padding:0 22px 22px}.legal-details-body p{font-size: calc(14px * var(--text-scale, 1))}.legal-details-body .text-link{margin-right:20px}.legal-details iframe{width:100%;height:560px;margin-top:18px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.why,.spectrum-section,.candidates-section,#liderancas,.editorial,.lgpd-section{content-visibility:auto;contain-intrinsic-size:auto 700px}#spectrum-chart{min-height:450px}.hero-visual{box-shadow:0 15px 45px #20342c09}.button{transition:background-color .18s,transform .18s}
@media(max-width:600px){.legal-details summary{padding:16px}.legal-details-body{padding:0 16px 16px}.legal-details iframe{height:430px}.legal-details summary small{margin-left:0}#spectrum-chart{min-height:320px}}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); font-size: calc(16px * var(--text-scale, 1)); }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { line-height: 1.65; color: var(--muted); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; color: #5c7449; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 40px; }
.skip-link { position: fixed; top: -80px; left: 10px; background: var(--ink); color: white; padding: 12px; z-index: 99; }
.skip-link:focus { top: 10px; }

/* Botões e links */
.button { min-height: 46px; padding: 12px 22px; border-radius: 999px; font-size: calc(15px * var(--text-scale, 1)); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-large { min-height: 56px; padding: 16px 30px; font-size: calc(16px * var(--text-scale, 1)); }
.button-dark { background: var(--ink); color: white; box-shadow: 0 6px 18px #20342c33; }
.button-dark:hover:not(:disabled) { background: var(--ink-hover); }
.button-outline { border: 1px solid #c9cdbf; background: var(--surface); color: var(--ink); }
.button-outline:hover { background: var(--green); }
.button-ghost { background: transparent; color: var(--ink); padding-inline: 8px; }
.button-ghost:hover:not(:disabled) { background: var(--green); }
.text-link { background: none; font-size: calc(15px * var(--text-scale, 1)); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; color: var(--ink); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { font-size: calc(12px * var(--text-scale, 1)); letter-spacing: 1.6px; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.live-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; display: inline-block; flex-shrink: 0; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: calc(12px * var(--text-scale, 1)); letter-spacing: 0; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 5; background: #f8f8f2e6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; margin: auto; padding: 0 40px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: calc(28px * var(--text-scale, 1)); font-weight: 800; letter-spacing: -1.5px; display: flex; align-items: center; }
.brand-icon { font-size: calc(30px * var(--text-scale, 1)); margin-right: 8px; font-weight: 400; }
.brand-dot { color: #839653; }
.header nav { display: flex; gap: 30px; align-items: center; font-size: calc(15px * var(--text-scale, 1)); }
.header nav a, .nav-link { color: var(--muted); background: none; padding: 0; }
.header nav a:hover, .nav-link:hover { color: var(--ink); }
.header-actions { display: flex; gap: 10px; }

/* Hero */
.hero { padding-block: 72px 88px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero > * { min-width: 0; }
.nolan-widget { grid-template-columns: minmax(0, 1fr); }
.nolan-widget > * { min-width: 0; }
.forgot-password { align-self: flex-start; font-size: calc(14px * var(--text-scale, 1)); padding-top: 0; }
.hero h1 { font-size: calc(clamp(42px, 5.2vw, 68px) * var(--text-scale, 1)); letter-spacing: -2.5px; line-height: 1.04; font-weight: 650; margin: 22px 0; }
.lead { font-size: calc(19px * var(--text-scale, 1)); line-height: 1.6; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: calc(14px * var(--text-scale, 1)); color: var(--muted); }
.hero-meta strong { display: block; font-size: calc(26px * var(--text-scale, 1)); color: var(--ink); font-weight: 650; letter-spacing: -.5px; }
.hero-visual { position: relative; background: var(--soft); border: 1px solid #e0e5d5; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.visual-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-size: calc(12px * var(--text-scale, 1)); letter-spacing: 1.4px; font-weight: 700; color: var(--accent); }
.floating-note { position: absolute; bottom: -30px; left: 28px; right: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px #22332114; display: flex; gap: 14px; align-items: center; padding: 16px 18px; transform: rotate(-1.5deg); font-size: calc(15px * var(--text-scale, 1)); font-weight: 600; }
.note-icon { font-size: calc(28px * var(--text-scale, 1)); color: #778b57; }
.floating-note small { display: block; font-size: calc(13px * var(--text-scale, 1)); font-weight: 400; color: var(--muted); margin-top: 3px; }

/* Diagrama interativo */
.nolan-widget { display: grid; gap: 12px; }
.layer-switch { display: flex; gap: 4px; padding: 4px; background: #ffffffb3; border: 1px solid var(--line); border-radius: 99px; justify-self: center; flex-wrap: wrap; justify-content: center; }
.layer-switch button { background: transparent; color: var(--muted); border-radius: 99px; padding: 7px 14px; font-size: calc(13px * var(--text-scale, 1)); font-weight: 650; }
.layer-switch button:hover { color: var(--ink); }
.layer-switch button[aria-pressed=true] { background: var(--ink); color: white; }
.nolan-stage { position: relative; }
.nolan-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.nolan-shadow { fill: #20342c; opacity: .08; transform: translate(0, 10px); filter: blur(10px); }
.region { stroke: #ffffff; stroke-width: 3; stroke-linejoin: round; cursor: pointer; transition: filter .2s, opacity .2s; outline: none; }
.region-libertarian { fill: #d6e9a6; }
.region-progressive { fill: #c9e2d7; }
.region-conservative { fill: #f1e2b6; }
.region-statist { fill: #eed3cb; }
.region-center { fill: #fbfaf2; stroke: #b6bf9f; stroke-width: 1.5; stroke-dasharray: 5 5; }
.region:hover, .region:focus-visible { filter: brightness(1.04) saturate(1.25); }
.region:focus-visible { stroke: #6a9438; stroke-width: 4; stroke-dasharray: none; }
.region.is-selected { filter: saturate(1.5) brightness(.97); }
.nolan-svg:has(.region.is-selected) .region:not(.is-selected) { opacity: .5; }
.region.is-you { filter: saturate(1.3); }
.nolan-grid line { stroke: #ffffff; stroke-opacity: .55; stroke-width: 1; pointer-events: none; }
.nolan-frame { fill: none; stroke: #5f7a52; stroke-width: 1.5; stroke-linejoin: round; pointer-events: none; }
.region-labels text { text-anchor: middle; font-size: calc(13px * var(--text-scale, 1)); font-weight: 800; letter-spacing: 1.8px; fill: #3f5136; pointer-events: none; }
.region-labels .label-libertarian { fill: #567a22; }
.region-labels .label-progressive { fill: #2f7258; }
.region-labels .label-conservative { fill: #8f6c12; }
.region-labels .label-statist { fill: #974536; }
.region-labels .label-center { font-size: calc(10px * var(--text-scale, 1)); fill: #8b937c; letter-spacing: 1.4px; }
.axis-labels text { font-size: calc(11px * var(--text-scale, 1)); font-weight: 700; letter-spacing: 1.4px; fill: #6b7b60; text-anchor: middle; }
.axis-labels .ticks text { font-size: calc(11px * var(--text-scale, 1)); letter-spacing: 0; fill: #98a38e; font-weight: 600; }
.connectors line { stroke: #20342c; stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 2 3; }
.connectors circle { fill: #20342c; opacity: .5; }
.marker { cursor: pointer; outline: none; }
.marker-body { transition: transform .18s ease; transform-box: fill-box; transform-origin: center; }
.marker:hover .marker-body, .marker:focus-visible .marker-body, .marker.is-selected .marker-body { transform: scale(1.18); }
.leader-marker .ring { fill: #ffffff; stroke: #20342c; stroke-width: 2.5; filter: drop-shadow(0 3px 5px #20342c40); }
.region-ring-libertarian .ring { stroke: #6f9a2e; }
.region-ring-progressive .ring { stroke: #3d8a6c; }
.region-ring-conservative .ring { stroke: #b48a1e; }
.region-ring-statist .ring { stroke: #b0574a; }
.region-ring-center .ring { stroke: #7d8576; }
.marker:focus-visible .ring, .marker.is-selected .ring { stroke: var(--ink); stroke-width: 4; }
.party-marker .ring { fill: #20342c; stroke: #ffffff; stroke-width: 2; filter: drop-shadow(0 2px 4px #20342c40); }
.party-marker text { fill: #ffffff; font-size: calc(11px * var(--text-scale, 1)); font-weight: 800; text-anchor: middle; letter-spacing: .5px; pointer-events: none; }
.party-marker.is-selected .ring, .party-marker:focus-visible .ring { fill: #5f7f3e; stroke: #ffffff; }
.you-marker { pointer-events: none; }
.you-dot { fill: var(--ink); stroke: #ffffff; stroke-width: 4; }
.you-pulse { fill: var(--ink); opacity: .35; transform-box: fill-box; transform-origin: center; animation: you-pulse 2s ease-out infinite; }
@keyframes you-pulse { from { transform: scale(1); opacity: .35; } to { transform: scale(3); opacity: 0; } }
.you-marker rect { fill: var(--ink); filter: drop-shadow(0 3px 6px #20342c40); }
.you-marker text { fill: var(--lime); font-size: calc(11.5px * var(--text-scale, 1)); font-weight: 800; letter-spacing: 1.5px; text-anchor: middle; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: white; border-radius: 10px; padding: 8px 12px; font-size: calc(13px * var(--text-scale, 1)); pointer-events: none; white-space: nowrap; display: grid; gap: 1px; box-shadow: 0 8px 20px #20342c40; z-index: 3; }
.chart-tip[hidden] { display: none; }
.chart-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.chart-tip span { color: var(--lime); font-size: calc(12px * var(--text-scale, 1)); }
.chart-panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 56px; }
.panel-hint { margin: 0; font-size: calc(14px * var(--text-scale, 1)); text-align: center; }
.panel-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 28px; }
.panel-head strong { font-size: calc(16px * var(--text-scale, 1)); display: block; }
.panel-head p { font-size: calc(14px * var(--text-scale, 1)); margin: 6px 0 0; line-height: 1.5; }
.panel-tag { display: inline-block; margin-top: 4px; background: var(--lime); color: var(--ink); font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.panel-role { display: block; font-size: calc(12.5px * var(--text-scale, 1)); color: var(--accent); font-weight: 600; margin-top: 4px; }
.panel-scores { font-size: calc(12.5px * var(--text-scale, 1)) !important; color: var(--muted); }
.panel-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--lime); flex-shrink: 0; }
.panel-badge { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 8px; border-radius: 14px; background: var(--ink); color: white; font-weight: 800; font-size: calc(13px * var(--text-scale, 1)); flex-shrink: 0; }
.panel-swatch { width: 34px; height: 34px; border-radius: 8px; transform: rotate(45deg) scale(.75); flex-shrink: 0; border: 1px solid #0000001a; }
.swatch-libertarian { background: #d6e9a6; }
.swatch-progressive { background: #c9e2d7; }
.swatch-conservative { background: #f1e2b6; }
.swatch-statist { background: #eed3cb; }
.swatch-center { background: #fbfaf2; }
.panel-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel-caption { display: block; font-size: calc(11px * var(--text-scale, 1)); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.panel-faces, .panel-parties { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-columns em { font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); }
.face { display: grid; justify-items: center; gap: 3px; background: none; padding: 2px; font-size: calc(11px * var(--text-scale, 1)); color: var(--ink); width: 58px; }
.face img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--line); transition: border-color .15s, transform .15s; }
.face:hover img { border-color: var(--accent); transform: scale(1.08); }
.face span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-chip { background: var(--ink); color: white; border-radius: 99px; padding: 5px 11px; font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; }
.party-chip:hover { background: var(--accent); }
.panel-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: #e8ebde; color: var(--ink); font-size: calc(18px * var(--text-scale, 1)); line-height: 1; }
.hero-chart { margin-top: 12px; }
@media (max-width: 600px) { .panel-columns { grid-template-columns: 1fr; } .layer-switch button { padding: 6px 10px; font-size: calc(12px * var(--text-scale, 1)); } }
@media (prefers-reduced-motion: reduce) { .you-pulse { animation: none; opacity: 0; } }

/* Faixa de princípios */
.principles { border-block: 1px solid var(--line); background: var(--surface); }
.principles-inner { padding-block: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: calc(15px * var(--text-scale, 1)); color: var(--muted); flex-wrap: wrap; }
.principles strong { color: var(--ink); }

/* Seções */
.section { padding-block: 96px; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading h2, .why h2, .editorial h2 { font-size: calc(clamp(32px, 3.6vw, 46px) * var(--text-scale, 1)); line-height: 1.1; font-weight: 600; letter-spacing: -1.5px; margin: 14px 0; }
.section-heading p { font-size: calc(17px * var(--text-scale, 1)); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; counter-increment: step; }
.steps li::before { content: '0' counter(step); font-size: calc(13px * var(--text-scale, 1)); font-weight: 700; color: #8b937c; letter-spacing: 1px; }
.step-icon { position: absolute; right: 22px; top: 18px; font-size: calc(26px * var(--text-scale, 1)); color: #82916c; }
.steps h3 { font-size: calc(19px * var(--text-scale, 1)); font-weight: 650; margin: 28px 0 10px; }
.steps p { font-size: calc(15px * var(--text-scale, 1)); margin: 0; }

/* Por que Nolan */
.why { background: var(--ink); color: #f1f4ea; padding-block: 96px; }
.why .eyebrow { color: var(--lime); }
.why .serif { color: var(--lime); }
.why p { color: #c5cfc0; }
.why strong, .why em { color: #ffffff; }
.why-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.why-intro p { font-size: calc(18px * var(--text-scale, 1)); }
.compare { margin: 0; background: #2a4238; border: 1px solid #3c5649; border-radius: var(--radius); padding: 24px; }
.compare svg { width: 100%; height: auto; display: block; }
.compare figcaption { font-size: calc(14px * var(--text-scale, 1)); color: #c5cfc0; margin-top: 14px; line-height: 1.55; }
.compare-title { text-anchor: middle; font-size: calc(11px * var(--text-scale, 1)); font-weight: 700; letter-spacing: 1.4px; fill: var(--lime); }
.compare-line { stroke: #8fa585; stroke-width: 2; }
.compare-diamond { fill: #34503f; stroke: #8fa585; }
.compare-a { fill: var(--lime); }
.compare-b { fill: #f2b98c; }
.compare-small { font-size: calc(12px * var(--text-scale, 1)); fill: #c5cfc0; }
.compare-caption { text-anchor: middle; font-size: calc(12px * var(--text-scale, 1)); fill: #ffffff; font-weight: 600; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.why-grid article { border-top: 2px solid var(--lime); padding-top: 20px; }
.why-number { font-family: var(--serif); font-style: italic; font-size: calc(30px * var(--text-scale, 1)); color: var(--lime); }
.why-grid h3 { font-size: calc(19px * var(--text-scale, 1)); font-weight: 650; margin: 12px 0 10px; color: #fff; }
.why-grid p { font-size: calc(15px * var(--text-scale, 1)); margin: 0; }
.why-limits { margin: 48px 0 0; padding: 18px 22px; border: 1px solid #3c5649; border-radius: 12px; font-size: calc(15px * var(--text-scale, 1)); }

/* Regiões e lideranças */
.quadrant-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.quadrant-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.quadrant-swatch { display: block; width: 34px; height: 34px; border-radius: 8px; transform: rotate(45deg) scale(.75); margin-bottom: 14px; border: 1px solid #0000001a; }
.region-libertarian .quadrant-swatch { background: var(--q-libertarian); }
.region-progressive .quadrant-swatch { background: var(--q-progressive); }
.region-center .quadrant-swatch { background: var(--q-center); }
.region-conservative .quadrant-swatch { background: var(--q-conservative); }
.region-statist .quadrant-swatch { background: var(--q-statist); }
.quadrant-card h3 { font-size: calc(19px * var(--text-scale, 1)); margin-bottom: 8px; }
.quadrant-card p { font-size: calc(14px * var(--text-scale, 1)); margin-bottom: 16px; }
.quadrant-card ul { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.quadrant-card li { display: flex; align-items: center; gap: 10px; font-size: calc(14px * var(--text-scale, 1)); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: calc(15px * var(--text-scale, 1)); flex-shrink: 0; letter-spacing: .5px; }
.avatar-small { width: 28px; height: 28px; font-size: calc(10px * var(--text-scale, 1)); background: var(--green); }

/* Editorial */
.editorial { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border-radius: 22px; overflow: hidden; background: #e8ecdf; max-width: 1120px; }
.photo-wrap { position: relative; min-height: 460px; background: #a2aa97; }
.photo-wrap img { width: 100%; height: 100%; position: absolute; object-fit: cover; filter: saturate(.55); }
.photo-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, #152821a0); }
.photo-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 1; color: white; font-size: calc(12px * var(--text-scale, 1)); font-weight: 600; letter-spacing: 1.6px; }
.editorial-copy { padding: 52px 48px; }
.editorial-copy p { font-size: calc(15px * var(--text-scale, 1)); margin: 22px 0 26px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; font-size: calc(16px * var(--text-scale, 1)); align-items: baseline; }
.check-list li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.privacy-strip { margin-block: 72px; display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 26px 30px; max-width: 1120px; }
.privacy-icon { font-size: calc(26px * var(--text-scale, 1)); background: var(--green); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0; }
.privacy-strip h3 { font-size: calc(18px * var(--text-scale, 1)); margin-bottom: 4px; }
.privacy-strip p { font-size: calc(15px * var(--text-scale, 1)); margin: 0; }
.privacy-strip .text-link { margin-left: auto; white-space: nowrap; }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; font-size: calc(14px * var(--text-scale, 1)); color: var(--muted); gap: 20px; flex-wrap: wrap; }
footer .brand { font-size: calc(24px * var(--text-scale, 1)); color: var(--ink); }
footer strong { color: var(--ink); }

/* Diálogos */
dialog { border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); padding: 32px; width: calc(100% - 24px); max-width: 480px; max-height: 92dvh; overflow: auto; box-shadow: 0 25px 100px #16251c55; }
dialog::backdrop { background: #14281d8c; backdrop-filter: blur(6px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.close-button { width: 40px; height: 40px; border-radius: 50%; background: #e8ebde; color: var(--ink); font-size: calc(24px * var(--text-scale, 1)); line-height: 1; }
.close-button:hover { background: #dbe2cc; }
dialog h2 { font-size: calc(30px * var(--text-scale, 1)); font-weight: 650; letter-spacing: -1px; line-height: 1.15; }
dialog p { font-size: calc(15px * var(--text-scale, 1)); }
.privacy-dialog { max-width: 720px; }
.privacy-dialog h3 { font-size: calc(17px * var(--text-scale, 1)); margin-top: 26px; }
.muted { color: var(--muted); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; }
input:not([type=checkbox]) { width: 100%; padding: 13px 14px; border: 1px solid #c7cfbc; border-radius: 10px; background: white; color: var(--ink); min-height: 48px; font-size: calc(16px * var(--text-scale, 1)); font-weight: 400; }
.consent { display: flex; align-items: flex-start; line-height: 1.55; gap: 10px; font-weight: 400; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.consent button { background: none; text-decoration: underline; color: var(--ink); padding: 0; font-size: inherit; }
.form-error { color: var(--danger); font-size: calc(14px * var(--text-scale, 1)); line-height: 1.5; min-height: 0; margin: 0; }
.form-error:empty { display: none; }
.form-switch { display: block; text-align: center; font-size: calc(14px * var(--text-scale, 1)); margin-top: 20px; width: 100%; background: none; color: var(--ink); text-decoration: underline; }
.back-link { margin-bottom: 14px; }

/* Questionário */
.quiz-dialog { max-width: 760px; }
.progress-row { display: flex; justify-content: space-between; font-size: calc(14px * var(--text-scale, 1)); color: var(--muted); margin-bottom: 10px; }
.progress-row strong { color: var(--ink); }
.progress { height: 8px; background: #e3e8d8; border-radius: 99px; overflow: hidden; margin-bottom: 24px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #7d9d4f, var(--accent)); border-radius: 99px; transition: width .35s ease; }
.question-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--green); border-radius: 99px; padding: 6px 14px; font-size: calc(13px * var(--text-scale, 1)); font-weight: 600; margin-bottom: 18px; }
.quiz-dialog .question-card h2 { font-size: calc(clamp(22px, 3vw, 28px) * var(--text-scale, 1)); line-height: 1.3; font-weight: 600; margin-bottom: 12px; letter-spacing: -.5px; }
.quiz-dialog .question-card h2:focus { outline: none; }
.question-hint { font-size: calc(15px * var(--text-scale, 1)); margin: 0; }
.answer-prompt { margin: 22px 0 12px; font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; color: var(--ink); }
.answers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.answer { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 108px; padding: 16px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; line-height: 1.25; text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.answer:hover { transform: translateY(-2px); border-color: #b3bea3; }
.answer-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: calc(15px * var(--text-scale, 1)); font-weight: 800; letter-spacing: -1px; }
.answer-0 .answer-icon { background: #f3d4cc; color: #8f2f22; }
.answer-1 .answer-icon { background: #f7e4d6; color: #92522a; }
.answer-2 .answer-icon { background: #eceee6; color: #5f6b62; }
.answer-3 .answer-icon { background: #e1edcb; color: #4d6a2f; }
.answer-4 .answer-icon { background: #cfe5a8; color: #34511c; }
.answer kbd { position: absolute; top: 7px; right: 9px; font-family: inherit; font-size: calc(11px * var(--text-scale, 1)); color: #a1a99a; }
.answer[aria-checked=true] { border-color: var(--ink); background: var(--green); box-shadow: 0 0 0 3px #20342c1f; }
.quiz-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.quiz-caption { font-size: calc(13px * var(--text-scale, 1)); margin: 18px 0 0; text-align: center; }

/* Resultado */
.result-heading { text-align: center; max-width: 560px; margin: 0 auto 8px; }
.result-heading .eyebrow { justify-content: center; }
.result-heading h2 { margin: 12px 0 10px; font-size: calc(36px * var(--text-scale, 1)); }
.result-heading h2:focus { outline: none; }
.result-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; margin: 18px 0 8px; }
.result-chart { background: var(--soft); border-radius: 18px; padding: 10px 12px 18px; }
.scores { display: grid; gap: 14px; }
.score { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.score-top { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; }
.score-top strong { font-size: calc(28px * var(--text-scale, 1)); letter-spacing: -.5px; }
.score-top small { font-size: calc(14px * var(--text-scale, 1)); color: var(--muted); font-weight: 500; }
.meter { height: 8px; background: #e3e8d8; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .8s ease; }
.score p { font-size: calc(13px * var(--text-scale, 1)); margin: 0; }
.result-section { margin-top: 26px; }
.result-section h3 { font-size: calc(20px * var(--text-scale, 1)); margin-bottom: 14px; }
.leader-list { display: grid; gap: 10px; }
.quiz-dialog.wide { max-width: 1000px; }
.headline-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.headline-stats span { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); min-width: 140px; }
.headline-stats strong { font-size: calc(22px * var(--text-scale, 1)); color: var(--ink); }
.tabs { display: flex; gap: 6px; margin: 26px 0 0; padding: 5px; background: #e8ecdf; border-radius: 14px; overflow-x: auto; scrollbar-width: none; position: sticky; top: -32px; z-index: 2; }
.tabs [role=tab] { flex: 1 0 auto; background: transparent; color: var(--muted); border-radius: 10px; padding: 11px 16px; font-size: calc(14px * var(--text-scale, 1)); font-weight: 650; white-space: nowrap; }
.tabs [role=tab]:hover { color: var(--ink); }
.tabs [role=tab][aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px #20342c1a; }
.tab-panel { padding-top: 22px; min-height: 320px; }
.tab-panel:focus-visible { outline-offset: 6px; }
.panel-intro { font-size: calc(15px * var(--text-scale, 1)); margin-bottom: 18px; }
.subheading { font-size: calc(18px * var(--text-scale, 1)); margin: 28px 0 12px; }
.level { display: inline-block; margin-bottom: 6px; background: var(--green); color: var(--ink); font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.score p { font-size: calc(14px * var(--text-scale, 1)); margin: 0 0 6px; color: var(--ink); line-height: 1.55; }
.score .topics { font-size: calc(12.5px * var(--text-scale, 1)); color: var(--muted); margin: 0; }
.explain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.explain-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.explain-card.wide { grid-column: 1 / -1; }
.explain-card h3 { font-size: calc(17px * var(--text-scale, 1)); margin-bottom: 10px; }
.explain-card p { font-size: calc(15px * var(--text-scale, 1)); margin-bottom: 10px; }
.explain-card p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; gap: 6px; align-items: center; background: #e1edcb; border-radius: 99px; padding: 6px 12px; font-size: calc(13px * var(--text-scale, 1)); font-weight: 600; }
.chips-state li { background: #f2e3d8; }
.chips .chip-empty { background: #eceee6; color: var(--muted); font-weight: 500; }
.swot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.swot-card { border-radius: 16px; padding: 22px; }
.swot-card h3 { display: flex; align-items: center; gap: 12px; font-size: calc(19px * var(--text-scale, 1)); margin: 0; }
.swot-letter { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: white; font-size: calc(18px * var(--text-scale, 1)); }
.swot-subtitle { font-size: calc(13px * var(--text-scale, 1)); margin: 6px 0 12px; }
.swot-card ul { display: grid; gap: 9px; }
.swot-card li { position: relative; padding-left: 18px; font-size: calc(14.5px * var(--text-scale, 1)); line-height: 1.5; }
.swot-card li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .55; }
.swot-strengths { background: #e5f0d2; }
.swot-weaknesses { background: #f8e9dc; }
.swot-opportunities { background: #ddece6; }
.swot-threats { background: #f4dfd9; }
.leader-list, .party-list { display: grid; gap: 12px; }
.leader-card, .party-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.leader-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--green); border: 3px solid var(--lime); }
.leader-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.leader-card h4, .party-card h4 { font-size: calc(18px * var(--text-scale, 1)); margin: 0 0 3px; }
.leader-role { font-size: calc(13px * var(--text-scale, 1)); color: var(--accent); font-weight: 600; }
.leader-card p, .party-card p { font-size: calc(14.5px * var(--text-scale, 1)); margin: 10px 0 0; line-height: 1.55; }
.affinity { text-align: center; display: grid; background: var(--green); border-radius: 12px; padding: 6px 12px; flex-shrink: 0; }
.affinity strong { font-size: calc(22px * var(--text-scale, 1)); }
.affinity span { font-size: calc(11px * var(--text-scale, 1)); color: var(--muted); }
.compare-list { display: grid; gap: 4px; margin-top: 10px; }
.compare-list li { font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); padding-left: 20px; position: relative; }
.compare-list li::before { content: '↔'; position: absolute; left: 0; color: var(--accent); }
.photo-credit { display: inline-block; margin-top: 10px; font-size: calc(11.5px * var(--text-scale, 1)); color: #8b937c; text-decoration: underline; text-underline-offset: 2px; }
.party-badge { display: grid; place-items: center; align-content: center; width: 96px; height: 96px; border-radius: 18px; background: var(--ink); color: white; font-weight: 800; font-size: calc(14px * var(--text-scale, 1)); letter-spacing: .5px; text-align: center; overflow-wrap: anywhere; padding: 6px; }
.party-badge small { font-size: calc(11px * var(--text-scale, 1)); color: var(--lime); font-weight: 700; margin-top: 4px; }
.party-table { display: grid; gap: 6px; }
.party-table li { display: grid; grid-template-columns: 120px 1fr 48px; gap: 12px; align-items: center; font-size: calc(14px * var(--text-scale, 1)); }
.party-acronym { font-weight: 700; }
.party-meter { height: 10px; background: #e3e8d8; border-radius: 99px; overflow: hidden; }
.party-meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.party-table strong { text-align: right; }
.answer-review { display: grid; gap: 8px; }
.answer-review li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.answer-review p { margin: 0; font-size: calc(14.5px * var(--text-scale, 1)); color: var(--ink); line-height: 1.45; }
.review-icon { font-size: calc(20px * var(--text-scale, 1)); }
.review-answer { font-size: calc(12.5px * var(--text-scale, 1)); color: var(--muted); }
.direction { font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.direction-more { background: #e1edcb; color: #34511c; }
.direction-less { background: #f2e3d8; color: #8a4a22; }
.direction-neutral { background: #eceee6; color: var(--muted); }
.quadrant-parties { font-size: calc(12.5px * var(--text-scale, 1)) !important; font-weight: 700; color: var(--accent) !important; margin-bottom: 14px !important; }
img.avatar { object-fit: cover; object-position: 50% 18%; padding: 0; }
.fine-print { font-size: calc(12.5px * var(--text-scale, 1)); margin: 12px 0 0; }
.report-card { display: flex; gap: 18px; margin-top: 26px; padding: 24px; border-radius: 18px; background: var(--ink); color: white; }
.report-card h3 { font-size: calc(20px * var(--text-scale, 1)); margin-bottom: 8px; color: white; }
.report-card p { color: #c5cfc0; font-size: calc(15px * var(--text-scale, 1)); }
.report-card strong { color: white; }
.report-card .consent { color: #dfe6d6; }
.report-card .consent input { accent-color: var(--lime); }
.report-card .button-dark { background: var(--lime); color: var(--ink); box-shadow: none; justify-self: start; }
.report-card .form-error { color: #ffb4a8; }
.report-card .text-link { color: white; }
.report-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: calc(22px * var(--text-scale, 1)); font-weight: 800; flex-shrink: 0; }
.report-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* Conta */
.account-details { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--green); border-radius: 14px; margin: 18px 0; overflow-wrap: anywhere; }
.account-details p { margin: 0 0 2px; color: var(--ink); }
.account-details span:not(.avatar) { font-size: calc(14px * var(--text-scale, 1)); color: var(--muted); }
.account-actions { display: grid; gap: 10px; }
.danger { color: var(--danger); border-color: #e6c1b8; }
.delete-confirm { padding: 16px; border: 1px solid #e6c1b8; border-radius: 12px; margin-top: 14px; }
.delete-confirm .button { margin-right: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 14px 22px; border-radius: 12px; font-size: calc(15px * var(--text-scale, 1)); z-index: 10; max-width: 90vw; box-shadow: 0 6px 30px #0003; }

@media (max-width: 1080px) {
  .header nav { display: none; }
  .hero { gap: 40px; }
  .steps, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .quadrant-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .container, .header-inner { padding-inline: 20px; }
  .hero, .why-intro, .editorial { grid-template-columns: 1fr; }
  .hero { padding-block: 44px 76px; }
  .hero-meta { grid-template-columns: repeat(2, auto); gap: 18px 32px; }
  .section, .why { padding-block: 64px; }
  .quadrant-grid { grid-template-columns: 1fr 1fr; }
  .editorial { margin-inline: 20px; }
  .photo-wrap { min-height: 280px; }
  .editorial-copy { padding: 32px 26px; }
  .privacy-strip { margin: 48px 20px; flex-wrap: wrap; }
  .privacy-strip .text-link { margin-left: 0; }
  .result-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { height: 64px; }
  .brand { font-size: calc(24px * var(--text-scale, 1)); }
  .header-start { display: none; }
  .hero h1 { letter-spacing: -1.5px; }
  .lead { font-size: calc(17px * var(--text-scale, 1)); }
  .hero-actions .button { width: 100%; }
  .button { white-space: normal; overflow-wrap: anywhere; }
  .privacy-strip .text-link { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
  h1, h2, h3, p, a { overflow-wrap: anywhere; }
  .floating-note { left: 14px; right: 14px; }
  .steps, .why-grid, .quadrant-grid { grid-template-columns: 1fr; }
  .principles-inner { display: grid; grid-template-columns: 1fr 1fr; font-size: calc(14px * var(--text-scale, 1)); }
  dialog { padding: 20px 16px; border-radius: 18px; }
  .question-card { padding: 20px; }
  .answers { grid-template-columns: 1fr; gap: 8px; }
  .answer { flex-direction: row; justify-content: flex-start; min-height: 56px; padding: 10px 14px; text-align: left; gap: 14px; }
  .answer-icon { width: 34px; height: 34px; font-size: calc(13px * var(--text-scale, 1)); }
  .answer kbd { display: none; }
  .quiz-caption { font-size: calc(12px * var(--text-scale, 1)); }
  .result-heading h2 { font-size: calc(28px * var(--text-scale, 1)); }
  .leader-card, .party-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .leader-photo { width: 76px; height: 76px; }
  .party-badge { width: auto; height: auto; flex-direction: row; display: flex; gap: 10px; justify-content: flex-start; padding: 10px 14px; justify-self: start; }
  .party-badge small { margin: 0; }
  .explain-grid, .swot-grid { grid-template-columns: 1fr; }
  .party-table li { grid-template-columns: 96px 1fr 42px; gap: 8px; font-size: calc(13px * var(--text-scale, 1)); }
  .answer-review li { grid-template-columns: auto 1fr; padding: 12px; }
  .direction { grid-column: 2; justify-self: start; }
  .headline-stats span { flex: 1 1 40%; min-width: 0; padding: 8px 12px; }
  .tabs { top: -20px; }
  .report-card { flex-direction: column; padding: 20px; }
  .footer-inner > span:first-of-type { display: block; font-size: calc(12px * var(--text-scale, 1)); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Formulários de perfil */
select { width: 100%; padding: 12px 14px; border: 1px solid #c7cfbc; border-radius: 10px; background: white; color: var(--ink); min-height: 48px; font: inherit; font-size: calc(16px * var(--text-scale, 1)); font-weight: 400; }
input:disabled { background: #eef0e8; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional { font-weight: 400; color: var(--muted); font-size: calc(12px * var(--text-scale, 1)); }
.field-hint { font-size: calc(12.5px * var(--text-scale, 1)); margin: 6px 0 0; }
.avatar-picker { display: flex; align-items: center; gap: 16px; }
.avatar-preview { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green); font-size: calc(30px * var(--text-scale, 1)); overflow: hidden; flex-shrink: 0; border: 3px solid var(--lime); }
.avatar-preview img, .avatar-preview .avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; font-size: calc(26px * var(--text-scale, 1)); }
.file-button { cursor: pointer; min-height: 40px; padding: 8px 16px; font-size: calc(14px * var(--text-scale, 1)); }
.file-button:focus-within { outline: 3px solid #6a9438; outline-offset: 3px; }
.avatar-large { width: 72px; height: 72px; font-size: calc(28px * var(--text-scale, 1)); }
.avatar-button { width: 28px; height: 28px; font-size: calc(12px * var(--text-scale, 1)); object-fit: cover; }
img.avatar { object-fit: cover; }
.danger-link { color: var(--danger); font-size: calc(13px * var(--text-scale, 1)); }
.result-history { display: grid; gap: 8px; margin-bottom: 18px; }
.result-history li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.result-history div { flex: 1; display: grid; }
.result-history span:not(.panel-swatch) { font-size: calc(12.5px * var(--text-scale, 1)); color: var(--muted); }
#account-dialog { max-width: 560px; }
.admin-link { color: var(--accent) !important; font-weight: 700; }

/* Régua esquerda × direita */
.chart-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.spectrum-toggle { display: inline-flex; align-items: center; gap: 8px; background: #ffffffb3; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px 6px 6px; font-size: calc(13px * var(--text-scale, 1)); font-weight: 650; color: var(--ink); }
.toggle-track { width: 34px; height: 20px; border-radius: 99px; background: #cfd5c4; position: relative; transition: background .2s; }
.toggle-track span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .2s; box-shadow: 0 1px 3px #0003; }
.spectrum-toggle[aria-pressed=true] .toggle-track { background: linear-gradient(90deg, #c0392b, #2c5aa0); }
.spectrum-toggle[aria-pressed=true] .toggle-track span { transform: translateX(14px); }
.spectrum text { fill: #ffffff; font-size: calc(10.5px * var(--text-scale, 1)); font-weight: 800; text-anchor: middle; letter-spacing: .6px; pointer-events: none; }
.spectrum .spectrum-note { fill: #20342c; font-size: calc(11px * var(--text-scale, 1)); font-weight: 700; paint-order: stroke; stroke: #ffffffd9; stroke-width: 4px; }
.spectrum-cut { stroke: #20342c; stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 3 4; pointer-events: none; }
.spectrum rect { pointer-events: none; filter: drop-shadow(0 3px 6px #20342c33); }
.result-dots circle { fill: #20342c; fill-opacity: .45; stroke: #ffffff; stroke-width: 1.5; pointer-events: none; }
.marker-initials { fill: var(--ink); font-size: calc(12px * var(--text-scale, 1)); font-weight: 800; text-anchor: middle; }
.ballot circle { fill: var(--ink); stroke: white; stroke-width: 1.5; }
.ballot text { fill: var(--lime); font-size: calc(9px * var(--text-scale, 1)); font-weight: 800; text-anchor: middle; }
.spectrum-card .spectrum-bar { position: relative; display: grid; grid-template-columns: 65fr 20fr 30fr 20fr 65fr; height: 34px; border-radius: 99px; overflow: visible; background: linear-gradient(90deg, #c0392b, #9aa08e 50%, #2c5aa0); margin: 8px 0 16px; }
.spectrum-bar span { display: grid; place-items: center; color: white; font-size: calc(11.5px * var(--text-scale, 1)); font-weight: 700; text-align: center; line-height: 1.1; padding: 0 2px; border-right: 1px solid #ffffff55; }
.spectrum-bar span:last-of-type { border-right: 0; }
.spectrum-bar span.is-you { text-decoration: underline; text-underline-offset: 3px; }
.spectrum-bar i { position: absolute; top: -6px; width: 6px; height: 46px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px white; transform: translateX(-50%); }

/* Seções novas da página */
.lead-small { font-size: calc(17px * var(--text-scale, 1)); max-width: 680px; }
.spectrum-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spectrum-layout h2 { font-size: calc(clamp(30px, 3.4vw, 44px) * var(--text-scale, 1)); line-height: 1.1; font-weight: 600; letter-spacing: -1.4px; margin: 14px 0; }
.spectrum-explainer { display: grid; gap: 14px; margin-top: 24px; }
.spectrum-explainer li { display: flex; gap: 14px; align-items: flex-start; }
.spectrum-explainer strong { font-size: calc(16px * var(--text-scale, 1)); }
.spectrum-explainer p { margin: 2px 0 0; font-size: calc(15px * var(--text-scale, 1)); }
.spectrum-visual { background: var(--soft); border: 1px solid #e0e5d5; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.candidates-section { background: var(--surface); border-block: 1px solid var(--line); padding-block: 72px; }
.candidates-section h2 { font-size: calc(clamp(30px, 3.4vw, 44px) * var(--text-scale, 1)); font-weight: 600; letter-spacing: -1.4px; margin: 14px 0; }
.candidates-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 28px 0; }
.candidates-strip li { display: grid; justify-items: center; text-align: center; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 8px; }
.candidates-strip strong { font-size: calc(15px * var(--text-scale, 1)); }
.candidates-strip span { font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); }
.strip-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--lime); margin-bottom: 6px; }
.candidates-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.quadrant-logos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.quadrant-card .muted { font-size: calc(13px * var(--text-scale, 1)); }

/* Logos, fotos e fontes */
.initials { display: grid; place-items: center; background: var(--green); color: var(--ink); font-weight: 800; }
.panel-photo.initials { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--lime); font-size: calc(20px * var(--text-scale, 1)); }
.leader-photo.initials { width: 96px; height: 96px; border-radius: 50%; font-size: calc(30px * var(--text-scale, 1)); border: 3px solid var(--lime); }
.strip-photo.initials { font-size: calc(22px * var(--text-scale, 1)); }
.face-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--line); transition: border-color .15s, transform .15s; font-size: calc(12px * var(--text-scale, 1)); }
.face:hover .face-photo { border-color: var(--accent); transform: scale(1.08); }
.party-logo, .panel-logo, .mini-logo, .tiny-logo { object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 12px; flex-shrink: 0; }
.party-logo { width: 96px; height: 96px; padding: 8px; }
.panel-logo { width: 64px; height: 64px; padding: 6px; }
.mini-logo { width: 28px; height: 28px; padding: 2px; border-radius: 6px; }
.tiny-logo { width: 44px; height: 30px; padding: 3px; border-radius: 6px; }
.logo-fallback { display: grid; place-items: center; background: var(--ink); color: white; font-weight: 800; font-size: calc(11px * var(--text-scale, 1)); letter-spacing: .3px; text-align: center; overflow-wrap: anywhere; line-height: 1.1; }
.party-logo.logo-fallback { font-size: calc(15px * var(--text-scale, 1)); }
.tiny-logo.logo-fallback, .mini-logo.logo-fallback { font-size: calc(8px * var(--text-scale, 1)); }
.party-visual { display: grid; justify-items: center; gap: 6px; align-content: start; }
.party-visual small { font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; color: var(--accent); }
.party-history { font-size: calc(14px * var(--text-scale, 1)) !important; }
.party-table li { grid-template-columns: 44px 110px 1fr 48px; }
.fact-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.fact-list li { font-size: calc(13px * var(--text-scale, 1)); color: var(--ink); }
.leader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: calc(13px * var(--text-scale, 1)); font-weight: 600; }
.leader-meta span { background: var(--green); border-radius: 99px; padding: 2px 10px; }
.panel-party { font-size: calc(13px * var(--text-scale, 1)); margin-top: 8px; }
.source-links { display: block; margin-top: 10px; font-size: calc(12px * var(--text-scale, 1)); color: var(--muted); }
.source-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.chart-panel .photo-credit { display: block; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.candidates-table, .admin-table { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--text-scale, 1)); }
.candidates-table th, .candidates-table td, .admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.candidates-table th, .admin-table th { font-size: calc(12px * var(--text-scale, 1)); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: #f4f6ee; }
.candidates-table tr:last-child td, .admin-table tr:last-child td { border-bottom: 0; }

/* Administração */
.admin-body { background: #f1f3ea; }
.admin-badge { margin-left: 10px; font-size: calc(12px * var(--text-scale, 1)); letter-spacing: 1px; font-weight: 800; background: var(--ink); color: var(--lime); border-radius: 99px; padding: 4px 10px; }
.admin-main { padding-block: 36px 72px; display: grid; gap: 22px; }
.admin-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin-title h1 { font-size: calc(clamp(28px, 3vw, 38px) * var(--text-scale, 1)); margin: 8px 0 0; letter-spacing: -1px; }
.admin-me { display: inline-flex; align-items: center; gap: 8px; font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; }
.kpi span { font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); font-weight: 600; }
.kpi strong { font-size: calc(34px * var(--text-scale, 1)); letter-spacing: -1px; }
.kpi small { font-size: calc(12.5px * var(--text-scale, 1)); color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.admin-card h2 { font-size: calc(18px * var(--text-scale, 1)); margin-bottom: 14px; }
.admin-subtitle { margin-top: 26px; }
.bar-list { display: grid; gap: 10px; }
.bar-list li { display: grid; grid-template-columns: 26px 110px 1fr 36px; align-items: center; gap: 10px; font-size: calc(14px * var(--text-scale, 1)); }
.bar-list strong { text-align: right; }
.state-list { display: flex; flex-wrap: wrap; gap: 8px; }
.state-list li { display: inline-flex; gap: 8px; background: var(--green); border-radius: 99px; padding: 5px 12px; font-size: calc(13px * var(--text-scale, 1)); }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.table-head h2 { margin: 0; }
.table-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.table-filters input { min-width: 240px; min-height: 42px; }
.table-filters select { width: auto; min-height: 42px; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell div { display: grid; }
.person-cell span { font-size: calc(12.5px * var(--text-scale, 1)); color: var(--muted); overflow-wrap: anywhere; }
.person-cell .avatar { width: 40px; height: 40px; font-size: calc(15px * var(--text-scale, 1)); }
.result-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.result-pill .panel-swatch { width: 18px; height: 18px; }
.admin-table small { display: block; font-size: calc(12px * var(--text-scale, 1)); color: var(--muted); }
.button-small { min-height: 36px; padding: 6px 14px; font-size: calc(13px * var(--text-scale, 1)); }
.person-dialog { max-width: 760px; }
.person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.person-head h2 { margin: 0; }
.person-head span { color: var(--muted); overflow-wrap: anywhere; }
.person-data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.person-data div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.person-data dt { font-size: calc(12px * var(--text-scale, 1)); color: var(--muted); }
.person-data dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.person-result { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.person-result summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; cursor: pointer; }
.person-result summary span:last-child { font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); }
.person-result .panel-swatch { width: 20px; height: 20px; }
.mini-answers { display: grid; gap: 4px; margin-top: 10px; padding-left: 20px; list-style: decimal; }
.mini-answers li { font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); }
.mini-answers li span { display: block; }
.mini-answers strong { color: var(--ink); font-size: calc(12.5px * var(--text-scale, 1)); }
.delete-zone { margin-top: 20px; display: flex; justify-content: flex-end; }
.admin-login { max-width: 420px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.admin-login h1 { font-size: calc(28px * var(--text-scale, 1)); }

/* Responsividade */
@media (max-width: 1080px) {
  .candidates-strip { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid, .spectrum-layout { grid-template-columns: 1fr; }
  .person-data { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-actions .button { min-height: 40px; padding: 8px 14px; font-size: calc(14px * var(--text-scale, 1)); }
  .tabs { margin-inline: -4px; }
  .tabs [role=tab] { padding: 10px 12px; font-size: calc(13px * var(--text-scale, 1)); }
  .quiz-dialog.wide { max-width: 100%; }
}
@media (max-width: 600px) {
  dialog, .quiz-dialog.wide, .person-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; padding: 18px 16px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .candidates-strip { grid-template-columns: repeat(2, 1fr); }
  .candidates-actions .button { width: 100%; }
  .headline-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .headline-stats strong { font-size: calc(18px * var(--text-scale, 1)); }
  .spectrum-bar span { font-size: calc(9.5px * var(--text-scale, 1)); }
  .chart-toolbar { justify-content: flex-start; }
  .layer-switch { justify-self: stretch; justify-content: flex-start; border-radius: 14px; }
  .spectrum-toggle { font-size: calc(12px * var(--text-scale, 1)); }
  .party-table li { grid-template-columns: 40px 86px 1fr 40px; }
  .party-visual { justify-items: start; grid-auto-flow: column; align-items: center; }
  .party-logo { width: 72px; height: 72px; }
  .kpi strong { font-size: calc(26px * var(--text-scale, 1)); }
  .bar-list li { grid-template-columns: 22px 90px 1fr 30px; }
  .table-filters, .table-filters input { width: 100%; min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .admin-table td { border: 0; padding: 4px 10px; }
  .admin-table td[data-label]:not([data-label=Pessoa])::before { content: attr(data-label) ': '; font-size: calc(12px * var(--text-scale, 1)); color: var(--muted); }
  .person-data { grid-template-columns: 1fr; }
  .admin-me span { display: none; }
  .header-actions { gap: 6px; }
}
@media (max-width: 380px) {
  .header-start { display: none; }
  .candidates-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* Ajustes finais */
.label-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.layer-switch { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; justify-content: flex-start; }
.layer-switch::-webkit-scrollbar { display: none; }
.layer-switch button { flex: 0 0 auto; white-space: nowrap; }
.table-filters { flex: 1 1 420px; justify-content: flex-end; }
.table-filters input { width: auto; flex: 1 1 240px; max-width: 340px; }
@media (max-width: 600px) { .table-filters input { max-width: none; } .layer-switch { border-radius: 99px; } }

/* Fichas de liderança e partido */
.profile { display: grid; gap: 12px; }
.profile-head { display: flex; gap: 16px; align-items: center; padding-right: 30px; }
.profile-head > div { display: grid; gap: 4px; min-width: 0; }
.profile-name { font-size: calc(20px * var(--text-scale, 1)); line-height: 1.2; }
.profile-compact .profile-name { font-size: calc(17px * var(--text-scale, 1)); }
.profile-head .panel-photo, .profile-head .panel-logo { width: 72px; height: 72px; }
.profile-head .panel-logo { width: 96px; height: 64px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--green); color: var(--ink); }
.tag-libertarian { background: #d6e9a6; }
.tag-progressive { background: #c9e2d7; }
.tag-conservative { background: #f1e2b6; }
.tag-statist { background: #eed3cb; }
.tag-center { background: #eceee2; }
.tag-spectrum { background: linear-gradient(90deg, #c0392b22, #2c5aa022); border: 1px solid #c9cdbf; }
.tag-affinity { background: var(--lime); }
.profile .fact-list { margin: 0; }
.profile .fact-list li { background: #f1f3ea; border-radius: 8px; padding: 3px 9px; font-size: calc(12.5px * var(--text-scale, 1)); }
.profile-bio { margin: 0; font-size: calc(15px * var(--text-scale, 1)); color: var(--ink); }
.profile-compact .profile-bio { font-size: calc(14px * var(--text-scale, 1)); }
.profile-block { background: #f6f7f1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.profile-block h4 { font-size: calc(14px * var(--text-scale, 1)); margin: 0 0 6px; }
.profile-block h4:not(:first-child) { margin-top: 12px; }
.profile-block p { font-size: calc(14px * var(--text-scale, 1)); margin: 0; }
.profile-block.why-block { background: #fbfaf2; border-left: 4px solid var(--accent); }
.idea-list { display: grid; gap: 6px; }
.idea-list li { position: relative; padding-left: 22px; font-size: calc(14px * var(--text-scale, 1)); line-height: 1.45; }
.idea-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.profile-presidents { margin-top: 10px !important; font-size: calc(13.5px * var(--text-scale, 1)) !important; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-actions:empty { display: none; }
.profile-actions .button { gap: 8px; }
.join-note { font-size: calc(12px * var(--text-scale, 1)); margin: 0; }
.profile .source-links, .profile .photo-credit { margin-top: 0; }
.leader-card, .party-card { display: block; position: relative; padding: 22px; }
.party-card .rank { position: absolute; top: 16px; right: 18px; font-family: var(--serif); font-style: italic; font-size: calc(26px * var(--text-scale, 1)); color: var(--accent); }
.party-card .profile-head { padding-right: 46px; }
.profile-dialog { max-width: 640px; }
.chart-panel .profile-head { padding-right: 34px; }

/* Listas clicáveis da página */
.card-caption { display: block; font-size: calc(11px * var(--text-scale, 1)); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.quadrant-card { display: flex; flex-direction: column; }
.quadrant-card > p:first-of-type { min-height: 66px; }
.quadrant-logos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.logo-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 4px; font-size: calc(11px * var(--text-scale, 1)); font-weight: 700; color: var(--ink); transition: border-color .15s, transform .15s; }
.logo-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.logo-chip .tiny-logo { width: 38px; height: 26px; }
.quadrant-card ul.people-list { display: grid; gap: 4px; border-top: 0; padding-top: 0; }
.person-chip { display: flex; align-items: center; gap: 10px; width: 100%; background: none; text-align: left; padding: 6px; border-radius: 10px; color: var(--ink); font-size: calc(14px * var(--text-scale, 1)); }
.person-chip:hover { background: var(--green); }
.person-chip > span { display: grid; line-height: 1.25; }
.person-chip small { font-size: calc(11.5px * var(--text-scale, 1)); color: var(--muted); }
.world-names { font-size: calc(13px * var(--text-scale, 1)) !important; margin: 0 !important; line-height: 1.6; }
.world-link { font-size: calc(13px * var(--text-scale, 1)); font-weight: 500; padding: 0; color: var(--muted); }
.world-link:hover { color: var(--ink); }
.candidate-button { display: grid; justify-items: center; gap: 4px; width: 100%; height: 100%; background: none; color: var(--ink); padding: 0; }
.candidate-button small { font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; color: var(--accent); margin-top: 2px; }
.candidates-strip li { transition: transform .15s, box-shadow .15s; }
.candidates-strip li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #20342c14; }
.party-table li { display: block; }
.party-row { display: grid; grid-template-columns: 44px 110px 1fr 48px; gap: 12px; align-items: center; width: 100%; background: none; padding: 4px 6px; border-radius: 10px; color: var(--ink); font-size: calc(14px * var(--text-scale, 1)); text-align: left; }
.party-row:hover { background: var(--green); }
.party-row strong { text-align: right; }

/* LGPD */
.lgpd-section { background: var(--ink); color: #eef2e8; padding-block: 80px; }
.lgpd-section .eyebrow, .lgpd-section .serif { color: var(--lime); }
.lgpd-section p { color: #c5cfc0; }
.lgpd-section strong { color: white; }
.lgpd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.lgpd-head h2 { font-size: calc(clamp(30px, 3.4vw, 44px) * var(--text-scale, 1)); font-weight: 600; letter-spacing: -1.4px; margin: 14px 0; color: white; }
.lgpd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lgpd-section .button-dark { background: var(--lime); color: var(--ink); }
.lgpd-section .button-outline { background: transparent; color: white; border-color: #4d6758; }
.lgpd-section .button-outline:hover { background: #2a4238; }
.lgpd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lgpd-grid article { background: #2a4238; border: 1px solid #3c5649; border-radius: 16px; padding: 22px; }
.lgpd-grid h3 { font-size: calc(17px * var(--text-scale, 1)); margin: 12px 0 8px; color: white; }
.lgpd-grid p { font-size: calc(14.5px * var(--text-scale, 1)); margin: 0; }
.lgpd-icon { font-size: calc(24px * var(--text-scale, 1)); }
.lgpd-subtitle { font-size: calc(20px * var(--text-scale, 1)); margin: 44px 0 14px; color: white; }
.rights-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rights-list li { background: #2a4238; border-radius: 12px; padding: 14px 16px; font-size: calc(14.5px * var(--text-scale, 1)); color: #dfe6d6; display: grid; gap: 4px; }
.rights-list span { font-size: calc(12.5px * var(--text-scale, 1)); color: var(--lime); }
.rights-list a { color: var(--lime); text-decoration: underline; }
.lgpd-section .fine-print { margin-top: 26px; color: #9fb09a; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a, .footer-links .nav-link { font-size: calc(14px * var(--text-scale, 1)); color: var(--muted); }
.footer-links a:hover, .footer-links .nav-link:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .lgpd-grid, .rights-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lgpd-grid, .rights-list { grid-template-columns: 1fr; }
  .lgpd-section { padding-block: 56px; }
  .lgpd-actions .button { width: 100%; }
  .profile-head { align-items: flex-start; }
  .profile-head .panel-photo { width: 60px; height: 60px; }
  .profile-head .panel-logo { width: 72px; height: 52px; }
  .profile-actions .button { width: 100%; }
  .leader-card, .party-card { padding: 16px; }
  .party-row { grid-template-columns: 40px 86px 1fr 40px; gap: 8px; font-size: calc(13px * var(--text-scale, 1)); }
  .quadrant-card > p:first-of-type { min-height: 0; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}

/* Botão Entrar e cabeçalho das janelas */
.header-actions { align-items: center; }
.header-actions .button { min-height: 44px; }
.account-button { padding: 6px 18px 6px 6px; gap: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px #20342c12; }
.account-button:hover:not(:disabled) { background: var(--green); border-color: #b9c4a8; }
.account-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--ink); flex-shrink: 0; }
.account-button:hover .account-icon { background: var(--surface); }
.account-button .avatar-button { width: 32px; height: 32px; }
.dialog-top { gap: 10px; }
.dialog-top > .eyebrow { margin-right: auto; }
.dialog-top .accessibility-launch { width: 40px; height: 40px; flex-basis: 40px; background: #e8ebde; color: var(--ink); border: 0; }
.dialog-top .accessibility-launch:hover { background: #dbe2cc; }
@media (max-width: 600px) { .account-button { padding: 4px; min-width: 44px; } .account-button > span:not(.account-icon) { display: none; } }
input:not([type=checkbox]):focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #5f7f3e26; outline: none; }

/* Endereço por CEP e troca de senha */
.address-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; background: #fbfbf7; min-width: 0; }
.address-box legend { font-size: 14px; font-weight: 700; padding: 0 6px; }
.cep-row { display: grid; grid-template-columns: minmax(140px, 180px) 1fr; gap: 12px; align-items: end; }
.cep-status { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.cep-status.is-loading { color: var(--accent); }
.cep-status.is-found { color: #3d6b2a; font-weight: 600; }
.cep-status.is-error { color: var(--danger); }
.form-grid .span-2, .person-data .span-2 { grid-column: span 2; }
.password-box { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 18px; }
.password-box summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.password-box summary::-webkit-details-marker { display: none; }
.password-box summary::after { content: '▾'; color: var(--muted); transition: transform .2s; }
.password-box[open] summary::after { transform: rotate(180deg); }
.password-box form { padding: 0 16px 16px; }
.show-password { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.show-password input { width: 18px; height: 18px; accent-color: var(--ink); }
#password-dialog { max-width: 440px; }
@media (max-width: 600px) { .cep-row { grid-template-columns: 1fr; gap: 4px; } .cep-status { margin: 0; } .form-grid .span-2, .person-data .span-2 { grid-column: auto; } }

/* Posição na régua (painel) */
.spectrum-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #fff; }
.spectrum-esquerda { background: #b03a2e; }
.spectrum-centro-esquerda { background: #d98b7f; color: #3a1510; }
.spectrum-centro { background: #9aa08e; color: #1f261c; }
.spectrum-centro-direita { background: #8fa8cf; color: #13233d; }
.spectrum-direita { background: #2c5aa0; }
.spectrum-bars li { grid-template-columns: 150px 1fr 36px; }
.spectrum-bars .spectrum-badge { justify-self: start; }
.admin-table .place { display: block; white-space: nowrap; }
.admin-table td small { display: block; margin-top: 3px; }
@media (max-width: 600px) { .spectrum-bars li { grid-template-columns: 130px 1fr 30px; } }

/* Cabeçalho do painel no celular */
.admin-body .brand { white-space: nowrap; }
@media (max-width: 600px) {
  .admin-body .hide-mobile, .admin-body .admin-badge { display: none; }
  .admin-body .header-actions .button { min-height: 40px; min-width: 40px; padding: 6px 12px; }
  .table-filters select { width: 100%; }
}

/* Convite do relatório em PDF no fim do teste */
.report-card .report-actions { gap: 12px; margin-top: 14px; }
.report-card .button-outline { background: transparent; color: white; border-color: rgba(255, 255, 255, .55); }
.report-card .button-outline:hover { background: rgba(255, 255, 255, .1); }
.report-card .field-hint { color: #aebaa9; margin-top: 12px; }
.optional-box { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; background: #fbfbf7; }
.optional-box summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.optional-box summary::-webkit-details-marker { display: none; }
.optional-box summary::after { content: '▾'; color: var(--muted); transition: transform .2s; }
.optional-box[open] summary::after { transform: rotate(180deg); }
.optional-box[open] { padding-bottom: 16px; display: grid; gap: 14px; }
.report-card .mail-notice, .report-card .report-success, .report-card .mail-notice strong, .report-card .report-success strong { color: var(--ink); }
.optional-box summary { justify-content: flex-start; }
.optional-box summary::after { margin-left: auto; }

/* Painel: dados completos e respostas na própria lista */
.admin-table tr[hidden] { display: none !important; }
.row-actions { white-space: nowrap; }
.row-actions .button + .button { margin-left: 6px; }
.details-row > td { background: #f8f9f3; padding: 18px 20px 22px; }
.row-details { display: grid; gap: 14px; }
.row-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.row-facts dt { font-size: calc(11px * var(--text-scale, 1)); text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.row-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.row-result { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; }
.row-details .subheading { margin: 4px 0 0; }
.answer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.answer-grid li { display: flex; gap: 10px; padding: 10px 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; }
.answer-number { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #eef1e4; display: grid; place-items: center; font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; color: var(--ink); }
.answer-question { display: block; font-size: calc(13px * var(--text-scale, 1)); line-height: 1.45; }
.answer-given { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: calc(13px * var(--text-scale, 1)); color: var(--ink); }
.direction-neutral { background: #eceee6; color: #5d6a5f; }
/* Distribuição das respostas por pergunta */
.option-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; font-size: calc(13px * var(--text-scale, 1)); color: var(--muted); }
.option-legend li { display: flex; align-items: center; gap: 6px; }
.option-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.option-0 { background: #b8503d; color: #fff; }
.option-1 { background: #e3a291; color: #3a1510; }
.option-2 { background: #cfd3c5; color: #1f261c; }
.option-3 { background: #a7c97f; color: #1f3310; }
.option-4 { background: #5f7f3e; color: #fff; }
.distribution { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.distribution li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.distribution li:last-child { border-bottom: 0; }
.distribution-question { font-size: calc(13.5px * var(--text-scale, 1)); line-height: 1.45; }
.stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #eef0e6; }
.stack > span { display: grid; place-items: center; font-size: calc(12px * var(--text-scale, 1)); font-weight: 700; min-width: 22px; }
.stack-empty { width: 100%; color: var(--muted); font-weight: 500 !important; }
@media (max-width: 900px) { .row-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .answer-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .distribution li { grid-template-columns: 1fr; gap: 6px; }
  .details-row > td { padding: 12px 8px 16px; }
  .row-actions { white-space: normal; display: flex !important; gap: 6px; }
  .row-actions .button + .button { margin-left: 0; }
}
.consent-highlight { padding: 12px 14px; border: 1px solid #d3ddc5; border-radius: 12px; background: #eef5df; }
.admin-table td[data-label=Pessoa] { min-width: 240px; }
.admin-table .person-cell span { overflow-wrap: anywhere; }
.stack > span { flex: 1 1 0; }
