/* Forja — painel. Escuro por padrão; claro quando o sistema pede. */

:root {
  --bg: #0b0c0f;
  --bg-2: #101115;
  --card: #14161b;
  --card-2: #1a1c22;
  --campo: #0f1014;
  --borda: rgba(255, 255, 255, 0.07);
  --borda-2: rgba(255, 255, 255, 0.12);
  --texto: #ecedf0;
  --texto-2: #a4a7b0;
  --texto-3: #6e727d;
  --destaque: #ff6a1a;
  --destaque-2: #ff8a47;
  --destaque-fundo: rgba(255, 106, 26, 0.12);
  --verde: #3ecf8e;
  --ambar: #f5a524;
  --azul: #6b93ff;
  --violeta: #a98bff;
  --ciano: #3cc6d9;
  --vermelho: #f26d6d;
  --cinza: #8b8f99;
  --sombra: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -18px rgba(0, 0, 0, 0.6);
  --terminal: #0a0b0d;
  --terminal-texto: #c9ccd3;
  --raio: 14px;
  --raio-p: 9px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t: 180ms cubic-bezier(.2, .7, .3, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f4;
    --bg-2: #efefec;
    --card: #ffffff;
    --card-2: #f7f7f5;
    --campo: #ffffff;
    --borda: rgba(15, 17, 22, 0.08);
    --borda-2: rgba(15, 17, 22, 0.15);
    --texto: #16181d;
    --texto-2: #565a64;
    --texto-3: #81858f;
    --destaque: #e8590c;
    --destaque-2: #f76707;
    --destaque-fundo: rgba(232, 89, 12, 0.09);
    --verde: #12965f;
    --ambar: #b7700a;
    --azul: #3461e0;
    --violeta: #7148e0;
    --ciano: #0f8a9c;
    --vermelho: #d33a3a;
    --cinza: #6f737c;
    --sombra: 0 1px 2px rgba(15, 17, 22, 0.04), 0 8px 24px -16px rgba(15, 17, 22, 0.18);
    --terminal: #111317;
    --terminal-texto: #cfd2d8;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font: 14.5px/1.5 var(--fonte);
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.p { width: 15px; height: 15px; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; border-radius: 6px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--destaque); color: #fff; padding: 8px 14px; border-radius: 8px;
  transition: top var(--t);
}
.pular:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ layout */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--bg-2) 235px, var(--borda) 235px 236px, transparent 236px); }

.lateral {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--borda);
  background: var(--bg-2);
}
.lateral-topo { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 16px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.marca-logo {
  width: 28px; height: 28px; border-radius: 8px; display: inline-block; flex: none;
  background: var(--destaque) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M6 12h15a4 4 0 0 0 4-4v4a5 5 0 0 1-5 5h-1v2l3 3v3H10v-3l3-3v-2h-2c-3 0-5-2-5-5z'/%3E%3C/svg%3E") center/100% no-repeat;
  box-shadow: 0 6px 18px -6px rgba(255, 106, 26, 0.55);
}
.marca-logo.grande { width: 52px; height: 52px; border-radius: 14px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: var(--raio-p);
  color: var(--texto-2); font-weight: 500;
  transition: background var(--t), color var(--t);
}
.nav a:hover { background: var(--card); color: var(--texto); }
.nav a[aria-current="page"] { background: var(--card); color: var(--texto); box-shadow: 0 0 0 1px var(--borda) inset; }
.nav a[aria-current="page"] svg { color: var(--destaque); }
.nav a .contagem {
  margin-left: auto; min-width: 20px; padding: 0 6px; height: 18px; border-radius: 9px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--destaque-fundo); color: var(--destaque);
}

.builder-mini {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--raio-p); border: 1px solid var(--borda);
  background: var(--card); font-size: 13px; color: var(--texto-2);
  transition: border-color var(--t);
}
.builder-mini:hover { border-color: var(--borda-2); }
.builder-mini b { color: var(--texto); font-weight: 600; }

.vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--texto-3); font-weight: 500; }
.vivo-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--cinza); }
.vivo.ok { color: var(--verde); }
.vivo.ok .vivo-ponto { background: var(--verde); animation: respira 2.4s ease-in-out infinite; }
.vivo.caiu { color: var(--ambar); }
.vivo.caiu .vivo-ponto { background: var(--ambar); animation: pisca 1s steps(2) infinite; }

