/* ─── NGT Mailer · interfaz ─────────────────────────────────────────── */
:root {
  --brand: #610000;
  --brand-600: #7a0f0f;
  --brand-700: #4d0000;
  --brand-50: #fcf5f5;
  --brand-100: #f6e4e4;
  --brand-ring: rgba(97, 0, 0, .18);

  --ink: #1a1817;
  --text: #2b2826;
  --muted: #76706b;
  --faint: #a19b95;
  --line: #e8e5e2;
  --line-strong: #d6d2ce;
  --bg: #f6f5f3;
  --card: #ffffff;
  --hover: #faf9f8;

  --ok: #127a3d;   --ok-bg: #ecf8f0;   --ok-line: #bfe6cc;
  --err: #b42318;  --err-bg: #fef3f2;  --err-line: #fbd0cb;
  --warn: #a15c07; --warn-bg: #fff8eb; --warn-line: #f7dfb0;
  --info: #1d4f91; --info-bg: #eff5fd;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 23, .05);
  --shadow: 0 1px 3px rgba(26, 24, 23, .06), 0 4px 16px rgba(26, 24, 23, .04);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; margin: 0; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.02rem; font-weight: 650; }
h3 { font-size: .92rem; font-weight: 650; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); font-size: 12.8px; }
code { background: #f3f1ef; padding: .12rem .4rem; border-radius: 5px; color: var(--ink); }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }

/* ─── Estructura ───────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--card) 0 247px, var(--line) 247px 248px, transparent 248px); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px; overflow-y: auto; }
.sidebar .logo { display: block; padding: 4px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sidebar .logo img { width: 100%; max-width: 200px; height: auto; display: block; }
.sidebar .logo small { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 550; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.active { background: var(--brand-50); color: var(--brand); }
.nav a.active .icon { color: var(--brand); }
.nav .icon { color: var(--muted); }
.nav .sep { height: 1px; background: var(--line); margin: 10px 4px; }
.nav a.cta { background: var(--brand); color: #fff; margin: 6px 0 10px; justify-content: center; }
.nav a.cta .icon { color: #fff; }
.nav a.cta:hover { background: var(--brand-600); }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me .who { min-width: 0; flex: 1; line-height: 1.3; }
.me .who strong { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

.mobile-bar { display: none; }
.main { min-width: 0; }
.content { max-width: 1120px; margin: 0 auto; padding: 28px 32px 80px; }

/* ─── Cabecera de página ───────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 13px; height: 13px; }

/* ─── Tarjetas ─────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.content > .card + .card, .content > .card + div, .two-col > div > .card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfbfa; border-radius: 0 0 var(--radius) var(--radius); display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.card.flush .list { border: 0; box-shadow: none; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.two-col > * + * { margin-top: 0 !important; }

/* ─── Estadísticas ─────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.stat.ok .ico { background: var(--ok-bg); color: var(--ok); }
.stat.err .ico { background: var(--err-bg); color: var(--err); }
.stat .n { font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12.5px; color: var(--muted); }

/* ─── Formularios ──────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint, .hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.field .opt { font-weight: 400; color: var(--faint); }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #c5c0bb; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2376706b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; }
.input-group { position: relative; display: flex; }
.input-group input { padding-right: 42px; }
.input-group .icon-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; color: var(--text); }
.check input { margin-top: 3px; }
.check small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

/* Interruptor */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; border: 0; padding: 0; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus { box-shadow: 0 0 0 3px var(--brand-ring); }

/* Selector de proveedor */
.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.provider { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--text); background: #fff; text-align: center; transition: all .15s; }
.provider:hover { border-color: var(--brand); color: var(--brand); }
.provider input { position: absolute; opacity: 0; pointer-events: none; }
.provider.is-checked, .provider:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.provider:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-ring); }
.server-fields { margin-top: 12px; }
.server-summary { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; background: #faf9f8; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; color: var(--muted); }
.server-summary strong { color: var(--ink); font-family: var(--mono); font-size: 12.8px; font-weight: 500; }

/* ─── Botones ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; line-height: 1; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--hover); border-color: #c5c0bb; color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.primary.destructive { background: var(--err); border-color: var(--err); }
.btn.primary.destructive:hover { background: #912018; border-color: #912018; }
.btn.danger { color: var(--err); }
.btn.danger:hover { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.btn.sm { padding: 7px 11px; font-size: 13px; }
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; font-weight: 600; }
.linkish.danger { color: var(--err); }

/* ─── Tablas / listas ─────────────────────────────────────────────── */
.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #fcfbfa; padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list tr.link { cursor: pointer; }
.list tr.link:hover td { background: var(--hover); }
.list .title { font-weight: 600; color: var(--ink); }
.list .title:hover { color: var(--brand); }
.list .desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.list .go { color: var(--faint); width: 36px; text-align: right; }
.list tr.link:hover .go { color: var(--brand); }
.list tr.off td { opacity: .55; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 36px; }
.toolbar select { width: auto; min-width: 180px; }

/* ─── Etiquetas de estado ─────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f3f1ef; color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.sent, .badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.failed, .badge.err { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }
.badge.spam, .badge.rate_limited, .badge.rejected, .badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.brand { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }

/* ─── Avisos ───────────────────────────────────────────────────────── */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; font-weight: 500; animation: flash-in .25s ease-out; }
.flash .icon { margin-top: 1px; }
.flash > span { flex: 1; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.flash.error { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }
.flash.info { background: var(--info-bg); color: var(--info); border-color: #cfe0f7; }
.flash .close { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.flash .close:hover { opacity: 1; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ─── Vacíos ───────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 52px 20px; }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }
.empty.sm { padding: 28px 20px; }
.empty.sm p { margin-bottom: 0; }

/* ─── Pasos (alta rápida) ─────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.step .num-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; margin-top: 16px; }
.step .card-head { border-bottom: 0; padding-bottom: 4px; }
.step .card-body { padding-top: 12px; }
.sticky-foot { position: sticky; bottom: 0; margin-top: 22px; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, rgba(246, 245, 243, 0)); display: flex; justify-content: flex-end; gap: 10px; align-items: center; }

/* ─── Integración / código ─────────────────────────────────────────── */
.keybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #faf9f8; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.keybox .k { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.keybox .lbl { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: 74px; flex: none; }
.keybox + .keybox { margin-top: 8px; }

/* ─── Documento de integración ─────────────────────────────────── */
.doc { margin: 0; max-height: 64vh; overflow: auto; background: #1e1b1a; color: #efe9e4; padding: 18px 20px; border-radius: 0 0 var(--radius) var(--radius); font-size: 12.8px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.steps-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.steps-inline .card { padding: 16px 18px; display: flex; gap: 12px; }
.steps-inline .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.steps-inline p { font-size: 13px; color: var(--muted); }
.steps-inline strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
@media (max-width: 860px) { .steps-inline { grid-template-columns: 1fr; } }

/* ─── Actividad ────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-size: 12.5px; color: var(--muted); white-space: nowrap; margin-left: auto; font-variant-numeric: tabular-nums; }
.timeline .detail { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; word-break: break-word; }

/* ─── Zona peligrosa ──────────────────────────────────────────────── */
.danger-zone { border-color: var(--err-line); }
.danger-zone .card-head { border-bottom-color: var(--err-line); }
.danger-zone h2 { color: var(--err); }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.danger-row + .danger-row { border-top: 1px solid var(--line); }
.danger-row p { color: var(--muted); font-size: 13px; }

/* ─── Login ────────────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 500px at 50% -10%, var(--brand-100), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; padding: 36px 34px 30px; text-align: center; box-shadow: var(--shadow); }
.auth-card img { width: 100%; max-width: 300px; height: auto; margin: 0 auto 26px; display: block; }
.auth-card h1 { font-size: 1.25rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.btn.google { width: 100%; padding: 13px 16px; font-size: 15px; gap: 12px; }
.auth-card .foot { margin-top: 18px; font-size: 12.5px; color: var(--faint); display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-card .flash { text-align: left; }

/* ─── Diálogo de confirmación ─────────────────────────────────────── */
dialog.confirm { border: 0; border-radius: var(--radius); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(26, 24, 23, .25); }
dialog.confirm::backdrop { background: rgba(26, 24, 23, .45); }
dialog.confirm .card-body { display: flex; gap: 14px; }
dialog.confirm .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--err-bg); color: var(--err); display: grid; place-items: center; flex: none; }
dialog.confirm p { color: var(--muted); margin-top: 6px; }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; background: none; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(26, 24, 23, .35); z-index: 40; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mobile-bar img { height: 20px; width: auto; }
  .content { padding: 20px 16px 72px; }
  .grid.g2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step .num-circle { display: none; }
  .list th, .list td { padding-left: 14px; padding-right: 14px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ico { display: none; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* ── Prueba en vivo ─────────────────────────────────────────── */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 460px; }
.demo-main { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.demo-log { list-style: none; margin: 0; padding: 14px 20px; flex: 1; overflow-y: auto; max-height: 56vh; min-height: 320px; }
.demo-log li { padding: 6px 0; word-break: break-word; }
.demo-log .who { font-weight: 650; color: var(--ink); }
.demo-log .when { font-size: 12px; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.demo-log .sys { color: var(--muted); font-size: 12.5px; text-align: center; padding: 4px 0; }
.demo-log .sys.err { color: var(--err); }
.demo-log .old { opacity: .6; }
.demo-typing { padding: 0 20px; min-height: 22px; }
.demo-form { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.demo-form input { flex: 1; min-width: 0; }
.demo-side { padding: 16px 18px; }
.demo-side h3 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.demo-side ul { list-style: none; margin: 8px 0 0; padding: 0; }
.demo-side li { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.demo-side .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .demo-main { border-right: 0; border-bottom: 1px solid var(--line); } }
