/* ============================================================================
   Ouvia — design tokens + components
   Dark é o tema padrão. Tema/idioma são estado global de UI (data-theme/lang
   em <html>, persistidos em cookie + localStorage, SSR sem flash).
   ============================================================================ */

:root {
  --bg:            #0A1220;
  --header:        rgba(10, 18, 32, 0.78);
  --card:          #101B2E;
  --card-mute:     #0D1726;
  --cta-bg:        #0D1726;
  --bubble:        #0C1830;
  --chip:          rgba(255, 255, 255, 0.05);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #E9EFF8;
  --text-dim:      #93A4BD;
  --text-faint:    #5F7088;
  --accent:        #3B82F6;
  --accent-text:   #3B82F6;
  --accent-soft:   rgba(59, 130, 246, 0.14);
  --accent-line:   rgba(59, 130, 246, 0.30);
  --grid:          rgba(255, 255, 255, 0.035);
  --success:       #16A34A;
  --rec:           #EF4444;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-brand:   'Poppins', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

[data-theme="light"] {
  --bg:            #F5F7FB;
  --header:        rgba(245, 247, 251, 0.85);
  --card:          #FFFFFF;
  --card-mute:     #FBFCFE;
  --cta-bg:        #FFFFFF;
  --bubble:        #F2F6FD;
  --chip:          rgba(11, 31, 58, 0.045);
  --border:        rgba(11, 31, 58, 0.10);
  --border-strong: rgba(11, 31, 58, 0.18);
  --text:          #0B1F3A;
  --text-dim:      #566380;
  --text-faint:    #8694AC;
  --accent:        #2563EB;
  --accent-text:   #2563EB;
  --accent-soft:   rgba(37, 99, 235, 0.08);
  --accent-line:   rgba(37, 99, 235, 0.22);
  --grid:          rgba(11, 31, 58, 0.05);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; }
::selection { background: rgba(59, 130, 246, 0.28); }
textarea, input, select, button { font-family: inherit; }
textarea::placeholder, input::placeholder { color: var(--text-faint); }

/* ── Keyframes ────────────────────────────────────────────────────────── */
@keyframes voxbar   { 0%,100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
@keyframes voxpulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes voxrise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes voxspin  { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ── Layout helpers ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 28px); }
.container--builder { max-width: 860px; }

/* ── Brand mark ───────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand__mark { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.brand__word { font-family: var(--font-brand); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.brand__word span { color: var(--text-dim); font-weight: 500; }

/* ── Header ───────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: var(--header); border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 13px clamp(18px, 5vw, 28px);
}
.header__nav { display: flex; gap: clamp(14px, 2vw, 26px); margin-left: 6px; flex: 1 1 auto; flex-wrap: wrap; }
.header__nav a { font-size: 14px; color: var(--text-dim); text-decoration: none; font-weight: 500; padding: 6px 0; transition: color .18s; }
.header__nav a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__divider { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.header__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); flex: 1; }
.header__step { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.04em; }

/* Language pill toggle */
.langtoggle { display: flex; align-items: center; background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.langtoggle button {
  border: none; cursor: pointer; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  background: transparent; color: var(--text-dim); transition: all .15s;
}
.langtoggle button.is-active { background: var(--accent); color: #fff; }

/* Theme toggle */
.themetoggle {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--chip); border: 1px solid var(--border); cursor: pointer; padding: 0;
}
.themetoggle__dot { width: 15px; height: 15px; border-radius: 50%; display: block; }
[data-theme="dark"] .themetoggle__dot { border: 2px solid var(--text-dim); box-shadow: inset -4px -2px 0 0 var(--text-dim); }
[data-theme="light"] .themetoggle__dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { font-family: var(--font-display); font-weight: 600; cursor: pointer; text-decoration: none; border: none; transition: transform .15s, filter .15s, background .15s; }
.btn--primary {
  font-size: 15px; color: #fff; background: var(--accent); padding: 14px 24px; border-radius: 11px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 26px -10px var(--accent);
}
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--secondary { font-size: 15px; color: var(--text); background: transparent; padding: 14px 22px; border-radius: 10px; border: 1px solid var(--border-strong); }
.btn--secondary:hover { background: var(--chip); }
.btn--nav {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: #fff; background: var(--accent);
  padding: 9px 16px; border-radius: 9px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 6px 18px -8px var(--accent);
}
.btn--nav:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghostnav { font-size: 13.5px; font-weight: 600; color: var(--text-dim); padding: 9px 8px; text-decoration: none; }
.btn--ghostnav:hover { color: var(--text); }

/* ── Eyebrow (section index) ─────────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.eyebrow__num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-text); }
.eyebrow__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.eyebrow__line { flex: 1; max-width: 56px; height: 1px; background: var(--border); }

.section { padding: 72px 0; border-top: 1px solid var(--border); }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(25px, 4.2vw, 34px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--text); text-wrap: balance; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(36px, 5vw, 56px); align-items: center;
  padding: clamp(48px, 8vw, 84px) 0 clamp(48px, 8vw, 80px);
}
.hero__grid {
  position: absolute; inset: -40px -28px 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(110% 80% at 78% 38%, #000 18%, transparent 68%);
  mask-image: radial-gradient(110% 80% at 78% 38%, #000 18%, transparent 68%);
}
.hero__col { position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__badge .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.hero__badge .line { width: 36px; height: 1px; background: var(--border); }
.hero__h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 7vw, 58px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; color: var(--text); text-wrap: balance; }
.hero__sub { font-size: 18.5px; line-height: 1.55; color: var(--text-dim); max-width: 520px; margin: 0 0 34px; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 30px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }

/* interview mock */
.mock { position: relative; z-index: 1; }
.mock__card { position: relative; z-index: 2; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: 0 24px 50px -34px rgba(2,8,23,0.45); }
.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock__tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.mock__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.mock__live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: voxpulse 1.4s ease-in-out infinite; }
.mock__bubble { background: var(--bubble); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.mock__qlabel { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-text); margin-bottom: 8px; letter-spacing: 0.1em; }
.mock__q { font-size: 15.5px; line-height: 1.5; color: var(--text); }
.mock__wave { display: flex; align-items: center; gap: 14px; padding: 6px 4px 12px; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 30px; flex: 1; }
.wave i { display: block; flex: 1; max-width: 4px; border-radius: 3px; background: var(--accent); height: 100%; transform-origin: bottom; animation: voxbar 1s ease-in-out infinite; }
.mock__time { font-size: 12px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mock__chip { position: absolute; z-index: 3; right: -14px; bottom: -18px; background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 12px 15px; box-shadow: 0 16px 32px -22px rgba(2,8,23,0.5); }
.mock__chip-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.mock__chip-val { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--success); }
.mock__chip-val .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ── Two-column block (problem) ───────────────────────────────────────── */
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.para { font-size: 17px; line-height: 1.6; color: var(--text-dim); margin: 0; text-wrap: pretty; }

.section__head { max-width: 680px; margin-bottom: 46px; }
.section__intro { font-size: 17px; line-height: 1.55; color: var(--text-dim); margin: 14px 0 0; }

/* ── Card grids ───────────────────────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.scard { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.scard--accent { border-color: var(--accent-line); }
.scard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.scard__idx { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-text); letter-spacing: 0.03em; }
.scard__idx span { color: var(--text-faint); font-weight: 400; }
.scard__badge { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 5px; letter-spacing: 0.06em; text-transform: uppercase; }
.scard__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text); }
.scard__desc { font-size: 14.5px; line-height: 1.55; color: var(--text-dim); margin: 0; text-wrap: pretty; }

.fcard { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 26px 24px; transition: transform .18s, border-color .18s; }
.fcard:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.fcard__idx { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-text); margin-bottom: 16px; letter-spacing: 0.04em; }
.fcard__idx span { color: var(--text-faint); font-weight: 400; }
.fcard__title { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text); }
.fcard__desc { font-size: 14.5px; line-height: 1.55; color: var(--text-dim); margin: 0; text-wrap: pretty; }

/* ── Comparison table (always 2 cols) ────────────────────────────────── */
.compare { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.compare__h { padding: 18px 24px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); }
.compare__h--without { background: var(--card-mute); color: var(--text-dim); border-right: 1px solid var(--border); }
.compare__h--without span { color: var(--text-faint); }
.compare__h--with { background: var(--accent-soft); color: var(--accent-text); border-bottom-color: var(--accent-line); }
.compare__a { padding: 17px 24px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; color: var(--text-dim); }
.compare__b { padding: 17px 24px; border-bottom: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; color: var(--text); font-weight: 500; }

/* ── Try it (lead form) ──────────────────────────────────────────────── */
.cta { background: var(--cta-bg); border: 1px solid var(--border); border-radius: 16px; padding: clamp(26px, 5vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; position: relative; overflow: hidden; }
.cta__sub { font-size: 16.5px; line-height: 1.55; color: var(--text-dim); margin: 16px 0 22px; }
.cta__support { font-size: 14px; line-height: 1.55; color: var(--text-faint); margin: 0; padding: 14px 16px; background: var(--chip); border-radius: 12px; border: 1px solid var(--border); }
.cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 32px); line-height: 1.14; letter-spacing: -0.02em; margin: 0; color: var(--text); text-wrap: balance; }
.formcard { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-size: 14.5px; outline: none; }
.input:focus { border-color: var(--accent); }
select.input { appearance: none; }
.form__error { color: var(--rec); font-size: 13px; margin: 4px 0 0; min-height: 16px; }
.success { text-align: center; padding: 30px 10px; animation: voxrise .4s ease both; }
.success__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--accent); font-size: 24px; }
.success__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 10px; color: var(--text); }
.success__sub { font-size: 15px; line-height: 1.55; color: var(--text-dim); margin: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer__inner { padding: 48px clamp(18px, 5vw, 28px) 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 40px); }
.footer__tagline { font-size: 14.5px; line-height: 1.55; color: var(--text-dim); margin: 16px 0 0; max-width: 320px; text-wrap: pretty; }
.footer__coltitle { font-size: 12px; font-weight: 600; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer__links a { font-size: 14px; color: var(--text-dim); text-decoration: none; transition: color .15s; }
.footer__links a:hover { color: var(--text); }
.footer__bar { padding: 18px clamp(18px, 5vw, 28px) 36px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__bar span { font-size: 13px; color: var(--text-faint); }

/* ============================================================================
   BUILDER
   ============================================================================ */
.progress { height: 3px; background: var(--chip); }
.progress__bar { height: 100%; background: var(--accent); transition: width .4s cubic-bezier(.2,.7,.2,1); }

.builder-main { max-width: 860px; margin: 0 auto; padding: clamp(26px, 5vw, 46px) clamp(18px, 5vw, 28px) 90px; }

.stepper { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.stepper__btn { display: flex; align-items: center; gap: 9px; padding: 8px 13px 8px 9px; border-radius: 11px; cursor: pointer; transition: all .15s; border: 1px solid transparent; background: transparent; color: var(--text-dim); }
.stepper__btn.is-current { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.stepper__dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; flex-shrink: 0; background: var(--chip); color: var(--text-faint); }
.stepper__btn.is-current .stepper__dot { background: var(--accent); color: #fff; }
.stepper__btn.is-done .stepper__dot { background: var(--accent-soft); color: var(--accent-text); }
.stepper__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.stepper__kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; opacity: .7; }
.stepper__label { font-size: 13px; font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.step { display: none; }
.step.is-active { display: block; animation: voxrise .35s ease both; }

.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.step__h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4.2vw, 32px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; color: var(--text); }
.step__sub { font-size: 16px; line-height: 1.55; color: var(--text-dim); margin: 0; max-width: 560px; }

.mono-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* Selectable cards (type, voice, channel) */
.selgrid { display: grid; gap: 14px; }
.selgrid--type { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-top: 28px; }
.selgrid--voice { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.selcard { border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; background: var(--card); transition: all .15s; text-align: left; width: 100%; color: var(--text); }
.selcard.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.selcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.selcard__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.selcard__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.selcard__desc { font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.checkdot { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; background: transparent; color: transparent; border: 1px solid var(--border-strong); flex-shrink: 0; }
.selcard.is-selected .checkdot { background: var(--accent); color: #fff; border: none; }

.voicecard { display: flex; align-items: center; gap: 12px; }
.voicecard__glyph { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.voicecard__title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.voicecard__desc { font-size: 12.5px; color: var(--text-dim); }

/* Tone chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s; border: 1px solid var(--border-strong); background: var(--card); color: var(--text-dim); }
.chip.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Form inputs (builder) */
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 26px; }
.blabel { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.binput { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--card-mute); color: var(--text); font-size: 14.5px; outline: none; }
.binput:focus { border-color: var(--accent); }
.btextarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.ghostmini { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); background: transparent; border: 1px solid var(--accent-line); border-radius: 7px; padding: 4px 9px; cursor: pointer; }
.hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); margin-top: 8px; letter-spacing: 0.04em; }
.hint.is-error { color: var(--rec); }
.binput.is-invalid { border-color: var(--rec); }

/* Sample player */
.sample { margin-top: 26px; border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--card-mute); display: flex; align-items: center; gap: 16px; }
.sample__play { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.sample__title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.sample__wave { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; height: 20px; }
.sample__wave i { display: block; flex: 1; max-width: 3px; border-radius: 2px; background: var(--accent); height: 100%; transform-origin: bottom; }
.sample.is-playing .sample__wave i { animation: voxbar 0.9s ease-in-out infinite; }
/* Escalonamento cíclico (mod 6) para dar movimento de onda, não pulso único. */
.sample.is-playing .sample__wave i:nth-child(6n+1) { animation-delay: 0s; }
.sample.is-playing .sample__wave i:nth-child(6n+2) { animation-delay: 0.12s; }
.sample.is-playing .sample__wave i:nth-child(6n+3) { animation-delay: 0.24s; }
.sample.is-playing .sample__wave i:nth-child(6n+4) { animation-delay: 0.36s; }
.sample.is-playing .sample__wave i:nth-child(6n+5) { animation-delay: 0.24s; }
.sample.is-playing .sample__wave i:nth-child(6n)   { animation-delay: 0.12s; }
.sample__meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

/* AI review */
.processing { text-align: center; padding: 56px 20px; }
.spinner { display: inline-block; width: 34px; height: 34px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: voxspin .8s linear infinite; }
.processing__txt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 18px; }
.aireview { animation: voxrise .35s ease both; }
.ai-intro { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; margin-top: 22px; }
.ai-intro__mark { color: var(--accent); font-size: 15px; margin-top: 1px; }
.ai-intro__txt { font-size: 14px; line-height: 1.5; color: var(--text); }
.qstack { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.edge { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px; }
.edge__label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px; }
.edge__msg { font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.qcard { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--card-mute); }
.qcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.qcard__n { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-text); }
.qcard__type { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 5px; padding: 3px 8px; }
.qcard__text { font-size: 15px; line-height: 1.45; color: var(--text); font-weight: 500; margin-bottom: 9px; }
.qcard__rule { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.qcard__rule .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.ai-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 18px; }
.ai-panel { border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.ai-panel__title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 12px; }
.ai-rule { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--text-dim); }
.ai-rule .ck { color: var(--accent); margin-top: 1px; }
.ai-panel--lgpd { border-color: var(--accent-line); background: var(--accent-soft); }
.ai-panel--lgpd .ai-panel__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ai-panel__body { font-size: 13px; line-height: 1.55; color: var(--text-dim); }

