/* Estilos do próprio hub. Componentes do produto ficam em frost.css. */
[hidden] { display: none !important; }
:root {
  --side-w: 248px;
  --top-h: 56px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100%; }
code, .mono { font-family: var(--font-mono); font-size: 0.8125rem; }
code { padding: 0.05rem 0.35rem; border-radius: 6px; background: rgb(var(--accent) / 0.1); color: rgb(var(--fg)); }
p { margin: 0; }
.prose { max-width: 68ch; color: rgb(var(--fg-2)); }
.prose + .prose { margin-top: 0.75rem; }

/* Topbar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  height: var(--top-h); display: flex; align-items: center; gap: 0.75rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.marca { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; color: rgb(var(--fg)); min-width: 0; }
.marca:hover { opacity: 1; }
.marca-k {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2)));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.marca-nome { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; white-space: nowrap; }
.marca-nome span { color: rgb(var(--fg-muted)); font-weight: 500; }
.topbar .espaco { flex: 1; }
.topbar .versao { font-size: 0.75rem; color: rgb(var(--fg-muted)); white-space: nowrap; }
.btn-tema { width: 36px; height: 36px; padding: 0; }
.btn-tema svg { width: 18px; height: 18px; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.lateral {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  height: calc(100vh - var(--top-h)); overflow-y: auto;
  padding: 1.25rem 0.75rem 2rem; border-right: 1px solid var(--hairline);
}
.lateral .nav-item { padding: 0.45rem 0.625rem; }
.lateral .nav-item .n { margin-left: auto; font-size: 11px; color: rgb(var(--fg-muted)); font-variant-numeric: tabular-nums; }
.lateral .sub { padding-left: 1.6rem; font-size: 0.8125rem; }
.lateral .qa-section-header { margin-top: 1rem; }
.conteudo { min-width: 0; padding: 2rem var(--gutter) 4rem; display: flex; flex-direction: column; gap: 4.5rem; }

section > header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--accent)); }
section h1 { text-wrap: balance; }
.titulo-secao { font-family: var(--font-display); font-size: 1.75rem; line-height: 2.1rem; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.sub-titulo { font-size: 1rem; font-weight: 600; margin: 2rem 0 0.875rem; }

/* Abertura */
.abertura { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.abertura h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.abertura .lede { font-size: 1.0625rem; color: rgb(var(--fg-2)); max-width: 60ch; margin-top: 0.875rem; }
.fontes { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }
.fontes h3 { font-size: 0.8125rem; }
.fontes ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8125rem; color: rgb(var(--fg-2)); }
.fontes li { display: grid; grid-template-columns: minmax(0, auto) 1fr; gap: 0.5rem; align-items: baseline; }
.fontes li code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.atalhos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; margin-top: 1.75rem; }
.atalho { padding: 1rem 1.125rem; text-decoration: none; color: rgb(var(--fg)); display: flex; flex-direction: column; gap: 0.25rem; transition: border-color .15s, transform .15s; }
.atalho:hover { opacity: 1; border-color: rgb(var(--accent) / 0.45); }
.atalho .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.atalho .rot { font-size: 0.8125rem; color: rgb(var(--fg-2)); }

/* Arquitetura */
.diagrama { padding: 1rem; overflow-x: auto; }
.diagrama svg { display: block; width: 100%; min-width: 760px; height: auto; }
.dg-box { fill: rgb(var(--surface)); stroke: rgb(var(--border)); }
.dg-box.central { fill: rgb(var(--accent) / 0.12); stroke: rgb(var(--accent) / 0.6); }
.dg-box.borda { fill: rgb(var(--accent-2) / 0.08); stroke: rgb(var(--accent-2) / 0.5); }
.dg-box.infra { fill: rgb(var(--surface-2)); stroke: rgb(var(--border)); }
.dg-t { fill: rgb(var(--fg)); font: 600 14px var(--font-sans); }
.dg-s { fill: rgb(var(--fg-muted)); font: 400 11.5px var(--font-sans); }
.dg-l { fill: rgb(var(--fg-2)); font: 500 11px var(--font-sans); }
.dg-g { fill: rgb(var(--fg-muted)); font: 600 10px var(--font-sans); letter-spacing: 0.08em; }
.dg-seta { stroke: rgb(var(--fg-muted)); stroke-width: 1.4; fill: none; }
.dg-seta.lan { stroke: rgb(var(--accent-2)); stroke-dasharray: 5 4; }
.dg-ponta { fill: rgb(var(--fg-muted)); }
.dg-ponta-lan { fill: rgb(var(--accent-2)); }
.legenda { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: rgb(var(--fg-muted)); padding: 0.75rem 0.25rem 0; }
.legenda span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid; }

