/* =========================================================
   KMAIL — Design system
   Identidade baseada em www.kyrux.com.br
   Fontes: Inter (texto) + Space Grotesk (títulos)
   ========================================================= */

/* ---------- Tokens (tema escuro = padrão Kyrux) ---------- */
:root {
  --accent: #34A0B8;
  --accent-light: #5AC9E2;
  --accent-dark: #256E7D;
  --accent-ink: #001016;
  --accent-soft: rgba(52, 160, 184, .14);
  --accent-glow: rgba(52, 160, 184, .35);

  --bg: #000000;
  --bg-alt: #050505;
  --surface: #0A0A0A;
  --surface-2: #111111;
  --surface-hover: #151515;
  --input-bg: #050505;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);

  --text: #F5F7FA;
  --text-dim: rgba(245, 247, 250, .62);
  --text-faint: rgba(245, 247, 250, .38);

  --success: #3FB950;
  --success-soft: rgba(63, 185, 80, .12);
  --warning: #D29922;
  --warning-soft: rgba(210, 153, 34, .14);
  --danger: #F85149;
  --danger-soft: rgba(248, 81, 73, .12);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 48px -20px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --sidebar-w: 260px;
  --topbar-h: 60px;

  color-scheme: dark;
}

/* ---------- Tema claro ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --accent-light: #00819C;
    --accent-soft: rgba(52, 160, 184, .12);
    --accent-glow: rgba(52, 160, 184, .18);
    --bg: #EEF1F3;
    --bg-alt: #E4E8EB;
    --surface: #FFFFFF;
    --surface-2: #F7F9FA;
    --surface-hover: #F3F6F8;
    --input-bg: #FFFFFF;
    --border: rgba(10, 14, 20, .09);
    --border-strong: rgba(10, 14, 20, .18);
    --text: #0A0E14;
    --text-dim: rgba(10, 14, 20, .66);
    --text-faint: rgba(10, 14, 20, .42);
    --success: #1A7F37;
    --success-soft: rgba(26, 127, 55, .10);
    --warning: #9A6700;
    --warning-soft: rgba(154, 103, 0, .10);
    --danger: #CF222E;
    --danger-soft: rgba(207, 34, 46, .08);
    --shadow: 0 20px 48px -24px rgba(10, 14, 20, .25);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --accent-light: #00819C;
  --accent-soft: rgba(52, 160, 184, .12);
  --accent-glow: rgba(52, 160, 184, .18);
  --bg: #EEF1F3;
  --bg-alt: #E4E8EB;
  --surface: #FFFFFF;
  --surface-2: #F7F9FA;
  --surface-hover: #F3F6F8;
  --input-bg: #FFFFFF;
  --border: rgba(10, 14, 20, .09);
  --border-strong: rgba(10, 14, 20, .18);
  --text: #0A0E14;
  --text-dim: rgba(10, 14, 20, .66);
  --text-faint: rgba(10, 14, 20, .42);
  --success: #1A7F37;
  --success-soft: rgba(26, 127, 55, .10);
  --warning: #9A6700;
  --warning-soft: rgba(154, 103, 0, .10);
  --danger: #CF222E;
  --danger-soft: rgba(207, 34, 46, .08);
  --shadow: 0 20px 48px -24px rgba(10, 14, 20, .25);
  color-scheme: light;
}

/* ---------- Barras de rolagem ----------
   Largas o bastante para arrastar com o mouse (área de 14px, trilho visível de 8px). */
:root {
  --scroll-thumb: rgba(245, 247, 250, .22);
  --scroll-thumb-hover: rgba(245, 247, 250, .38);
  --scroll-track: rgba(255, 255, 255, .03);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --scroll-thumb: rgba(10, 14, 20, .24); --scroll-thumb-hover: rgba(10, 14, 20, .42); --scroll-track: rgba(10, 14, 20, .04); }
}
:root[data-theme="light"] { --scroll-thumb: rgba(10, 14, 20, .24); --scroll-thumb-hover: rgba(10, 14, 20, .42); --scroll-track: rgba(10, 14, 20, .04); }

/* Barras de rolagem aparecem só ao passar o mouse sobre a área ou enquanto ela rola
   (as classes .is-hovered e .is-scrolling são colocadas pelo kmail.js). O espaço de 14px fica reservado,
   então o conteúdo não se desloca quando a barra aparece. */

/* Chrome, Edge, Safari */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: transparent; border-radius: 999px; min-height: 48px; min-width: 48px;
  border: 3px solid transparent; background-clip: padding-box;
}
.is-hovered::-webkit-scrollbar-thumb, .is-scrolling::-webkit-scrollbar-thumb { background: var(--scroll-thumb); background-clip: padding-box; }
.is-hovered::-webkit-scrollbar-track, .is-scrolling::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
/* Firefox (sem suporte aos seletores acima): largura normal, nunca "thin" */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: auto; scrollbar-color: transparent transparent; }
  .is-hovered, .is-scrolling { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--font-mono); font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
