/* Componentes do design system do Instituto Apis em CSS puro.
   Cada bloco reproduz o componente React do design system (pasta components/ do pacote do DS),
   com todas as variantes, mesmo as que nenhuma tela usa ainda. */

/* Icon: Lucide, traço de 2px, pintado com a cor do texto */
.icon {
  display: inline-block; flex: none;
  width: var(--icon-size, 20px); height: var(--icon-size, 20px);
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

/* Button */
.btn {
  --icon-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-md); padding: 0 var(--space-4);
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  font: var(--weight-semibold) var(--size-body)/1 var(--font-sans); white-space: nowrap; text-decoration: none;
  cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
/* A cor do texto se repete no hover: num <a class="btn">, o hover de link do DS trocaria a cor */
.btn--primary, .btn--primary:hover { background: var(--action-primary); color: var(--text-on-brand); }
.btn--primary:hover:not(:disabled) { background: var(--action-primary-hover); }
.btn--primary:active:not(:disabled) { background: var(--action-primary-press); }
.btn--secondary, .btn--secondary:hover { background: var(--action-secondary); color: var(--text-on-dark); }
.btn--secondary:hover:not(:disabled) { background: var(--action-secondary-hover); }
.btn--outline, .btn--outline:hover { background: transparent; color: var(--apis-navy-900); border-color: var(--apis-navy-900); }
.btn--outline:hover:not(:disabled) { background: var(--apis-navy-50); }
.btn--ghost, .btn--ghost:hover { background: transparent; color: var(--apis-navy-900); }
.btn--ghost:hover:not(:disabled) { background: var(--apis-navy-50); }
.btn--inverse, .btn--inverse:hover { background: var(--apis-white); color: var(--apis-orange-700); }
.btn--inverse:hover:not(:disabled) { background: var(--apis-orange-50); }
.btn--danger, .btn--danger:hover { background: var(--apis-danger-500); color: var(--text-on-dark); }
.btn--danger:hover:not(:disabled) { background: var(--apis-danger-700); }
.btn--sm { --icon-size: 16px; height: var(--control-sm); padding: 0 var(--space-3); font-size: var(--size-small); }
.btn--lg { --icon-size: 20px; height: var(--control-lg); padding: 0 var(--space-6); font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }

/* IconButton */
.icon-btn {
  --icon-size: 19px;
  display: inline-grid; place-items: center; flex: none; width: var(--control-md); height: var(--control-md); padding: 0;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  background: transparent; color: var(--apis-navy-900);
  transition: background var(--duration-fast) var(--ease-standard);
}
.icon-btn:hover:not(:disabled) { background: var(--apis-navy-50); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn--outline { background: var(--apis-white); border-color: var(--border-strong); }
.icon-btn--primary { background: var(--action-primary); color: var(--text-on-brand); }
.icon-btn--primary:hover:not(:disabled) { background: var(--action-primary-hover); }
.icon-btn--sm { --icon-size: 15px; width: var(--control-sm); height: var(--control-sm); }
.icon-btn--lg { --icon-size: 23px; width: var(--control-lg); height: var(--control-lg); }

/* Badge: rótulo de estado, o ponto é um hexágono */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); font: var(--weight-semibold) var(--size-caption)/1 var(--font-sans); letter-spacing: .02em; white-space: nowrap;
  background: var(--apis-gray-100); color: var(--apis-gray-700);
}
.badge__dot { width: 8px; height: 9px; flex: none; background: currentColor; clip-path: var(--clip-hex); }
.badge--brand { background: var(--apis-orange-50); color: var(--apis-orange-700); }
.badge--accent { background: var(--apis-lime-100); color: var(--apis-lime-800); }
.badge--navy { background: var(--apis-navy-50); color: var(--apis-navy-900); }
.badge--success { background: var(--apis-success-50); color: var(--apis-success-700); }
.badge--warning { background: var(--apis-warning-50); color: var(--apis-warning-700); }
.badge--danger { background: var(--apis-danger-50); color: var(--apis-danger-700); }
.badge--info { background: var(--apis-info-50); color: var(--apis-info-700); }

