/* ============================================================
   Domani · Avaliações iFood
   Segue o design system da casa: base escura, laranja como evento
   único de cor, grade técnica de assinatura, Exo 2 nos títulos,
   Source Sans 3 no corpo e JetBrains Mono nos dados.
   ============================================================ */

:root {
  /* Paleta da marca */
  --preto:       #000000;
  --chumbo:      #1D1D1F;
  --laranja:     #E56D23;
  --branco:      #FFFFFF;

  /* Neutras derivadas */
  --bg-app:      #0a0a0b;
  --surface:     #141416;
  --surface-2:   #1d1d1f;
  --line:        #2a2a2d;
  --line-strong: #3a3a3e;
  --text-hi:     #F4F4F2;
  --text:        #d8d8da;
  --text-mid:    #8a8a8e;
  --text-low:    #6a6a6e;
  /* Só para borda. Sobre texto dá 2,1:1 de contraste, muito abaixo do
     mínimo de 4,5:1, então rótulo e dado nunca usam esta cor. */
  --text-faint:  #4a4a4e;

  /* Escala de temperatura do laranja */
  --amber:       #F6B24A;
  --laranja-hi:  #F2853E;
  --laranja-dim: #B8551A;
  --burnt:       #7A3A12;
  --laranja-08:  rgba(229,109,35,.08);
  --laranja-15:  rgba(229,109,35,.15);
  --laranja-42:  rgba(229,109,35,.42);
  --grad-ember:  linear-gradient(135deg, #F6B24A 0%, #E56D23 48%, #B8551A 100%);

  /* Vidro */
  --glass:        rgba(255,255,255,.045);
  --glass-border: rgba(255,255,255,.14);
  --glass-blur:   blur(18px) saturate(1.25);

  /* Tipografia */
  --disp: 'Exo 2', sans-serif;
  --body: 'Source Sans 3', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-h1:     clamp(30px, 4vw, 44px);
  --fs-h3:     22px;
  --fs-body:   17px;
  --fs-sm:     15px;
  --fs-kicker: 13px;
  --fs-stat:   clamp(46px, 5.5vw, 66px);

  /* Espaço, raio, elevação */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:24px; --s6:32px; --s7:48px; --s8:64px; --s9:96px;

  --r-sm:8px; --r-md:12px; --r-lg:18px; --r-pill:999px;

  --sh-1: 0 2px 16px rgba(0,0,0,.4);
  --sh-2: 0 18px 50px rgba(0,0,0,.55);
  --glow: 0 0 60px -10px var(--laranja-42);

  --grid-size: 72px;
  --grid-op: .05;

  --barra: 264px;
  --largura: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg-app);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nenhum texto usa --text-faint: ele fica só em borda. Rótulo pequeno
   e dado técnico usam --text-mid, que passa em contraste. */

/* Grade técnica de fundo, assinatura da casa. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: var(--grid-op);
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
/* Grão fílmico: tira o digital chapado, nunca protagonista. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

code, .mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: .1em .4em;
  border-radius: var(--r-sm);
  color: var(--text);
}
.mono.bloco { display: block; color: var(--text-low); margin-top: 4px; }

/* Estrutura ---------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: var(--barra) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.lateral {
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(10,10,11,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--s6) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s7);
}

.marca {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
  text-decoration: none;
}
/* A marca é preta no arquivo original; sobre a base escura ela entra
   invertida, virando branca, sem precisar de um segundo arquivo. */
.marca img { width: auto; height: 76px; filter: invert(1); }
.marca .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.lateral nav { display: flex; flex-direction: column; gap: 2px; }
.lateral nav .grupo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: var(--s3);
}
.lateral nav a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  text-decoration: none;
  transition: .15s;
}
.lateral nav a:hover { color: var(--text-hi); background: var(--laranja-08); }
.lateral nav a.atual { color: var(--laranja); border-left-color: var(--laranja); }

.rodape-lateral {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-low);
  overflow-wrap: anywhere;
}
.rodape-lateral a {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  margin-bottom: var(--s2);
}
.rodape-lateral a:hover { color: var(--laranja); }