/* ── Passo 4 editável (revisão da IA) ── */
.editcard { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px; }
.editcard__label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 9px; }
.msgarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 9px; background: var(--card); color: var(--text-dim); font-family: inherit; font-size: 14px; line-height: 1.55; padding: 10px 12px; resize: vertical; min-height: 58px; }
.msgarea:focus, .qtext:focus, .qrule:focus { outline: none; border-color: var(--accent); }

.qcard__spacer { flex: 1; }
.qtype { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 4px 8px; appearance: none; cursor: pointer; }
.qbtn { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text-dim); font-size: 13px; line-height: 1; cursor: pointer; flex-shrink: 0; padding: 0; }
.qbtn:disabled { opacity: 0.3; color: var(--text-faint); cursor: default; }
.qbtn--del { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.qtext { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 9px; background: var(--card); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.45; padding: 10px 12px; resize: vertical; min-height: 54px; }
.qrule-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; }
.qrule-lbl { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 9px; flex-shrink: 0; }
.qrule { flex: 1; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text-dim); font-family: inherit; font-size: 12.5px; line-height: 1.45; padding: 7px 10px; resize: vertical; min-height: 38px; }
.addq { width: 100%; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--accent-text); background: var(--accent-soft); border: 1px dashed var(--accent-line); border-radius: 12px; padding: 14px 16px; text-align: center; cursor: pointer; }
.needq { font-family: var(--font-mono); font-size: 11px; color: var(--rec); letter-spacing: 0.03em; }