.conteudo { min-width: 0; padding: 32px clamp(18px, 3.4vw, 48px) 64px; outline: none; }
.pagina { max-width: 1240px; margin: 0 auto; animation: entra 220ms ease-out; }

.cab-pagina { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-pagina h1 { font-size: 24px; letter-spacing: -0.025em; }
.cab-pagina p { margin: 4px 0 0; color: var(--texto-2); }
.cab-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ peças */
.cartao {
  background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.cartao-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.cartao-cab h2 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.cartao-corpo { padding: 4px 18px 18px; }
.link-sutil { color: var(--texto-3); font-size: 13px; transition: color var(--t); }
.link-sutil:hover { color: var(--destaque); }
.rotulo { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; }
.sub { color: var(--texto-3); font-size: 12.5px; }
.vazio { padding: 28px 18px; text-align: center; color: var(--texto-3); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--raio-p);
  border: 1px solid var(--borda-2); background: var(--card-2); color: var(--texto);
  font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background var(--t), border-color var(--t), transform 120ms, opacity var(--t);
}
.botao:hover { border-color: var(--texto-3); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.botao.primario { background: var(--destaque); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(255, 106, 26, 0.7); }
.botao.primario:hover { background: var(--destaque-2); }
.botao.perigo { color: var(--vermelho); }
.botao.perigo:hover { border-color: var(--vermelho); }
.botao.perigo.cheio { background: var(--vermelho); color: #fff; border-color: transparent; }
.botao.fantasma { background: transparent; border-color: transparent; color: var(--texto-2); }
.botao.fantasma:hover { background: var(--card-2); color: var(--texto); }
.botao.pequeno { height: 30px; padding: 0 10px; font-size: 12.5px; }
.botao.icone { width: 32px; height: 32px; padding: 0; }
.botao.largo { width: 100%; height: 42px; }

.campo, select.campo, textarea.campo {
  height: 36px; padding: 0 11px; border-radius: var(--raio-p);
  border: 1px solid var(--borda-2); background: var(--campo); color: var(--texto);
  transition: border-color var(--t), box-shadow var(--t); min-width: 0;
}
textarea.campo { height: auto; padding: 8px 11px; }
.campo:focus { outline: none; border-color: var(--destaque); box-shadow: 0 0 0 3px var(--destaque-fundo); }
.campo::placeholder { color: var(--texto-3); }
select.campo { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8f99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; }
label.r { display: block; font-size: 12.5px; font-weight: 550; color: var(--texto-2); margin-bottom: 6px; }
.ajuda { font-size: 12.5px; color: var(--texto-3); margin: 6px 0 0; }
.erro-form { color: var(--vermelho); font-size: 13px; min-height: 1em; margin: 8px 0 0; }

/* chips de estado */
.chip {
  --c: var(--cinza);
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px;
  border-radius: 11px; font-size: 12px; font-weight: 550; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.chip-ponto { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.chip-verde { --c: var(--verde); }
.chip-vermelho { --c: var(--vermelho); }
.chip-ambar { --c: var(--ambar); }
.chip-azul { --c: var(--azul); }
.chip-violeta { --c: var(--violeta); }
.chip-ciano { --c: var(--ciano); }
.chip-destaque { --c: var(--destaque); }
.chip-anim .chip-ponto { animation: respira 1.4s ease-in-out infinite; box-shadow: 0 0 0 0 var(--c); }
.etiqueta {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 550; color: var(--texto-2); background: var(--card-2); border: 1px solid var(--borda);
}
.etiqueta.destaque { color: var(--destaque); background: var(--destaque-fundo); border-color: transparent; }

/* comando copiável */
.comando {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 0 4px 0 12px; height: 36px; border-radius: var(--raio-p);
  background: var(--terminal); border: 1px solid var(--borda); color: var(--terminal-texto);
}
.comando code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.comando code::before { content: "$ "; color: var(--texto-3); }
.comando .botao { color: #aab; height: 28px; width: 28px; background: transparent; border-color: transparent; }
.comando .botao:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.comando .botao.copiado { color: var(--verde); }

.comando.sem-dolar code::before { content: none; }
.so-movel { display: none; }
@media (max-width: 860px) { .so-movel { display: inline; } }

/* esqueleto */
.esq { background: linear-gradient(90deg, var(--card-2) 0%, var(--borda-2) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: brilho 1.3s linear infinite; border-radius: 8px; }

/* ------------------------------------------------------------------ painel: builder */
.builder {
  --c: var(--cinza);
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px;
  padding: 26px 28px; margin-bottom: 18px;
}
.builder::before {
  content: ""; position: absolute; inset: -40% auto auto -10%; width: 520px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), transparent);
  transition: background 400ms;
}
.builder.e-ligando { --c: var(--ambar); }
.builder.e-ociosa { --c: var(--verde); }
.builder.e-buildando { --c: var(--violeta); }
.builder.e-desligando { --c: var(--ambar); }
.builder.e-erro { --c: var(--vermelho); }
.builder-principal { position: relative; display: flex; align-items: center; gap: 22px; min-width: 0; }
.builder-estado { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0 6px; }
.builder-sub { color: var(--texto-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13.5px; }
.builder-sub .sep { color: var(--texto-3); }

.orbe { position: relative; width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.orbe::before, .orbe::after, .orbe span { content: ""; position: absolute; border-radius: 50%; }
.orbe span { inset: 22px; background: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); transition: background 300ms; }
.orbe::before { inset: 6px; border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); }
.orbe::after { inset: 0; border: 1px solid color-mix(in srgb, var(--c) 15%, transparent); }
.e-desligada .orbe span { background: transparent; border: 2px solid var(--cinza); box-shadow: none; }
.e-ligando .orbe span, .e-desligando .orbe span { animation: pulsa 1.2s ease-in-out infinite; }
.e-ligando .orbe::before { animation: onda 1.6s ease-out infinite; }
.e-desligando .orbe span { animation-duration: 2.2s; opacity: .7; }
.e-ociosa .orbe span { animation: respira 3.2s ease-in-out infinite; }
.e-buildando .orbe span { background: conic-gradient(from 0deg, var(--azul), var(--violeta), var(--destaque), var(--azul)); animation: gira 1.6s linear infinite; }
.e-buildando .orbe::before { border-color: transparent; border-top-color: var(--violeta); border-right-color: color-mix(in srgb, var(--azul) 60%, transparent); animation: gira 1.1s linear infinite; }
.e-buildando .orbe::after { animation: onda 2s ease-out infinite; border-color: color-mix(in srgb, var(--violeta) 40%, transparent); }
.e-erro .orbe span { animation: pisca 1.4s ease-in-out infinite; }

.builder-lado { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.mini {
  padding: 12px 14px; border-radius: 11px; background: color-mix(in srgb, var(--card-2) 75%, transparent);
  border: 1px solid var(--borda); min-width: 0;
}
.mini.largo { grid-column: 1 / -1; }
.mini .valor { font-size: 15px; font-weight: 600; margin-top: 3px; }
.job { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-width: 0; transition: color var(--t); }
.job:hover .job-titulo { color: var(--destaque); }
.job-titulo { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color var(--t); }
.job .mono { color: var(--texto-3); }
.job .dir { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--texto-2); font-size: 13px; }
.barra { height: 6px; border-radius: 3px; background: var(--borda-2); overflow: hidden; margin-top: 8px; }
.barra i { display: block; height: 100%; border-radius: 3px; background: var(--verde); transition: width 400ms; }
.barra.alto i { background: var(--ambar); }
.barra.cheio i { background: var(--vermelho); }

/* números */
.numeros { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.numero { padding: 14px 16px 15px; }
.numero { display: flex; flex-direction: column; justify-content: space-between; }
.numero .valor { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.numero .valor small { font-size: 13px; font-weight: 500; color: var(--texto-3); margin-left: 3px; }
.numero .valor.muda { animation: muda 700ms ease-out; }
.numero.custo .valor { color: var(--destaque); }

.duas-colunas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* linhas de build compactas */
.lista-compacta { padding: 4px 8px 10px; }
.lb {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 96px; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: 10px; transition: background var(--t);
}
.lb:hover { background: var(--card-2); }
.lb-proj { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-msg { min-width: 0; }
.lb-msg div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-msg .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .chip, .tb .chip, .limpeza summary .chip { justify-self: start; }
.lb-tempo { white-space: nowrap; text-align: right; color: var(--texto-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* downloads */
.ld {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 10px; border-radius: 10px; position: relative;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 650; text-transform: uppercase;
  color: hsl(var(--h) 70% 72%); background: hsl(var(--h) 45% 50% / 0.16);
}
@media (prefers-color-scheme: light) { .avatar { color: hsl(var(--h) 55% 38%); background: hsl(var(--h) 60% 50% / 0.13); } }
.ld-txt { min-width: 0; }
.ld-txt > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-txt .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-dir { white-space: nowrap; text-align: right; font-size: 12.5px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.ld-dir b { display: block; color: var(--texto); font-weight: 600; font-size: 13px; }
.ld.novo { animation: chega 2.6s ease-out both; }
.ld.novo::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px;
  background: var(--destaque); animation: some 2.6s ease-out both; animation-delay: inherit;
}
.ao-vivo-mini { font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--verde); display: inline-flex; align-items: center; gap: 5px; }
.ao-vivo-mini::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: respira 2.4s ease-in-out infinite; }

/* ------------------------------------------------------------------ builds */
.barra-ferramentas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.barra-ferramentas .campo { min-width: 150px; }
.barra-ferramentas .total { margin-left: auto; color: var(--texto-3); font-size: 13px; }

.tabela-builds { overflow: hidden; }
.tb-cab, .tb {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 132px 92px 74px 76px 92px;
  gap: 14px; align-items: center; padding: 0 18px;
}
.tb-cab { height: 40px; border-bottom: 1px solid var(--borda); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; }
.tb { min-height: 62px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--borda); transition: background var(--t); }
.tb:last-child { border-bottom: 0; }
.tb:hover { background: var(--card-2); }
.tb.entra { animation: chega 1.8s ease-out; }
.tb-proj b { display: block; font-weight: 600; }
.tb-proj .mono { font-size: 11.5px; color: var(--texto-3); }
.tb-commit { min-width: 0; }
.tb-commit .msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-commit .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-dur, .tb-tam, .tb-quando { font-variant-numeric: tabular-nums; color: var(--texto-2); font-size: 13px; }
.tb-cab span { font-size: inherit; color: inherit; }
.tb-dur.vivo-dur { color: var(--texto); }
.origem { display: inline-flex; align-items: center; gap: 5px; color: var(--texto-2); font-size: 12.5px; }
.ref { color: var(--texto-2); }
.ref .sha { color: var(--texto-3); }

/* detalhe */
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-3); font-size: 13px; margin-bottom: 14px; transition: color var(--t); }
.voltar:hover { color: var(--texto); }
.det-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.det-cab h1 { font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.det-cab .msg { color: var(--texto-2); margin-top: 6px; max-width: 760px; }
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--borda); border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda); margin-bottom: 18px; }
.meta > div { background: var(--card); padding: 12px 16px; min-width: 0; }
.meta .valor { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta a.valor, .meta .valor a { color: var(--texto); border-bottom: 1px dashed var(--borda-2); }
.meta a:hover { color: var(--destaque); }
.aviso-erro {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px;
  color: var(--vermelho); background: color-mix(in srgb, var(--vermelho) 9%, transparent); border: 1px solid color-mix(in srgb, var(--vermelho) 25%, transparent);
  font-family: var(--mono); font-size: 12.5px; word-break: break-word;
}

/* terminal */
.terminal { background: var(--terminal); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; position: relative; color-scheme: dark; }
.term-barra { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); flex-wrap: wrap; }
.term-titulo { display: flex; align-items: center; gap: 8px; color: #9da1ab; font-size: 12.5px; font-weight: 550; margin-right: auto; }
.term-busca { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 0 4px 0 9px; height: 30px; color: #9da1ab; border: 1px solid transparent; transition: border-color var(--t); }
.term-busca:focus-within { border-color: rgba(255, 106, 26, 0.6); }
.term-busca input { background: transparent; border: 0; outline: none; color: #e6e8ec; width: 160px; font-size: 12.5px; }
.term-busca .cont { font-size: 11.5px; color: #757a85; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.term-busca .botao { height: 24px; width: 24px; color: #9da1ab; background: transparent; border: 0; }
.term-busca .botao:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.terminal .botao.term { background: rgba(255, 255, 255, 0.05); border-color: transparent; color: #c9ccd3; height: 30px; }
.terminal .botao.term:hover { background: rgba(255, 255, 255, 0.1); }
.log {
  height: min(66vh, 720px); overflow: auto; padding: 12px 0 16px;
  font: 12.5px/1.6 var(--mono); color: var(--terminal-texto);
  overscroll-behavior: contain; scrollbar-color: #333 transparent;
}
.log .ln { display: flex; padding: 0 16px 0 0; white-space: pre-wrap; word-break: break-word; }
.log .ln:hover { background: rgba(255, 255, 255, 0.03); }
.log .n { flex: none; width: 52px; padding-right: 14px; text-align: right; color: #4b4f58; user-select: none; }
.log .t { min-width: 0; flex: 1; }
.log .ln.passo .t { color: #e8eaee; }
.log .ln.passo .pn { color: #ff8a47; font-weight: 600; }
.log .ln.passo .pe { color: #a98bff; }
.log .ln.passo { background: rgba(169, 139, 255, 0.05); margin-top: 6px; }
.log .ln.ok .t { color: #57c78f; }
.log .ln.cache .t { color: #6b7080; }
.log .ln.forja .t { color: #ffb38a; }
.log .ln.erro { background: rgba(242, 109, 109, 0.09); }
.log .ln.erro .t { color: #ff8a8a; }
.log .ln.erro .n { color: #a24b4b; }
.log mark { background: rgba(255, 196, 0, 0.28); color: #fff; border-radius: 2px; }
.log mark.atual { background: #ffb020; color: #111; }
.log .cursor { display: inline-block; width: 7px; height: 14px; background: #a98bff; vertical-align: -2px; margin-left: 68px; animation: pisca 1s steps(2) infinite; }
.log-vazio { color: #6b7080; padding: 4px 16px; }
.seguir {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px;
  background: var(--destaque); color: #fff; border: 0; font-weight: 600; font-size: 12.5px; cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(255, 106, 26, 0.8); transition: transform var(--t), opacity var(--t);
}
.seguir[hidden] { display: inline-flex !important; opacity: 0; transform: translateY(8px); pointer-events: none; }

/* ------------------------------------------------------------------ imagens */
.grade-imagens { display: grid; gap: 14px; }
.img-cab {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 24px; align-items: center; gap: 16px;
  padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--raio);
}
.img-cab:hover .seta { color: var(--texto); }
.img-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--destaque-fundo); color: var(--destaque); }
.img-cab h2 { font-size: 16px; }
.img-num { text-align: right; font-size: 13px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.img-num b { display: block; color: var(--texto); font-size: 14.5px; font-weight: 600; }
.seta { color: var(--texto-3); transition: transform var(--t), color var(--t); }
[aria-expanded="true"] .seta { transform: rotate(180deg); }
.img-corpo { padding: 0 18px 18px; }
.img-corpo.abrindo { animation: entra 200ms ease-out; }
.grade-imagens > * { min-width: 0; }
.img-corpo > .comando { margin-bottom: 14px; }
.tags { width: 100%; border-collapse: collapse; font-size: 13px; }
.tags th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tags td { padding: 10px 10px; border-bottom: 1px solid var(--borda); vertical-align: middle; white-space: nowrap; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.tags tr:last-child td { border-bottom: 0; }
.tags td.tag { color: var(--texto); }
.tags td.pull { width: 1%; }
.tags .botao.pequeno { height: 28px; }
.tags a.sha { border-bottom: 1px dashed var(--borda-2); }
.tags a.sha:hover { color: var(--destaque); }

/* ------------------------------------------------------------------ downloads */
.feed { padding: 6px 8px; }
.feed .ld { padding: 12px 12px; }
.feed .ld + .ld { border-top: 1px solid var(--borda); border-radius: 0; }
.resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }

/* ------------------------------------------------------------------ projetos */
.grade-projetos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.proj { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.proj-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.proj-cab h2 { font-size: 17px; }
.proj-cab a.mono { color: var(--texto-3); font-size: 12.5px; transition: color var(--t); }
.proj-cab a.mono:hover { color: var(--destaque); }
.proj-ult { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--texto-2); padding: 10px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--borda); }
.proj-ult:hover { border-color: var(--borda-2); }
.proj-linha { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.secao-titulo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kv { display: grid; gap: 8px; }
.kv-linha { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 32px; gap: 8px; }
.kv-linha .campo { font-family: var(--mono); font-size: 12.5px; }
.kv-vazio { font-size: 13px; color: var(--texto-3); padding: 2px 0; }
.segredo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.segredo .nome { font-family: var(--mono); font-size: 12.5px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border-radius: var(--raio-p); background: var(--card-2); border: 1px solid var(--borda); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segredo .nome .pontos { margin-left: auto; color: var(--texto-3); letter-spacing: 1px; }
.segredo.removido .nome { text-decoration: line-through; color: var(--texto-3); }
.proj-rodape { display: flex; justify-content: flex-end; gap: 8px; align-items: center; padding-top: 14px; border-top: 1px solid var(--borda); }
.proj-rodape .estado-salvar { margin-right: auto; font-size: 12.5px; color: var(--texto-3); }
.proj-rodape .estado-salvar.sujo { color: var(--ambar); }

.passo-num { display: inline-flex; align-items: center; border: 1px solid var(--borda-2); border-radius: var(--raio-p); overflow: hidden; height: 36px; }
.passo-num button { width: 32px; height: 100%; border: 0; background: var(--card-2); cursor: pointer; color: var(--texto-2); font-size: 16px; }
.passo-num button:hover { color: var(--texto); }
.passo-num input { width: 46px; height: 100%; border: 0; background: var(--campo); text-align: center; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.passo-num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.passo-num:focus-within { border-color: var(--destaque); box-shadow: 0 0 0 3px var(--destaque-fundo); }

.chave { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 550; }
.chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave .trilho { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--borda-2); transition: background var(--t); flex: none; }
.chave .trilho::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform var(--t); }
.chave input:checked + .trilho { background: var(--destaque); }
.chave input:checked + .trilho::after { transform: translateX(16px); }
.chave input:focus-visible + .trilho { outline: 2px solid var(--destaque); outline-offset: 2px; }
.chave input:disabled + .trilho { opacity: .5; }

/* ------------------------------------------------------------------ acessos / limpeza (tabela genérica) */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); font-weight: 600; padding: 12px 18px; border-bottom: 1px solid var(--borda); }
.tabela td { padding: 14px 18px; border-bottom: 1px solid var(--borda); color: var(--texto-2); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela td.forte { color: var(--texto); font-weight: 600; }
.tabela td.acao { text-align: right; width: 1%; white-space: nowrap; }

.limpeza { padding: 0; }
.limpeza summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 120px 120px 90px 20px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--borda); transition: background var(--t); }
.limpeza summary::-webkit-details-marker { display: none; }
.limpeza summary:hover { background: var(--card-2); }
.limpeza:last-child summary { border-bottom: 0; }
.limpeza[open] summary { border-bottom: 1px solid var(--borda); background: var(--card-2); }
.limpeza[open] .seta { transform: rotate(180deg); }
.limpeza .detalhe { padding: 14px 18px 18px; border-bottom: 1px solid var(--borda); display: grid; gap: 12px; }
.limpeza:last-child .detalhe { border-bottom: 0; }
.limpeza .lista-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.limpeza pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--terminal); color: var(--terminal-texto); font-size: 12px; overflow: auto; max-height: 260px; }
.lim-num { font-variant-numeric: tabular-nums; color: var(--texto-2); font-size: 13px; }

/* ------------------------------------------------------------------ guia */
.guia-grade { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; }
.md { max-width: 760px; font-size: 15px; line-height: 1.7; color: var(--texto); }
.md h1 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 14px; }
.md h2 { font-size: 20px; margin: 38px 0 10px; padding-top: 6px; scroll-margin-top: 20px; }
.md h3 { font-size: 16.5px; margin: 26px 0 8px; scroll-margin-top: 20px; }
.md h4 { font-size: 15px; margin: 20px 0 6px; }
.md p { margin: 0 0 14px; color: var(--texto-2); }
.md p strong, .md li strong { color: var(--texto); }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; color: var(--texto-2); }
.md li { margin: 4px 0; }
.md li::marker { color: var(--texto-3); }
.md a { color: var(--destaque); border-bottom: 1px solid color-mix(in srgb, var(--destaque) 35%, transparent); transition: border-color var(--t); }
.md a:hover { border-color: var(--destaque); }
.md code { padding: 1px 6px; border-radius: 5px; background: var(--card-2); border: 1px solid var(--borda); color: var(--texto); font-size: 0.86em; }
.md pre { position: relative; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--terminal); border: 1px solid var(--borda); overflow: auto; color: var(--terminal-texto); font-size: 13px; line-height: 1.6; }
.md pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.md pre .botao { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; background: rgba(255, 255, 255, 0.06); border: 0; color: #aab; opacity: 0; transition: opacity var(--t); }
.md pre:hover .botao, .md pre .botao:focus-visible { opacity: 1; }
.md pre .lang { position: absolute; right: 44px; top: 12px; font-size: 11px; color: #5d616b; font-family: var(--fonte); text-transform: uppercase; letter-spacing: .06em; }
.md blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--destaque); background: var(--destaque-fundo); border-radius: 0 10px 10px 0; }
.md blockquote p { margin: 0; color: var(--texto); }
.md hr { border: 0; border-top: 1px solid var(--borda-2); margin: 28px 0; }
.md table { border-collapse: collapse; margin: 0 0 18px; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--borda); }
.md th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-3); }
.md td { color: var(--texto-2); }
.toc { position: sticky; top: 32px; font-size: 13px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--texto-3); border-left: 1px solid var(--borda-2); transition: color var(--t), border-color var(--t); }
.toc a:hover { color: var(--texto); border-color: var(--destaque); }

/* ------------------------------------------------------------------ modal, toasts */
.modal {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--borda-2); border-radius: 16px;
  background: var(--card); color: var(--texto); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.modal[open] { animation: sobe 200ms cubic-bezier(.2, .7, .3, 1); }
.modal::backdrop { background: rgba(6, 7, 9, 0.62); backdrop-filter: blur(3px); animation: aparece 200ms; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; }
.modal-cab h2 { font-size: 17px; }
.modal-corpo { padding: 12px 20px 4px; display: grid; gap: 16px; }
.modal-corpo p { margin: 0; color: var(--texto-2); }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; }
.modal .campo { width: 100%; }
.segredo-mostrado { display: grid; gap: 8px; }
.alerta { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ambar) 11%, transparent); color: var(--ambar); font-size: 13px; border: 1px solid color-mix(in srgb, var(--ambar) 25%, transparent); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 380px;
  padding: 11px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--borda-2);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6); font-size: 13.5px; animation: sobe 220ms ease-out;
}
.toast.ok svg { color: var(--verde); }
.toast.erro svg { color: var(--vermelho); }
.toast.saindo { opacity: 0; transform: translateY(6px); transition: opacity 200ms, transform 200ms; }

/* ------------------------------------------------------------------ login */
.pagina-login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(600px 400px at 50% 0%, var(--destaque-fundo), transparent 70%), var(--bg); }
.login { width: min(380px, 100%); display: grid; gap: 26px; }
.login-marca { text-align: center; display: grid; justify-items: center; gap: 10px; }
.login-marca h1 { font-size: 28px; letter-spacing: -0.03em; }
.login-marca p { margin: 0; color: var(--texto-2); }
.login-form { padding: 24px; display: grid; gap: 8px; }
.login-form label { font-size: 13px; font-weight: 550; color: var(--texto-2); }
.login-form input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--borda-2); background: var(--campo); font-size: 15px; transition: border-color var(--t), box-shadow var(--t); }
.login-form input:focus { outline: none; border-color: var(--destaque); box-shadow: 0 0 0 3px var(--destaque-fundo); }
.login-erro { color: var(--vermelho); font-size: 13px; min-height: 1.2em; margin: 2px 0 8px; }

