/* Encuestas TDCIA — Design System */
:root {
  --bg: #f4f7f6;
  --bg-elevated: #ffffff;
  --bg-muted: #e8efed;
  --surface: #ffffff;
  --text: #0f1c1a;
  --text-secondary: #4a5d59;
  --text-muted: #7a8f8a;
  --border: #d4e0dc;
  --primary: #0b7a6e;
  --primary-hover: #08665c;
  --primary-soft: #d8f0ec;
  --accent: #e8a317;
  --accent-soft: #fff3d6;
  --danger: #c43c3c;
  --danger-soft: #fde8e8;
  --success: #1a8f5c;
  --warning: #c47a12;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 28, 26, 0.04), 0 8px 24px rgba(15, 28, 26, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 28, 26, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 180ms var(--ease);
}

[data-theme="dark"] {
  --bg: #0c1413;
  --bg-elevated: #15201e;
  --bg-muted: #1c2a27;
  --surface: #15201e;
  --text: #eef5f3;
  --text-secondary: #a8bbb6;
  --text-muted: #6f857f;
  --border: #2a3b37;
  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --primary-soft: #134e48;
  --accent: #fbbf24;
  --accent-soft: #422006;
  --danger: #f87171;
  --danger-soft: #450a0a;
  --success: #34d399;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* —— Utilities —— */
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.container-sm { width: min(720px, calc(100% - 2rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* —— Typography —— */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 1.05rem; font-weight: 650; }
.lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 42ch; }
.muted { color: var(--text-muted); font-size: 0.875rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 650;
  background: var(--primary-soft); color: var(--primary);
}
.badge--accent { background: var(--accent-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--success { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 0.9375rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn--accent { background: var(--accent); color: #1a1200; }
.btn--accent:hover { filter: brightness(1.05); text-decoration: none; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--bg-muted); text-decoration: none; }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* —— Forms —— */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.8125rem; font-weight: 650; color: var(--text-secondary); }
.input, .select, .textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
.textarea { min-height: 100px; resize: vertical; }

/* —— Cards —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body { padding: 1.25rem; }

/* —— Nav —— */
.topnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topnav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, calc(100% - 2rem)); margin-inline: auto; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 800; font-size: 1.05rem; color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #0ea5a0);
  display: grid; place-items: center; color: #fff; font-size: 0.85rem;
}
.topnav__actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

/* Hamburguesa móvil */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  padding: 0;
  z-index: 60;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 16, 14, 0.45);
}
.nav-backdrop.is-open { display: block; }
body.nav-open { overflow: hidden; }

@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .topnav__actions {
    position: fixed;
    top: var(--nav-h);
    right: 0; left: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 1.1rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .topnav__actions.is-open { display: flex; }
  .topnav__actions .btn { width: 100%; justify-content: center; }
}

/* —— Landing —— */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
  z-index: -1;
}
.hero__grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; color: var(--text-muted); font-size: 0.8125rem; }
.hero__preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  animation: rise 700ms var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.preview-q {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; margin-bottom: 1.25rem;
}
.preview-opt {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; margin-bottom: 0.5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}
.preview-opt.is-active {
  border-color: var(--primary); background: var(--primary-soft);
}
.preview-opt__dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
}
.preview-opt.is-active .preview-opt__dot {
  border-color: var(--primary);
  background: radial-gradient(circle at center, var(--primary) 45%, transparent 50%);
}
.preview-progress {
  height: 4px; background: var(--bg-muted); border-radius: 99px;
  margin-bottom: 1.5rem; overflow: hidden;
}
.preview-progress__bar {
  height: 100%; width: 42%; background: var(--primary);
  border-radius: 99px;
  animation: progressPulse 2.4s var(--ease) infinite alternate;
}
@keyframes progressPulse {
  from { width: 38%; }
  to { width: 55%; }
}

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.features {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  padding: 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 0.85rem; font-size: 1.1rem;
}