/* "Fale com a nossa IA" / Refazer pesquisa (dois pontos de entrada, um só texto) */
.aichat { border: 1px solid var(--accent-line); border-radius: 12px; padding: 16px; background: var(--accent-soft); }
.aichat__head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; }
.aichat__mark { color: var(--accent); font-size: 14px; margin-top: 1px; }
.aichat__label { font-size: 14px; line-height: 1.5; color: var(--text); }
.aichat__input { width: 100%; box-sizing: border-box; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--card); color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.5; padding: 10px 12px; resize: vertical; min-height: 54px; margin-bottom: 11px; }
.aichat__input:focus { outline: none; border-color: var(--accent); }
.aichat__redo { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: #fff; background: var(--accent); border: none; border-radius: 10px; padding: 10px 18px; cursor: pointer; }

/* Passo 5 — Aprovação da pesquisa (somente leitura) */
.approval-vt { display: flex; gap: 12px; flex-wrap: wrap; }
.approval-card { flex: 1; min-width: 200px; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.approval-card__glyph { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.approval-card__k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.approval-card__v { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }

/* Publish / Published */
.linkrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.linkfield { flex: 1; min-width: 200px; display: flex; align-items: center; padding: 0 16px; height: 46px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--card-mute); font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.copybtn { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; background: var(--accent); border: none; border-radius: 11px; padding: 0 20px; height: 46px; cursor: pointer; }
.copybtn.is-copied { color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); }

.published { text-align: center; padding: 8px 0 4px; }
.published__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 4vw, 28px); letter-spacing: -0.02em; margin: 0 0 24px; color: var(--text); }
.published__link { max-width: 520px; margin: 0 auto; }