.tabela-wrap { overflow-x: auto; }
.tabela-wrap .table-erp { min-width: 720px; }
.table-erp td code { white-space: nowrap; }
.table-erp td small { display: block; color: rgb(var(--fg-muted)); font-size: 0.75rem; }

.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; }
.cartao { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.cartao h3 { font-size: 0.9375rem; }
.cartao p, .cartao li { font-size: 0.875rem; color: rgb(var(--fg-2)); }
.cartao ol, .cartao ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cartao .rodape { margin-top: auto; padding-top: 0.5rem; font-size: 0.75rem; color: rgb(var(--fg-muted)); }

/* Frost — fundamentos */
.principios { counter-reset: p; }
.principio { padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: 0.3rem; }
.principio h3 { font-size: 0.9375rem; }
.principio p { font-size: 0.8125rem; color: rgb(var(--fg-2)); }

.tokens { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.tokens th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(var(--fg-muted)); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--head-line); }
.tokens td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
.tokens tr:last-child td { border-bottom: 0; }
.amostra { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-family: var(--font-mono); font-size: 0.75rem; color: rgb(var(--fg-2)); }
.amostra i { width: 22px; height: 22px; border-radius: 6px; display: inline-block; border: 1px solid rgba(127, 127, 127, 0.3); flex-shrink: 0; }

.escala { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); border-radius: var(--radius-lg); overflow: hidden; }
.escala div { height: 52px; display: flex; align-items: flex-end; padding: 0.35rem; font-size: 10px; font-family: var(--font-mono); }
.escala-rot { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 0.4rem; font-size: 0.8125rem; }
.escala-rot b { font-weight: 600; }
.escala-rot span { color: rgb(var(--fg-muted)); font-size: 0.75rem; }

.especime { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.especime .linha { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--row-line); }
.especime .linha:last-child { border-bottom: 0; padding-bottom: 0; }
.especime .meta { font-size: 0.75rem; color: rgb(var(--fg-muted)); }
.especime .meta b { display: block; color: rgb(var(--fg-2)); font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; }

.raios { display: flex; flex-wrap: wrap; gap: 1rem; }
.raio { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: rgb(var(--fg-muted)); }
.raio div { width: 72px; height: 56px; background: rgb(var(--accent) / 0.14); border: 1px solid rgb(var(--accent) / 0.45); }
.raio b { color: rgb(var(--fg-2)); font-family: var(--font-mono); font-weight: 500; }

/* Componentes */
.comp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 0; overflow: hidden; }
.comp + .comp { margin-top: 0.875rem; }
.comp .palco { padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; min-width: 0; }
.comp .palco.col { flex-direction: column; align-items: stretch; }
.comp .regra { padding: 1.25rem; border-left: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8125rem; color: rgb(var(--fg-2)); min-width: 0; }
.comp .regra h3 { font-size: 0.9375rem; color: rgb(var(--fg)); }
.comp .regra .classes { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.comp .regra ul { margin: 0; padding-left: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: 100%; }
.barra-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; width: 100%; }
.barra-filtros .esp { flex: 1; }
.badge-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 10px; font-weight: 600; background: rgb(var(--accent) / 0.16); color: rgb(var(--accent)); }
.mini-nav { width: 240px; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem; }
.mini-nav .nav-item { padding: 0.45rem 0.625rem; }
.mini-nav svg, .ico { width: 16px; height: 16px; flex-shrink: 0; }
.kanban-demo { display: flex; gap: 0.75rem; overflow-x: auto; width: 100%; padding-bottom: 0.25rem; }
.kanban-demo .kanban-col { width: 15rem; }
.kanban-card .meta { display: flex; justify-content: space-between; margin-top: 0.375rem; font-size: 0.75rem; color: rgb(var(--fg-muted)); }
.modal-demo { width: min(100%, 420px); overflow: hidden; }
.modal-demo .corpo { padding: 1rem 1.25rem; font-size: 0.875rem; color: rgb(var(--fg-2)); display: flex; flex-direction: column; gap: 0.75rem; }
.modal-demo .acoes { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.875rem 1.25rem; border-top: 1px solid var(--modal-border); }
.stepup-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(245 158 11 / 0.16); color: rgb(245 158 11); flex-shrink: 0; }
.skel-demo { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; max-width: 360px; }
.skel-demo .r { display: flex; align-items: center; gap: 0.6rem; }

