/* VirtualBit Forms — estilos */
:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --ink: #16211f;
  --muted: #5a6a66;
  --line: #d8e0dd;
  --line-strong: #b9c6c2;
  --accent: #0b7a62;
  --accent-hover: #09664f;
  --accent-ink: #ffffff;
  --accent-soft: #e0f1eb;
  --seal: #8f5410;
  --seal-soft: #fbf0df;
  --seal-line: #ecd3ab;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --focus: #0b7a62;
  --shadow: 0 1px 2px rgba(22, 33, 31, .06), 0 6px 24px rgba(22, 33, 31, .07);
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513; --surface: #161e1c; --surface-2: #1b2522; --ink: #e3ebe8; --muted: #94a49f;
    --line: #26322f; --line-strong: #3a4a46; --accent: #3cc29c; --accent-hover: #5fd3b2; --accent-ink: #062219;
    --accent-soft: #143029; --seal: #e3ad5f; --seal-soft: #2a2115; --seal-line: #4a3920;
    --danger: #f2877e; --danger-soft: #3a1a18; --focus: #5fd3b2;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #161e1c; --surface-2: #1b2522; --ink: #e3ebe8; --muted: #94a49f;
  --line: #26322f; --line-strong: #3a4a46; --accent: #3cc29c; --accent-hover: #5fd3b2; --accent-ink: #062219;
  --accent-soft: #143029; --seal: #e3ad5f; --seal-soft: #2a2115; --seal-line: #4a3920;
  --danger: #f2877e; --danger-soft: #3a1a18; --focus: #5fd3b2;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-size: .86em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.boot { padding: 48px 16px; text-align: center; color: var(--muted); }