/* Footer nav (builder) */
.panel__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.btn--back { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-dim); background: transparent; border: 1px solid var(--border-strong); border-radius: 11px; padding: 11px 20px; cursor: pointer; }
.btn--back[hidden] { visibility: hidden; }
.btn--builder-primary { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; background: var(--accent); border: none; border-radius: 11px; padding: 12px 26px; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 22px -10px var(--accent); }

/* ============================================================================
   AUTH (IAM) — login / register / activate / reset
   ============================================================================ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px clamp(18px, 5vw, 28px); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(26px, 5vw, 38px); box-shadow: 0 24px 50px -34px rgba(2,8,23,0.45); }
.auth-card__brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--text); text-align: center; }
.auth-card__sub { font-size: 14.5px; color: var(--text-dim); text-align: center; margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field { margin: 0; }
.auth-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.btn--full { width: 100%; padding: 14px; border-radius: 11px; font-size: 15px; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 24px -12px var(--accent); }
.oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--card-mute); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.oauth__btn:hover { background: var(--chip); border-color: var(--accent-line); }
.oauth__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-dim); margin: 22px 0 0; }
.auth-alt a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.auth-msg { padding: 12px 14px; border-radius: 11px; font-size: 13.5px; line-height: 1.45; margin-bottom: 18px; }
.auth-msg--error { background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.30); color: #ef4444; }
.auth-msg--ok { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); }
.auth-meta { text-align: center; margin-top: 24px; }
.auth-meta a { font-size: 13px; color: var(--text-faint); text-decoration: none; }
.auth-meta a:hover { color: var(--text-dim); }

/* ============================================================================
   IAM ADMIN PANEL
   ============================================================================ */
.admin { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin__side { border-right: 1px solid var(--border); background: var(--card-mute); padding: 20px 16px; display: flex; flex-direction: column; gap: 24px; }
.admin__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 4px; }
.admin__nav { display: flex; flex-direction: column; gap: 3px; }
.admin__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.admin__nav a:hover { background: var(--chip); color: var(--text); }
.admin__nav a.is-active { background: var(--accent-soft); color: var(--accent-text); }
.admin__nav .ico { width: 18px; text-align: center; opacity: .85; }
.admin__navlabel { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding: 0 12px; margin-top: 8px; }
.admin__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-dim); }
.admin__foot a { color: var(--text-faint); text-decoration: none; }
.admin__foot a:hover { color: var(--text); }
.admin__main { padding: clamp(22px, 4vw, 40px); max-width: 1100px; }
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.5vw, 28px); letter-spacing: -0.02em; margin: 0; color: var(--text); }
.admin__sub { font-size: 14px; color: var(--text-dim); margin: 4px 0 0; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; margin-bottom: 28px; }
.statcard { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.statcard__v { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--text); }
.statcard__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card__head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); margin: 0; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; padding: 12px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 13px 20px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--card-mute); }
.tbl td.strong { color: var(--text); font-weight: 500; }
.tbl a.rowlink { color: var(--text); text-decoration: none; font-weight: 500; }
.tbl a.rowlink:hover { color: var(--accent-text); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-dim); white-space: nowrap; }
.badge--on { background: rgba(22,163,74,0.12); border-color: rgba(22,163,74,0.3); color: var(--success); }
.badge--off { background: var(--chip); color: var(--text-faint); }
.badge--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.badge--warn { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--rec); }