.shell-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.875rem; }
.esquema { padding: 1rem; }
.esquema svg { width: 100%; height: auto; display: block; }
.es-fundo { fill: rgb(var(--bg-solid)); stroke: rgb(var(--border)); }
.es-nav { fill: rgb(var(--accent) / 0.1); stroke: rgb(var(--accent) / 0.4); }
.es-card { fill: rgb(var(--surface)); stroke: rgb(var(--border)); }
.es-t { fill: rgb(var(--fg-2)); font: 500 11px var(--font-sans); }
.es-m { fill: rgb(var(--accent)); font: 600 10px var(--font-mono); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.checklist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.6rem; font-size: 0.875rem; color: rgb(var(--fg-2)); }
.checklist svg { width: 16px; height: 16px; margin-top: 3px; }
.checklist.sim svg { color: rgb(var(--success)); }
.checklist.nao svg { color: rgb(var(--danger)); }

/* Telas */
.ferramentas-telas { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.5rem; position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 5; padding: 0.75rem; }
.ferramentas-telas .input { max-width: 260px; min-height: 2.25rem; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--soft-bg); border: 1px solid var(--soft-border); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: rgb(var(--fg-2)); font: inherit; font-size: 0.8125rem; padding: 0.3rem 0.7rem; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: rgb(var(--surface)); color: rgb(var(--fg)); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.seg button:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 1px; }
.ferramentas-telas .contagem { margin-left: auto; font-size: 0.75rem; color: rgb(var(--fg-muted)); font-variant-numeric: tabular-nums; }

