/* GGBOT Demandas — estilos. Tema claro por padrão, escuro automático. */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f1b2d;
  --text-2: #475569;
  --muted: #64748b;
  --brand: #0891b2;
  --brand-strong: #0e7490;
  --brand-soft: #e0f7fc;
  --navy: #07101d;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --info-soft: #eff6ff;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07101d;
    --surface: #0c1929;
    --surface-2: #111f36;
    --border: #1e2f4a;
    --border-strong: #2b4063;
    --text: #e6eefb;
    --text-2: #b4c4dc;
    --muted: #7d93b4;
    --brand: #22c3ee;
    --brand-strong: #00c8f5;
    --brand-soft: rgba(0, 200, 245, .12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .1);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, .1);
    --info-soft: rgba(96, 165, 250, .1);
    --code-bg: #030a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: 1.45rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 .8rem; }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: var(--surface); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.late { color: var(--danger); font-weight: 600; }
.upper { text-transform: uppercase; }
[hidden] { display: none !important; }

/* ── Barra superior ─────────────────────────────────────────── */
.topbar { background: var(--navy); color: #eef4ff; border-bottom: 1px solid rgba(255, 255, 255, .06); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #00c8f5, #0099be); color: #04121f; font-size: .8rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name { font-size: 1.02rem; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: #c2d4ed; padding: 6px 12px; border-radius: 6px; font-weight: 500; font-size: .92rem; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-name { color: #c2d4ed; font-size: .9rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .btn-ghost { color: #c2d4ed; border-color: rgba(255, 255, 255, .15); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.page { max-width: 1320px; margin: 0 auto; padding: 24px 20px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.section { margin-bottom: 32px; }
.section-title { margin-top: 28px; }
.stack { display: grid; gap: 16px; align-content: start; }

/* ── Cartões e grades ───────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
.project-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: border-color .15s, transform .15s; }
.project-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.project-meta { margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--muted); }
.pkey { font-family: var(--mono); font-weight: 700; color: var(--brand-strong); letter-spacing: .02em; }
.ikey { font-family: var(--mono); font-weight: 600; font-size: .88rem; color: var(--brand-strong); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 600 .9rem/1.2 var(--font); cursor: pointer;
  transition: background .15s, border-color .15s; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #04121f; } }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
.btn-block { width: 100%; }
.danger { color: var(--danger); }
button.link { background: none; border: 0; padding: 0; color: var(--brand-strong); font: inherit; cursor: pointer; }
button.link:hover { text-decoration: underline; }

/* ── Formulários ────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.form label, .field > label { display: block; font-weight: 600; font-size: .88rem; color: var(--text-2); }
.form label > input:not([type="checkbox"]), .form label > select, .form label > textarea, .form label > .editor { display: block; margin-top: 5px; font-weight: 400; }
.field { display: grid; gap: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 400 .95rem/1.4 var(--font);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { cursor: pointer; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { width: auto; padding: 6px 30px 6px 10px; font-size: .88rem; }
input.otp { font: 600 1.5rem/1 var(--mono); letter-spacing: .3em; text-align: center; padding: 12px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; }
.row-actions { display: flex; gap: 8px; margin: 10px 0 16px; }

/* ── Editor com prints ──────────────────────────────────────── */
.editor { display: grid; gap: 6px; border-radius: var(--radius-sm); }
.editor textarea { font-size: .95rem; }
.editor.drag textarea { border-color: var(--brand); background: var(--brand-soft); }
.editor-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 400; }
.hint { font-size: .78rem; color: var(--muted); }
.editor-status { font-size: .8rem; color: var(--ok); }
.editor-status.err { color: var(--danger); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumb { position: relative; margin: 0; width: 120px; height: 80px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-rm { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }

/* ── Filtros e segmentos ────────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type="search"] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg a { padding: 7px 14px; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.seg a + a { border-left: 1px solid var(--border-strong); }
.seg a.on { background: var(--brand-soft); color: var(--brand-strong); }
.seg a:hover { text-decoration: none; background: var(--surface-2); }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.subnav a { padding: 8px 14px; color: var(--text-2); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.on { color: var(--brand-strong); border-bottom-color: var(--brand); }
.subnav a:hover { text-decoration: none; color: var(--text); }

/* ── Tabelas ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table-compact td { padding: 6px 10px; }
.table a { color: var(--text); }
.table a.ikey, .table a.pkey { color: var(--brand-strong); }
.title-cell { min-width: 260px; }
.title-cell a { font-weight: 550; }
tr.dim td { opacity: .55; }
tr.warn-row td { background: var(--warn-soft); }

/* ── Selos ──────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.st-aberta { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.st-desenvolvimento { background: #e0f7fc; color: #0e7490; border-color: #a5e9f7; }
.st-hml_publicado { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.st-hml_testes { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.st-aguard_prod { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.st-prod_publicado { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.st-aguard_cliente { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.st-retorno_cliente { background: #fdf2f8; color: #9d174d; border-color: #fbcfe8; }
.st-finalizada { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.st-cancelada { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
@media (prefers-color-scheme: dark) {
  .st-aberta { background: rgba(129, 140, 248, .14); color: #a5b4fc; border-color: rgba(129, 140, 248, .3); }
  .st-desenvolvimento { background: rgba(34, 211, 238, .12); color: #67e8f9; border-color: rgba(34, 211, 238, .3); }
  .st-hml_publicado { background: rgba(167, 139, 250, .14); color: #c4b5fd; border-color: rgba(167, 139, 250, .3); }
  .st-hml_testes { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .3); }
  .st-aguard_prod { background: rgba(96, 165, 250, .13); color: #93c5fd; border-color: rgba(96, 165, 250, .3); }
  .st-prod_publicado { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .3); }
  .st-aguard_cliente { background: rgba(251, 146, 60, .12); color: #fdba74; border-color: rgba(251, 146, 60, .3); }
  .st-retorno_cliente { background: rgba(244, 114, 182, .12); color: #f9a8d4; border-color: rgba(244, 114, 182, .3); }
  .st-finalizada { background: rgba(74, 222, 128, .12); color: #86efac; border-color: rgba(74, 222, 128, .3); }
  .st-cancelada { background: rgba(148, 163, 184, .1); color: #94a3b8; border-color: rgba(148, 163, 184, .25); }
}
.us-ativo { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.us-convidado { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.us-bloqueado { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.badge.adm { color: var(--brand-strong); background: var(--brand-soft); border-color: transparent; }
.prio { font-size: .8rem; font-weight: 650; white-space: nowrap; }
.prio::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.pr-baixa { color: var(--muted); }
.pr-media { color: #2563eb; }
.pr-alta { color: #ea580c; }
.pr-urgente { color: var(--danger); }
@media (prefers-color-scheme: dark) { .pr-media { color: #60a5fa; } .pr-alta { color: #fb923c; } }
.rule-tag { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 4px; font-size: .75rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

/* ── Quadro ─────────────────────────────────────────────────── */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; min-height: 120px; align-content: start; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 4px; }
.count { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tile { display: grid; gap: 6px; padding: 12px; color: var(--text); }
.tile:hover { border-color: var(--brand); text-decoration: none; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-title { font-weight: 550; font-size: .92rem; line-height: 1.35; }
.tile .rule-tag { margin-left: 0; justify-self: start; }
.tile-meta { font-size: .78rem; color: var(--muted); }
.tile-pause { font-size: .78rem; color: var(--text-2); }
.col-pause { background: color-mix(in srgb, var(--warn-soft) 60%, var(--surface-2)); }

/* ── Fluxo da demanda ───────────────────────────────────────── */
.flow-wrap { margin: 0 0 18px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.flow li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 4px; }
.flow li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); z-index: 0; }
.flow li:first-child::before { display: none; }
.flow li.done::before, .flow li.current::before { background: var(--brand); }
.flow .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); }
.flow .lbl { font-size: .76rem; line-height: 1.25; color: var(--muted); }
.flow li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow li.done .lbl { color: var(--text-2); }
.flow li.current .dot { border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 0 0 4px var(--brand-soft); }
.flow li.current .lbl { color: var(--text); font-weight: 650; }
.flow li.paused .dot { border-color: #ea580c; color: #ea580c; box-shadow: 0 0 0 4px rgba(234, 88, 12, .15); }
.flow-note { margin: 12px 0 0; font-size: .88rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flow-wrap.is-cancelled .flow { opacity: .45; }
.flow-card h2 { margin-top: 0; }
.flow-actions { display: grid; gap: 8px; }
.flow-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.field-static { display: grid; gap: 5px; justify-items: start; font-size: .9rem; }
.field-label { font-weight: 600; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow li { grid-template-columns: 28px 1fr; justify-items: start; text-align: left; align-items: center; }
  .flow li::before { display: none; }
}

/* ── Demanda ────────────────────────────────────────────────── */
.issue-title { font-size: 1.35rem; }
.issue-title .ikey { font-size: 1.05rem; margin-right: 6px; }
.issue-grid, .issue-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.side-col { display: grid; gap: 14px; }
.side-col.card { gap: 12px; }
.props { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; font-size: .9rem; }
.props dt { color: var(--muted); font-weight: 600; font-size: .8rem; padding-top: 2px; }
.props dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.props dd .badge { white-space: normal; }
.side-col { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose pre.code { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; font: .86rem/1.5 var(--mono); margin: 0 0 .9rem; }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose .shot { display: inline-block; margin: 6px 0; max-width: 100%; }
.prose .shot img { max-width: 100%; max-height: 560px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: block; background: #fff; }
.img-missing { color: var(--muted); font-style: italic; font-size: .85rem; }
.timeline { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.tl-comment header { margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.tl-event { padding: 2px 4px 2px 14px; border-left: 2px solid var(--border-strong); color: var(--text-2); }
.comment-form { margin-top: 8px; }
.comment-form.with-flow { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.flow-pending { margin: 0 0 12px; font-size: .88rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--text-2); }
.comment-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0; }
.inline-label select { min-width: 240px; }
.activity { margin: 18px 0 8px; }
.activity > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.activity > summary::-webkit-details-marker { display: none; }
.activity > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.activity[open] > summary::before { transform: rotate(90deg); }
.activity > summary .section-title { margin: 0; font-size: 1rem; }
.activity > summary .muted { overflow-wrap: anywhere; }
.activity[open] > summary { margin-bottom: 12px; }
.flow-actions a.btn { flex-direction: column; gap: 1px; }
.needs-comment { display: block; font-size: .72rem; font-weight: 500; opacity: .75; }
.tl-comment, #comentar, #atividade { scroll-margin-top: 72px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: .9rem; }
.danger-zone[open] summary { margin-bottom: 12px; }

/* ── Alertas ────────────────────────────────────────────────── */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid transparent; font-size: .92rem; }
.alert p { margin: 0 0 6px; }
.alert p:last-child { margin: 0; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-info, .alert-invite { background: var(--info-soft); color: var(--text); border-color: var(--border-strong); }

/* ── Conta ──────────────────────────────────────────────────── */
.sessions { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.sessions li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ── Telas de acesso ────────────────────────────────────────── */
body.min { background: radial-gradient(ellipse at top, #0c2a44 0%, var(--navy) 60%) fixed; min-height: 100vh; }
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 56px 16px 32px; display: grid; gap: 20px; }
.auth-wrap:has(.auth-wide) { max-width: 560px; }
.brand-lg { color: #eef4ff; justify-self: center; font-size: 1.15rem; }
.brand-lg .brand-mark { width: 38px; height: 38px; font-size: .95rem; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 1.3rem; }
.auth-links { margin: 16px 0 0; text-align: center; font-size: .9rem; }
.auth-foot { text-align: center; color: #647ea0; font-size: .8rem; margin: 0; }
.steps { padding-left: 20px; display: grid; gap: 12px; margin: 0 0 16px; }
.qr { width: 220px; height: 220px; margin: 12px 0; background: #fff; border-radius: 8px; padding: 6px; border: 1px solid var(--border); }
.qr svg { width: 100%; height: 100%; display: block; }
.help { margin-top: 14px; font-size: .88rem; }
.help summary { cursor: pointer; color: var(--brand-strong); font-weight: 600; }
.help[open] summary { margin-bottom: 8px; }
.codes { font-size: 1.05rem; line-height: 1.8; text-align: center; letter-spacing: .06em; resize: none; background: var(--surface-2); }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; font-size: .9rem; }
.checks .ok { color: var(--ok); }
.checks .fail { color: var(--danger); font-weight: 600; }
.err-code { font: 800 2.4rem/1 var(--mono); color: var(--brand); margin-bottom: 10px; }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .issue-grid, .issue-form-grid, .grid-2, .grid-wide-left { grid-template-columns: 1fr; }
  .issue-grid .side-col { order: -1; }
  .issue-form-grid .side-col { order: -1; }
}
@media (max-width: 640px) {
  .topbar-in { gap: 12px; padding: 0 16px; }
  .brand-name { display: none; }
  .user-name { display: none; }
  .page { padding: 18px 16px 48px; }
  .nav a { padding: 6px 8px; }
  .filters select { flex: 1 1 45%; }
  .table .hide-sm { display: none; }
  .title-cell { min-width: 0; }
}