/* Tag: pílula de filtro (aria-pressed marca a selecionada) */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--space-3);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--apis-white); color: var(--apis-navy-900); font: var(--weight-regular) var(--size-small)/1 var(--font-sans); white-space: nowrap;
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.tag:hover { border-color: var(--apis-navy-300); }
.tag[aria-pressed="true"] { border-color: var(--apis-navy-900); background: var(--apis-navy-900); color: var(--apis-white); }
.tag-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-group__label { margin-right: var(--space-1); font: var(--weight-bold) 13px/1 var(--font-sans); color: var(--text-subheading); }

/* Card */
.card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6); }
.card--flush { padding: 0; overflow: hidden; }
/* position: relative mantém dentro da rolagem os elementos absolutos (ex.: .visually-hidden nas tabelas largas) */
.card--scroll { position: relative; padding: 0; overflow: auto; }
.card--elevated { border-color: var(--border-subtle); box-shadow: var(--shadow-sm); }
.card--sunken { background: var(--surface-sunken); border-color: transparent; }
.card--interactive { cursor: pointer; transition: box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base); }
.card--interactive:hover { box-shadow: var(--shadow-md); border-color: var(--apis-navy-200); }
.card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-6) var(--space-4); }
.card__pad { padding: var(--space-4) var(--space-5); }

/* Campos: Input, Select, Textarea */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font: var(--type-body); }
.field__label { font: var(--weight-semibold) var(--size-small)/1.25 var(--font-sans); color: var(--apis-blue-700); }
/* <legend> não participa do gap do fieldset: o espaço até o conteúdo vem da margem */
legend.field__label { margin-bottom: 6px; }
.field__hint { font: var(--weight-regular) 13px/1.4 var(--font-sans); color: var(--text-muted); }
.field__error { font: var(--weight-regular) 13px/1.4 var(--font-sans); color: var(--apis-danger-500); }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--field-min, 200px), 1fr)); gap: var(--space-3) var(--space-4); }

.input, .select, .textarea {
  width: 100%; min-width: 0; background: var(--apis-white); color: var(--text-body);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  font: var(--weight-regular) var(--size-body)/1.5 var(--font-sans);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.input, .select { height: var(--control-md); padding: 0 var(--space-3); }
.textarea { padding: 10px var(--space-3); resize: vertical; min-height: 88px; }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--apis-danger-500); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-sunken); color: var(--text-muted); }
.input--sm, .select--sm { height: var(--control-sm); }

.input-icon { position: relative; display: flex; }
.input-icon > .icon { --icon-size: 18px; position: absolute; left: var(--space-3); top: 50%; margin-top: -9px; color: var(--text-muted); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }

.select-wrap { position: relative; display: flex; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: var(--space-3); top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
  background: var(--apis-navy-900);
  -webkit-mask: url('../../assets/icons/chevron-down.svg') center / contain no-repeat;
  mask: url('../../assets/icons/chevron-down.svg') center / contain no-repeat;
}

/* Checkbox, Radio e Switch: controles nativos com a aparência do DS */
.check { display: inline-flex; align-items: center; gap: 10px; font: var(--type-body); color: var(--text-body); cursor: pointer; }
.check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.checkbox, .radio, .switch { appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer; }
.checkbox {
  display: inline-grid; place-content: center; width: 20px; height: 20px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--apis-white);
  transition: all var(--duration-fast);
}
.checkbox:checked { background: var(--action-primary); border-color: var(--action-primary); }
.checkbox:checked::before {
  content: ''; width: 14px; height: 14px; background: var(--apis-white);
  -webkit-mask: url('../../assets/icons/check.svg') center / contain no-repeat;
  mask: url('../../assets/icons/check.svg') center / contain no-repeat;
}
.radio {
  display: inline-grid; place-content: center; width: 20px; height: 20px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--apis-white);
}
.radio:checked { border-color: var(--action-primary); }
.radio:checked::before { content: ''; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--action-primary); }
.switch {
  position: relative; width: 40px; height: 22px; border-radius: var(--radius-pill); background: var(--apis-gray-300);
  transition: background var(--duration-base) var(--ease-standard);
}
.switch::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: var(--radius-pill);
  background: var(--apis-white); box-shadow: var(--shadow-sm); transition: left var(--duration-base) var(--ease-standard);
}
.switch:checked { background: var(--action-primary); }
.switch:checked::before { left: 21px; }
/* Desabilitado: o rótulo inteiro esmaece (.check, como no DS); o controle solto esmaece sozinho */
.checkbox:disabled, .radio:disabled, .switch:disabled { cursor: not-allowed; }
:not(.check) > .checkbox:disabled, :not(.check) > .radio:disabled, :not(.check) > .switch:disabled { opacity: .45; }