.btn--sm { font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; text-decoration: none; border: none; }
.btn--sm.btn--primary { color: #fff; background: var(--accent); box-shadow: none; }
.btn--sm.btn--outline { color: var(--text-dim); background: transparent; border: 1px solid var(--border-strong); }
.btn--sm.btn--outline:hover { background: var(--chip); color: var(--text); }
.btn--sm.btn--danger { color: var(--rec); background: transparent; border: 1px solid rgba(239,68,68,0.3); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }

.empty { padding: 40px 20px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* Admin forms */
.aform { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: clamp(20px, 4vw, 32px); max-width: 720px; }
.aform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.aform label.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.aform .input { background: var(--card-mute); }
.aform__section { margin-top: 24px; }
.aform__sectitle { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
.checkline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 8px 0; }
.checkline input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.permgroup { border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; margin-bottom: 12px; }
.permgroup__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.permgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 16px; }
.aform__nav { display: flex; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filterbar .input { min-width: 150px; background: var(--card-mute); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--text-dim); }
.pager a { color: var(--accent-text); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 8px; }
.pager a[aria-disabled=true] { color: var(--text-faint); pointer-events: none; opacity: .5; }

@media (max-width: 760px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; position: sticky; top: 0; z-index: 20; }
  .admin__nav { flex-direction: row; flex-wrap: wrap; }
  .admin__navlabel, .admin__foot { display: none; }
}

/* ============================================================================
   RESPONDENTE — página pública da entrevista por voz (/s/<token>)
   ============================================================================ */
.respondent { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px clamp(18px, 5vw, 28px); }
.respondent__card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 5vw, 40px); }
.respondent__head { text-align: center; margin-bottom: 22px; }
.respondent__badge { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.respondent__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 4vw, 28px); letter-spacing: -0.02em; margin: 0; color: var(--text); }
.respondent__intro { font-size: 15px; line-height: 1.55; color: var(--text-dim); text-align: center; margin: 0 0 20px; }
.respondent__consent { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.respondent__consent-title { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 8px; }
.respondent__consent p { font-size: 13px; line-height: 1.55; color: var(--text-dim); margin: 0; }
.respondent__micnote { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--text-faint); text-align: center; margin: 0 0 20px; }

.btn--respondent { display: block; width: 100%; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; background: var(--accent); border: none; border-radius: 12px; padding: 14px 24px; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 22px -10px var(--accent); }
.btn--respondent-ghost { color: var(--text-dim); background: transparent; border: 1px solid var(--border-strong); box-shadow: none; margin-top: 22px; }

.rsec { display: none; }
.rsec.is-active { display: block; animation: voxrise .35s ease both; }

.respondent__status { display: flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.respondent__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); }
.respondent__dot.is-live { background: #ef4444; animation: voxpulse 1.2s ease-in-out infinite; }

.respondent__orb { display: flex; align-items: center; justify-content: center; gap: 8px; height: 90px; margin: 26px 0; }
.respondent__orb span { width: 10px; height: 22px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.respondent__orb.is-active span { background: var(--accent); border-color: var(--accent); animation: voxbar 0.9s ease-in-out infinite; }
.respondent__orb.is-active span:nth-child(2) { animation-delay: 0.15s; height: 40px; }
.respondent__orb.is-active span:nth-child(3) { animation-delay: 0.3s; }

.respondent__transcript { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.tline { display: flex; flex-direction: column; gap: 3px; }
.tline__who { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.tline__msg { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.tline--you { align-items: flex-end; text-align: right; }
.tline--you .tline__msg { color: var(--text-dim); }

.respondent__state { text-align: center; padding: 12px 0; }
.respondent__state .success__icon { margin-bottom: 16px; }
.respondent__state-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 3.5vw, 22px); letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px; }
.respondent__state p { font-size: 14px; line-height: 1.55; color: var(--text-dim); margin: 0 auto 18px; max-width: 400px; }

/* ============================================================================
   DASHBOARD DE RESULTADOS (área logada)
   Cores semânticas fixas do produto (verde/âmbar/vermelho/cinza) declaradas
   como tokens locais para reuso; o restante herda os tokens globais do topo.
   ========================================================================== */
:root, [data-theme] {
  --pos:  #16a34a; --warn: #d97706; --neg: #ef4444; --neu: #94a3b8;
  --pos-soft:  rgba(22,163,74,0.14);  --pos-line:  rgba(22,163,74,0.30);
  --warn-soft: rgba(217,119,6,0.14);  --warn-line: rgba(217,119,6,0.30);
  --neg-soft:  rgba(239,68,68,0.14);  --neg-line:  rgba(239,68,68,0.30);
}

/* ── App bar logada ── */
.appbar__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 1180px; }
.appbar__tag { flex: 1; }
.appbar__new { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 8px 14px; border-radius: 9px;
  text-decoration: none; white-space: nowrap; }
.appbar__new:hover { filter: brightness(1.05); }
.appbar__owner { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.appbar__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--accent-text); }
.appbar__ownertxt { display: flex; flex-direction: column; line-height: 1.2; }
.appbar__ownername { font-size: 12.5px; font-weight: 600; color: var(--text); }
.appbar__ownerplan { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--text-faint); }