main {
  min-width: 0;
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding: var(--s8) clamp(24px, 5vw, 64px) var(--s9);
}

.cabecalho {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding-bottom: var(--s5);
  margin-bottom: var(--s7);
  border-bottom: 1px solid var(--line);
}

h1 {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text-hi);
}
h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: var(--s7) 0 var(--s4);
}

.volta { margin-bottom: var(--s3); }
.volta a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
}
.volta a::before { content: "\2190\00a0"; }
.volta a:hover { color: var(--laranja); }

.fraco, .meta, .ajuda, .vazio, .resumo { color: var(--text-mid); }
.meta, .ajuda, .resumo { font-size: 14px; }
.ajuda { max-width: 62ch; margin: var(--s3) 0 0; }
.vazio {
  font-size: var(--fs-sm);
  padding: var(--s8) 0;
  text-align: center;
  color: var(--text-mid);
}
.falha { color: var(--laranja); }

/* Cartões ------------------------------------------------------ */

.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s5);
}

.cartao {
  display: flex;
  flex-direction: column;
  padding: var(--s6);
  min-height: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.cartao.alerta {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--laranja-dim);
  box-shadow: var(--glow);
}

.numero {
  font-family: var(--disp);
  font-weight: 800;
  font-size: var(--fs-stat);
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s5);
}
.numero.pequeno {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
/* Número que exige atenção sai na brasa, não em cor chapada. */
.cartao.alerta .numero {
  color: transparent;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
}

.rotulo {
  margin-top: auto;
  font-size: var(--fs-sm);
  color: var(--text);
}
.apoio {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mid);
  margin-top: var(--s3);
}
.apoio a { color: var(--laranja); text-decoration: none; }

/* Selos -------------------------------------------------------- */

.selo {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.selo.ok      { background: var(--surface-2); color: var(--text-mid); border: 1px solid var(--line); }
.selo.falha   { background: var(--laranja-15); color: var(--laranja); border: 1px solid var(--laranja-dim); }
.selo.parado  { background: transparent; color: var(--text-mid); border: 1px solid var(--line-strong); }

/* Tabelas ------------------------------------------------------ */

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tabela th {
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}
.tabela td {
  padding: var(--s5);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
}
.tabela tr:last-child td { border-bottom: none; }
.tabela tbody tr:hover { background: var(--surface-2); }
.tabela tr.inativa td { opacity: .45; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela .acoes { text-align: right; white-space: nowrap; }
.tabela td a {
  font-family: var(--disp);
  font-weight: 600;
  color: var(--text-hi);
  text-decoration: none;
}
.tabela td a:hover { color: var(--laranja); }
.tabela .acoes a {
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-mid);
}
.tabela strong.tem { color: var(--laranja); }

/* Fila e histórico --------------------------------------------- */

.fila, .historico {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.fila li, .historico li {
  display: flex;
  align-items: flex-start;
  gap: var(--s5);
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--line);
}
.fila li:last-child, .historico li:last-child { border-bottom: none; }
.fila li:hover, .historico li:hover { background: var(--surface-2); }
/* Prazo apertado acende um fio na borda, em vez de tingir a linha. */
.fila li.urgente { box-shadow: inset 3px 0 0 var(--laranja); }

.nota {
  flex: none;
  width: 2.5rem;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
}
/* Nota baixa é a que precisa de alguém, então é a única colorida. */
.nota.n1, .nota.n2 { color: var(--laranja); }
.nota.n3 { color: var(--text-mid); }
.nota.grande { font-size: 60px; width: 3.5rem; }
.nota.pequena { font-size: 22px; width: 1.75rem; }

.conteudo { flex: 1 1 auto; min-width: 0; }
.comentario { margin: 0 0 var(--s2); color: var(--text); overflow-wrap: break-word; }

.resposta-dada {
  margin: var(--s3) 0 0;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border-left: 2px solid var(--laranja-dim);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text);
}

.prazo { color: var(--text-mid); }
.prazo.grande {
  font-family: var(--disp);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--text-hi);
  margin: var(--s1) 0 0;
}
.urgente .prazo { color: var(--laranja); font-weight: 600; }
.respondida { color: var(--text); }