/* Formulário em cartão (configurações, novo projeto) */
.form-card { display: flex; flex-direction: column; gap: var(--space-5); }
/* Nos contêineres espaçados por gap, o parágrafo não soma a margem que o DS dá a <p> */
.stack > p, .form-card > p, .dialog__body p { margin: 0; }
/* Texto de apoio de um formulário ou cartão */
.help-text { margin: 0; font: var(--type-small); color: var(--text-muted); }

/* Linha com a altura de um controle (para alinhar switches a campos vizinhos) */
.control-line { display: flex; align-items: center; min-height: var(--control-md); }

/* Seção recolhível (Mais opções) */
.disclosure { border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.disclosure > summary {
  display: flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-3); cursor: pointer; list-style: none;
  font: var(--weight-semibold) var(--size-small)/1.3 var(--font-sans); color: var(--apis-navy-900);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before {
  content: ''; width: 16px; height: 16px; flex: none; background: currentColor; transition: transform var(--duration-fast) var(--ease-standard);
  -webkit-mask: url('../../assets/icons/chevron-down.svg') center / contain no-repeat; mask: url('../../assets/icons/chevron-down.svg') center / contain no-repeat;
  transform: rotate(-90deg);
}
.disclosure[open] > summary::before { transform: none; }
.disclosure > :not(summary) { padding: var(--space-1) var(--space-3) var(--space-4); }

/* Cartões de escolha (frequência do e-mail) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong); background: var(--apis-white); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--apis-orange-500); background: var(--apis-orange-50); }
.choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.choice input { margin-top: 2px; }
.choice__label { display: block; font: var(--weight-semibold) var(--size-body)/1.3 var(--font-sans); color: var(--apis-navy-900); }
.choice__desc { display: block; font: var(--weight-regular) var(--size-small)/1.4 var(--font-sans); color: var(--text-muted); }

/* Tabs: sublinhado laranja na aba ativa */
.tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--border-default); }
.tab {
  display: inline-flex; gap: 6px; align-items: center; padding: 10px 0; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  font: var(--weight-regular) var(--size-body)/1.2 var(--font-sans); color: var(--text-muted);
}
.tab[aria-selected="true"] { border-bottom-color: var(--apis-orange-500); font-weight: var(--weight-semibold); color: var(--apis-navy-900); }

/* Dialog: sobreposição navy, painel branco e rodapé cinza */
.dialog {
  width: min(calc(100% - 32px), var(--dialog-w, 480px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--apis-white); color: var(--text-body); overflow: auto;
}
.dialog::backdrop { background: var(--surface-overlay); }
.dialog__form { display: contents; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-5) 0 var(--space-6); }
.dialog__title { margin: 0; padding-top: 6px; font: var(--type-h4); color: var(--text-heading); }
.dialog__body { display: flex; flex-direction: column; gap: 14px; padding: var(--space-3) var(--space-6) var(--space-6); font: var(--type-body); }
.dialog__foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2);
  padding: var(--space-4) var(--space-6); background: var(--surface-sunken); border-top: 1px solid var(--border-subtle);
}

