/* ==========================================================================
   SolveTech — folha de estilo única
   Sem framework, sem build, sem dependência externa.
   Paleta derivada da logo: azul #488cda → roxo #7d73c7
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de design
   -------------------------------------------------------------------------- */

:root {
  /* Marca */
  --brand-blue: #488cda;
  --brand-purple: #7d73c7;
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));

  /* Gradiente escurecido para superfícies que levam texto branco por cima.
     A versão da logo não atinge 4.5:1 com branco; esta atinge (4.6 e 5.3). */
  --btn-gradient: linear-gradient(135deg, #3a76c4, #6a5fb8);

  /* Superfícies — tema claro */
  --bg: #ffffff;
  --bg-subtle: #f6f8fc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e2e7f0;
  --border-strong: #cbd3e2;

  /* Texto — tema claro */
  --text: #15181f;
  --text-muted: #565e70;
  --text-faint: #6b7484;

  /* Ação — tons escurecidos para contraste AA sobre fundo claro */
  --accent: #3a6fb5;
  --accent-hover: #2f5c99;
  --accent-soft: #eef3fb;
  --accent-contrast: #ffffff;

  /* Estados */
  --ok: #177550;
  --ok-soft: #e8f6f0;
  --warn: #8a6100;
  --warn-soft: #fdf4e3;
  --danger: #b3261e;
  --danger-soft: #fdeeed;

  /* Formas */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 25, 40, .05), 0 1px 3px rgba(20, 25, 40, .04);
  --shadow: 0 4px 12px rgba(20, 25, 40, .06), 0 12px 32px rgba(20, 25, 40, .05);

  /* Métrica */
  --wrap: 1080px;
  --wrap-narrow: 760px;
  --space: 1rem;

  /* Tipografia do sistema — zero requisição de rede */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  color-scheme: light;
}

/* Tema escuro automático — só se o usuário não escolheu explicitamente claro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f16;
    --bg-subtle: #11151f;
    --surface: #141926;
    --surface-raised: #1a2030;
    --border: #242c3e;
    --border-strong: #35405a;

    --text: #e9ecf3;
    --text-muted: #a2abbf;
    --text-faint: #7d879b;

    --accent: #7fadea;
    --accent-hover: #a0c4f2;
    --accent-soft: #16233a;
    --accent-contrast: #0c0f16;

    --ok: #4ecf9f;
    --ok-soft: #10241d;
    --warn: #e0b153;
    --warn-soft: #26200f;
    --danger: #f28b82;
    --danger-soft: #2a1614;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .3);

    color-scheme: dark;
  }
}

/* Escolha explícita do usuário vence em ambas as direções */
:root[data-theme="dark"] {
  --bg: #0c0f16;
  --bg-subtle: #11151f;
  --surface: #141926;
  --surface-raised: #1a2030;
  --border: #242c3e;
  --border-strong: #35405a;

  --text: #e9ecf3;
  --text-muted: #a2abbf;
  --text-faint: #7d879b;

  --accent: #7fadea;
  --accent-hover: #a0c4f2;
  --accent-soft: #16233a;
  --accent-contrast: #0c0f16;

  --ok: #4ecf9f;
  --ok-soft: #10241d;
  --warn: #e0b153;
  --warn-soft: #26200f;
  --danger: #f28b82;
  --danger-soft: #2a1614;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .3);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code, pre { font-family: var(--font-mono); font-size: .875em; }

code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .38em;
  word-break: break-word;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Pular para o conteúdo — acessibilidade por teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

section { padding-block: clamp(2.75rem, 7vw, 4.5rem); }

/* --------------------------------------------------------------------------
   4. Cabeçalho e navegação
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

/* Em telas estreitas o menu desce para uma segunda linha em vez de
   estourar a largura da página. */
@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 0; padding-bottom: .35rem; }
  .site-header__inner .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .15rem;
    margin-top: -.35rem;
  }
  .site-header__inner .nav::-webkit-scrollbar { display: none; }
  .site-header__inner .nav a { white-space: nowrap; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

.brand__dot { color: var(--brand-blue); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand-blue); }

@media (max-width: 640px) {
  .nav a { font-size: .875rem; }
}

/* Alternador de tema */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  flex: 0 0 auto;
  transition: color .15s, border-color .15s, background .15s;
}

.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* --------------------------------------------------------------------------
   5. Componentes
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s, border-color .15s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 1px 2px rgba(72, 140, 218, .3), 0 6px 18px rgba(72, 140, 218, .22);
}
.btn--primary:hover { color: #fff; box-shadow: 0 2px 4px rgba(72, 140, 218, .34), 0 10px 26px rgba(72, 140, 218, .3); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem .3rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-purple);
  flex: 0 0 auto;
}

.badge--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); color: var(--warn); }
.badge--warn .badge__dot { background: var(--warn); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 6rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35% -10% auto auto;
  width: min(620px, 78vw);
  aspect-ratio: 1;
  background: var(--brand-gradient);
  opacity: .13;
  filter: blur(70px);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 44rem; }

