/* =============================================================================
 * trysk-design.css — a FUNDAÇÃO visual da plataforma (UX/UI). Uma folha, uma paleta, para todas as telas.
 *
 * Carregada pelo Navbar (platform/ui/tpl/navbar.html) e pelas páginas de entrada — logo DEPOIS das folhas de cada módulo, de propósito:
 * os tokens daqui vencem os que os módulos declaravam (`:root[data-theme]` tem mais especificidade que `html[data-theme]`/`[data-theme]`),
 * e os padrões de elemento usam :where() (especificidade zero) para o módulo continuar mandando onde declara algo.
 *
 * Regras de decisão (docs/UX_UI.md): uma cor de ação só; vermelho/âmbar/verde só como status; neutros frios e levemente acinzentados;
 * texto quase preto; contraste >= 4,5:1 no texto e >= 3:1 em ícones e bordas de campo (conferido por tests/ux/contrast.py);
 * espaçamento em múltiplos de 4/8; um único conjunto de raios e sombras; movimento só em resposta a uma ação e sempre opcional.
 *
 * Nomes: os tokens "legados" (--bg-page, --text-title, --primary, --accent-bg, --solid…) continuam existindo — cada módulo os usa — e
 * apontam para os tokens semânticos abaixo. Acrescentar uma cor nova = acrescentar um papel aqui, nunca um hexadecimal no módulo.
 * ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens — claro */
:root {
  color-scheme: light;

  /* superfícies */
  --bg-page: #F6F7F9;
  --bg-surface: #FFFFFF;
  --bg-card: var(--bg-surface);
  --bg-hover: #F1F5F9;
  --bg-elevated: #F8FAFC;
  --bg: var(--bg-page);
  --card-bg: var(--bg-surface);

  /* texto */
  --text-title: #1E293B;
  --text-primary: var(--text-title);
  --text-body: #334155;
  --text-secondary: #475569;
  --text-muted: #5F6B7F;
  --text: var(--text-title);
  --muted: var(--text-secondary);

  /* ação: UMA cor. --primary é a ação como TEXTO/link/borda; --solid é o PREENCHIMENTO (com --on-solid por cima) */
  --primary: #0E7490;
  --primary-hover: #155E75;
  --primary-dark: var(--primary-hover);
  --primary-soft: #ECFEFF;
  --primary-light: var(--primary-soft);
  --primary-color: var(--primary);
  --brand: var(--primary);
  --accent: #0E7490;
  --accent-color: var(--accent);
  --accent-soft: rgba(14, 116, 144, 0.10);
  --accent-soft-solid: #E7F4F7;
  --accent-muted: rgba(14, 116, 144, 0.12);
  --solid: #0E7490;
  --solid-hover: #155E75;
  --on-solid: #FFFFFF;
  --accent-bg: var(--solid);
  --primary-h: var(--solid-hover);
  --gradient-primary: linear-gradient(135deg, #0E7490 0%, #155E75 100%);

  /* status — só quando há algo a comunicar */
  --success: #15803D;
  --success-fg: #15803D;
  --success-soft: #F0FDF4;
  --warning: #B45309;
  --warning-fg: #B45309;
  --warning-soft: #FFFBEB;
  --danger: #B91C1C;
  --danger-fg: #B91C1C;
  --danger-soft: #FEF2F2;
  --danger-solid: #B91C1C;
  --on-danger: #FFFFFF;
  --info: #0369A1;
  --info-fg: #075985;
  --info-soft: #F0F9FF;
  /* nomes usados pelas telas (CMDB, NOC, On-Call): os mesmos papéis */
  --ok-fg: var(--success-fg);
  --ok-bg: var(--success-soft);
  --warn: var(--warning);
  --warn-fg: var(--warning-fg);
  --warn-bg: var(--warning-soft);
  --bad-fg: var(--danger-fg);
  --bad-bg: var(--danger-soft);
  --danger-bg: var(--danger-soft);
  --success-bg: var(--success-soft);

  /* linhas, foco e sombras */
  --border: #E2E8F0;
  --border-light: var(--border);
  --border-md: #CBD5E1;
  --border-input: #7C8799;
  --focus-ring: #0E7490;
  --shadow: rgba(15, 23, 42, 0.10);
  --shadow-card: rgba(15, 23, 42, 0.06);
  --shadow-md: rgba(15, 23, 42, 0.12);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.10);
  --shadow-2: 0 4px 12px rgba(15, 23, 42, 0.10);
  --shadow-3: 0 12px 32px rgba(15, 23, 42, 0.16);
  --scrim: rgba(15, 23, 42, 0.55);

  /* tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family: var(--font-sans);
  --font-mono: ui-monospace, 'JetBrains Mono', 'IBM Plex Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-xs: 0.75rem;     /* 12 px — rótulos curtos, selos, metadados */
  --fs-sm: 0.875rem;    /* 14 px — texto secundário, tabelas densas */
  --fs-base: 1rem;      /* 16 px — corpo e formulários */
  --fs-md: 1rem;        /* 16 px — alias de --fs-base para textos de destaque curtos */
  --fs-xl: 1.375rem;    /* 22 px — título de cartão e de diálogo */
  --fs-lg: 1.125rem;    /* 18 px */
  --fs-h4: 1.25rem;     /* 20 px */
  --fs-h3: 1.5rem;      /* 24 px */
  --fs-h2: 1.875rem;    /* 30 px */
  --fs-h1: 2.25rem;     /* 36 px */
  --lh-tight: 1.25;
  --lh-base: 1.5;

  /* espaço (base 8, meio passo de 4), raios, movimento e camadas */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --z-nav: 100;
  --z-menu: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
  --tap: 44px;          /* alvo de toque confortável; o mínimo da WCAG 2.2 é 24 px */
}