/* Toast */
.toast-region { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: var(--space-2); width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; gap: var(--space-3); align-items: flex-start; width: 360px; max-width: 100%; padding: 14px var(--space-4);
  background: var(--apis-navy-900); color: var(--apis-white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.toast > .icon { margin-top: 1px; }
.toast--success > .icon { color: var(--apis-lime-500); }
.toast--warning > .icon { color: var(--apis-orange-300); }
.toast--danger > .icon { color: #FF9A90; }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font: var(--weight-semibold) 15px/1.3 var(--font-sans); }
.toast__text { margin-top: 2px; font: var(--weight-regular) var(--size-small)/1.45 var(--font-sans); color: var(--apis-navy-100); }
.toast__action { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--apis-white); font: var(--weight-semibold) var(--size-small)/1.3 var(--font-sans); text-decoration: underline; }
.toast__close { --icon-size: 16px; padding: 0; border: 0; background: none; color: var(--apis-navy-100); }

/* Tooltip: dica curta em navy, por hover ou foco */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; left: 50%; bottom: 100%; z-index: 50; margin-bottom: var(--space-2);
  transform: translateX(-50%); padding: 6px 10px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  background: var(--apis-navy-900); color: var(--apis-white); font: var(--weight-regular) 13px/1.35 var(--font-sans);
  white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity var(--duration-fast);
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; }

/* HexIcon: ícone dentro do hexágono da marca */
.hex-icon { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--hex, 48px); height: calc(var(--hex, 48px) * 1.1); }
.hex-icon > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex-icon > svg path { fill: none; stroke: var(--apis-navy-900); stroke-width: 5; stroke-linejoin: round; }
.hex-icon > .icon { position: relative; --icon-size: calc(var(--hex, 48px) * .46); color: var(--apis-navy-900); }
.hex-icon--orange > svg path { fill: var(--apis-orange-500); stroke: var(--apis-orange-500); }
.hex-icon--orange > .icon { color: var(--apis-white); }
.hex-icon--lime > svg path { fill: var(--apis-lime-500); stroke: var(--apis-lime-500); }
.hex-icon--navy > svg path { fill: var(--apis-navy-900); stroke: var(--apis-navy-900); }
.hex-icon--navy > .icon { color: var(--apis-white); }

/* Hexágono de cor sólida (status) */
.hex { display: inline-block; flex: none; width: var(--hex-w, 10px); height: calc(var(--hex-w, 10px) * 1.1); clip-path: var(--clip-hex); background: var(--hex-color, var(--apis-gray-300)); }
.hex--green { --hex-color: var(--apis-success-500); }
.hex--yellow { --hex-color: var(--apis-warning-500); }
.hex--red { --hex-color: var(--apis-danger-500); }
.hex--stale { --hex-color: var(--apis-gray-500); }
.hex--none { --hex-color: var(--apis-gray-300); }

/* Avatar hexagonal com iniciais */
.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 35px; clip-path: var(--clip-hex); background: var(--apis-navy-900); color: var(--apis-white); font: var(--weight-semibold) var(--size-caption)/1 var(--font-sans); }

/* Contador laranja (propostas pendentes) */
.count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--action-primary); color: var(--text-on-brand); font: var(--weight-bold) var(--size-caption)/20px var(--font-sans); text-align: center; }

/* Avisos dentro das telas */
.note { display: flex; gap: 10px; align-items: flex-start; padding: var(--space-3) 14px; border-radius: var(--radius-md); font: var(--weight-regular) 15px/1.45 var(--font-sans); }
.note > .icon { --icon-size: 18px; margin-top: 1px; }
.note__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.note__title { font: var(--weight-bold) var(--size-small)/1.3 var(--font-sans); }
.note--info { background: var(--apis-info-50); }
.note--info .note__title, .note--info > .icon { color: var(--apis-blue-700); }
.note--warning { background: var(--apis-warning-50); }
.note--warning .note__title, .note--warning > .icon { color: var(--apis-warning-700); }
.note--danger { background: var(--apis-danger-50); }
.note--danger .note__title, .note--danger > .icon { color: var(--apis-danger-700); }
.note--success { background: var(--apis-success-50); }
.note--success .note__title, .note--success > .icon { color: var(--apis-success-700); }
.note--neutral { background: var(--apis-gray-100); color: var(--apis-gray-700); }
.note--neutral .note__title, .note--neutral > .icon { color: var(--apis-gray-800); }
.note--accent { background: var(--apis-lime-50); }