.hero h1 { margin-top: 1.1rem; }

.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------------------------------------------------------------
   7. Grade de recursos
   -------------------------------------------------------------------------- */

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: .6rem;
}

:root[data-theme="dark"] .eyebrow { color: #a99fe0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: #a99fe0; }
}

.grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); font-size: .9375rem; margin-bottom: 0; }

.card__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.card__icon svg { width: 20px; height: 20px; }

/* Aviso de site em construção */
.notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--radius);
  background: var(--warn-soft);
  font-size: .9375rem;
  color: var(--text);
}

.notice svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: .18rem; color: var(--warn); }
.notice p { margin: 0; }
.notice strong { font-weight: 650; }

/* Faixa de chamada final */
.cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem);
  background: var(--bg-subtle);
  text-align: center;
}

.cta p { color: var(--text-muted); max-width: 34rem; margin-inline: auto; margin-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   8. Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: 2.75rem 2rem;
  font-size: .9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-bottom: 2rem;
}

.site-footer h4 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-faint);
  margin-bottom: .8rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--text-muted); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: .875rem;
}

.todo {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: 5px;
  padding: .05em .4em;
  font-family: var(--font-mono);
  font-size: .8em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   9. Páginas de documento (política e termos)
   -------------------------------------------------------------------------- */

.doc-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
}

.doc-header p { color: var(--text-muted); margin-bottom: 0; }
.doc-header .badge { margin-bottom: 1.25rem; }

.doc-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 15.5rem minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
}

/* minmax(0, 1fr) e não 1fr: sem isso a coluna não consegue encolher abaixo do
   conteúdo e uma tabela larga empurra a página inteira na horizontal. */
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
}

.toc {
  position: sticky;
  top: 5.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
  font-size: .875rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .toc { position: static; max-height: none; }
}

.toc h2 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: .75rem;
}

.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul { display: none; }
.toc li { margin-bottom: .1rem; }

.toc a {
  display: block;
  padding: .34rem .6rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover { background: var(--accent-soft); color: var(--accent); }

/* Prosa do documento */
.prose { min-width: 0; overflow-wrap: break-word; }
.prose > h1 { display: none; }        /* o título já aparece no cabeçalho da página */

.prose h2 {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
}

.prose > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 { margin-top: 1.85rem; scroll-margin-top: 5.5rem; }

.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--text-faint); }

.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose strong { font-weight: 650; color: var(--text); }

/* Tabelas roláveis — nunca deixam a página rolar na horizontal */
.table-scroll {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 26rem;
}

.prose th, .prose td {
  text-align: left;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: break-word;
}

.prose thead th {
  background: var(--bg-subtle);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  font-weight: 650;
  white-space: nowrap;
}

.prose tbody tr:last-child td { border-bottom: 0; }
.prose td a { word-break: break-word; }

.doc-disclaimer {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--radius);
  background: var(--warn-soft);
  font-size: .9375rem;
  margin-bottom: 2.25rem;
}
.doc-disclaimer svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: .18rem; color: var(--warn); }
.doc-disclaimer p { margin: 0; }

/* --------------------------------------------------------------------------
   10. Página de conexão (Embedded Signup)
   -------------------------------------------------------------------------- */

.connect { max-width: 40rem; margin-inline: auto; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.steps { list-style: none; counter-reset: step; margin: 0 0 1.75rem; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: .9375rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.1rem;
  width: 1.875rem; height: 1.875rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.steps strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .1rem; }

.perms {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: .9375rem;
}

.perms li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; color: var(--text-muted); }
.perms li:last-child { margin-bottom: 0; }

.perms li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 1rem; height: .5rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.perms li.is-negative::before {
  border: 0;
  left: .18rem; top: .58em;
  width: .7rem; height: 0;
  border-top: 2px solid var(--danger);
  transform: none;
}

/* Estados da conexão */
.state { display: none; }
.state.is-active { display: block; }

.state__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}
.state__icon svg { width: 28px; height: 28px; }

.state__icon--ok { background: var(--ok-soft); color: var(--ok); }
.state__icon--err { background: var(--danger-soft); color: var(--danger); }
.state__icon--warn { background: var(--warn-soft); color: var(--warn); }

.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 1.25rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: .9375rem;
}

.result-list div {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.result-list div:last-child { border-bottom: 0; }
.result-list dt { color: var(--text-muted); }
.result-list dd { margin: 0; font-family: var(--font-mono); font-size: .875rem; word-break: break-all; }

.error-detail {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--text-muted);
  word-break: break-word;
}
.error-detail:empty { display: none; }

.config-warning {
  display: none;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: var(--radius);
  background: var(--warn-soft);
  font-size: .875rem;
  margin-bottom: 1.75rem;
}
.config-warning.is-active { display: flex; }
.config-warning svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: .18rem; color: var(--warn); }
.config-warning p { margin: 0; }

.fineprint {
  font-size: .8125rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 1.5rem;
}