.pricing {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.price-card {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
}
.price-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 600; line-height: 1;
}
.price-card__amount span { font-size: 1rem; font-family: var(--font); color: var(--text-muted); font-weight: 500; }
.price-card ul { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.price-card li {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--text-secondary);
}
.price-card li::before {
  content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted); font-size: 0.8125rem;
  text-align: center;
}

/* —— Trust / casos reales —— */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  justify-content: center; align-items: center;
  padding: 1.25rem 1rem;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8125rem; color: var(--text-muted); font-weight: 600;
}
.trust-bar strong { color: var(--text); font-weight: 700; }

.live-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; color: var(--success);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent);
  animation: livePulse 1.6s ease infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Contador de votos en vivo */
.vote-counter {
  padding: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  margin-top: -0.5rem;
}
.vote-counter__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 4vw, 1.85rem) clamp(1.1rem, 3vw, 2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vote-counter__box::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: voteShine 3.5s linear infinite;
}
@keyframes voteShine {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
.vote-counter__label {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.vote-counter__num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}
.vote-counter__num.is-bump {
  transform: scale(1.04);
  color: var(--primary);
}
.vote-counter__sub {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.vote-counter__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
}

.section--tight { padding-top: clamp(2rem, 5vw, 3.25rem); }
.section--muted { background: var(--bg-muted); }
.container--narrow { width: min(720px, calc(100% - 2rem)); margin-inline: auto; }

.hero--compact { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 3.75rem); }
.hero--compact .display { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
.hero--compact .badge { margin-bottom: 0.85rem; }
.hero--compact .hero__photo { min-height: 220px; }
.hero--compact .hero__photo img { min-height: 220px; }
.hero--compact .hero__photo-caption { display: none; }
@media (max-width: 899px) {
  .hero--compact .hero__grid { gap: 1.5rem; }
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.page-head .h1 { margin-top: 0.3rem; }
.page-head .lead { margin-top: 0.4rem; max-width: 40ch; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}
.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.1;
}
.stat-pill span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 650;
  margin-top: 0.2rem;
}

.why-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}
.why-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  transform: translateY(-2px);
}
.why-card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.why-card .h3 {
  font-size: 1.1rem;
  margin: 0;
}
.why-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.trust-note { font-size: 0.78rem; line-height: 1.45; }

.reg-page {
  min-height: calc(100dvh - var(--nav-h));
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent),
    var(--bg);
}
.switch-row small { font-weight: 500; }

.feed-head {
  margin-bottom: 1.25rem;
  max-width: 36rem;
}
.feed-head .h1 { margin-top: 0.35rem; }
.feed-head .lead { margin-top: 0.5rem; }

/* Últimas encuestas — feed mobile-first */
.survey-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.feed-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feed-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
}
.feed-card__thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 1;
  align-self: start;
}
.feed-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.feed-card__content {
  display: flex; flex-direction: column; gap: 0.4rem; min-width: 0;
}
.feed-card__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.feed-card__time {
  margin-left: auto;
  font-size: 0.72rem; color: var(--text-muted); font-weight: 600;
}
.feed-card__title {
  font-size: 1rem; font-weight: 700; line-height: 1.3;
}
.feed-card__title a { color: var(--text); text-decoration: none; }
.feed-card__title a:hover { color: var(--primary); }
.feed-card__desc {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card__stats {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
}
.feed-card__stats strong { color: var(--text); }
.feed-card__cta { margin-top: 0.35rem; }

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.15rem 0 0.35rem;
}
.card-metrics__item {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
}
.card-metrics__lab {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.card-metrics__val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}
.card-metrics__val--sm {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.card-votes-wrap {
  margin: 0.25rem 0 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.card-votes__title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.card-votes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}
.card-votes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}
.card-votes__name {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.card-votes__n {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.card-votes__empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}
.feed-card--rich {
  grid-template-columns: 88px 1fr;
}
@media (min-width: 640px) {
  .feed-card--rich { grid-template-columns: 110px 1fr; }
}

@media (min-width: 640px) {
  .feed-card {
    grid-template-columns: 120px 1fr;
    padding: 1rem;
    gap: 1.1rem;
  }
  .feed-card__title { font-size: 1.1rem; }
  .feed-card__cta { width: auto; align-self: flex-start; }
}
@media (min-width: 900px) {
  .survey-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* Insights / resultados — stack limpio */
.kpi-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.kpi-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  text-align: center;
}
.kpi-chip__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; line-height: 1.1;
}
.kpi-chip__lab {
  display: block;
  font-size: 0.72rem; color: var(--text-muted); font-weight: 650;
  margin-top: 0.2rem;
}
@media (min-width: 720px) {
  .kpi-scroll { grid-template-columns: repeat(4, 1fr); }
}