/* ── Menu do usuário logado (nome clicável → "Sair") ── */
.usermenu { position: relative; }
.usermenu__trigger { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px;
  background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  color: inherit; transition: background .15s, border-color .15s; }
.usermenu__trigger:hover,
.usermenu.is-open .usermenu__trigger { background: var(--card-mute); border-color: var(--border); }
.usermenu__caret { width: 7px; height: 7px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translateY(-1px); transition: transform .18s; }
.usermenu.is-open .usermenu__caret { transform: rotate(-135deg) translateY(-1px); }
.usermenu__pop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 30px -14px rgba(2,8,23,0.45); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.usermenu.is-open .usermenu__pop { opacity: 1; visibility: visible; transform: translateY(0); }
.usermenu__item { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--text); text-decoration: none; transition: background .12s; }
.usermenu__item:hover { background: var(--card-mute); }

/* ── Layout base ── */
.dash { max-width: 1180px; margin: 0 auto; padding: clamp(22px,4vw,40px) clamp(16px,4vw,28px) 90px; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dash__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.dash__h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,4.5vw,36px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; color: var(--text); }
.dash__updated { font-size: 13.5px; color: var(--text-dim); }
.dash__back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.dash__back:hover { color: var(--text); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0; color: var(--text); }
.card__note { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.card__sub { font-size: 12.5px; color: var(--text-dim); margin: 0 0 18px; line-height: 1.5; }
.mb20 { margin-bottom: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,340px),1fr)); gap: 14px; margin-bottom: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 14px; margin-bottom: 14px; }

/* ── Pontos e pílulas ── */
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.dot--round { border-radius: 50%; width: 9px; height: 9px; }
.dot--green { background: var(--pos); } .dot--red { background: var(--neg); }
.dot--gray { background: var(--neu); } .dot--accent { background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill--green { color: var(--pos); background: var(--pos-soft); border: 1px solid var(--pos-line); }
.pill--amber { color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); }
.pill--gray  { color: var(--text-faint); background: var(--chip); border: 1px solid var(--border); }
.pill--faint { color: var(--text-faint); }

/* ── Barras genéricas ── */
.bar { border-radius: 5px; background: var(--card-mute); overflow: hidden; }
.bar--mini { flex: 1; height: 6px; min-width: 34px; border-radius: 3px; }
.bar--sent { height: 9px; }
.bar--opt  { height: 12px; border-radius: 6px; }
.bar--theme { flex: 1; height: 8px; border-radius: 4px; }
.bar__fill { display: block; height: 100%; border-radius: inherit; }
.bar__fill--green { background: var(--pos); } .bar__fill--red { background: var(--neg); } .bar__fill--gray { background: var(--neu); }
.bar__fill--accent { background: var(--accent); }
.bar__fill--accent-soft { background: var(--accent-line); }