.grupo-telas + .grupo-telas { margin-top: 3rem; }
.grupo-telas > h2 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; }
.grupo-telas > p { font-size: 0.875rem; color: rgb(var(--fg-muted)); margin: 0.25rem 0 1.25rem; }
.colecao { padding: 1.25rem; }
.colecao + .colecao { margin-top: 1rem; }
.colecao-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.colecao-cab h3 { font-size: 1rem; }
.colecao-cab .data { font-size: 0.75rem; color: rgb(var(--fg-muted)); font-variant-numeric: tabular-nums; }
.colecao-cab .esp { flex: 1; }
.colecao-cab a { font-size: 0.8125rem; }
.colecao > p { font-size: 0.875rem; color: rgb(var(--fg-2)); margin-top: 0.375rem; max-width: 80ch; }
.notas { margin-top: 0.75rem; }
.notas summary { cursor: pointer; font-size: 0.8125rem; color: rgb(var(--fg-2)); width: fit-content; }
.notas summary:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; border-radius: 4px; }
.notas-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.nota { padding: 0.875rem 1rem; font-size: 0.8125rem; color: rgb(var(--fg-2)); white-space: pre-line; line-height: 1.55; }
.grade-telas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.875rem; margin-top: 1rem; }
.tela { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; padding: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.tela .quadro { aspect-ratio: 16 / 10; border-radius: var(--radius-xl); overflow: hidden; display: grid; place-items: center; background: rgb(var(--surface-2) / 0.7); border: 1px solid var(--soft-border); transition: border-color .15s, box-shadow .15s; }
.tela img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tela .quadro.alta img { object-fit: contain; }
.tela:hover .quadro, .tela:focus-visible .quadro { border-color: rgb(var(--accent) / 0.55); box-shadow: 0 8px 24px -10px rgb(var(--accent) / 0.35); }
.tela:focus-visible { outline: none; }
.tela .legenda-tela { display: flex; flex-direction: column; gap: 0.15rem; padding-inline: 0.125rem; }
.tela .nome { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; }
.tela .dim { font-size: 0.6875rem; color: rgb(var(--fg-muted)); font-family: var(--font-mono); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.tag-play { display: inline-flex; align-items: center; gap: 0.2rem; color: rgb(var(--accent)); font-family: var(--font-sans); font-weight: 600; }
.vazio { padding: 2rem; text-align: center; color: rgb(var(--fg-muted)); font-size: 0.875rem; }

/* Visualizador */
.visor { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: rgb(var(--bg-solid) / 0.96); backdrop-filter: blur(8px); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.visor-barra { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem var(--gutter); border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.visor-barra .tit { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.visor-barra .tit b { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-barra .tit span { font-size: 0.75rem; color: rgb(var(--fg-muted)); }
.visor-palco { flex: 1; overflow: auto; display: grid; place-items: center; padding: 1.25rem; }
.visor-palco.real { place-items: start; }
.visor-moldura { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); background: #fff; }
.visor-moldura iframe { border: 0; display: block; transform-origin: 0 0; }

/* Manutenção */
.arvore { padding: 1.125rem 1.25rem; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.75; overflow-x: auto; white-space: pre; color: rgb(var(--fg-2)); }
.arvore b { color: rgb(var(--fg)); font-weight: 600; }
.arvore i { font-style: normal; color: rgb(var(--fg-muted)); }
.passos { counter-reset: passo; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.75rem; font-size: 0.875rem; color: rgb(var(--fg-2)); }
.passos li::before { content: counter(passo); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; background: rgb(var(--accent) / 0.14); color: rgb(var(--accent)); }
.passos b { color: rgb(var(--fg)); }
pre.codigo { margin: 0.5rem 0 0; padding: 0.75rem 0.875rem; border-radius: var(--radius-lg); background: rgb(var(--surface-2) / 0.8); border: 1px solid var(--soft-border); overflow-x: auto; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; color: rgb(var(--fg)); }

/* Responsivo */
@media (max-width: 1100px) {
  .atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp { grid-template-columns: minmax(0, 1fr); }
  .comp .regra { border-left: 0; border-top: 1px solid var(--hairline); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .lateral { display: none; }
  .abertura, .grade-2, .shell-spec { grid-template-columns: minmax(0, 1fr); }
  .campos { grid-template-columns: minmax(0, 1fr); }
  .topbar .versao { display: none; }
  .ferramentas-telas { position: static; }
}
@media (max-width: 560px) {
  .atalhos, .grade-3 { grid-template-columns: minmax(0, 1fr); }
  .escala { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .especime .linha { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .marca-nome span { display: none; }
  .grade-telas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }

/* Padrões de tela */
.padrao { padding: 1.25rem 1.375rem; scroll-margin-top: calc(var(--top-h) + 16px); }
.padrao + .padrao { margin-top: 1rem; }
.padrao-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.5rem; }
.padrao-cab h3 { font-size: 1.0625rem; font-family: var(--font-display); letter-spacing: -0.02em; }
.padrao-cab .ref { font-size: 0.75rem; color: rgb(var(--fg-muted)); font-family: var(--font-mono); }
.padrao-resumo { font-size: 0.9rem; color: rgb(var(--fg-2)); max-width: 80ch; margin-bottom: 1rem; }
.padrao-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.regras { min-width: 0; font-size: 0.875rem; color: rgb(var(--fg-2)); display: flex; flex-direction: column; gap: 0.5rem; }
.regras h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--fg-muted)); margin-top: 0.5rem; }
.regras h4:first-child { margin-top: 0; }
.regras ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.regras ul.nao { list-style: none; padding-left: 0; }
.regras ul.nao li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0.4rem; }
.regras ul.nao li::before { content: "\00d7"; color: rgb(var(--danger)); font-weight: 700; line-height: 1.35; }
.tons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vocab { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vocab span { display: inline-flex; gap: 0.4rem; align-items: baseline; padding: 0.3rem 0.65rem; border-radius: 8px; background: var(--soft-bg); border: 1px solid var(--soft-border); font-size: 0.8125rem; font-weight: 500; }
.vocab s { color: rgb(var(--fg-muted)); font-weight: 400; }
.regua td:first-child { white-space: nowrap; }
.catalogo-comp td:first-child { min-width: 14rem; }
.grade-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }

/* Wireframes (anatomia) */
.wf { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border-radius: var(--radius-xl); background: rgb(var(--surface-2) / 0.55); border: 1px dashed rgb(var(--fg-muted) / 0.35); font-size: 0.6875rem; color: rgb(var(--fg-muted)); }
.wf-zona { position: relative; padding: 0.5rem 0.625rem 0.625rem 2rem; border-radius: 10px; background: rgb(var(--surface) / 0.8); border: 1px solid rgb(var(--border) / 0.8); display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; letter-spacing: 0.02em; }
.wf-zona > b { position: absolute; left: 0.5rem; top: 0.45rem; width: 1.05rem; height: 1.05rem; border-radius: 5px; display: grid; place-items: center; font-size: 0.625rem; background: rgb(var(--accent) / 0.16); color: rgb(var(--accent)); }
.wf-row { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.wf-row > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wf-esp { flex: 1; }
.wf-h1 { height: 10px; width: 45%; border-radius: 4px; background: rgb(var(--fg) / 0.55); }
.wf-row > .wf-h1 { flex: 0 0 35%; }
.wf-sub { height: 6px; width: 65%; border-radius: 3px; background: rgb(var(--fg-muted) / 0.35); }
.wf-btn { padding: 2px 8px; border-radius: 6px; font-size: 0.625rem; font-weight: 600; background: rgb(var(--accent) / 0.18); border: 1px solid rgb(var(--accent) / 0.45); color: rgb(var(--accent)); white-space: nowrap; }
.wf-ghost { padding: 2px 6px; border-radius: 6px; font-size: 0.625rem; color: rgb(var(--fg-2)); background: rgb(var(--fg-muted) / 0.1); white-space: nowrap; }
.wf-chip { width: 44px; height: 12px; border-radius: 999px; background: rgb(var(--accent) / 0.2); }
.wf-chip.ok { background: rgb(var(--success) / 0.25); }
.wf-chip.warn { background: rgb(var(--warning) / 0.25); }
.wf-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
.wf-grid4 i { height: 16px; border-radius: 5px; border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); }
.wf-grid4.cel i { height: 22px; border-style: dashed; border-color: rgb(var(--accent) / 0.4); }
.wf-grid4.kpi i { height: 26px; background: rgb(var(--accent) / 0.07); }
.wf-barra { display: flex; align-items: center; gap: 0.35rem; padding-top: 0.35rem; border-top: 1px solid rgb(var(--border) / 0.7); font-weight: 500; flex-wrap: wrap; }
.wf-tab { display: flex; flex-direction: column; gap: 3px; }
.wf-tab i { height: 11px; border-radius: 3px; background: rgb(var(--fg-muted) / 0.14); }
.wf-tab i.h { background: rgb(var(--fg-muted) / 0.28); }
.wf-pag { text-align: right; font-weight: 500; }
.wf-card { border-radius: 8px; border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); }
.wf-h60 { height: 44px; }
.wf-h90 { height: 64px; }
.wf-abas { display: flex; gap: 0.75rem; font-weight: 500; border-bottom: 1px solid rgb(var(--border)); }
.wf-abas span { padding-bottom: 3px; }
.wf-abas .on { color: rgb(var(--accent)); border-bottom: 2px solid rgb(var(--accent)); }
.wf-shell { display: grid; grid-template-columns: 26px 1fr; min-height: 170px; border-radius: 10px; overflow: hidden; border: 1px solid rgb(var(--border)); background: rgb(var(--bg-solid)); }
.wf-rail { background: rgb(var(--accent) / 0.12); border-right: 1px solid rgb(var(--accent) / 0.3); }
.wf-top { height: 24px; display: flex; align-items: center; gap: 0.4rem; padding-inline: 0.5rem; background: rgb(var(--accent) / 0.07); border-bottom: 1px solid rgb(var(--border)); font-weight: 500; }
.wf-pad { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.wf-leg { font-weight: 400; }
.cr-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; font-weight: 400; letter-spacing: 0; }
.cr-demo .ico { width: 14px; height: 14px; }
@media (max-width: 1100px) { .padrao-corpo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cr-demo, .grade-lista { grid-template-columns: minmax(0, 1fr); } }