/* Elemento que só aparece quando é o alvo da URL (ex.: verificacao-2fa.html#passkey) */
.target-only:not(:target) { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: .82rem; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent-light); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ---------- Utilitários de layout ---------- */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 28px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.brand-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-light);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .88rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  text-decoration: none; color: var(--text); background: transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 28px -8px var(--accent-glow); }
.btn-secondary { border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-sm { padding: .38rem .8rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; color: var(--text-dim); }
.btn-icon:hover { background: var(--surface-hover); color: var(--text); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-group { display: inline-flex; gap: .25rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem;
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-header p { color: var(--text-dim); font-size: .85rem; margin-top: .2rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-header { padding: 1.1rem 1.25rem 0; }
.card-footer { border-top: 1px solid var(--border); margin: 1.25rem -1.25rem -1.25rem; padding: .9rem 1.25rem; display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.card-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 48px -24px var(--accent-glow); }
.card-danger { border-color: rgba(248, 81, 73, .4); }

/* ---------- Estatísticas ---------- */
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat-label { color: var(--text-dim); font-size: .8rem; display: flex; align-items: center; gap: .45rem; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.stat-delta { font-size: .78rem; color: var(--text-dim); }
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--accent-soft); color: var(--accent-light); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Alertas ---------- */
.alert {
  display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); font-size: .86rem;
}
.alert > i { margin-top: .15rem; }
.alert strong { display: block; margin-bottom: .1rem; }
.alert-info { background: var(--accent-soft); border-color: rgba(52, 160, 184, .35); }
.alert-info > i { color: var(--accent-light); }
.alert-success { background: var(--success-soft); border-color: rgba(63, 185, 80, .35); }
.alert-success > i { color: var(--success); }
.alert-warning { background: var(--warning-soft); border-color: rgba(210, 153, 34, .4); }
.alert-warning > i { color: var(--warning); }
.alert-danger { background: var(--danger-soft); border-color: rgba(248, 81, 73, .4); }
.alert-danger > i { color: var(--danger); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .label { font-size: .82rem; font-weight: 600; }
.hint { font-size: .78rem; color: var(--text-faint); }
.input, .select, .textarea {
  width: 100%; padding: .65rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--input-bg); color: var(--text); font: 400 .9rem/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 110px; resize: vertical; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon {
  display: flex; align-items: center; padding: 0 .85rem; border: 1px solid var(--border-strong); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--text-dim); font-size: .85rem; white-space: nowrap;
}
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: .85rem; z-index: 1; pointer-events: none; }
.input-icon .input { padding-left: 2.3rem; }
/* Campo de senha com botão mostrar/ocultar */
.input-password { position: relative; width: 100%; }
.input-password .input { padding-right: 2.8rem; }
.pw-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-faint); cursor: pointer; font-size: .9rem;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-hover); }
.input-password + .progress, .input-password ~ .progress { margin-top: .2rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: .15rem; }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .88rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; flex-shrink: 0; transition: background .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Lista de configurações */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; padding-bottom: 0; }
.setting:first-child { padding-top: 0; }
.setting-text strong { display: block; font-size: .9rem; }
.setting-text span { color: var(--text-dim); font-size: .82rem; }

/* Opções em cartão (radio) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .choice-body {
  display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: var(--bg-alt); height: 100%; transition: border-color .2s, background .2s;
}
.choice .choice-body i { font-size: 1.2rem; color: var(--accent-light); }
.choice input:checked + .choice-body { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th {
  text-align: left; font-weight: 600; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint); padding: .7rem 1.25rem; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-hover); }
.table .cell-main { font-weight: 600; }
.table .cell-sub { color: var(--text-dim); font-size: .8rem; }
.table .actions { text-align: right; white-space: nowrap; }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; margin-bottom: 1.25rem; }
.tabs a {
  padding: .7rem 1rem; color: var(--text-dim); font-weight: 600; font-size: .86rem; border-bottom: 2px solid transparent;
  white-space: nowrap; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent-light); border-bottom-color: var(--accent); }

.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented a { padding: .35rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text-dim); }
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Progresso ---------- */
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.progress.warning > span { background: var(--warning); }
.progress.danger > span { background: var(--danger); }

/* ---------- Avatar ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; background: var(--accent-soft); color: var(--accent-light);
}
.avatar-lg { width: 44px; height: 44px; font-size: .95rem; }
.avatar-sm { width: 26px; height: 26px; font-size: .66rem; }
.avatar.alt1 { background: rgba(163, 113, 247, .15); color: #B392F0; }
.avatar.alt2 { background: rgba(210, 153, 34, .15); color: #E3B341; }
.avatar.alt3 { background: rgba(63, 185, 80, .14); color: #56D364; }
.avatar.alt4 { background: rgba(248, 81, 73, .14); color: #FF7B72; }

/* ---------- Registros DNS / código copiável ---------- */
.copy {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: var(--radius-sm);
  background: var(--bg-alt); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .8rem; min-width: 0;
}
.copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.copy button { flex-shrink: 0; }

.dns-record { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.dns-record:last-child { border-bottom: 0; }
.dns-record .dns-type { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.dns-record .dns-type strong { font-family: var(--font-display); font-size: 1rem; }
.dns-fields { display: grid; grid-template-columns: 1fr 2fr 72px; gap: .6rem; }
.dns-fields .label { color: var(--text-faint); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; display: block; }
@media (max-width: 900px) { .dns-record { grid-template-columns: 1fr; } .dns-fields { grid-template-columns: 1fr; } }

/* ---------- Passos ---------- */
.steps { display: flex; gap: .5rem; counter-reset: step; flex-wrap: wrap; }
.steps li {
  list-style: none; display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-faint); font-weight: 600;
}
.steps li::before {
  counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); font-size: .75rem;
}
.steps li + li::after { content: none; }
.steps li.done { color: var(--text-dim); }
.steps li.done::before { content: "✓"; background: var(--accent-soft); border-color: var(--accent); color: var(--accent-light); }
.steps li.current { color: var(--text); }
.steps li.current::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps .sep { width: 28px; height: 1px; background: var(--border-strong); }
ol.steps { padding: 0; margin: 0; }

