/* ==========================================================================
   OLIMPO — DESIGN SYSTEM (OBSIDIAN & ESMERALDA)
   Home, 12 eixos, metodologia e sobre ocupam exatamente uma tela (sem rolagem).
   ========================================================================== */

@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/sora-600.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg-deep: #05080e;
  --bg-base: #090e17;
  --bg-surface: rgba(13, 20, 32, 0.7);
  --bg-surface-solid: #0d1420;
  --bg-card: rgba(18, 28, 46, 0.65);
  --bg-card-hover: rgba(26, 40, 66, 0.85);
  --bg-pill: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 230, 118, 0.4);

  --emerald: #00e676;
  --emerald-dark: #00a854;
  --emerald-glow: rgba(0, 230, 118, 0.28);
  --emerald-soft: rgba(0, 230, 118, 0.12);

  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --coral: #f43f5e;
  --coral-soft: rgba(244, 63, 94, 0.12);

  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #a3b1c6;
  --text-muted: #6b7a90;

  --font-heading: 'Sora', 'Poppins', sans-serif;
  --font-body: 'Poppins', -apple-system, 'Segoe UI', sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 32px var(--emerald-glow);

  --header-h: 64px;
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg-deep); }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Páginas de tela única: o corpo trava na altura da janela */
body.locked-screen { height: 100dvh; max-height: 100dvh; overflow: hidden; }

#site-header { flex-shrink: 0; position: relative; z-index: 50; }
#site-footer { flex-shrink: 0; }
#site-footer:empty { display: none; }

main#main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; outline: none; }
body.locked-screen main#main { overflow-x: hidden; overflow-y: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img, svg, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.img-hidden { display: none !important; }

.skip-link { position: absolute; top: -9999px; left: -9999px; width: 1px; height: 1px; overflow: hidden; z-index: 99999; }
.skip-link:focus { top: 12px; left: 12px; width: auto; height: auto; padding: 10px 18px; background: var(--emerald); color: #05080e; font-weight: 700; font-size: 13px; border-radius: var(--radius-sm); }

/* Botões --------------------------------------------------------------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  border: 1px solid var(--border-medium);
  background: var(--bg-pill); color: var(--text-white);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover, .button:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.btn:active, .button:active { transform: scale(.98); }
.btn small { display: block; font-size: 11.5px; font-weight: 500; opacity: .75; }
.btn-primary, .button:not(.button-outline) {
  background: linear-gradient(135deg, #00e676, #00c389); color: #04140b; border-color: transparent;
  box-shadow: 0 8px 28px rgba(0, 230, 118, .28);
}
.btn-primary:hover, .button:not(.button-outline):hover { background: linear-gradient(135deg, #2cf08f, #00d19a); border-color: transparent; box-shadow: 0 10px 34px rgba(0, 230, 118, .4); }
.btn-ghost { background: rgba(255, 255, 255, .06); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button-large { min-height: 54px; padding: 0 28px; font-size: 15.5px; }
.button-outline { background: transparent; color: var(--text-white); }
.button-accent { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1100; border-color: transparent; }
.arrow-glyph { display: inline-block; transition: transform .2s ease; }
a:hover > .arrow-glyph, button:hover .arrow-glyph, .btn:hover .arrow-glyph { transform: translateX(3px); }

.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--emerald); }
.error-msg { color: var(--coral); font-size: 13px; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 8, 14, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { flex-shrink: 0; display: block; }
.brand-name { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--text-white); letter-spacing: -.3px; }
.brand-name strong { color: var(--emerald); font-weight: 800; }

/* Navegação desktop: aparece só a partir de 860px */
.desktop-nav { display: none; }
.btn-hamburger {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border-subtle);
  transition: background .2s ease, border-color .2s ease;
}
.btn-hamburger:hover { background: rgba(255, 255, 255, .11); border-color: var(--border-medium); }
.hamburger-line { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

@media (min-width: 860px) {
  .btn-hamburger, .drawer-backdrop, .drawer-panel { display: none !important; }
  .desktop-nav { display: flex; align-items: center; gap: 6px; }
  .desktop-nav a {
    padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: color .15s ease, background .15s ease;
  }
  .desktop-nav a:hover { color: var(--text-white); background: rgba(255, 255, 255, .06); }
  .desktop-nav a[aria-current="page"] { color: var(--emerald); background: var(--emerald-soft); }
}

.btn-exit-quiz {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border-subtle);
}
.btn-exit-quiz:hover { color: var(--text-white); background: rgba(255, 255, 255, .11); }