/* A régua mostra quanto do prazo de 5 dias já foi consumido. */
.regua {
  height: 2px;
  margin-top: var(--s3);
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.regua i { display: block; height: 100%; background: var(--line-strong); }
.urgente .regua i { background: var(--grad-ember); }

.acao {
  flex: none;
  align-self: center;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  text-decoration: none;
  transition: .18s;
}
.acao:hover { border-color: var(--laranja); color: var(--laranja); }

.paginacao { display: flex; gap: var(--s6); padding: var(--s5) 0; }
.paginacao a {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
}
.paginacao a:hover { color: var(--laranja); }

/* Blocos de conteúdo ------------------------------------------- */

.detalhe, .responder, .texto, .formulario, .filtros, .busca-id, .perigo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.responder, .busca-id, .perigo { margin-top: var(--s5); }
.texto { max-width: 68ch; }

.cabecalho-nota {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

blockquote {
  margin: var(--s5) 0;
  padding: 0 0 0 var(--s5);
  border-left: 2px solid var(--laranja);
  font-family: var(--disp);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-hi);
  overflow-wrap: break-word;
}
blockquote.replica {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--text);
  border-left-color: var(--line-strong);
}
blockquote.replica .meta { display: block; margin-top: var(--s2); }

.campos {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s3) var(--s6);
  margin: var(--s5) 0;
  padding: var(--s5);
  background: var(--surface-2);
  border-radius: var(--r-md);
  font-size: 14px;
}
.campos dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-top: 3px;
}
.campos dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* Formulários e campos ----------------------------------------- */

label {
  display: block;
  font-size: 14px;
  color: var(--text);
  letter-spacing: .02em;
  margin: var(--s5) 0 var(--s2);
}
label.marcador {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
}

input[type="text"], input[type="date"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: var(--text-hi);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: .15s;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--text-low); }
input:hover, select:hover, textarea:hover { border-color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px var(--laranja-15);
}
input[type="date"] { color-scheme: dark; }

/* Select próprio: a seta nativa some e entra uma desenhada, para o
   campo ficar igual em todos os navegadores. A semântica continua
   sendo a do select, então teclado e leitor de tela seguem valendo. */
.campo-select { position: relative; }
.campo-select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--text-mid);
  border-bottom: 1.5px solid var(--text-mid);
  transform: rotate(45deg);
  pointer-events: none;
}
.campo-select:hover::after { border-color: var(--laranja); }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
select option { background: var(--surface-2); color: var(--text-hi); }

/* Caixa de marcar própria, pelo mesmo motivo. */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px; height: 20px;
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
}
input[type="checkbox"]:checked {
  background: var(--laranja);
  border-color: var(--laranja);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border-right: 2px solid #1a0e06;
  border-bottom: 2px solid #1a0e06;
  transform: rotate(42deg);
}

.formulario { padding: 0 var(--s6); }
.formulario section {
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
}

/* Os campos ocupam a largura do cartão. Só os que têm conteúdo curto
   ficam contidos, porque um campo de 1000px para digitar "4" é pior
   que um apertado: a medida do campo já diz o que se espera dele. */
.formulario .curto { max-width: 280px; }
.formulario .medio { max-width: 620px; }
.formulario section:last-of-type { border-bottom: none; }
.formulario section h2 { margin-top: 0; }
.formulario .fixo { margin: 0; color: var(--text-mid); }

details { margin-top: var(--s4); }
summary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; color: var(--laranja); }
details[open] summary::before { content: "− "; }
.exemplo {
  margin-top: var(--s4);
  padding: var(--s5);
  background: var(--bg-app);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 22rem;
  overflow-y: auto;
  color: var(--text-mid);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s4);
}
.filtros div { display: flex; flex-direction: column; }
.filtros label { margin: 0 0 var(--s2); }
.filtros input, .filtros select, .filtros .campo-select {
  width: auto;
  min-width: 150px;
}

.resumo { margin: var(--s6) 0 var(--s4); font-family: var(--mono); font-size: 13px; }

.barra-acoes {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: var(--s6) 0;
}