/* ---------- Linha de lista genérica ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.card-flush > .list > .list-item, .card-flush > .list > .list-item:first-child, .card-flush > .list > .list-item:last-child { padding: .85rem 1.25rem; }
.card-flush > .list > .list-item:last-child { border-bottom: 0; }
.list-icon {
  width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--accent-light); flex-shrink: 0; border: 1px solid var(--border);
}

/* ---------- Estado vazio ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty i { font-size: 2rem; color: var(--text-faint); }

/* ---------- Kbd ---------- */
kbd {
  font-family: var(--font-mono); font-size: .72rem; padding: .1rem .4rem; border-radius: 5px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-dim);
}

/* ---------- Gráfico de barras simples (CSS) ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: .5rem; }
.bars span { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; min-height: 4px; }
.bars span.alt { background: var(--danger); }
.bars-legend { display: flex; justify-content: space-between; color: var(--text-faint); font-size: .72rem; margin-top: .4rem; }

/* =========================================================
   APP SHELL (dashboards)
   ========================================================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-alt); border-right: 1px solid var(--border); padding: 1rem .75rem; overflow: hidden;
}
.sidebar > .brand, .sidebar > .sidebar-footer { flex-shrink: 0; }
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -.75rem; padding: 0 .75rem; }
.sidebar .brand { padding: .35rem .6rem 1.1rem; }
.nav-group { margin-bottom: 1rem; }
.nav-title { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: .4rem .7rem; }
.nav-link {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px;
  color: var(--text-dim); font-weight: 500; font-size: .88rem; transition: background .15s, color .15s;
}
.nav-link i { width: 18px; text-align: center; font-size: .9rem; }
.nav-link:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--accent-soft); color: var(--accent-light); }
.nav-link .count { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--text-faint); }
.nav-link.active .count { color: var(--accent-light); }
.sidebar-footer { margin-top: auto; padding-top: 1rem; background: var(--bg-alt); border-top: 1px solid var(--border); display: flex; align-items: center; gap: .65rem; }
.sidebar-footer .who { min-width: 0; flex: 1; }
.sidebar-footer .who strong { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer .who span { display: block; font-size: .75rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .crumbs { font-size: .85rem; color: var(--text-faint); display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar .crumbs strong { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.topbar .search { width: min(340px, 40vw); }
.content { padding: 1.75rem 1.5rem 3rem; width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.content-narrow { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head p { color: var(--text-dim); margin-top: .35rem; }

/* Menu móvel (sem JS: checkbox) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; }
.scrim { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50; width: var(--sidebar-w); transform: translateX(-100%);
    transition: transform .3s var(--ease); box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .sidebar, .nav-toggle:checked ~ .mail .folders { transform: none; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 1rem; }
  .topbar .search { display: none; }
  .content { padding: 1.25rem 1rem 2.5rem; }
}

/* =========================================================
   AUTENTICAÇÃO
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  position: relative; overflow: hidden; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
  color: #F5F7FA; border-right: 1px solid var(--border);
  /* Arte própria do KMAIL (envelope com notificação e rede de mensagens), usada em
     todas as telas de autenticação e cadastro. Fonte vetorial: login-background.svg. */
  background:
    linear-gradient(180deg, rgba(2, 5, 10, .55) 0%, rgba(2, 5, 10, .25) 45%, rgba(2, 5, 10, .15) 70%, rgba(2, 5, 10, .45) 100%),
    url("../images/backgrounds/login-background.jpg") center bottom / cover no-repeat,
    #03070d;
}
.auth-side h2, .auth-side p { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
/* Brilho colorido só nas telas com a marca do cliente */
.tenant-auth .auth-side::before {
  content: ""; position: absolute; width: 1200px; height: 1200px; border-radius: 50%; top: -600px; right: -600px;
  background: radial-gradient(circle, rgba(0, 175, 239, .30) 0%, transparent 65%); pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 2.2rem; max-width: 460px; line-height: 1.12; }
.auth-side h2 span { color: #5AC9E2; }
.auth-side p { color: rgba(245, 247, 250, .62); max-width: 440px; margin-top: 1rem; font-size: .95rem; }
.auth-side .brand { color: #F5F7FA; }
.auth-points { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.auth-points div { display: flex; gap: .7rem; align-items: center; color: rgba(245, 247, 250, .8); font-size: .9rem; }
.auth-points i { color: #5AC9E2; width: 18px; }
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 2rem 1.25rem 0; min-height: 100vh; }
.auth-main > .auth-card { margin: auto 0; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 1.25rem; }
.auth-side-logo { height: 52px; width: auto; align-self: flex-start; }
.auth-mobile-logo { display: none; }
.auth-card .auth-logo { height: 46px; width: auto; margin: 0 auto 1rem; }
.auth-card h1 { font-size: 1.5rem; }
.auth-card .sub { color: var(--text-dim); margin-top: .35rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--text-faint); font-size: .78rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; font-size: .8rem; color: var(--text-faint); }
.otp { display: flex; gap: .5rem; justify-content: space-between; }
.otp .input { text-align: center; font-family: var(--font-mono); font-size: 1.3rem; padding: .7rem 0; }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mobile-logo { display: block; } }

.logo-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-dark { display: none; } :root:not([data-theme="dark"]) .logo-light { display: block; } }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

/* =========================================================
   WEBMAIL
   ========================================================= */
.webmail {
  /* Larguras das colunas, compartilhadas pelo topo e pela grade (o divisor altera --list-w) */
  --folders-w: 240px; --list-w: 460px;
  height: 100vh; display: flex; flex-direction: column; overflow: hidden;
}
.webmail .topbar { position: relative; flex-shrink: 0; }
/* logo ocupa a largura da coluna de caixas -> a busca começa exatamente sobre a lista */
.webmail .topbar .brand { width: calc(var(--folders-w) - 1.5rem - .75rem); flex-shrink: 0; }
.webmail .topbar .search { width: var(--list-w); flex-shrink: 0; }
.mail { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--folders-w) var(--list-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.mail > * { min-height: 0; }
.mail.mail-2col { grid-template-columns: var(--folders-w) minmax(0, 1fr); }

/* Coluna 1 — caixas */
.folders { border-right: 1px solid var(--border); background: var(--bg-alt); padding: 1rem .75rem; overflow: hidden; display: flex; flex-direction: column; gap: .2rem; }
.folders > .btn-primary, .folders > .quota { flex-shrink: 0; }
.folders-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .2rem; margin: 0 -.75rem; padding: 0 .75rem; }
.folders-scroll .nav-title { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; }
.folders-scroll .nav-title a { color: var(--text-faint); }
.folders .btn-primary { margin-bottom: 1rem; }
.folders .nav-title { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; }
.folders .nav-title a { color: var(--text-faint); }
.folder-color { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.quota { margin-top: auto; padding: .9rem .7rem 0; background: var(--bg-alt); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .45rem; font-size: .78rem; color: var(--text-dim); }

/* Coluna 2 — lista */
.list-pane { position: relative; border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; background: var(--surface); }

/* Divisor arrastável entre a lista e a mensagem */
.resizer {
  position: absolute; top: 0; right: -5px; bottom: 0; width: 10px; z-index: 5; cursor: col-resize; touch-action: none;
}
.resizer::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background .15s;
}
.resizer:hover::after, .resizer:focus-visible::after, .resizer.dragging::after { background: var(--accent); }
.resizer:focus-visible { outline: none; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing iframe { pointer-events: none; }
.list-toolbar { display: flex; align-items: center; gap: .25rem; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.list-toolbar .title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-right: auto; padding-left: .25rem; }
.list-toolbar input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0 .5rem 0 .3rem; }
.list-filters { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .4rem; padding: .55rem .9rem; border-bottom: 1px solid var(--border); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: .76rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; background: transparent;
}
.chip:hover { text-decoration: none; color: var(--text); }
.chip.active { background: var(--accent-soft); border-color: transparent; color: var(--accent-light); }
.messages { overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.msg {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .75rem; padding: .85rem 1rem .85rem .9rem;
  border-bottom: 1px solid var(--border); color: var(--text); position: relative; border-left: 3px solid transparent;
}
.msg:hover { background: var(--surface-hover); text-decoration: none; }
.msg .avatar { grid-row: span 3; margin-top: .1rem; }
/* Linha com ações: a área toda abre a mensagem (link esticado); botões ficam por cima */
.msg-pick { grid-row: span 3; position: relative; z-index: 2; width: 34px; height: 34px; margin-top: .1rem; }
.msg-pick .avatar { margin: 0; }
.msg-select {
  position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; opacity: 0;
}
.msg:hover .msg-select, .msg:focus-within .msg-select, .msg.is-picked .msg-select, .has-selection .msg-select { opacity: 1; }
.msg:hover .msg-pick .avatar, .msg:focus-within .msg-pick .avatar, .msg.is-picked .msg-pick .avatar, .has-selection .msg-pick .avatar { visibility: hidden; }
.msg.is-picked { background: var(--accent-soft); }
.msg-link { display: block; color: inherit; text-decoration: none; }
.msg-link:hover { text-decoration: none; }
.msg-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.msg-link:focus-visible { outline: none; }
.msg:has(.msg-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.msg-actions {
  position: absolute; z-index: 2; right: .6rem; bottom: .45rem; display: flex; gap: .15rem; padding-left: 1.5rem;
  background: linear-gradient(90deg, transparent, var(--surface-hover) 1.2rem);
  opacity: 0; pointer-events: none;
}
.msg.selected .msg-actions, .msg.is-picked .msg-actions { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 14%, var(--surface)) 1.2rem); }
.msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; pointer-events: auto; }
.msg-act {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text-dim); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
}
.msg-act:hover { background: var(--surface-2); color: var(--text); }
.msg-act[data-msg-delete]:hover { color: var(--danger); background: var(--danger-soft); }
.msg-star[aria-pressed="true"] { color: var(--warning); }
/* Favoritas: a estrela fica sempre visível, mesmo sem passar o mouse */
.msg.starred .msg-actions { opacity: 1; background: none; pointer-events: none; }
.msg.starred .msg-actions .msg-act:not(.msg-star) { visibility: hidden; }
.msg.starred .msg-star { pointer-events: auto; }
.msg.starred:hover .msg-actions, .msg.starred:focus-within .msg-actions { background: linear-gradient(90deg, transparent, var(--surface-hover) 1.2rem); pointer-events: auto; }
.msg.starred:hover .msg-actions .msg-act, .msg.starred:focus-within .msg-actions .msg-act { visibility: visible; }
.msg .preview { padding-right: 4.5rem; }
.msg-bulk { display: inline-flex; align-items: center; gap: .15rem; margin-right: auto; }
.msg-bulk .small { margin: 0 .4rem 0 .1rem; font-weight: 600; }
.msg-tools { display: inline-flex; }
/* Telas de toque: ações sempre visíveis; tocar no avatar seleciona a mensagem */
@media (hover: none) { .msg-actions { opacity: 1; pointer-events: auto; background: none; } }
.msg .from { font-weight: 500; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .date { font-size: .74rem; color: var(--text-faint); white-space: nowrap; }
.msg .subject { grid-column: 2 / 4; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.msg .preview { grid-column: 2 / 4; font-size: .8rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .meta { display: inline-flex; gap: .4rem; align-items: center; color: var(--text-faint); font-size: .75rem; }
.msg.unread .from, .msg.unread .subject { font-weight: 700; color: var(--text); }
.msg.unread::before { content: ""; position: absolute; left: 5px; top: 1.25rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.msg.selected { background: var(--accent-soft); border-left-color: var(--accent); }
.msg .flag { color: var(--warning); }
.msg .thread-count { font-size: .7rem; font-weight: 700; padding: 0 .4rem; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.msg-day { padding: .5rem 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.bulkbar { display: flex; align-items: center; gap: .35rem; padding: .5rem .75rem; background: var(--accent-soft); border-bottom: 1px solid var(--border); font-size: .82rem; }

/* Coluna 3 — leitura */
.reader { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--bg); }
.reader-toolbar { display: flex; align-items: center; gap: .25rem; padding: .6rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.back-link { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.back-link:hover { color: var(--accent-light); text-decoration: none; }
.reader-toolbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 .35rem; }
.reader-body { overflow-y: auto; padding: 1.5rem 2rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.reader-body > *, .composer-body > * { flex-shrink: 0; }
.reader-subject { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.reader-subject h1 { font-size: 1.35rem; }
.mail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mail-head { display: flex; gap: .85rem; padding: 1rem 1.25rem; align-items: flex-start; }
.mail-head .who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mail-head .who strong { font-size: .92rem; }
.mail-head .who .addr { color: var(--text-dim); font-size: .82rem; }
.mail-head .who .to { color: var(--text-faint); font-size: .78rem; margin-top: .15rem; }
.mail-head .when { color: var(--text-faint); font-size: .78rem; white-space: nowrap; }
.auth-badges { display: flex; gap: .35rem; flex-wrap: wrap; padding: 0 1.25rem .85rem; }
.mail-content { padding: 1.25rem; border-top: 1px solid var(--border); }
/* Simula o iframe sandbox em que o e-mail é renderizado */
.mail-frame { background: #fff; color: #1f2328; border-radius: var(--radius-sm); padding: 1.5rem; font-size: .92rem; line-height: 1.6; border: 1px solid var(--border); }
.mail-frame h2 { font-family: var(--font); color: #0A0E14; font-size: 1.15rem; margin-bottom: .75rem; }
.mail-frame p { margin-bottom: .85rem; }
.mail-frame a { color: #00819C; text-decoration: underline; }
.mail-frame .btn-mail { display: inline-block; background: #34A0B8; color: #001016; padding: .6rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.mail-frame .img-blocked { border: 1px dashed #c4ccd4; border-radius: 6px; padding: 1.5rem; text-align: center; color: #6e7781; font-size: .82rem; margin-bottom: .85rem; }
.mail-frame-caption { font-size: .72rem; color: var(--text-faint); margin-top: .4rem; display: flex; align-items: center; gap: .35rem; }
.collapsed-msg { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; }
.collapsed-msg .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: .85rem; }
.attachments { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 1.25rem 1.25rem; }
.attachment {
  display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); min-width: 220px; font-size: .82rem;
}
.attachment i.file { font-size: 1.3rem; color: var(--accent-light); }
.attachment.danger { border-color: rgba(248, 81, 73, .45); background: var(--danger-soft); }
.attachment.danger i.file { color: var(--danger); }
.attachment strong { display: block; font-size: .82rem; }
.attachment span { color: var(--text-faint); font-size: .74rem; }
.quick-reply { display: flex; gap: .5rem; }
.security-panel { display: flex; flex-direction: column; gap: .5rem; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .82rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.sec-row:last-child { border-bottom: 0; }
.link-warning { background: var(--danger-soft); border-radius: 4px; padding: 0 .2rem; }

/* Composição */
.composer { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--bg); }
.composer-body { overflow-y: auto; padding: 1.5rem 2rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.compose-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compose-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 1.1rem; border-bottom: 1px solid var(--border); min-height: 48px; flex-wrap: wrap; }
.compose-row > label { width: 54px; color: var(--text-faint); font-size: .82rem; font-weight: 600; flex-shrink: 0; }
.compose-row .bare { flex: 1; border: 0; background: transparent; color: var(--text); font: 400 .9rem var(--font); padding: .35rem 0; min-width: 160px; }
.compose-row .bare:focus { outline: none; }
.compose-row select.bare { cursor: pointer; }
.recipient {
  display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .35rem .2rem .25rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem;
}
.recipient.external { border-color: rgba(210, 153, 34, .5); }
.recipient button { border: 0; background: none; color: var(--text-faint); cursor: pointer; padding: 0 .2rem; }
.editor-toolbar { display: flex; gap: .15rem; padding: .45rem .75rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-2); }
.editor-toolbar .btn-icon { width: 32px; height: 32px; font-size: .82rem; }
.editor-toolbar .sep { width: 1px; background: var(--border); margin: .3rem .3rem; }
.editor { min-height: 300px; padding: 1.25rem; font-size: .92rem; line-height: 1.65; outline: none; }
.editor p { margin-bottom: .8rem; }
.signature { color: var(--text-dim); border-top: 1px dashed var(--border); padding-top: .8rem; margin-top: 1rem; font-size: .85rem; }
.compose-actions { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.upload { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); color: var(--text-dim); font-size: .82rem; }
.split-btn { display: inline-flex; }
.split-btn .btn:first-child { border-radius: 999px 0 0 999px; padding-right: .9rem; }
.split-btn .btn:last-child { border-radius: 0 999px 999px 0; padding: 0 .75rem; border-left: 1px solid rgba(0, 16, 22, .25); }

/* Configurações do webmail (menu na coluna da lista) */
.settings-menu { padding: .75rem; display: flex; flex-direction: column; gap: .2rem; }
.settings-menu .nav-title { margin-top: .8rem; }
.settings-chips { display: none; }

/* Filtros avançados da busca (recolhíveis, no topo da lista) */
.search-filters { border-bottom: 1px solid var(--border); }
.search-filters > summary { cursor: pointer; padding: .6rem 1rem; font-size: .82rem; font-weight: 600; color: var(--accent-light); list-style: none; display: flex; align-items: center; gap: .5rem; }
.search-filters > summary::-webkit-details-marker { display: none; }
.search-filters > summary::after { content: "\f078"; font: 900 .7rem "Font Awesome 6 Free"; margin-left: auto; transition: transform .2s; }
.search-filters[open] > summary::after { transform: rotate(180deg); }
.search-filters > form { padding: .25rem 1rem 1rem; }
.msg mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 .1rem; }

/* Responsivo do webmail */
@media (max-width: 1280px) { .webmail { --folders-w: 220px; --list-w: 380px; } }
@media (max-width: 1100px) {
  .webmail { --list-w: 340px; }
  .mail { grid-template-columns: var(--list-w) minmax(0, 1fr); }
  .webmail .topbar .brand { width: auto; }
  .webmail .topbar .search { flex-shrink: 1; min-width: 0; }
  .mail.mail-2col { grid-template-columns: minmax(0, 1fr); }
  .folders {
    position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%);
    transition: transform .3s var(--ease); box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .mail .folders { transform: none; }
  .webmail .menu-btn { display: inline-flex; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
}
@media (max-width: 760px) {
  .mail { grid-template-columns: minmax(0, 1fr); }
  .mail:not(.is-reading) .reader { display: none; }
  .mail.is-reading .list-pane { display: none; }
  .settings-chips { display: flex; }
  .resizer { display: none; }
  .webmail .topbar .search, .live-badge { display: none; }
  .webmail .topbar .brand-logo { height: 24px; }
  .webmail .topbar .brand { width: auto; }
  .reader-body { padding: 1rem; }
  .composer-body { padding: 1rem; }
  .mobile-only { display: inline-flex !important; }
}
.mobile-only { display: none !important; }

/* ---------- Rodapé "Desenvolvido por Kyrux" (todas as páginas) ---------- */
.site-footer {
  flex-shrink: 0; padding: .9rem 1.5rem; text-align: center; font-size: .78rem; color: var(--text-faint);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--text-dim); font-weight: 600; }
.site-footer a:hover { color: var(--accent-light); }
.main > .content { flex: 1; }
/* Webmail ocupa a tela toda: rodapé fino abaixo das colunas */
.webmail > .site-footer { padding: .4rem 1rem; font-size: .72rem; background: var(--bg-alt); }
/* Telas de entrada: rodapé sempre no pé da página, separado do formulário */
.auth-main > .site-footer { width: 100%; margin-top: 2rem; border-top: 0; padding: 1rem 0 1.25rem; }

/* =========================================================
   COMPONENTES ADICIONAIS
   ========================================================= */

/* Código-fonte da mensagem (sempre texto puro) */
.source {
  margin: 0; padding: 1rem; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border);
  font: .78rem/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; color: var(--text-dim);
}

/* Convite de agenda */
.invite { display: flex; gap: 1.1rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.invite-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; flex-shrink: 0; align-self: flex-start; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); padding: .5rem 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.invite-date strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; letter-spacing: 0; }

/* Mini calendário */
.mini-cal { display: flex; flex-direction: column; gap: .5rem; font-size: .8rem; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-grid b { color: var(--text-faint); font-weight: 600; font-size: .7rem; padding: .2rem 0; }
.mini-grid span { padding: .3rem 0; border-radius: 8px; position: relative; }
.mini-grid span.has::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.mini-grid span.today { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Calendário mensal */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.month .dow { padding: .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.month .day { min-height: 104px; padding: .35rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month .day:nth-child(7n + 7) { border-right: 0; }
.month .day.out { background: var(--bg-alt); }
.month .day.out .num { color: var(--text-faint); }
.month .num { font-size: .78rem; font-weight: 600; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.month .day.today .num { background: var(--accent); color: var(--accent-ink); }
.ev {
  display: block; font-size: .72rem; padding: .15rem .4rem; border-radius: 5px; color: var(--text); text-decoration: none;
  background: color-mix(in srgb, var(--ev) 18%, transparent); border-left: 3px solid var(--ev); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ev:hover { text-decoration: none; background: color-mix(in srgb, var(--ev) 30%, transparent); }
@media (max-width: 760px) { .month .day { min-height: 64px; } .ev { font-size: 0; padding: 0; height: 6px; } }

/* Tarefas */
.task-group { display: flex; flex-direction: column; }
.task-group > .nav-title { padding-left: 0; }
.task { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .4rem; flex-wrap: wrap; }
.task:hover { border-color: var(--border-strong); }
.task-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.task.done .task-title { text-decoration: line-through; color: var(--text-faint); }
.task-board { display: flex; flex-direction: column; }
.task-board > .task-head { padding-left: 0; margin-top: .4rem; }
.task { flex-wrap: nowrap; justify-content: flex-start; gap: .5rem; padding: .45rem .5rem .45rem .7rem; }
.task.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.task-select { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; margin: 0 .15rem; }
.task-done {
  border: 0; background: transparent; color: var(--text-faint); font-size: 1.15rem; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.task-done:hover { color: var(--success); background: var(--success-soft); }
.task.done .task-done { color: var(--success); }
.task-title {
  flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; color: var(--text); font: 500 .9rem/1.4 var(--font);
  padding: .35rem .25rem; cursor: pointer; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-title:hover { color: var(--accent-light); }
.task.done .task-title { text-decoration: line-through; color: var(--text-faint); }
.task-meta { flex-shrink: 0; }
.task-menu > summary { width: 32px; height: 32px; }
@media (max-width: 760px) { .task { flex-wrap: wrap; } .task-meta { width: 100%; padding-left: 4.6rem; } }

/* Barra de seleção múltipla */
.task-bulk { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); }
.task-bulk.active { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.task-bulk [aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Menu suspenso (details/summary, sem JS para abrir) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > .menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 230px; padding: .35rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.task-menu > .menu { left: auto; right: 0; }
.menu button {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .65rem; border: 0; border-radius: 6px; background: transparent;
  color: var(--text); font: 500 .85rem var(--font); text-align: left; cursor: pointer;
}
.menu button i { width: 16px; text-align: center; color: var(--text-faint); }
.menu button:hover, .menu button:focus-visible { background: var(--surface-hover); }
.menu button.danger, .menu button.danger i { color: var(--danger); }
.menu button.danger:hover { background: var(--danger-soft); }
.menu-label { padding: .5rem .65rem .2rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.menu hr { margin: .3rem 0; }

/* Janela modal (dialog nativo) */
dialog.modal {
  width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: auto;
}
dialog.modal-sm { width: min(420px, calc(100vw - 2rem)); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.subtasks { display: flex; flex-direction: column; gap: .45rem; padding: .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Aviso flutuante com "Desfazer" */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 2.5rem; transform: translateX(-50%); display: flex; align-items: center; gap: .75rem;
  padding: .55rem .6rem .55rem 1rem; border-radius: 999px; background: #0A0E14; color: #F5F7FA; box-shadow: var(--shadow); font-size: .86rem;
  border: 1px solid rgba(255, 255, 255, .12);
}
.toast[hidden] { display: none; }
.toast .btn-ghost { color: #5AC9E2; }
.task-handle {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 32px; margin: -.3rem -.2rem -.3rem -.45rem;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-faint); cursor: grab; touch-action: none; flex-shrink: 0;
}
.task-handle:hover, .task-handle:focus-visible { color: var(--text); background: var(--surface-hover); }
.task.dragging { border-color: var(--accent); box-shadow: 0 10px 28px -12px var(--accent-glow); opacity: .92; }
body.task-sorting, body.task-sorting .task-handle { cursor: grabbing; user-select: none; }

/* Códigos de recuperação */
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.recovery-codes span { padding: .55rem; text-align: center; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px dashed var(--border-strong); letter-spacing: .06em; }

/* Conversa de chamado */
.ticket-msg { display: flex; gap: .85rem; padding: .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ticket-msg.staff { background: var(--accent-soft); border-color: transparent; }
.ticket-msg.note { background: var(--warning-soft); border-color: transparent; }
.ticket-body { margin-top: .35rem; font-size: .9rem; }
.ticket-body p + p { margin-top: .5rem; }

/* Páginas de erro / sessão / manutenção */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.error-card { max-width: 520px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.error-card .error-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); padding: .3rem .8rem; border-radius: 999px; background: var(--accent-soft); }
.error-card h1 { font-size: 1.8rem; }

/* Documentos legais */
.doc-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.5rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.doc { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; }
.doc-toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: .4rem; font-size: .86rem; }
.doc-toc a { color: var(--text-dim); }
.doc-toc a:hover { color: var(--accent-light); }
.doc-body { display: flex; flex-direction: column; gap: 1.25rem; max-width: 720px; line-height: 1.7; font-size: .95rem; }
.doc-body h1 { font-size: 2rem; }
.doc-body h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.doc-body section { scroll-margin-top: 90px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 1.5rem; } .doc-toc { position: static; } }

/* Login com a marca do cliente (html.tenant) */
.tenant-auth .auth-side { background: var(--tenant-login); }
.tenant-auth .auth-side::before { background: radial-gradient(circle, var(--tenant-glow) 0%, transparent 65%); }
.tenant-auth .auth-side h2 span, .tenant-auth .auth-points i { color: var(--tenant-highlight); }
.tenant-auth .auth-side p { color: rgba(255, 255, 255, .72); }
.tenant-auth .auth-points div { color: rgba(255, 255, 255, .85); }
.tenant-auth .tenant-copy { color: rgba(255, 255, 255, .45) !important; }

/* =========================================================
   FORMULÁRIOS EM ETAPAS (cadastro e logins)
   ========================================================= */
.wizard-step { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Sem JavaScript: todas as etapas visíveis e sem botões de navegação */
form:not(.js-wizard) .wizard-nav, form:not(.js-wizard) .wizard-steps { display: none; }
form:not(.js-wizard) .wizard-step + .wizard-step { border-top: 1px solid var(--border); padding-top: 1rem; }
.wizard-steps { justify-content: center; }
.wizard-steps li { font-size: .78rem; }
.wizard-steps .sep { width: 18px; }
.wizard-nav.row { flex-wrap: nowrap; }
.wizard-progress { display: flex; flex-direction: column; gap: .4rem; }
.step-q { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.input-lg { padding: .8rem 1rem; font-size: 1rem; }
.input-icon .input-lg { padding-left: 2.4rem; }
form:not(.js-wizard) .wizard-progress, form:not(.js-wizard) .login-as { display: none; }
.review { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .88rem; }
.review .row-between { flex-wrap: nowrap; }
.review .row-between > span:last-child { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.login-as { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem .5rem .5rem; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .86rem; align-self: flex-start; max-width: 100%; }
.login-as span[data-review] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-as a { white-space: nowrap; font-size: .8rem; }
/* Login: o e-mail informado ocupa a mesma largura e altura do campo de senha */
.auth .login-as { align-self: stretch; min-height: 50px; box-sizing: border-box; padding: .4rem 1rem .4rem .6rem; border-radius: var(--radius-sm); }
.auth .login-as span[data-review] { flex: 1; min-width: 0; }

/* =========================================================
   MARCA PRÓPRIA (plano Plus)
   ========================================================= */
.plans-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.brand-layout { align-items: start; }
.brand-sticky { position: sticky; top: calc(var(--topbar-h) + 1rem); }
@media (max-width: 1100px) { .brand-sticky { position: static; } }
.color-field { display: flex; gap: .5rem; }
.color-field input[type=color] {
  width: 46px; height: 42px; flex-shrink: 0; padding: 3px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--input-bg); cursor: pointer;
}
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); background: var(--sw); cursor: pointer; padding: 0; }
.swatch:hover { box-shadow: 0 0 0 2px var(--accent); }
.logo-slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; border-radius: var(--radius-sm);
  border: 1px dashed rgba(10, 14, 20, .25); background: #fff; color: #0A0E14; cursor: pointer;
}
.logo-slot .faint { color: rgba(10, 14, 20, .5); }
.logo-slot.dark { background: #0A0E14; color: #F5F7FA; border-color: rgba(255, 255, 255, .25); }
.logo-slot.dark .faint { color: rgba(245, 247, 250, .5); }
.logo-slot.dark .brand-mock { color: #fff; }
.logo-slot .btn-secondary { color: inherit; border-color: currentColor; }
.logo-slot-img { height: 44px; display: flex; align-items: center; }
.logo-slot-img img { max-height: 44px; max-width: 200px; }
.brand-mock { font-family: var(--font-display); font-weight: 700; color: var(--b-primary, #7c3aed); white-space: nowrap; }
.favicon-mock { width: 36px; height: 36px; border-radius: 8px; background: #7c3aed; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-icon.ok { background: var(--success-soft); color: var(--success); }

/* Prévia do webmail com as cores do cliente */
.brand-preview { --b-on: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: .62rem; background: #fff; color: #0A0E14; line-height: 1.35; }
.bp-top { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-bottom: 1px solid #e5e7eb; }
.bp-logo { font-size: .75rem; display: inline-flex; align-items: center; }
.bp-logo img { max-height: 18px; max-width: 110px; }
.bp-search { flex: 1; height: 12px; border-radius: 4px; background: #f1f3f5; }
.bp-avatar { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .5rem;
  background: color-mix(in srgb, var(--b-primary) 18%, #fff); color: var(--b-primary); }
.bp-body { display: grid; grid-template-columns: 30% 32% 1fr; min-height: 150px; }
.bp-side { background: var(--b-side); padding: .5rem; display: flex; flex-direction: column; gap: .3rem; border-right: 1px solid #e5e7eb; }
.bp-btn { background: var(--b-primary); color: var(--b-on); border-radius: 999px; padding: .25rem .5rem; text-align: center; font-weight: 600; }
.bp-btn.sm { align-self: flex-start; }
.bp-link { padding: .2rem .35rem; border-radius: 4px; display: flex; justify-content: space-between; }
.bp-link.active { background: color-mix(in srgb, var(--b-primary) 15%, transparent); color: var(--b-primary); font-weight: 600; }
.bp-list { border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.bp-msg { padding: .35rem .45rem; border-bottom: 1px solid #f1f3f5; display: flex; flex-direction: column; border-left: 2px solid transparent; }
.bp-msg.sel { background: color-mix(in srgb, var(--b-primary) 10%, #fff); border-left-color: var(--b-primary); }
.bp-read { padding: .5rem; display: flex; flex-direction: column; gap: .35rem; }
.bp-a { color: var(--b-primary); text-decoration: underline; }
.brand-preview.bp-dark { background: #0a0a0a; color: #F5F7FA; }
.bp-dark .bp-top, .bp-dark .bp-side, .bp-dark .bp-list { border-color: #222; }
.bp-dark .bp-side { background: color-mix(in srgb, var(--b-side) 10%, #050505); }
.bp-dark .bp-search { background: #161616; }
.bp-dark .bp-msg { border-color: #1a1a1a; }
.bp-dark .bp-msg.sel { background: color-mix(in srgb, var(--b-primary) 20%, #0a0a0a); }
.bp-dark .bp-a, .bp-dark .bp-link.active { color: color-mix(in srgb, var(--b-primary) 55%, #fff); }
.bp-dark .brand-mock { color: color-mix(in srgb, var(--b-primary) 55%, #fff); }
.brand-preview.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 110px; }
.bp-login-side { background: var(--b-login); color: #fff; padding: .7rem; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; font-size: .7rem; font-weight: 600; }
.bp-login-side .brand-mock { color: #fff; }
.bp-login-form { padding: .7rem; display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.bp-input { height: 14px; border-radius: 4px; border: 1px solid #d0d5da; }

/* =========================================================
   CATÁLOGO DE PÁGINAS (index)
   ========================================================= */
.catalog { max-width: 1180px; margin: 0 auto; padding: 3rem 1.25rem 4rem; display: flex; flex-direction: column; gap: 2rem; }
.catalog-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.catalog-head .catalog-logo { height: 48px; width: auto; }
.catalog-section h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.catalog-section > p { color: var(--text-dim); margin-bottom: 1rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.catalog-grid a {
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s;
}
.catalog-grid a:hover { border-color: var(--accent); text-decoration: none; }
.catalog-grid a strong { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.catalog-grid a strong i { color: var(--accent-light); width: 16px; }
.catalog-grid a span { color: var(--text-dim); font-size: .8rem; }