/* Menu lateral (somente celular) --------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: 320px; max-width: 86vw;
  display: flex; flex-direction: column;
  background: #090e17; border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .6);
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .32s;
}
.drawer-panel.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.drawer-header { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.drawer-close-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-secondary); background: rgba(255, 255, 255, .06); border: 1px solid var(--border-subtle); }
.drawer-close-btn:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.drawer-nav { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  background: rgba(255, 255, 255, .03); border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.drawer-link:hover, .drawer-link[aria-current="page"] { background: var(--emerald-soft); border-color: rgba(0, 230, 118, .25); color: var(--emerald); }
.drawer-tests { padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--border-subtle); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.drawer-tests .btn { justify-content: flex-start; text-align: left; min-height: 56px; border-radius: var(--radius-md); }

/* Notificação ----------------------------------------------------------- */
.notice {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--bg-surface-solid); border: 1px solid var(--border-medium);
  font-size: 13.5px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200;
}
.notice.visible { opacity: 1; transform: translate(-50%, 0); }
.notice.warning { border-color: rgba(251, 191, 36, .5); }

/* ==========================================================================
   HOME — tela única, vídeos em sequência ao fundo
   ========================================================================== */
.landing { position: relative; flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }

.video-bg-container { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 30% 20%, #0c2a1f 0%, #05080e 70%); }
.video-stage { position: absolute; inset: 0; }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.08) brightness(.78);
  opacity: 0; transition: opacity 1.4s ease;
}
.bg-video.is-active { opacity: .62; }
.video-vignette-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(5, 8, 14, .15) 0%, rgba(5, 8, 14, .72) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, .55) 0%, rgba(5, 8, 14, .25) 40%, rgba(5, 8, 14, .85) 100%);
}

.hero {
  position: relative; z-index: 2; width: 100%; max-width: 860px; margin: 0 auto;
  padding: clamp(10px, 2.5vh, 28px) 20px clamp(12px, 3vh, 32px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: clamp(10px, 2.4vh, 22px);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--emerald);
  background: rgba(0, 230, 118, .1); border: 1px solid rgba(0, 230, 118, .28);
  backdrop-filter: blur(8px);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 var(--emerald-glow); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, .55); } 70% { box-shadow: 0 0 0 9px rgba(0, 230, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } }

.hero-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 5.6vw, 56px); line-height: 1.1; letter-spacing: -1px; color: var(--text-white); text-wrap: balance; }
.gradient-text { background: linear-gradient(120deg, #00e676 10%, #06b6d4 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 560px; font-size: clamp(14px, 1.9vw, 17px); color: var(--text-secondary); text-wrap: balance; }

.hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.quiz-card {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: rgba(13, 20, 32, .72); border: 1px solid var(--border-medium);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.quiz-card:hover { transform: translateY(-3px); background: rgba(20, 32, 52, .85); border-color: rgba(255, 255, 255, .26); }
.quiz-card-featured { border-color: rgba(0, 230, 118, .45); background: linear-gradient(135deg, rgba(0, 230, 118, .16), rgba(13, 20, 32, .78) 70%); box-shadow: 0 10px 40px rgba(0, 230, 118, .14); }
.quiz-card-featured:hover { border-color: var(--emerald); box-shadow: 0 14px 48px rgba(0, 230, 118, .26); }
.quiz-card-icon { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--border-subtle); color: var(--amber); }
.quiz-card-featured .quiz-card-icon { background: var(--emerald); color: #04140b; border-color: transparent; }
.quiz-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quiz-card-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
.quiz-card-featured .quiz-card-tag { color: var(--emerald); }
.quiz-card-body strong { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--text-white); line-height: 1.2; }
.quiz-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.quiz-card-go { flex-shrink: 0; font-size: 20px; color: var(--text-secondary); }
.quiz-card:hover .arrow-glyph { transform: translateX(4px); }

.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 12.5px; color: var(--text-secondary); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--emerald); flex-shrink: 0; }

@media (max-width: 720px) {
  .hero-actions { grid-template-columns: 1fr; gap: 10px; }
  .quiz-card { padding: 14px 16px; gap: 12px; }
  .quiz-card-icon { width: 42px; height: 42px; }
  .quiz-card-body strong { font-size: 17px; }
  .hero-trust { gap: 6px 16px; font-size: 11.5px; }
  .hero-trust li:nth-child(n+3) { display: none; }
}
@media (max-height: 720px) {
  .hero-lead, .hero-trust { display: none; }
}
@media (max-height: 560px) {
  .hero-pill, .quiz-card-desc { display: none; }
}