.results-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.result-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.15rem;
  box-shadow: var(--shadow);
}
.result-row__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.result-row__tag {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--primary); margin-bottom: 0.25rem;
}
.result-row__q {
  font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.35rem;
}
.result-row__ficha {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
}
.result-row__ficha strong { color: var(--text); }
.result-row__chart {
  margin-bottom: 0.85rem;
}
.result-row .chart-bar-row {
  grid-template-columns: minmax(64px, 100px) 1fr auto;
  font-size: 0.78rem;
}
.result-nps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.result-nps__score {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
}
.result-nps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 600; line-height: 1;
  color: var(--primary);
}
.result-nps__lab {
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
}
.result-nps__bars { display: flex; flex-direction: column; gap: 0.55rem; }
.result-nps__row {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  gap: 0.5rem; align-items: center;
  font-size: 0.78rem;
}
.result-nps__row strong { text-align: right; font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .result-row { padding: 1.25rem 1.35rem; }
  .result-row__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .result-row__ficha { flex-shrink: 0; }
  .result-nps {
    flex-direction: row;
    align-items: center;
  }
  .result-nps__score {
    min-width: 110px;
  }
  .result-nps__bars { flex: 1; }
}

.cases {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.case {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.case:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-muted);
}
.case__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.case__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
}
.case__body p { font-size: 0.9rem; color: var(--text-secondary); flex: 1; }
.case__ficha {
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.45;
}
.case__ficha strong { color: var(--text-secondary); }

.method-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}
.method-item {
  padding: 1.15rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--primary);
}
.method-item h3 { margin-bottom: 0.35rem; }
.hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  min-height: 320px;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.hero__photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(8, 16, 14, 0.82));
  color: #f4f7f6;
  font-size: 0.85rem;
}
.hero__photo-caption strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }

/* —— App Shell —— */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(300px, 88vw); z-index: 90;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { display: flex; }
  #app-backdrop.is-open { display: block; z-index: 80; }
}
.sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.sidebar__top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.sidebar__close {
  display: none;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-muted);
  font-size: 1rem;
}
@media (max-width: 860px) {
  .sidebar__close { display: grid; place-items: center; }
}
.sidebar__label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); padding: 0 0.85rem;
}
.sidebar__nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 600; font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-item:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }
.nav-item.is-active { background: var(--primary-soft); color: var(--primary); }
.sidebar__plan {
  padding: 0.85rem; border-radius: var(--radius-sm);
  background: var(--bg-muted); font-size: 0.8rem;
}
.main { display: flex; flex-direction: column; min-width: 0; }
.main__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.main__content { padding: 1.5rem; flex: 1; }

/* —— Survey list —— */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.survey-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.survey-card {
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.survey-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); }
.survey-card__title { font-weight: 700; font-size: 1.05rem; }
.survey-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.survey-card__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }

.empty-state {
  text-align: center; padding: 3.5rem 1.5rem;
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  color: var(--text-secondary);
}
.empty-state .h2 { color: var(--text); margin-bottom: 0.5rem; }