/* ---------------------------------------------------------------- 2. tokens — escuro (não é o claro invertido) */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: #0F172A;
  --bg-surface: #1E293B;
  --bg-hover: #2A374C;
  --bg-elevated: #253247;

  --text-title: #E2E8F0;
  --text-body: #CBD5E1;
  --text-secondary: #A5B3C7;
  --text-muted: #94A3B8;

  --primary: #5EC8DB;
  --primary-hover: #8ADCEA;
  --primary-soft: rgba(94, 200, 219, 0.14);
  --accent: #5EC8DB;
  --accent-soft: rgba(94, 200, 219, 0.14);
  --accent-soft-solid: #1F4452;
  --accent-muted: rgba(94, 200, 219, 0.18);
  --solid: #0E7490;
  --solid-hover: #0B6179;
  --on-solid: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, #0E7490 0%, #0B6179 100%);

  --success: #4ADE80;
  --success-fg: #4ADE80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --warning: #FBBF24;
  --warning-fg: #FBBF24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #FA8F8F;
  --danger-fg: #FA8F8F;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-solid: #B91C1C;
  --on-danger: #FFFFFF;
  --info: #38BDF8;
  --info-fg: #7DD3FC;
  --info-soft: rgba(56, 189, 248, 0.12);

  --border: #334155;
  --border-md: #475569;
  --border-input: #6B7A90;
  --focus-ring: #5EC8DB;
  --shadow: rgba(0, 0, 0, 0.45);
  --shadow-card: rgba(0, 0, 0, 0.35);
  --shadow-md: rgba(0, 0, 0, 0.55);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.30), 0 1px 3px rgba(0, 0, 0, 0.40);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.55);
  --scrim: rgba(2, 6, 23, 0.70);
}