/* ==========================================================================
   PÁGINAS INTERNAS — 12 eixos, metodologia, sobre (tela única)
   ========================================================================== */
.page {
  flex: 1 1 auto; min-height: 0; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: clamp(14px, 3vh, 32px) 20px clamp(14px, 3vh, 28px);
  display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 24px);
}
main#main:has(> .page) {
  background:
    radial-gradient(ellipse 50% 45% at 85% -10%, rgba(0, 230, 118, .11), transparent 70%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(6, 182, 212, .09), transparent 70%);
}
.page-center { align-items: center; justify-content: center; text-align: center; }
.page-head { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.page-title { font-family: var(--font-heading); font-size: clamp(22px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.6px; color: var(--text-white); text-wrap: balance; }
.page-sub { font-size: clamp(13px, 1.5vw, 15.5px); color: var(--text-secondary); max-width: 640px; }
.page-cta { flex-shrink: 0; display: flex; justify-content: center; margin-top: auto; }
.page-cta .btn { min-height: 46px; }

/* 12 eixos */
.axes-grid { flex: 1 1 auto; min-height: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 1fr); }
@media (max-width: 639px) { .axes-grid .axis-poles { display: none; } .axes-grid .axis-name { font-size: 15px; } }
@media (min-width: 640px) { .axes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .axes-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.axis-tile {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
  min-height: 0; padding: 10px 14px; text-align: left; overflow: hidden;
  border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.axis-tile::before { content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: 0 3px 3px 0; background: var(--axis-color, var(--emerald)); }
.axis-tile:hover { transform: translateY(-2px); background: var(--bg-card-hover); border-color: var(--axis-color, var(--emerald)); }
.axis-num { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--axis-color, var(--emerald)); }
.axis-name { font-family: var(--font-heading); font-size: clamp(14px, 1.6vw, 19px); font-weight: 700; color: var(--text-white); line-height: 1.2; }
.axis-poles { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: clamp(11.5px, 1.1vw, 13.5px); color: var(--text-secondary); line-height: 1.3; }
.axis-poles i { font-style: normal; color: var(--text-muted); }

.axis-dialog {
  margin: auto; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 0; border: 1px solid var(--border-medium); border-radius: var(--radius-lg);
  background: #0b121d; color: var(--text-primary); box-shadow: var(--shadow-lg);
}
.axis-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.axis-dialog-box { position: relative; padding: 26px 24px 24px; border-top: 3px solid var(--axis-color, var(--emerald)); display: flex; flex-direction: column; gap: 12px; }
.axis-dialog h2 { font-family: var(--font-heading); font-size: 24px; color: var(--text-white); padding-right: 40px; }
.axis-dialog-question { color: var(--text-secondary); font-size: 14.5px; }
.axis-dialog-poles { display: grid; gap: 12px; margin-top: 4px; }
.axis-dialog .pole { padding: 14px 16px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--border-subtle); }
.axis-dialog .pole-label { display: block; margin-bottom: 4px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--axis-color, var(--emerald)); }
.axis-dialog .pole p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
@media (min-width: 640px) { .axis-dialog-poles { grid-template-columns: 1fr 1fr; } }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--text-secondary); }
.dialog-close:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* Metodologia e sobre: 3 cartões lado a lado no desktop, abas no celular */
.steps { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.step-tabs { display: flex; gap: 6px; padding: 4px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .05); border: 1px solid var(--border-subtle); flex-shrink: 0; }
.step-tab { flex: 1; min-width: 0; padding: 9px 4px; border-radius: var(--radius-full); font-size: 12px; white-space: nowrap; font-weight: 600; color: var(--text-secondary); transition: background .2s ease, color .2s ease; }
.step-tab.is-active { background: var(--emerald); color: #04140b; }
.step-panels { flex: 1 1 auto; min-height: 0; display: grid; gap: 14px; }
.step-card { display: none; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); overflow: auto; }
.step-card.is-active { display: flex; }
.step-num { font-family: var(--font-heading); font-size: 34px; font-weight: 800; line-height: 1; color: var(--emerald); opacity: .9; }
.step-card h2 { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--text-white); line-height: 1.25; }
.step-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }

@media (min-width: 860px) {
  .step-tabs { display: none; }
  .step-panels { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; align-content: center; align-items: start; }
  .step-card { display: flex; padding: 32px 28px; }
  .step-card h2 { font-size: 21px; }
  .step-card:hover { border-color: rgba(0, 230, 118, .35); }
  .step-card p { font-size: 16px; }
}
@media (max-height: 700px) and (max-width: 859px) {
  .page-sub { display: none; }
  .step-card p { font-size: 13.5px; line-height: 1.55; }
}
@media (max-height: 640px) {
  .axis-poles { display: none; }
}

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


/* ==========================================================================
   QUIZ INTERFACE (100dvh — ZERO SCROLL — IMERSIVO & DINÂMICO)
   ========================================================================== */

.quiz-viewport {
  position: relative;
  z-index: 10;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(10px, 2dvh, 20px) 16px;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

/* Topo do Quiz */
.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.quiz-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.quiz-exit-btn:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.quiz-metric-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.quiz-metric-badge strong {
  color: var(--emerald);
}

.quiz-axis-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-white);
}

.axis-orb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--axis-color, var(--emerald));
  box-shadow: 0 0 6px var(--axis-color, var(--emerald));
}

/* Barra de Progresso Fina com Brilho */
.quiz-progress-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--emerald);
}

/* Card Central da Questão (Flexível para Caber na Tela Sem Rolar) */
.quiz-card-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  margin: clamp(8px, 1.5dvh, 18px) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3dvh, 32px) clamp(16px, 3vw, 28px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.question-watermark-num {
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: clamp(48px, 9dvh, 72px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
}

.question-poles-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: clamp(10px, 1.8dvh, 18px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-poles-indicator span {
  color: var(--text-secondary);
}

.question-statement-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.6dvh, 21px);
  font-weight: 600;
  line-height: 1.42;
  color: var(--text-white);
  margin-bottom: clamp(14px, 2.2dvh, 24px);
}

/* As 5 Opções de Resposta (Compactas, Táteis, Ajustadas para o Viewport) */
.answer-grid-compact {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1dvh, 10px);
}

.answer-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: clamp(42px, 6.2dvh, 52px);
  padding: 0 clamp(12px, 2.5vw, 18px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: clamp(13px, 1.8dvh, 14.5px);
  font-weight: 600;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.answer-option-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-medium);
  transform: translateX(3px);
}

.option-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.tier-0 .option-dot { background: #00e676; box-shadow: 0 0 6px #00e676; }
.tier-1 .option-dot { background: #34d399; }
.tier-2 .option-dot { background: #64748b; }
.tier-3 .option-dot { background: #fb923c; }
.tier-4 .option-dot { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }

.option-text {
  flex-grow: 1;
}

.option-shortcut {
  font-size: 11px;
  color: var(--text-muted);
}

.option-shortcut kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Estado Selecionado */
.answer-option-row.is-selected {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.2);
}

.answer-option-row.tier-4.is-selected {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

.answer-option-row.is-selected .option-dot {
  transform: scale(1.4);
}

/* Barra Inferior do Quiz */
.quiz-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.quiz-btn-prev, .quiz-btn-next {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.quiz-btn-prev {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.quiz-btn-prev:hover:not(:disabled) {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.quiz-btn-prev:disabled, .quiz-btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quiz-btn-next {
  background: var(--emerald);
  color: #041f11;
  flex-grow: 1;
  max-width: 220px;
}

.quiz-btn-next:hover:not(:disabled) {
  background: #00ff84;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.auto-switch {
  width: 28px;
  height: 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.2s ease;
}

.auto-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.auto-switch.on {
  background: var(--emerald);
}

.auto-switch.on::after {
  transform: translateX(12px);
}

/* ==========================================================================
   PÁGINA DE RESULTADOS (/results) — DESIGN ULTRA-PREMIUM LUXURY OBSIDIAN & EMERALD
   ========================================================================== */

.results-dashboard,
.results-page-shell {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

/* 1. Hero Card do Resultado com Gradiente Esmeralda */
.result-hero-card,
.results-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.result-hero-card::before,
.results-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan), var(--amber));
}

.result-hero-top,
.results-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-flag-pill,
.res-flag {
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(0, 230, 118, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.result-date,
.res-date {
  font-size: 12px;
  color: var(--text-muted);
}

.result-pre-title,
.res-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.result-ideology-name,
.res-ideology-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ideo-color, var(--text-white));
  margin: 4px 0 12px;
  letter-spacing: -1px;
  text-shadow: 0 0 35px rgba(0, 230, 118, 0.12);
}

.result-badge-tag,
.res-badge-tag {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.result-ideology-desc,
.res-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 880px;
  margin-bottom: 24px;
}

.result-key-traits {
  margin-bottom: 20px;
}

.traits-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.traits-list,
.res-traits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.trait-pill,
.res-trait-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-thinkers {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.result-thinkers span {
  color: var(--text-muted);
  margin-right: 6px;
}

.result-thinkers strong {
  color: var(--text-white);
  font-weight: 600;
}

.result-top-actions,
.res-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.button-pulse {
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
  animation: btn-glow 2.5s infinite ease-in-out;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 230, 118, 0.3); }
  50% { box-shadow: 0 0 28px rgba(0, 230, 118, 0.6); }
}

/* ==========================================================================
   GRID PRINCIPAL DE CONTEÚDO (ESQUERDA: ANÁLISE / DIREITA: LIVROS)
   ========================================================================== */

.results-main-grid,
.results-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.results-col-main,
.results-left-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-card,
.res-section-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.section-card-header,
.res-section-header {
  margin-bottom: 22px;
}

.sub-eyebrow,
.res-sec-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-card-header h2,
.res-section-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 6px;
}

.section-card-header p,
.res-section-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   POLÍTICO MAIS COMPATÍVEL & RUNNERS-UP
   ========================================================================== */

.top-politician-banner,
.winner-politician-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 22px;
}

.politician-avatar-wrap,
.winner-photo-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  min-width: 92px;
  min-height: 92px;
  max-width: 92px;
  max-height: 92px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}

.pol-photo,
.winner-img {
  width: 92px;
  height: 92px;
  min-width: 92px;
  min-height: 92px;
  max-width: 92px;
  max-height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 230, 118, 0.45);
  display: block;
}