.boot-slow { visibility: hidden; animation: boot-slow 0s 8s forwards; }
@keyframes boot-slow { to { visibility: visible; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── estructura ───────── */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; letter-spacing: .02em;
}
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.page { padding-block: 28px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.demo-banner {
  background: var(--seal-soft); color: var(--seal); border-bottom: 1px solid var(--seal-line);
  font-size: .86rem; text-align: center; padding: 7px 16px;
}

/* ───────── botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); background: var(--surface-2); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: .84rem; }
.btn-icon { min-width: 32px; padding: 4px 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ───────── formularios (controles) ───────── */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .9rem; }
.hint { color: var(--muted); font-size: .84rem; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 22px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.error-text { color: var(--danger); font-size: .84rem; font-weight: 500; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ───────── píldoras ───────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { background: var(--accent-soft); color: var(--accent); }
.pill-draft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill-closed { background: var(--seal-soft); color: var(--seal); }
.badge { font-family: var(--font-mono); font-size: .72rem; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* ───────── autenticación ───────── */
.auth { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 56px 20px; }
.auth-pitch h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.auth-pitch .lead { font-size: 1.08rem; color: var(--muted); margin-top: 14px; max-width: 46ch; }
.pitch-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.pitch-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.pitch-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.pitch-list strong { display: block; }
.pitch-list span.muted { font-size: .92rem; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab .count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-left: 4px; }

/* ───────── panel: lista de formularios ───────── */
.form-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 20px; }
.form-list > .empty { grid-column: 1 / -1; }
.form-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.form-row:first-child { border-top: 0; }
.form-row.head { background: var(--surface-2); padding-block: 10px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form-row .title-cell { min-width: 0; }
.form-row .title-cell button { background: none; border: 0; padding: 0; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer; text-align: left; }
.form-row .title-cell button:hover { color: var(--accent); }
.form-row .meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty h3 { color: var(--ink); }

/* ───────── editor ───────── */
.editor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.editor-head .title-input { flex: 1 1 280px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; border: 1px solid transparent; background: transparent; padding: 4px 8px; border-radius: var(--radius-sm); min-width: 0; }
.editor-head .title-input:hover { border-color: var(--line); }
.editor-head .title-input:focus { border-color: var(--focus); outline: none; background: var(--surface); }
.editor-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.palette { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); display: grid; gap: 6px; }
.palette h3 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin-bottom: 4px; }
.palette button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-align: left; font-size: .9rem; font-weight: 500; }
.palette button:hover { border-color: var(--accent); color: var(--accent); }
.type-glyph { font-family: var(--font-mono); font-size: .72rem; width: 34px; text-align: center; padding: 2px 0; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.canvas { display: grid; gap: 12px; }
.intro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.fcard.open { border-color: var(--accent); box-shadow: var(--shadow); }
.fcard-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; background: none; border: 0; width: 100%; text-align: left; }
.fcard-head .label-text { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.fcard-head .req { color: var(--danger); font-weight: 700; margin-left: 2px; }
.fcard-head .cond-note { display: block; font-weight: 400; font-size: .8rem; color: var(--seal); margin-top: 2px; }
.fcard-body { border-top: 1px solid var(--line); padding: 16px; display: grid; gap: 14px; }
.fcard-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; padding-top: 4px; }
.cond-box { background: var(--seal-soft); border: 1px solid var(--seal-line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 10px; }
.cond-box .label { color: var(--seal); }
.cond-row { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 8px; }
.canvas-empty { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; display: grid; gap: 4px; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-seal { background: var(--seal-soft); color: var(--seal); border: 1px solid var(--seal-line); }
.alert-ok { background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.alert strong { font-weight: 700; }

.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; align-content: start; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.purposes { display: grid; gap: 8px; }
.seal-doc { background: var(--seal-soft); border: 1px solid var(--seal-line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
.seal-doc .eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--seal); }
.seal-doc .legal { font-size: .88rem; line-height: 1.6; color: var(--ink); }
.seal-doc .version { font-family: var(--font-mono); font-size: .76rem; color: var(--seal); }

/* ───────── formulario público ───────── */
.public-shell { max-width: 700px; margin: 0 auto; padding: 32px 16px 48px; }
.public-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.public-top { height: 6px; background: var(--accent); }
.public-body { padding: 28px; display: grid; gap: 22px; }
.public-body .desc { color: var(--muted); white-space: pre-line; }
.q { display: grid; gap: 8px; }
.q .q-label { font-weight: 600; }
.q .q-label .req { color: var(--danger); }
.q .choices { display: grid; gap: 8px; }
.q .choice { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.q .choice:hover { border-color: var(--line-strong); }
.q .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.q .choice input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; flex: none; }
.consent { border: 1px solid var(--seal-line); background: var(--seal-soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.consent .legal { max-height: 150px; overflow-y: auto; font-size: .84rem; line-height: 1.55; padding-right: 6px; }
.consent .eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--seal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.public-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: -24px; padding-bottom: 40px; display: grid; gap: 4px; }
.thanks { text-align: center; padding: 48px 28px; display: grid; gap: 14px; justify-items: center; }
.thanks .check-big { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.preview-frame { border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--bg); }
.preview-frame .public-shell { padding-top: 20px; }

/* ───────── respuestas ───────── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .v.small-v { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; padding-top: 8px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 20px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: .86rem; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.bar-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.bar-row .num { text-align: right; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar .input { max-width: 320px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--surface-2); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
table.data td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
.detail-list { display: grid; gap: 14px; }
.detail-list dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence { background: var(--seal-soft); border: 1px solid var(--seal-line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 6px; font-size: .86rem; }
.evidence .eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--seal); }
.evidence dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; overflow-wrap: anywhere; }

/* ───────── modal y aviso ───────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 16, 14, .5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); width: min(560px, 100%); max-height: calc(100% - 32px); overflow-y: auto; border: 1px solid var(--line); }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 22px; display: grid; gap: 16px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 22px 22px; flex-wrap: wrap; }
.templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.template { text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; display: grid; gap: 4px; }
.template:hover { border-color: var(--accent); }
.template strong { font-size: .95rem; }
.template span { color: var(--muted); font-size: .84rem; }
.share-link { display: flex; gap: 8px; }
.share-link .input { font-family: var(--font-mono); font-size: .84rem; }
.qr { display: grid; justify-items: center; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qr img { width: 180px; height: 180px; image-rendering: pixelated; }
.qr .muted { color: #5a6a66; }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .9rem; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
#toast.err { background: var(--danger); color: #fff; }

/* ───────── responsive ───────── */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; gap: 28px; padding-block: 28px; }
  .editor-grid { grid-template-columns: 1fr; }
  .palette { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .palette h3 { grid-column: 1 / -1; }
  .privacy-grid { grid-template-columns: 1fr; }
  .seal-doc { position: static; }
  .form-list { display: block; }
  .form-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .form-row.head { display: none; }
  .form-row .c-state { grid-column: 2; grid-row: 1; justify-self: end; }
  .form-row .c-resp { grid-column: 1; grid-row: 2; color: var(--muted); font-size: .86rem; }
  .form-row .c-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  h1 { font-size: 1.55rem; }
  .stats { grid-template-columns: 1fr; }
  .cond-row { grid-template-columns: 1fr; }
  .public-body { padding: 20px; }
  .auth-card { padding: 20px; }
  .user-chip .who { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ───────── v1.1: cuenta, denuncias y administración ───────── */
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; justify-self: start; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.link-btn:hover { color: var(--accent-hover); }
.public-foot .link-btn { font-size: inherit; font-weight: 600; }
.who-short { display: none; }
.btn.active { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat .hint { margin-top: 4px; }
table.data.plain tbody tr { cursor: default; }
table.data.plain tbody tr:hover { background: transparent; }
table.data.wrap-cells td { white-space: normal; }
table.data td .hint { margin-top: 2px; }
.auth-single { grid-template-columns: minmax(0, 460px); justify-content: center; gap: 20px; }
.report.open { border-color: var(--seal-line); background: color-mix(in srgb, var(--seal-soft) 45%, var(--surface)); }
@media (max-width: 860px) { .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .who-short { display: inline; }
  .stats-4 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