/* Tabelas de dados */
.table th {
  padding: 10px var(--space-3); border-bottom: 1px solid var(--border-default);
  font: var(--weight-bold) var(--size-caption)/1.2 var(--font-sans); color: var(--text-muted); white-space: nowrap;
}
.table td { padding: 14px var(--space-3); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; font: var(--weight-regular) var(--size-small)/1.35 var(--font-sans); }
.table th:first-child, .table td:first-child { padding-left: var(--space-6); }
.table th:last-child, .table td:last-child { padding-right: var(--space-6); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-click] { cursor: pointer; }
.table tr[data-click]:hover td { background: var(--surface-hover); }
.table__group td { padding-top: var(--space-2); padding-bottom: var(--space-2); background: var(--surface-sunken); border-bottom: 1px solid var(--border-subtle); }
.table__group-title { font: var(--weight-bold) 13px/1.3 var(--font-sans); color: var(--apis-blue-700); margin-right: var(--space-2); }
.table__group-hint { font: var(--weight-regular) 13px/1.3 var(--font-sans); color: var(--text-muted); }
.row-link { padding: 0; border: 0; background: none; text-align: left; color: var(--apis-navy-900); font: var(--weight-semibold) var(--size-body)/1.3 var(--font-sans); text-decoration: none; }
.row-link:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Tabela que vira lista de cartões no celular (.table--stack). A célula .table__lead abre a linha;
   células sem rótulo (cor, ações) ficam ao lado dela; as com data-label descem, uma por linha, com o nome da coluna. */
@media (max-width: 720px) {
  .table.table--stack { min-width: 0; }
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody { display: block; }
  .table--stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; align-items: center; gap: var(--space-2); width: auto !important; padding: 0 !important; border: 0 !important; }
  .table--stack td.table__lead { order: -1; flex: 1 1 0; min-width: 0; }
  .table--stack td.table__lead > * { min-width: 0; }
  .table--stack td[data-label] { order: 1; flex-basis: 100%; }
  .table--stack td[data-label]::before { content: attr(data-label) ":"; flex: none; color: var(--text-muted); font-size: 13px; }
  .table--stack tr[data-click]:hover { background: var(--surface-hover); }
  .table--stack tr[data-click]:hover td { background: none; }
}

/* Lista em cartão (linhas separadas por fio) */
.list > * + * { border-top: 1px solid var(--border-subtle); }

/* Estados de tela: carregando, vazio e erro */
.skeleton { border-radius: var(--radius-md); background: var(--apis-gray-100); animation: pulse 1.4s ease-in-out infinite; }
.skeleton--block { border-radius: var(--radius-lg); }
.spinner { display: inline-block; flex: none; width: var(--spinner, 14px); height: var(--spinner, 14px); border: 2px solid var(--apis-blue-100); border-top-color: var(--apis-blue-700); border-radius: 50%; animation: spin .9s linear infinite; }
.busy { display: flex; align-items: center; gap: var(--space-2); font: var(--weight-regular) var(--size-small)/1.35 var(--font-sans); color: var(--apis-blue-700); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-10); }
.empty__title { margin: 0; font: var(--type-h3); color: var(--text-heading); }
.empty__text { margin: 0; max-width: 560px; font: var(--weight-regular) var(--size-body)/1.5 var(--font-sans); color: var(--text-muted); }
.problem { max-width: 560px; margin: var(--space-16) auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-8); }
.problem__title { margin: 0; font: var(--type-h3); color: var(--text-heading); }
.problem__text { margin: 0; }
/* Detalhes para o suporte (código e rastreio do erro), recolhidos */
.support > summary { cursor: pointer; font: var(--type-small); color: var(--text-muted); }
.support > code { display: block; margin-top: var(--space-1); font: var(--weight-regular) 13px/1.4 var(--font-mono); color: var(--text-muted); overflow-wrap: anywhere; }
/* Frase curta de "nada aqui" dentro de uma lista ou cartão */
.empty-line { margin: 0; padding: var(--space-6); font: var(--type-body); color: var(--text-muted); }
.card__head + .empty-line { padding-top: 0; }

.load-more { display: flex; justify-content: center; padding: var(--space-3); border-top: 1px solid var(--border-subtle); }

kbd { padding: 2px 5px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: var(--weight-semibold) var(--size-caption)/1 var(--font-mono); }

/* Lista de definições (chave em azul aço, valor ao lado) */
.deflist { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) 14px; font: var(--weight-regular) var(--size-small)/1.4 var(--font-sans); }
.deflist dt { font: var(--weight-bold) 13px/1.4 var(--font-sans); color: var(--apis-blue-700); }