.pol-fallback-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(0, 230, 118, 0.45);
}

.pol-party-badge,
.winner-badge-pill {
  position: absolute;
  bottom: -2px;
  right: -2px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-surface-solid);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.politician-info,
.winner-details {
  flex-grow: 1;
}

.pol-match-header {
  margin-bottom: 4px;
}

.match-percentage-badge,
.winner-affinity-pill {
  display: inline-block;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(0, 230, 118, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.politician-info h3,
.winner-details h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin: 4px 0 2px;
}

.pol-role,
.winner-role {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pol-bio,
.winner-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Outros Políticos Afins */
.runners-up-row {
  margin-bottom: 20px;
}

.runners-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.runners-grid,
.other-politicians-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.runner-card,
.other-pol-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all 0.2s ease;
}

.runner-card:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
}

.runner-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.runner-photo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.runner-fallback-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.runner-details strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

.runner-details small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.runner-match {
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald);
}

/* Político Oposto */
.opposite-card,
.opposite-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.opposite-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.opposite-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.opposite-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-white);
  margin-bottom: 2px;
}

.opposite-text span:last-child {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   12 EIXOS POLÍTICOS DETALHADOS (BARRAS DE NOTAS)
   ========================================================================== */

.score-bars-container,
.axes-score-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.axis-score-row,
.axis-item-bar {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.axis-score-row:last-child,
.axis-item-bar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.axis-row-top,
.axis-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.axis-row-name,
.axis-name-bold {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.axis-values {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.val-dominant {
  color: var(--text-white);
  font-weight: 700;
}

.val-sep {
  color: var(--text-muted);
}

.axis-progress-track,
.axis-track-double {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 8px;
}

.axis-bar-left,
.axis-track-left {
  height: 100%;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  transition: width 0.6s ease;
}

.axis-bar-right,
.axis-track-right {
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transition: width 0.6s ease;
}

.axis-row-desc,
.axis-item-explain {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   BÚSSOLA POLÍTICA 2D INTERATIVA
   ========================================================================== */

.compass-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.compass-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-md);
  background: #070c14;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  display: block;
}

.user-pulse-ring {
  animation: compass-pulse 2s infinite ease-out;
  transform-origin: center;
}

@keyframes compass-pulse {
  0% { r: 12; opacity: 1; }
  100% { r: 24; opacity: 0; }
}

.compass-legend {
  width: 100%;
  max-width: 500px;
}

.legend-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.legend-pill i {
  font-style: normal;
  font-weight: 800;
  font-size: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pol-bg, #00e676);
  color: #fff;
}

/* ==========================================================================
   PARTIDOS BRASILEIROS
   ========================================================================== */

.parties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.party-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--party-color, var(--emerald));
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.2s ease;
}

.party-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.party-code {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.party-match {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald);
}

.party-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-white);
  margin-bottom: 4px;
}

