/* Encolher — estilos compartilhados do mockup */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --ink: #16171b;
  --ink-2: #52545c;
  --muted: #7c7e86;
  --line: #e4e4df;
  --brand: #cc4419;
  --brand-hover: #b13a14;
  --brand-soft: #fdece5;
  --brand-ink: #ffffff;
  --ok: #0b7a37;
  --ok-soft: #e3f4e9;
  --warn: #8a5a00;
  --warn-soft: #fdf1d6;
  --danger: #c03030;
  --danger-soft: #fbe6e6;
  --info-soft: #e6effb;
  --series-1: #2a78d6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 23, 27, .06), 0 4px 16px rgba(22, 23, 27, .05);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid rgba(204, 68, 25, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #a52626; color: #fff; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-icon { width: 34px; min-height: 34px; padding: 0; border-radius: 8px; }
.btn svg { flex: none; }
.btn-block { width: 100%; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(204, 68, 25, .15); }
.input.is-error { border-color: var(--danger); }
.error-text { font-size: 13px; color: var(--danger); }
.ok-text { font-size: 13px; color: var(--ok); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(204, 68, 25, .15); }
.input-group .prefix { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--muted); font-family: var(--mono); font-size: 14px; background: var(--surface-2); border-right: 1px solid var(--line); padding-right: 10px; }
.input-group input { flex: 1; min-width: 0; border: 0; padding: 9px 12px; font: inherit; background: transparent; color: var(--ink); }
.input-group input:focus { outline: none; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: #cfcfca; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(204, 68, 25, .45); outline-offset: 2px; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: 13px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-info { background: var(--info-soft); color: #1d5aa6; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { opacity: .65; margin-left: 4px; font-weight: 500; }

.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); gap: 2px; }
.segmented button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button, .tabs a { display: inline-flex; align-items: center; text-decoration: none !important;
   min-height: 42px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"], .tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--info-soft); color: #1d4f8f; font-size: 14px; }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert svg { flex: none; margin-top: 1px; }

.short-link { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.short-link .domain { color: var(--muted); font-weight: 500; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfbf9; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcfa; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }

/* ---------- Estado vazio ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- Layout do app (logado) ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 18px; }
.sidebar .new-link { margin: 0 0 14px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none !important; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-item .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.nav-section { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.usage { padding: 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.meter { height: 6px; border-radius: 99px; background: #dcdcd6; overflow: hidden; margin: 8px 0 6px; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.user-chip:hover { background: var(--surface-2); color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2d3a4a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.content { padding: 32px 36px 64px; max-width: 1200px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.scrim { display: none; }

/* admin */
.admin .sidebar { background: #16171b; border-right-color: #16171b; color: #e9e9e6; }
.admin .nav-item { color: #b5b6bc; }
.admin .nav-item:hover { background: #24262c; color: #fff; }
.admin .nav-item[aria-current="page"] { background: #2c2e35; color: #fff; }
.admin .nav-section { color: #7c7e86; }
.admin .user-chip { color: #e9e9e6; }
.admin .user-chip:hover { background: #24262c; color: #fff; }
.admin .brand-name { color: #fff; }
.admin .topbar { background: #16171b; color: #fff; border-bottom-color: #16171b; }
.admin-pill { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 2px 6px; border-radius: 5px; margin-left: 2px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Estatísticas ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.delta-up { color: var(--ok); font-weight: 700; }
.delta-down { color: var(--danger); font-weight: 700; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #ecece7; stroke-width: 1; }
.chart .axis-text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--series-1); pointer-events: none; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .bar.is-hover { fill: #1c5cab; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 5; box-shadow: var(--shadow); }
.tooltip strong { font-size: 14px; display: block; }

.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 64px; align-items: center; gap: 12px; font-size: 14px; position: relative; }
.hbar .hbar-label { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .hbar-track { height: 14px; position: relative; }
.hbar .hbar-fill { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar:hover .hbar-fill { background: #1c5cab; }
.hbar .hbar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hbar .hbar-value small { color: var(--muted); }

/* ---------- Modal e toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(22, 23, 27, .45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; animation: fade .15s ease; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 440px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toast-area { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); animation: rise .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.qr { background: #fff; padding: 14px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; }
.qr svg { display: block; }

/* ---------- Páginas públicas ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; max-width: 1200px; margin: 0 auto; }
.site-header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-header nav a.link { color: var(--ink-2); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.site-header nav a.link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.hero { max-width: 860px; margin: 0 auto; padding: 56px 24px 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18px; color: var(--ink-2); margin: 18px auto 0; max-width: 600px; }
.shortener { margin: 32px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); display: flex; gap: 8px; max-width: 720px; }
.shortener input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.shortener input:focus { outline: none; }
.shortener:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(204, 68, 25, .12), var(--shadow); }
.result { max-width: 720px; margin: 16px auto 0; text-align: left; }
.section { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 30px; letter-spacing: -0.02em; }
.section-title p { color: var(--ink-2); margin-top: 8px; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.plan { display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; color: var(--ok); margin-top: 2px; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq p { color: var(--ink-2); margin-top: 10px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--ink-2); }

/* páginas centradas (entrar, senha, aviso) */
.center-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; gap: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.auth-card .title { text-align: center; }
.auth-card .title p { color: var(--muted); margin-top: 6px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.big-icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.dest-box { padding: 14px; border-radius: 12px; background: var(--surface-2); word-break: break-all; font-family: var(--mono); font-size: 13px; }

/* links na lista */
.link-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 460px; }
.link-cell .dest { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-cell .title-line { font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* mockup */

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(22,23,27,.35); z-index: 55; }
  .topbar { display: flex; }
  .content { padding: 20px 16px 56px; }
  .site-header { padding: 14px 16px; }
  .site-header nav a.link { display: none; }
  .shortener { flex-direction: column; padding: 8px; }
  .shortener input { min-height: 48px; }
  .hbar { grid-template-columns: 90px 1fr 56px; }
  .hide-mobile { display: none !important; }
  /* tabela vira lista no celular: 1 data, 2 descrição, 3 valor, 4 status, 5 ações */
  .table-stack thead { display: none; }
  .table-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { padding: 0; border: 0 !important; }
  .table-stack td:nth-child(1) { order: 1; flex: 1; }
  .table-stack td:nth-child(4) { order: 2; }
  .table-stack td:nth-child(2) { order: 3; width: 100%; }
  .table-stack td:nth-child(3) { order: 4; flex: 1; text-align: left; font-weight: 700; }
  .table-stack td:nth-child(5) { order: 5; }
  .auth-card { padding: 24px; }
}

/* ---- Admin: filtros e períodos como links ---- */
a.chip { display: inline-flex; align-items: center; text-decoration: none !important; }
a.chip[aria-pressed="true"] { color: #fff; }
.segmented a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none !important; box-shadow: none; }
.segmented a[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 220px; }
.search-form .input-group { flex: 1; }
.signal-list { margin: 0; padding-left: 18px; }
.table td.num, .table .nowrap { white-space: nowrap; }