/* ---------------------------------------------------------------- 3. base — o que NENHUMA tela precisa repetir */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { background: var(--bg-page); color: var(--text-body); }
:where(body) {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* botões e campos herdam a fonte (sem isso o navegador cai em Arial) */
:where(button, input, select, textarea, optgroup) { font-family: inherit; letter-spacing: inherit; }
:where(button, [type="button"], [type="submit"], [type="reset"]) { color: inherit; }
:where(img, svg, video, canvas) { max-width: 100%; }
:where(code, kbd, samp, pre) { font-family: var(--font-mono); }
:where(a) { color: var(--primary); text-underline-offset: 2px; }
:where(a:hover) { color: var(--primary-hover); }
:where(table) { border-collapse: collapse; }
:where(hr) { border: 0; border-top: 1px solid var(--border); }
:where([hidden]) { display: none !important; }
:where(::selection) { background: var(--accent-soft); }
::selection { background: var(--accent-muted); color: inherit; }

/* números alinhados em tabelas, contadores e indicadores — não "pulam" ao atualizar */
:where(td.num, th.num, .num, .kpi-value, .count-badge, [data-num]) { font-variant-numeric: tabular-nums; }
:where(table) { font-variant-numeric: tabular-nums; }

/* barras de rolagem discretas (só onde o navegador aceita) */
@supports (scrollbar-color: auto) {
  :where(*) { scrollbar-width: thin; scrollbar-color: var(--border-md) transparent; }
}

/* ---------------------------------------------------------------- 4. acessibilidade */
/* o foco do TECLADO é sempre visível — mesmo onde uma tela antiga zerou o outline (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
  outline: 2px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
}
:where(input, select, textarea):focus-visible { outline-offset: 0 !important; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-3); top: var(--space-3); z-index: var(--z-toast);
  transform: translateY(-200%);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  background: var(--solid); color: var(--on-solid); font-weight: 700; text-decoration: none;
  transition: transform var(--dur-1) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--on-solid); }
:where([id="main-content"]):focus { outline: none; }

/* movimento só quando a pessoa não pediu menos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* cores forçadas (alto contraste do Windows): bordas, ícones e o estado ativo continuam visíveis */
@media (forced-colors: active) {
  .tn-mod, .tn-iconbtn, .tn-user, .tn-burger, .tn-logout, .tn-menu { border: 1px solid ButtonText; }
  .tn-mod[aria-current="page"] { border-color: Highlight; border-width: 2px; }
  :focus-visible { outline-color: Highlight !important; }
}
@media (prefers-contrast: more) {
  :root { --border: #94A3B8; --text-muted: #334155; }
  :root[data-theme="dark"] { --border: #64748B; --text-muted: #CBD5E1; }
}
/* campos com 16 px no celular: o Safari do iOS dá zoom ao focar campos menores */
@media (max-width: 640px) {
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: max(1rem, 16px); }
}

/* ---------------------------------------------------------------- 5. barra superior (Navbar) — ver platform/ui */
.trysk-navbar {
  position: relative; z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 64px; padding: var(--space-2) var(--space-4);
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tn-brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--radius-sm); }
.tn-brand img { height: 32px; width: auto; display: block; border-radius: var(--radius-sm); }
[data-theme="dark"] .tn-brand img { background: rgba(255, 255, 255, 0.96); padding: 4px 10px; box-sizing: content-box; }

.tn-mods { display: flex; align-items: center; gap: var(--space-1); flex: 1 1 auto; min-width: 0; padding-left: var(--space-4); }
.tn-mod {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.tn-mod:hover { background: var(--bg-hover); color: var(--text-title); }
.tn-mod[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tn-mod svg { flex-shrink: 0; }

.tn-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; flex-shrink: 0; }
.tn-pop { position: relative; }
.tn-form { margin: 0; }
.tn-iconbtn, .tn-user, .tn-logout, .tn-burger {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 40px; min-height: 40px; padding: 0 var(--space-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--text-secondary);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.tn-iconbtn:hover, .tn-user:hover, .tn-logout:hover, .tn-burger:hover { background: var(--bg-hover); color: var(--text-title); }
.tn-iconbtn[aria-expanded="true"], .tn-user[aria-expanded="true"] { background: var(--bg-hover); color: var(--text-title); }
.tn-user { padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1); gap: var(--space-2); text-align: left; }
.tn-user.is-current { border-color: var(--primary); background: var(--primary-soft); }
.tn-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: var(--accent-soft-solid); color: var(--primary); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.02em;
}
.tn-who { display: flex; flex-direction: column; line-height: 1.2; }
.tn-who b { font-size: var(--fs-sm); font-weight: 700; color: var(--text-title); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-who span { font-size: var(--fs-xs); color: var(--text-secondary); font-weight: 500; }
.tn-burger { display: none; }

.tn-panel {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: var(--z-menu);
  min-width: 232px; padding: var(--space-1);
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-2);
}
.tn-panel-title { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.tn-item {
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  min-height: 40px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-title); font: inherit; font-size: var(--fs-sm); font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.tn-item:hover { background: var(--bg-hover); color: var(--text-title); }
.tn-item[aria-pressed="true"], .tn-item[aria-current="true"] { background: var(--primary-soft); color: var(--primary); }
.tn-item .tn-check { margin-left: auto; opacity: 0; color: var(--primary); }
.tn-item[aria-pressed="true"] .tn-check, .tn-item[aria-current="true"] .tn-check { opacity: 1; }
.tn-sep { height: 1px; margin: var(--space-1) 0; background: var(--border); border: 0; }
.tn-flag { border-radius: 2px; flex-shrink: 0; }

/* saída: confirmação em diálogo nativo (foco preso, Esc fecha) */
.tn-dialog {
  width: min(100% - 32px, 400px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-surface); color: var(--text-body); box-shadow: var(--shadow-3);
}
.tn-dialog::backdrop { background: var(--scrim); }
.tn-dialog-body { padding: var(--space-5); text-align: center; }
.tn-dialog-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: var(--space-4); border-radius: var(--radius-pill); background: var(--danger-soft); color: var(--danger); }
.tn-dialog h2 { margin: 0 0 var(--space-2); font-size: var(--fs-lg); font-weight: 700; color: var(--text-title); }
.tn-dialog p { margin: 0 0 var(--space-5); font-size: var(--fs-sm); color: var(--text-body); }
.tn-dialog-actions { display: flex; gap: var(--space-3); }
.tn-dialog-actions button { flex: 1; min-height: 44px; border-radius: var(--radius-sm); font: inherit; font-weight: 700; cursor: pointer; }
.tn-btn-cancel { border: 1px solid var(--border-md); background: transparent; color: var(--text-title); }
.tn-btn-cancel:hover { background: var(--bg-hover); }
.tn-btn-confirm { border: 1px solid var(--danger-solid); background: var(--danger-solid); color: var(--on-danger); }
.tn-btn-confirm:hover { filter: brightness(0.92); }

/* telas médias: só o ícone de cada módulo (o nome continua para leitores de tela e no balão) */
@media (max-width: 1180px) {
  .tn-mod { padding: 0 var(--space-3); }
  .tn-mod .tn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .tn-who { display: none; }
  .tn-user { padding: var(--space-1); }
  .tn-user .tn-caret { display: none; }
}
/* celular: os módulos viram um painel aberto pelo botão de menu */
@media (max-width: 760px) {
  .trysk-navbar { flex-wrap: wrap; padding: var(--space-2) var(--space-3); }
  .tn-burger { display: inline-flex; order: 3; }
  .tn-actions { order: 2; }
  .tn-mods {
    display: none; order: 4; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: var(--space-1);
    padding: var(--space-2) 0 var(--space-1); border-top: 1px solid var(--border);
  }
  .tn-mods.is-open { display: flex; }
  .tn-mod { min-height: var(--tap); }
  .tn-mod .tn-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .tn-logout { padding: 0 var(--space-3); }
  .tn-panel { position: fixed; left: var(--space-3); right: var(--space-3); top: 72px; min-width: 0; }
}

/* celulares estreitos: marca e ações cabem na mesma linha (nenhum controle some) */
@media (max-width: 480px) {
  .trysk-navbar .brand-logo { height: 28px; width: auto; }
  .tn-actions { gap: var(--space-1); }
  .tn-iconbtn, .tn-burger { min-width: 36px; padding: 0 var(--space-1); }
  .tn-logout { padding: 0 var(--space-2); }
}

/* ---- alvos de toque: nenhum controle clicável abaixo de 24 px (WCAG 2.2, 2.5.8), sem mudar o desenho ---- */
.qtab, .link-btn, .btn-clear, .btn-detail, button.nav-sub-label, .nav-sub-label, .card-link, .s-25, .s-54 {
  min-height: 24px; box-sizing: border-box;
}
.card-link, .s-25, .s-54, .btn-clear { display: inline-flex; align-items: center; }
.link-btn { display: inline-flex; align-items: center; }
.alrt-item-details-btn, .inc-item-details-btn, .alrt-item-title, .inc-item-title, .ctx-clear { min-height: 24px; min-width: 24px; box-sizing: border-box; }
.alrt-item-title, .inc-item-title { display: inline-flex; align-items: center; }

/* a tela no monitor da MESA do jogo (navbar.html marca data-embed="game" quando a página está num iframe de /jogo): sem a barra de cima nem o atalho */
html[data-embed="game"] .trysk-navbar, html[data-embed="game"] #trysk-skip { display: none !important; }

/* Sino de notificações (barra superior, ao lado do idioma) */
.tn-notify > .tn-iconbtn { position: relative; }
.tn-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--primary-solid, var(--solid)); color: var(--on-solid); font-size: 0.68rem; font-weight: 800; line-height: 18px; text-align: center; }
.tn-badge.is-urgent { background: var(--danger-solid); color: var(--on-danger); }
.tn-badge[hidden] { display: none; }
.tn-notify-panel { width: min(380px, calc(100vw - 24px)); padding: var(--space-1) var(--space-1) var(--space-2); }
.tn-notify-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tn-notify-link { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.tn-notify-link:hover { background: var(--bg-hover); }
.tn-notify-link[hidden] { display: none; }
.tn-notify-state { margin: 0; padding: var(--space-4) var(--space-3); font-size: var(--fs-sm); color: var(--text-secondary); text-align: center; }
.tn-notify-state:empty { display: none; }
.tn-notify-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 440px); overflow-y: auto; }
.ntf-item { display: flex; gap: var(--space-3); width: 100%; padding: var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-title); font: inherit; text-align: left; cursor: pointer; }
.ntf-item:hover { background: var(--bg-hover); }
.ntf-dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--primary); }
.ntf-urgent .ntf-dot { background: var(--danger-solid); }
.ntf-approval .ntf-dot { background: #d97706; }
.ntf-item.is-read .ntf-dot { background: transparent; border: 1px solid var(--border); }
.ntf-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ntf-title { font-size: var(--fs-sm); font-weight: 700; overflow-wrap: anywhere; }
.ntf-item.is-read .ntf-title { font-weight: 500; color: var(--text-body); }
.ntf-summary { font-size: var(--fs-xs); color: var(--text-secondary); overflow-wrap: anywhere; }
.ntf-meta { font-size: var(--fs-xs); color: var(--text-secondary); }
.tn-notify-more { display: block; margin-top: var(--space-1); padding: var(--space-2); border-top: 1px solid var(--border); color: var(--primary); font-size: var(--fs-sm); font-weight: 700; text-align: center; text-decoration: none; }