/* ── KPIs ── */
.kpigrid { display: grid; gap: 14px; margin-bottom: 30px; }
.kpigrid--agg { grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); }
.kpigrid--detail { grid-template-columns: repeat(auto-fit, minmax(min(100%,170px),1fr)); margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.kpi--danger { border-color: var(--neg-line); }
.kpi__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.kpi__head { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; }
.kpi__head .kpi__label { margin: 0; }
.kpi__row { display: flex; align-items: baseline; gap: 8px; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--text); }
.kpi__big { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.kpi__sub { font-size: 12px; color: var(--text-dim); margin-top: 7px; }
.kpi__delta { font-size: 12.5px; font-weight: 600; }
.kpi__delta--pos { color: var(--pos); } .kpi__delta--neg { color: var(--neg); } .kpi__delta--neutral { color: var(--text-faint); }

/* ── Tabelas (overview + respondentes) ── */
.tbl { padding: 0; overflow: hidden; }
.tbl__head { padding: 13px 24px; border-bottom: 1px solid var(--border); background: var(--card-mute); }
.tbl__row { width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 15px 24px; align-items: center; cursor: pointer; text-decoration: none; font-family: var(--font-body); color: inherit; }
.tbl__row:last-child { border-bottom: none; }
.tbl__row:hover { background: var(--card-mute); }
.tbl__row.is-draft { opacity: 0.55; cursor: default; }
.tbl__row.is-draft:hover { background: transparent; }
.tbl__head, .tbl__row { display: grid; gap: 12px; }
.tbl__row--ov, .tbl__head.tbl__row--ov { grid-template-columns: 2.4fr 1fr 1fr 1.3fr 1fr 0.7fr; }
.tbl__row--resp, .tbl__head.tbl__row--resp { grid-template-columns: 2fr 1.1fr 0.8fr 1.1fr 1fr 0.9fr; }
.tbl__col { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.tbl__col--right { text-align: right; }
.tbl__cell { display: flex; align-items: center; }
.tbl__survey { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tbl__name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl__sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.04em; }
.tbl__type { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.tbl__resp { gap: 8px; }
.tbl__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.tbl__unit { font-size: 11px; color: var(--text-faint); }
.tbl__compl { gap: 9px; }
.tbl__pct { font-size: 12px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; width: 34px; text-align: right; }
.tbl__chev { justify-content: flex-end; color: var(--text-faint); font-size: 16px; }

/* ── Detalhe: cabeçalho ── */
.detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.detail__headmain { min-width: 0; }
.detail__badges { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.detail__type { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.detail__h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,4vw,33px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; color: var(--text); }
.detail__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.detail__metak { color: var(--text-faint); }
.detail__link { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); text-decoration: none; }
.detail__link:hover { text-decoration: underline; }
.detail__actions { display: flex; gap: 9px; flex-shrink: 0; flex-wrap: wrap; }
.btn--export { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-dim); background: var(--card);
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn--export:hover { color: var(--text); }
.btn--export[disabled] { opacity: .6; cursor: default; }
.btn--export-sm { padding: 7px 12px; font-size: 10.5px; }
.btn--report { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #fff; background: var(--accent); border: none; border-radius: 9px; padding: 9px 16px; cursor: pointer; }

/* Menu suspenso do botão Relatório (PDF / CSV / Excel) */
.report-menu { position: relative; display: inline-flex; }
.report-menu__list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 160px;
  display: flex; flex-direction: column; padding: 6px; gap: 2px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.report-menu__list[hidden] { display: none; }
.report-menu__item { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-align: left;
  color: var(--text-dim); background: transparent; border: none; border-radius: 7px; padding: 8px 10px;
  cursor: pointer; text-decoration: none; }
.report-menu__item:hover { color: var(--text); background: var(--surface, rgba(255,255,255,.06)); }

/* ── Funil ── */
.funnel { display: flex; flex-direction: column; gap: 13px; }
.funnel__row { display: flex; align-items: center; gap: 13px; }
.funnel__label { width: 96px; flex-shrink: 0; font-size: 13px; color: var(--text-dim); }
.funnel__track { flex: 1; height: 40px; background: var(--card-mute); border-radius: 10px; overflow: hidden; position: relative; }
.funnel__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 10px; }
.funnel__fill--accent-strong { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.funnel__fill--accent { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.funnel__fill--green { background: color-mix(in srgb, var(--pos) 32%, transparent); }
.funnel__value { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.funnel__pct { width: 44px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.funnel__notes { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.funnel__note { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 3px; }
.funnel__notev { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.funnel__notev--accent { color: var(--accent-text); } .funnel__notev--pos { color: var(--pos); }
.funnel__notek { font-size: 11.5px; color: var(--text-dim); }

/* ── Onde abandonaram ── */
.drop { display: flex; flex-direction: column; gap: 11px; }
.drop__row { display: flex; align-items: center; gap: 12px; }
.drop__label { width: 96px; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.2; }
.drop__step { font-size: 12.5px; color: var(--text); font-weight: 500; }
.drop__step.is-max { font-weight: 700; }
.drop__type { font-family: var(--font-mono); font-size: 9px; color: var(--text-faint); letter-spacing: 0.04em; }
.drop__track { flex: 1; height: 22px; background: var(--card-mute); border-radius: 6px; overflow: hidden; position: relative; }
.drop__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; }
.drop__fill--accent { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.drop__fill--red { background: color-mix(in srgb, var(--neg) 55%, transparent); }
.drop__reached { width: 42px; text-align: right; font-size: 12px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.drop__drop { width: 44px; text-align: right; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.drop__drop--red { color: var(--neg); } .drop__drop--amber { color: var(--warn); } .drop__drop--faint { color: var(--text-faint); }

/* ── NPS ── */
.nps { display: flex; align-items: center; gap: 22px; }
.nps__ring { position: relative; width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; }
.nps__center { position: absolute; inset: 18px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nps__score { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.nps__cap { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--text-faint); margin-top: 2px; }
.nps__legend { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.nps__leg { display: flex; align-items: center; gap: 9px; }
.nps__legk { font-size: 12.5px; color: var(--text-dim); flex: 1; }
.nps__legv { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── Sentimento ── */
.sentbars { display: flex; flex-direction: column; gap: 16px; }
.sentbar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.sentbar__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.sentbar__pct { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── Distribuição de notas ── */
.score__avg { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.score__avgcap { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.hist { display: flex; align-items: flex-end; gap: 5px; height: 104px; }
.hist__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.hist__bar { width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px; }
.hist__bar--green { background: color-mix(in srgb, var(--pos) 85%, transparent); }
.hist__bar--amber { background: color-mix(in srgb, var(--warn) 85%, transparent); }
.hist__bar--red { background: color-mix(in srgb, var(--neg) 85%, transparent); }
.hist__label { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }

/* ── Cards por pergunta ── */
.qcards { display: flex; flex-direction: column; gap: 14px; }
.qcard__kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 8px; }
.qcard__q { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; margin: 0 0 20px; color: var(--text); line-height: 1.35; }
.qcard__opts { display: flex; flex-direction: column; gap: 14px; }
.qopt__head { display: flex; justify-content: space-between; margin-bottom: 7px; }
.qopt__label { font-size: 13.5px; color: var(--text); font-weight: 500; }
.qopt__pct { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); }

/* ── Temas ── */
.themes { display: flex; flex-direction: column; gap: 13px; }
.theme { display: flex; align-items: center; gap: 12px; }
.theme__label { font-size: 13.5px; color: var(--text); flex-shrink: 0; width: 150px; }
.theme__count { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); width: 30px; text-align: right; }

/* ── Resumo executivo (IA) ── */
.aisum { background: var(--accent-soft); border-color: var(--accent-line); margin-bottom: 14px; }
.aisum__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.aisum__mark { color: var(--accent); font-size: 16px; }
.aisum__badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--accent-line); border-radius: 5px; padding: 3px 8px; }
.aisum__body { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0 0 16px; max-width: 880px; }
.aisum__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 10px; }
.aisum__point { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 11px; }
.aisum__icon { font-size: 13px; margin-top: 1px; }
.aisum__icon--pos { color: var(--pos); } .aisum__icon--neg { color: var(--neg); } .aisum__icon--accent { color: var(--accent-text); }
.aisum__ptext { font-size: 13px; line-height: 1.45; color: var(--text-dim); }

/* ── Respondentes ── */
.resp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.resp__filters { display: flex; gap: 6px; }
.filterpill { font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim); }
.filterpill.is-active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.resp__who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.resp__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--chip); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; color: var(--text-dim); flex-shrink: 0; }
.resp__names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.resp__name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resp__when { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); }
.resp__score { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); }
.resp__sent { gap: 6px; font-size: 12.5px; }
.resp__sent--green { color: var(--pos); } .resp__sent--red { color: var(--neg); } .resp__sent--gray { color: var(--neu); } .resp__sent--faint { color: var(--text-faint); }
.resp__dur { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.resp__view { justify-content: flex-end; font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-text); }
.resp__none { padding: 26px 24px; text-align: center; font-size: 13px; color: var(--text-dim); }

/* ── Estado vazio ── */
.empty { text-align: center; padding: 48px 24px; }
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); margin-bottom: 8px; }
.empty__sub { font-size: 14px; color: var(--text-dim); margin: 0 auto 18px; max-width: 420px; line-height: 1.55; }

/* ── Modal de transcrição ── */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px,5vh,60px) 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__overlay { position: fixed; inset: 0; background: rgba(5,10,20,0.6); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(2,8,23,0.7); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal__who { display: flex; align-items: center; gap: 13px; min-width: 0; }
.modal__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-text); flex-shrink: 0; }
.modal__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); }
.modal__submeta { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.modal__meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.modal__close { width: 32px; height: 32px; border-radius: 8px; background: var(--chip); border: 1px solid var(--border); cursor: pointer; color: var(--text-dim); font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; max-height: 55vh; overflow-y: auto; }
.modal__loading { text-align: center; color: var(--text-faint); padding: 20px; }
.modal__foot { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--card-mute); display: flex; gap: 9px; }
.bubble { display: flex; flex-direction: column; }
.bubble--agent { align-items: flex-start; }
.bubble--resp { align-items: flex-end; }
.bubble__who { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; margin-bottom: 5px; color: var(--text-faint); }
.bubble--agent .bubble__who { color: var(--accent-text); }
.bubble__text { max-width: 85%; font-size: 13.5px; line-height: 1.5; color: var(--text); padding: 11px 14px; }
.bubble--agent .bubble__text { background: var(--card-mute); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; }
.bubble--resp .bubble__text { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px 4px 12px 12px; }
.bubble__notice { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px dashed var(--border-strong); border-radius: 11px; margin-top: 4px; font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }

/* ── Responsivo: tabelas rolam na horizontal em telas estreitas ── */
@media (max-width: 720px) {
  .tbl { overflow-x: auto; }
  .tbl__head, .tbl__row { min-width: 620px; }
  .resp__head { flex-wrap: wrap; }
}

/* ============================================================================
   IMPRESSÃO / EXPORTAR EM PDF (botão "Relatório" → window.print)
   Captura a tela de resultados como está, mas: força a paleta clara (econômica
   e legível no papel), remove a cromagem (app bar, ações, filtros, modal) e
   impede que cards quebrem no meio entre páginas.
   ========================================================================== */
@media print {
  /* Paleta clara para qualquer tema atual + impressão fiel das cores de fundo
     (barras, donut, pílulas). print-color-adjust:exact evita o "clareamento"
     que os navegadores aplicam a fundos por padrão. */
  :root, [data-theme] {
    --bg: #FFFFFF; --header: #FFFFFF; --card: #FFFFFF; --card-mute: #F5F7FB;
    --chip: rgba(11,31,58,0.05); --border: rgba(11,31,58,0.16); --border-strong: rgba(11,31,58,0.28);
    --text: #0B1F3A; --text-dim: #3B475C; --text-faint: #6b788d;
    --accent: #2563EB; --accent-text: #2563EB; --accent-soft: rgba(37,99,235,0.08); --accent-line: rgba(37,99,235,0.22);
  }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  @page { margin: 12mm; }
  html, body { background: #fff !important; }

  /* Fora do relatório: navegação, ações, filtros, sync, modal e afins. */
  .appbar, .header, .dash__back, .detail__actions, .resp__filters,
  .resp__view, #sync-btn, #report-btn, .modal, .filterpill { display: none !important; }

  .dash { padding: 0 !important; max-width: none !important; }
  .dash__updated { color: var(--text-faint) !important; }

  /* Cards: sem sombra/sticky e sem quebra interna entre páginas. */
  .card, .kpi { box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; }
  .grid2, .grid3, .kpigrid, .detail__head { break-inside: avoid; }
  .tbl { overflow: visible !important; }
  .tbl__row { break-inside: avoid; }
  .respbtn { cursor: default; }

  /* O donut do NPS é um conic-gradient de fundo → precisa do color-adjust acima. */
  .nps__ring, .funnel__fill, .drop__fill, .bar__fill, .hist__bar, .pill, .dot { print-color-adjust: exact !important; }
}