/* ------------------------------------------------------------------ animações */
@keyframes respira { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }
@keyframes pulsa { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.78); } }
@keyframes onda { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes pisca { 50% { opacity: .25; } }
@keyframes entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes sobe { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } }
@keyframes brilho { to { background-position: -200% 0; } }
@keyframes chega { 0% { background: color-mix(in srgb, var(--destaque) 16%, transparent); transform: translateY(-4px); opacity: 0; } 12% { opacity: 1; transform: none; } 100% { background: transparent; } }
@keyframes some { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes muda { 0% { color: var(--destaque); } 100% { } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ------------------------------------------------------------------ responsivo */
.lim-movel { display: none; }
.img-num.movel { display: none; }
@media (max-width: 1280px) {
  .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .tb-cab, .tb { grid-template-columns: 100px minmax(0, 1fr) 124px 86px 70px; }
  .tb .tb-origem, .tb .tb-tam, .tb-cab .tb-origem, .tb-cab .tb-tam { display: none; }
  .duas-colunas { grid-template-columns: minmax(0, 1fr); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .guia-grade { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .tags th.opc, .tags td.opc { display: none; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .lateral {
    position: sticky; top: 0; z-index: 20; height: auto; flex-direction: column; gap: 0;
    padding: 10px 0 0; border-right: 0; border-bottom: 1px solid var(--borda);
    background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(12px);
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .lateral-topo { padding: 0 16px 8px; }
  .builder-mini { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 2px; padding: 0 10px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 7px 11px; font-size: 13.5px; gap: 7px; scroll-snap-align: start; }
  .nav a svg { width: 16px; height: 16px; }
  .nav a .contagem { margin-left: 2px; }
  .conteudo { padding: 20px 16px 48px; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
  .cab-pagina h1 { font-size: 21px; }
  .cab-pagina { margin-bottom: 18px; }

  .builder { padding: 20px; gap: 18px; }
  .builder-estado { font-size: 25px; }
  .orbe { width: 60px; height: 60px; }
  .orbe span { inset: 17px; }
  .builder-principal { gap: 16px; }
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .numero { display: flex; flex-direction: column; justify-content: space-between; }
.numero .valor { font-size: 19px; }
  .numero:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .lb { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .lb-proj { grid-column: 1; }
  .lb-msg { grid-column: 1 / -1; grid-row: 2; }
  .lb .chip { grid-column: 2; grid-row: 1; justify-self: end; }
  .lb-tempo { display: none; }

  .tb-cab { display: none; }
  .tb { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
  .tb-proj { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .tb-proj b { display: inline; }
  .tb .chip { grid-column: 2; grid-row: 1; justify-self: end; }
  .tb-commit { grid-column: 1 / -1; grid-row: 2; }
  .tb-dur { grid-column: 1; grid-row: 3; font-size: 12.5px; }
  .tb-quando { grid-column: 2; grid-row: 3; text-align: right; font-size: 12.5px; }
  .tb .tb-origem, .tb .tb-tam { display: none; }

  .barra-ferramentas .campo { flex: 1; min-width: 0; }
  .barra-ferramentas .total { display: none; }

  .img-cab { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; padding: 14px 16px; }
  .img-ico { width: 36px; height: 36px; }
  .img-num { display: none; }
  .img-num.movel { display: block; text-align: left; grid-column: 2; }
  .img-corpo { padding: 0 12px 14px; }
  .tags thead { display: none; }
  .tags, .tags tbody, .tags tr, .tags td { display: block; width: 100%; }
  .tags tr { padding: 12px 4px; border-bottom: 1px solid var(--borda); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .tags tr:last-child { border-bottom: 0; }
  .tags td { padding: 0; border: 0; white-space: normal; }
  .tags td.opc { display: none; }
  .tags td.pull { grid-column: 2; grid-row: 1; width: auto; justify-self: end; }
  .tags td:nth-child(3), .tags td:nth-child(7) { text-align: right; }
  .tags td[data-r]::before { content: attr(data-r) " "; color: var(--texto-3); font-size: 11.5px; }

  .ld-txt > div:first-child { white-space: normal; overflow-wrap: anywhere; }
  .proj-linha .ajuda { margin-top: 0 !important; }
  .resumo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .resumo .numero:last-child { grid-column: 1 / -1; }

  .proj { padding: 16px; }
  .kv-linha, .segredo { grid-template-columns: minmax(0, 1fr) 32px; }
  .kv-linha .campo:first-child, .segredo .nome { grid-column: 1 / -1; }
  .segredo { grid-template-columns: minmax(0, 1fr) auto; }

  .tabela thead { display: none; }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; }
  .tabela tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--borda); }
  .tabela tr:last-child { border-bottom: 0; }
  .tabela td { padding: 0; border: 0; font-size: 13px; }
  .tabela td.forte { grid-column: 1; }
  .tabela td.acao { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .tabela td.opc { grid-column: 1; }

  .limpeza summary { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 4px 10px; padding: 14px 16px; }
  .limpeza summary .lim-num.opc { display: none; }
  .limpeza summary .lim-quando { grid-column: 1; }
  .limpeza summary .chip { grid-column: 2; grid-row: 1; }
  .limpeza summary .seta { grid-column: 3; grid-row: 1; }
  .limpeza summary .lim-movel { display: block; grid-column: 1 / -1; }

  .log { height: 62vh; font-size: 11.5px; }
  .log .n { width: 38px; padding-right: 10px; }
  .log .cursor { margin-left: 48px; }
  .term-busca { flex: 1; }
  #d-copiar-log span { display: none; }
  #d-copiar-log { width: 30px; padding: 0; }
  .term-titulo { margin-right: 0; }
  .term-busca input { width: 100%; min-width: 0; flex: 1; }
  .det-cab h1 { font-size: 19px; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toasts { left: 16px; right: 16px; bottom: 16px; justify-items: stretch; }
  .md { font-size: 14.5px; }
  .md h1 { font-size: 25px; }
}