/* Botões ------------------------------------------------------- */

button, .botao, a.secundario {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--disp);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: .18s;
}

button, .botao {
  background: var(--laranja);
  color: #1a0e06;
  box-shadow: var(--glow);
}
button:hover, .botao:hover {
  background: var(--laranja-hi);
  transform: translateY(-1px);
}
button:active, .botao:active { background: var(--laranja-dim); transform: none; }
button:focus-visible, .botao:focus-visible, a:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 3px;
}
button[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
button[disabled]:hover { background: var(--laranja); transform: none; }

button.secundario, .botao.secundario, a.secundario {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line-strong);
  box-shadow: none;
}
button.secundario:hover, .botao.secundario:hover, a.secundario:hover {
  border-color: var(--laranja);
  color: var(--laranja);
  background: transparent;
  transform: none;
}

button.destrutivo {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--line-strong);
  box-shadow: none;
}
button.destrutivo:hover {
  background: transparent;
  border-color: var(--laranja);
  color: var(--laranja);
  transform: none;
}

.perigo h2 { margin-top: 0; }
.perigo button { margin-top: var(--s4); }

.contador {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mid);
  margin: var(--s2) 0 var(--s5);
}
.contador.fora { color: var(--laranja); }

.aviso {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--surface-2);
  border-left: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text);
  margin: var(--s5) 0;
  overflow-wrap: anywhere;
}
.aviso.erro {
  background: var(--laranja-08);
  border-left-color: var(--laranja);
  color: var(--text-hi);
}

.busca-id {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s4);
}
.busca-id label { width: 100%; margin: 0 0 var(--s2); }
.busca-id input { flex: 1 1 20rem; max-width: none; }

.texto h1 { margin-bottom: var(--s5); }
.texto h2 {
  font-family: var(--disp);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--text-hi);
  margin: var(--s6) 0 var(--s3);
}
.texto p, .texto li { color: var(--text); }
.texto ul { padding-left: var(--s5); }
.texto li { margin-bottom: var(--s2); }

/* Responsivo --------------------------------------------------- */

@media (max-width: 60rem) {
  .app { grid-template-columns: 1fr; }
  .lateral {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--s6);
    padding: var(--s4) var(--s5);
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .marca { flex-direction: row; align-items: center; gap: var(--s4); }
  .marca img { height: 34px; }
  .marca .tag { display: none; }
  .lateral nav { flex-direction: row; align-items: center; }
  .lateral nav .grupo { display: none; }
  .lateral nav a { border-left: none; border-bottom: 2px solid transparent; }
  .lateral nav a.atual { border-bottom-color: var(--laranja); }
  .rodape-lateral { display: none; }
  main { padding: var(--s6) var(--s4) var(--s8); }
  .fila li, .historico li { flex-wrap: wrap; padding: var(--s5); }
  .acao { margin-left: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Entrada ------------------------------------------------------ */

body.entrada {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--s5);
}

.caixa-entrada {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: var(--s8) var(--s7);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  text-align: left;
}
/* A brasa atrás do cartão, para a entrada não ser uma caixa solta
   no escuro. É o único lugar do painel com glow de fundo. */
.caixa-entrada::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px; height: 420px;
  left: 50%; top: -30%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--laranja-42) 0%,
              rgba(229,109,35,.10) 38%, transparent 68%);
  pointer-events: none;
}

.logo-entrada {
  width: auto;
  height: 88px;
  filter: invert(1);
  display: block;
}
.caixa-entrada .tag {
  display: block;
  margin-top: var(--s3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.caixa-entrada form { margin-top: var(--s7); }

.caixa-entrada input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: var(--text-hi);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: .15s;
}
.caixa-entrada input[type="password"]:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px var(--laranja-15);
}
.caixa-entrada button {
  width: 100%;
  justify-content: center;
  margin-top: var(--s6);
}
.caixa-entrada .aviso { margin-bottom: 0; }

/* Sair: um link na lateral, não um botão laranja. */
.rodape-lateral form { margin: 0 0 var(--s4); }
button.sair {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
}
button.sair:hover {
  background: none;
  color: var(--laranja);
  transform: none;
}
