.portal {
  --green: #173e34;
  --ink: #263a33;
  --canvas: #f2f1e8;
  --paper: #fbfaf5;
  --line: #e2e3d7;
  --muted: #56655d;
  --terra: #98412f;
  --lime: #e1f199;
  --card-radius: 12px;
  --font-texto: Inter, system-ui, sans-serif;
  --font-titulo: "Instrument Serif", Georgia, serif;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.45 var(--font-texto);
  color-scheme: light;
}

.portal *, .portal *::before, .portal *::after { box-sizing: border-box; }
.portal a { color: inherit; text-underline-offset: .2em; }
.portal :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.portal-cabecalho, .portal-cabecalho :is(.brand, .account, .home-links) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-cabecalho {
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 7px clamp(12px, 3vw, 36px);
}

.portal-cabecalho .brand { text-decoration: none; }
.portal-cabecalho .brand img { width: 30px; height: 30px; object-fit: contain; }
.portal-cabecalho .account { min-width: 0; overflow-wrap: anywhere; }
.portal-cabecalho .demo { font-size: 11px; color: var(--muted); }
.portal-cabecalho .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0ebd9;
  color: var(--green);
  font-weight: 750;
  font-size: 11px;
}

.portal-cabecalho .home-links { gap: 12px; flex-wrap: wrap; }
.portal-cabecalho form { margin: 0; }
.portal-cabecalho .home-sair, .portal-modulo :is(button, a.button) {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