.party-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   CARD DE COMPARTILHAMENTO VIRAL CTA
   ========================================================================== */

.share-cta-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: rgba(0, 230, 118, 0.3);
}

.share-cta-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 8px;
}

.share-cta-content p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ==========================================================================
   COLUNA LATERAL: RECOMENDAÇÕES DE LIVROS AMAZON AFILIADOS
   ========================================================================== */

.results-col-sidebar {
  width: 100%;
}

.books-recommendation-box,
.books-sidebar-card {
  position: sticky;
  top: 84px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.books-box-header,
.books-sidebar-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.books-icon,
.books-sidebar-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.books-box-header h3,
.books-sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 4px;
}

.books-box-header p,
.books-sidebar-header p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.books-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.book-card-item,
.book-card-vertical {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.book-card-item:hover,
.book-card-vertical:hover {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.book-cover-wrap,
.book-thumb-wrap {
  position: relative;
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f1623;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.book-cover-img,
.book-thumb-img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.book-fallback-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111a28 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.fallback-icon {
  font-size: 20px;
  margin-bottom: 3px;
}

.fallback-title {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-badge-pill,
.book-tag-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--amber);
  color: #05080e;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
}

.book-details,
.book-info-col {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  justify-content: space-between;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author,
.book-author-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.book-why,
.book-desc-short {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-price-row,
.book-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.book-price,
.book-price-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-white);
}

.button-amazon,
.btn-amazon-buy {
  background: #ff9900;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.button-amazon:hover,
.btn-amazon-buy:hover {
  background: #ffa826;
  box-shadow: 0 2px 10px rgba(255, 153, 0, 0.45);
  transform: translateY(-1px);
}

.books-box-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.books-box-footer small {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* ==========================================================================
   MODAL DE CARD DAS REDES SOCIAIS (INSTAGRAM STORY 9:16 & FEED 1:1)
   ========================================================================== */

dialog.social-card-modal,
.social-card-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 520px;
  width: 92%;
  background: #0c1320;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  color: #fff;
  z-index: 1000;
  overflow: hidden;
}

dialog.social-card-modal::backdrop,
.modal-backdrop-custom {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.social-card-modal-inner,
.social-modal-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-top,
.modal-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-top h3,
.modal-header-line h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.card-format-toggle,
.format-switcher-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.format-btn,
.format-tab-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.format-btn.active,
.format-tab-btn.is-active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald);
}

.card-canvas-preview,
.canvas-render-wrapper {
  background: #000;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

.preview-loading {
  font-size: 13px;
  color: var(--text-muted);
}

.rendered-social-card,
.rendered-social-img {
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE BREAKPOINTS)
   ========================================================================== */

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

  .books-recommendation-box,
  .books-sidebar-card {
    position: static;
  }

  .parties-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 650px) {
  .hero-action-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .action-card {
    padding: 16px;
  }

  .card-icon {
    font-size: 26px;
    margin-top: 4px;
    margin-bottom: 6px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-details {
    margin-bottom: 12px;
    font-size: 11.5px;
  }

  .hero-sub {
    font-size: 13.5px;
    margin-bottom: 20px;
  }

  .badge-pill {
    margin-bottom: 14px;
  }

  .top-politician-banner,
  .winner-politician-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .runners-grid,
  .other-politicians-row {
    grid-template-columns: 1fr;
  }

  .result-top-actions {
    flex-direction: column;
  }

  .result-top-actions .button {
    width: 100%;
    justify-content: center;
  }

}

/* Título do resultado nunca estoura a largura */
.result-ideology-name { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) { .result-ideology-name { font-size: clamp(24px, 8vw, 32px); } }

/* Avatar de reserva (iniciais) só aparece se a foto não carregar */
.pol-fallback-avatar, .runner-fallback-avatar { display: none; }
.img-hidden + .pol-fallback-avatar, .img-hidden + .runner-fallback-avatar { display: flex; }

/* ==========================================================================
   RESULTADO: card pronto no topo + barra de livros fixa
   ========================================================================== */
.result-top { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.result-top .result-hero-card { margin-bottom: 0; }

.share-panel {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg);
}
.share-panel .card-format-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-panel .format-btn { padding: 9px 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; color: var(--text-secondary); background: rgba(255, 255, 255, .05); border: 1px solid var(--border-subtle); }
.share-panel .format-btn.active { color: #04140b; background: var(--emerald); border-color: transparent; }
.share-panel .card-canvas-preview {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 240px; padding: 0; border: 0; background: transparent; overflow: hidden; border-radius: 18px;
}
.share-panel .rendered-social-card { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 270px); margin: 0 auto; border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.share-panel .preview-loading { color: var(--text-secondary); font-size: 14px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-actions .button { width: 100%; min-height: 48px; padding: 0 12px; font-size: 14px; }
.share-copy { align-self: center; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.share-copy:hover { color: var(--text-white); }

/* Barra lateral de livros: acompanha a rolagem */
.results-main-grid { align-items: stretch; }
.results-col-sidebar { align-self: stretch; }
.results-col-sidebar .books-recommendation-box {
  position: sticky; top: 24px;
  max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}

@media (max-width: 960px) {
  .result-top { grid-template-columns: 1fr; }
  .share-panel { position: static; max-width: 440px; width: 100%; margin: 0 auto; }
  .share-panel .rendered-social-card { max-height: none; width: 100%; }
}
@media (max-width: 900px) {
  .results-col-sidebar .books-recommendation-box { position: static; max-height: none; overflow: visible; }
}

/* Livros: capa gerada (sem imagens da Amazon) e sem preço */
.book-card-item .book-fallback-cover { background: linear-gradient(160deg, #1b2c44 0%, #0e1826 100%); border-color: rgba(251, 191, 36, .3); }
.book-card-item .fallback-icon { font-size: 22px; }
.book-card-item .fallback-title { font-size: 9.5px; -webkit-line-clamp: 4; }
.book-price-row { justify-content: flex-end; }
.book-card-item .fallback-title { overflow-wrap: anywhere; hyphens: auto; padding: 0 2px; font-size: 9px; }

/* ==========================================================================
   Capa de livro gerada: moldura dourada, ornamento, título em serifa e lombada 3D
   ========================================================================== */
.book-card-item { align-items: center; gap: 18px; }
.book-card-item .book-cover-wrap {
  width: 104px; min-width: 104px; max-width: 104px; height: auto; min-height: 0; max-height: none;
  background: none; box-shadow: none; overflow: visible; border-radius: 0; perspective: 600px; padding: 4px 0 4px 6px;
}
.gen-book {
  position: relative; width: 96px; height: 134px;
  display: flex; border-radius: 2px 5px 5px 2px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 45%),
    var(--cv-bg, #15161d);
  transform: rotateY(-16deg) rotateX(2deg); transform-origin: left center; transform-style: preserve-3d;
  box-shadow: -5px 6px 14px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .3s ease;
}
.book-card-item:hover .gen-book { transform: rotateY(-6deg) rotateX(0deg) translateY(-2px); }
.gen-book::before { /* lombada */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .09) 55%, rgba(0, 0, 0, .25));
}
.gen-book::after { /* moldura fina */
  content: ''; position: absolute; inset: 6px 6px 6px 12px; border: 1px solid var(--cv-ac); opacity: .75; border-radius: 1px; pointer-events: none;
}
.gb-body {
  position: relative; z-index: 1; width: 100%; padding: 11px 9px 10px 17px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
}
.gb-author { font: 600 5.6px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: .6px; color: var(--cv-ac); opacity: .9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-orn { width: 25px; height: 25px; color: var(--cv-ac); flex-shrink: 0; }
.gb-title { font: 700 var(--cv-ts, 10.5px)/1.12 Georgia, 'Times New Roman', serif; color: var(--cv-ac); overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gb-tag { font: 700 4.8px/1 var(--font-body); letter-spacing: .4px; text-transform: uppercase; color: #14110a; background: var(--cv-ac); padding: 2.6px 5px; border-radius: 1px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* esconde o que sobrou do modelo antigo */
.book-card-item .book-fallback-cover, .book-card-item .book-badge-pill { display: none; }
@media (max-width: 480px) {
  .book-card-item .book-cover-wrap { width: 92px; min-width: 92px; max-width: 92px; }
  .gen-book { width: 86px; height: 120px; }
}

/* ==========================================================================
   LIVROS — biblioteca com foto do autor, filtros por área e busca
   ========================================================================== */
main#main:has(> .library) {
  background:
    radial-gradient(ellipse 55% 35% at 85% -5%, rgba(0, 230, 118, .10), transparent 70%),
    radial-gradient(ellipse 45% 30% at 0% 40%, rgba(6, 182, 212, .07), transparent 70%);
}
.library { width: 100%; max-width: 1200px; margin: 0 auto; padding: 36px 20px 80px; }
.library [hidden] { display: none !important; }

.breadcrumb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--emerald); }
.library-hero .eyebrow { display: block; margin-bottom: 10px; }
.library-title { font-family: var(--font-heading); font-size: clamp(32px, 5.4vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -1.2px; color: var(--text-white); text-wrap: balance; max-width: 820px; }
.library-lead { margin-top: 16px; max-width: 700px; font-size: clamp(14px, 1.6vw, 16.5px); color: var(--text-secondary); line-height: 1.65; }
.library-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; }
.library-stats dt { font-family: var(--font-heading); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--text-white); line-height: 1; }
.library-stats dd { margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }

.library-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 36px 0 12px; padding-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }
.library-search {
  display: flex; align-items: center; gap: 10px; flex: 0 1 340px; min-width: 240px; height: 46px; padding: 0 18px;
  border-radius: var(--radius-full); background: rgba(255, 255, 255, .05); border: 1px solid var(--border-medium); color: var(--text-secondary);
  transition: border-color .2s ease, background .2s ease;
}
.library-search:focus-within { border-color: var(--emerald); background: rgba(0, 230, 118, .06); }
.library-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text-white); font-size: 14px; }
.library-search input::placeholder { color: var(--text-muted); }
.library-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; color: var(--text-secondary); background: rgba(255, 255, 255, .04); border: 1px solid var(--border-subtle);
  transition: all .18s ease;
}
.chip small { font-size: 11px; color: var(--text-muted); }
.chip:hover { color: var(--text-white); border-color: var(--border-medium); background: rgba(255, 255, 255, .08); }
.chip.is-active { color: #04140b; background: var(--emerald); border-color: transparent; font-weight: 600; }
.chip.is-active small { color: rgba(4, 20, 11, .65); }

.library-section { margin-top: 44px; }
.library-section-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border-medium); margin-bottom: 20px; }
.area-bar { width: 6px; align-self: stretch; min-height: 42px; border-radius: 3px; background: var(--area-color, var(--emerald)); box-shadow: 0 0 18px color-mix(in srgb, var(--area-color, #00e676) 55%, transparent); flex-shrink: 0; }
.library-section-head h2 { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--text-white); line-height: 1.15; }
.library-section-head p { margin-top: 3px; font-size: 13.5px; color: var(--text-secondary); max-width: 560px; }
.area-count { margin-left: auto; flex-shrink: 0; padding: 5px 12px; border-radius: var(--radius-full); font-size: 12px; color: var(--text-secondary); background: rgba(255, 255, 255, .06); border: 1px solid var(--border-subtle); }
.area-count [data-count] { font-weight: 700; color: var(--text-white); }

.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.library-card {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.library-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--area-color, #00e676) 55%, transparent); background: var(--bg-card-hover); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.library-card-head { display: flex; align-items: center; gap: 13px; min-height: 84px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.author-avatar {
  position: relative; width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: linear-gradient(135deg, #1b2c44, #0e1826);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 0 0 4px color-mix(in srgb, var(--area-color, #00e676) 35%, transparent);
}
.author-avatar b { font: 700 16px var(--font-heading); color: var(--area-color, var(--emerald)); }
.author-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.author-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.author-label { font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); }
.author-name { font-size: 15px; font-weight: 600; color: var(--text-white); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-role { font-size: 12.5px; color: var(--text-secondary); line-height: 1.3; }
.year-pill { align-self: flex-start; flex-shrink: 0; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11.5px; color: var(--text-secondary); background: rgba(255, 255, 255, .06); border: 1px solid var(--border-subtle); }
.library-card-body { display: flex; gap: 11px; flex: 1; }
.book-glyph { flex-shrink: 0; margin-top: 3px; color: var(--area-color, var(--emerald)); }
.library-book-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--text-white); }
.library-book-why { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.library-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 600; color: var(--text-white); border: 1px solid var(--border-medium); background: transparent;
  transition: all .18s ease;
}
.library-buy:hover { color: #04140b; background: var(--emerald); border-color: transparent; box-shadow: 0 8px 24px rgba(0, 230, 118, .28); }
.library-empty { margin-top: 48px; text-align: center; color: var(--text-secondary); }
.library-disclosure { margin-top: 56px; font-size: 12px; color: var(--text-muted); text-align: center; }
@media (max-width: 560px) {
  .library { padding-top: 24px; }
  .library-grid { grid-template-columns: 1fr; }
  .library-section-head { display: grid; grid-template-columns: 6px 1fr; column-gap: 14px; row-gap: 10px; }
  .area-count { grid-column: 2; justify-self: start; margin-left: 0; }
}
