:root {
  --bg: #061317;
  --bg-2: #0b1f22;
  --rail: #08191c;
  --card: #12312e;
  --line: #1c4a44;
  --mint: #47f19c;
  --mint-dim: #1c6b53;
  --gold: #f5b731;
  --red: #f0564a;
  --text: #f0f6f0;
  --muted: #8da8a0;
  --soft: #b8cfc8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: "IBM Plex Sans", system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.rail { background: var(--rail); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; gap: 10px; align-items: center; }
.mark { width: 36px; height: 36px; border-radius: 8px; background: var(--mint); color: #061317; font-weight: 700; display: grid; place-items: center; }
.brand-name { font-weight: 700; }
.brand-sub { font-size: 12px; color: var(--muted); }
nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { text-align: left; background: transparent; border: 0; padding: 10px 12px; border-radius: 8px; color: var(--soft); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.nav-item:hover, .nav-item.active { background: var(--card); color: var(--text); }
.nav-item.active { box-shadow: inset 3px 0 0 var(--mint); }
.badge { background: var(--gold); color: #061317; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.rail-foot { margin-top: auto; }
.tech { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mint-dim); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
main { padding: 18px 28px 40px; overflow: auto; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.search { flex: 1; max-width: 640px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.search input { flex: 1; background: transparent; border: 0; outline: 0; padding: 10px 0; }
.pill { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; }
.pill.live { color: var(--mint); border-color: var(--mint-dim); }
.pill.link { background: transparent; cursor: pointer; color: var(--soft); }
.view { display: none; }
.view.show { display: block; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 28px; font-weight: 600; }
.page-head p { color: var(--muted); margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpis article { background: var(--card); border-radius: 12px; padding: 14px 16px; }
.kpis label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpis strong { display: block; font-size: 28px; margin: 6px 0 4px; }
.card { background: var(--card); border-radius: 12px; padding: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.btn { background: var(--mint); color: #061317; border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--red); color: white; }
.text-btn { background: none; border: 0; color: var(--mint); cursor: pointer; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #0b1f22; color: var(--soft); }
.tag.ok { color: var(--mint); }
.approval { margin-top: 12px; }
.approval.denied { outline: 1px solid var(--red); }
.approval.own { outline: 1px solid var(--gold); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.meta { display: grid; gap: 8px; }
.guest-layer { position: fixed; inset: 0; background: rgba(2,8,10,.86); display: grid; place-items: center; padding: 24px; z-index: 20; }
.guest-layer[hidden] { display: none; }
.guest-card { width: min(520px, 100%); background: #0e2422; border-radius: 16px; padding: 28px; }
@media (max-width: 1100px) {
  .kpis, .app { grid-template-columns: 1fr; }
  .rail, nav { flex-direction: row; flex-wrap: wrap; }
}
