:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1f2630;
  --line: #2a323d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #d4a72c;      /* ouro JIBA */
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.nav { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.brand { font-weight: 800; letter-spacing: .08em; font-size: 18px; }
.brand span { color: var(--accent); margin-left: 6px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
nav a:hover { background: var(--surface-2); color: var(--text); }
nav a.ativo { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.tz { margin-top: auto; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13px; }
.tz select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
main { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1 { font-size: 20px; margin: 0; }
.pill { padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid var(--line); }
.pill-GREEN { background: rgba(63,185,80,.15); color: var(--green); border-color: rgba(63,185,80,.4); }
.pill-YELLOW { background: rgba(210,153,34,.15); color: var(--yellow); border-color: rgba(210,153,34,.4); }
.pill-RED { background: rgba(248,81,73,.15); color: var(--red); border-color: rgba(248,81,73,.4); }
.pill-none { color: var(--muted); }
.view:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h2 { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.card .linha { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; padding: 3px 0; }
.card .linha b { color: var(--text); font-weight: 600; text-align: right; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.tag-FRESH { color: var(--green); background: rgba(63,185,80,.12); }
.tag-STALE { color: var(--yellow); background: rgba(210,153,34,.12); }
.tag-EXPIRED, .tag-NO_DATA { color: var(--red); background: rgba(248,81,73,.12); }
.fora { color: var(--accent); font-size: 12px; margin-top: 6px; }
.vazio { color: var(--muted); }
.painel-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.rodape { color: var(--muted); font-size: 12px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.erro { color: var(--red); }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 10px; }
  nav { flex-direction: row; overflow-x: auto; }
  nav a { white-space: nowrap; }
  .tz { margin-top: 0; flex-direction: row; align-items: center; }
  main { padding: 16px; }
}