/* —— Builder —— */
.builder {
  display: grid; gap: 1.25rem;
}
@media (min-width: 960px) {
  .builder { grid-template-columns: 1fr 340px; align-items: start; }
}
.builder__canvas { display: flex; flex-direction: column; gap: 0.85rem; }
.q-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem;
  transition: border-color var(--transition);
}
.q-block.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.q-block__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.q-block__type {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted);
}
.q-options { display: flex; flex-direction: column; gap: 0.45rem; }
.q-option-row {
  display: flex; gap: 0.5rem; align-items: center;
  flex-wrap: wrap;
}
.q-option-row .input { flex: 1; min-width: 140px; }
.opt-photo {
  display: flex; align-items: center; gap: 0.45rem;
  flex-shrink: 0;
}
.opt-photo__thumb {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover; border: 1px solid var(--border);
  background: var(--bg-muted);
}
.opt-photo__thumb.is-empty {
  display: grid; place-items: center;
  font-size: 0.65rem; color: var(--text-muted); font-weight: 700;
}
.opt-photo__btn {
  font-size: 0.72rem; font-weight: 650;
  padding: 0.35rem 0.55rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-muted);
  cursor: pointer;
}
.opt-photo__btn:hover { border-color: var(--primary); color: var(--primary); }
.opt-photo input[type="file"] { display: none; }

.take-choice--photo {
  align-items: center;
}
.take-choice__img {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}
.builder__side {
  position: sticky; top: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.type-palette {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.type-btn {
  padding: 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.8rem; font-weight: 650;
  text-align: left; transition: background var(--transition), border-color var(--transition);
}
.type-btn:hover { background: var(--primary-soft); border-color: var(--primary); }

/* —— Analytics —— */
.stats {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1.5rem;
}
.stat {
  padding: 1.15rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 600; line-height: 1.1;
}
.stat__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.chart-card { padding: 1.25rem; margin-bottom: 1rem; }
.bar-chart { display: flex; flex-direction: column; gap: 0.65rem; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 0.75rem; align-items: center; font-size: 0.85rem; }
.bar-track { height: 10px; background: var(--bg-muted); border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), #14b8a6);
  border-radius: 99px; transition: width 600ms var(--ease);
}
.nps-gauge {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem;
}
.nps-seg {
  text-align: center; padding: 0.85rem; border-radius: var(--radius-sm);
  background: var(--bg-muted);
}
.nps-seg strong { display: block; font-size: 1.4rem; }

/* —— Charts pro —— */
.chart-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.chart-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 130px) 1fr auto;
  gap: 0.65rem; align-items: center; font-size: 0.82rem;
}
.chart-bar-label { color: var(--text-secondary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-track {
  height: 12px; background: var(--bg-muted); border-radius: 99px; overflow: hidden;
}
.chart-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 700ms var(--ease);
  min-width: 2px;
}
.chart-bar-val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.chart-bar-n { font-weight: 500; color: var(--text-muted); font-size: 0.75rem; }

.donut-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  margin-top: 0.75rem;
}
.donut-svg { flex-shrink: 0; }
.donut-center-value {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  fill: var(--text);
}
.donut-center-sub { font-size: 0.65rem; fill: var(--text-muted); }
.donut-legend {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.82rem; color: var(--text-secondary);
}
.donut-legend strong { color: var(--text); margin-left: 0.25rem; }
.donut-swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 0.45rem; vertical-align: middle;
}

.col-chart {
  display: flex; align-items: flex-end; gap: 0.45rem;
  width: 100%; padding-top: 0.5rem;
}
.col-chart__item {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  align-items: center; gap: 0.25rem; height: 100%;
}
.col-chart__bar-wrap {
  flex: 1; width: 100%; display: flex; align-items: flex-end;
  justify-content: center;
}
.col-chart__bar {
  width: 70%; max-width: 36px; border-radius: 6px 6px 2px 2px;
  transition: height 600ms var(--ease);
}
.col-chart__pct { font-size: 0.7rem; font-weight: 700; color: var(--text); }
.col-chart__lab { font-size: 0.65rem; color: var(--text-muted); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sparkline { display: block; }

.chart-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.chart-card__head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem;
}
.chart-card__head .h3 { max-width: 42ch; }
.chart-card__badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted);
}

/* KPI panel (app analytics) */
.kpi-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.kpi__val {
  font-family: var(--font-display);
  font-size: 1.65rem; font-weight: 600; line-height: 1.1;
  color: var(--text);
}
.kpi__lab { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.kpi__trend { font-size: 0.72rem; font-weight: 700; color: var(--success); margin-top: 0.35rem; }
.stat {
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute; right: -8px; top: -8px;
  width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* —— Take survey (conversational) —— */
.take-body {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent),
    var(--bg);
}
.take-header {
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.take-progress {
  height: 3px; background: var(--bg-muted);
  width: 100%;
}
.take-progress__bar {
  height: 100%; background: var(--primary);
  transition: width 400ms var(--ease);
}
.take-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem 4rem;
}
.take-card {
  width: min(560px, 100%);
  animation: fadeSlide 400ms var(--ease) both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.take-card__num {
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  margin-bottom: 0.75rem;
}
.take-card__q {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 600; line-height: 1.25; margin-bottom: 1.5rem;
}
.take-choices { display: flex; flex-direction: column; gap: 0.55rem; }
.take-choice {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.1rem; text-align: left;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-weight: 550;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.take-choice:hover { border-color: var(--primary); transform: translateX(3px); }
.take-choice.is-selected {
  border-color: var(--primary); background: var(--primary-soft);
}
.take-choice__key {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--bg-muted); font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.likert, .nps-scale {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.likert button, .nps-scale button {
  flex: 1; min-width: 44px; padding: 0.85rem 0.4rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-weight: 700;
  transition: all var(--transition);
}
.likert button:hover, .nps-scale button:hover,
.likert button.is-selected, .nps-scale button.is-selected {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary);
}
.nps-labels {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem;
}
.take-nav {
  display: flex; justify-content: space-between; gap: 0.75rem;
  margin-top: 1.75rem;
}
.take-done {
  text-align: center; padding: 2rem;
}
.take-done .display { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }

/* —— Plans / modal —— */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 16, 14, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  width: min(480px, 100%); max-height: 90dvh; overflow: auto;
  padding: 1.5rem;
}
.modal__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}
.toast-wrap {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 300;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg);
  font-size: 0.875rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: rise 280ms var(--ease);
}

/* —— Share panel —— */
.share-box {
  display: flex; gap: 0.5rem; align-items: center;
}
.share-box .input { font-size: 0.8rem; }
.qr-box {
  width: 160px; height: 160px; margin: 1rem auto;
  background: #fff; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.qr-box canvas { width: 140px; height: 140px; }

/* —— Matrix —— */
.matrix-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.matrix-table th, .matrix-table td {
  padding: 0.55rem; border-bottom: 1px solid var(--border); text-align: center;
}
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }

/* —— Mobile bar —— */
.mobile-bar {
  display: none; padding: 0.65rem 0.85rem; gap: 0.65rem; align-items: center;
  border-bottom: 1px solid var(--border); background: var(--bg-elevated);
  position: sticky; top: 0; z-index: 30;
}
.mobile-bar__title { flex: 1; font-size: 0.95rem; }
.mobile-bar .nav-burger { display: inline-flex; }
@media (max-width: 860px) {
  .mobile-bar { display: flex; }
  .main__bar { display: none; }
}
.main__bar-actions { display: flex; gap: 0.5rem; align-items: center; }

.builder-steps {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  list-style: none; margin-bottom: 1rem;
}
.builder-steps li {
  flex: 1; min-width: 90px; text-align: center;
  padding: 0.55rem 0.4rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
  background: var(--bg-muted); color: var(--text-muted);
  border: 1px solid var(--border);
}
.builder-steps li.is-active {
  background: var(--primary-soft); color: var(--primary); border-color: var(--primary);
}
.builder-steps li.is-done { color: var(--success); }
.builder-hint {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 1rem; line-height: 1.45;
  padding: 0.75rem 0.85rem;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
}
.builder-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.builder-actions .btn { flex: 1 1 auto; min-width: 120px; }
@media (max-width: 959px) {
  .builder__side { position: static; order: -1; }
  .builder { display: flex; flex-direction: column; }
}

/* —— Print / embed —— */
.embed-code {
  font-family: ui-monospace, monospace; font-size: 0.75rem;
  background: var(--bg-muted); padding: 0.85rem; border-radius: var(--radius-sm);
  white-space: pre-wrap; word-break: break-all;
}
