:root {
  --bg: #05050a;
  --bg-elev: rgba(255, 255, 255, 0.04);
  --bg-elev-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eaf2f5;
  --muted: #8fa0ad;
  --accent: #2EC8C8;
  --accent-soft: rgba(46, 200, 200, 0.16);
  --success: #38d48f;
  --danger: #ff6b7d;
  --warn: #ffbe55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(800px 420px at -10% -10%, rgba(46, 200, 200, 0.18), transparent 60%),
    radial-gradient(540px 320px at 110% 0%, rgba(46, 200, 200, 0.12), transparent 50%),
    var(--bg);
}

a { color: inherit; }

.layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  background: linear-gradient(180deg, rgba(9, 11, 19, 0.95), rgba(5, 5, 10, 0.92));
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 8px 8px 14px;
}

.brand small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links { display: grid; gap: 4px; }

.nav-link {
  display: block;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-link.active {
  color: var(--text);
  border-color: rgba(46, 200, 200, 0.35);
  background: var(--accent-soft);
}

.sidebar-footer { margin-top: 14px; }

.topbar {
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  height: 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.main {
  margin-left: 220px;
  padding: 72px 24px 24px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 700;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.spread { justify-content: space-between; }

.btn,
button {
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
}

.btn:hover,
button:hover { border-color: rgba(46, 200, 200, 0.4); }

.btn.primary {
  background: var(--accent);
  color: #042121;
  border-color: transparent;
  font-weight: 700;
}

.btn.danger {
  border-color: rgba(255, 107, 125, 0.45);
  color: #ffb9c2;
  background: rgba(255, 107, 125, 0.14);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(46, 200, 200, 0.25);
  border-color: rgba(46, 200, 200, 0.6);
}

textarea { min-height: 140px; width: 100%; }

.muted { color: var(--muted); font-size: 13px; }

.table-wrap { overflow: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge.success { color: #b4f4d4; background: rgba(56, 212, 143, 0.18); border-color: rgba(56, 212, 143, 0.45); }
.badge.danger { color: #ffc3cb; background: rgba(255, 107, 125, 0.18); border-color: rgba(255, 107, 125, 0.5); }
.badge.warn { color: #ffe4b5; background: rgba(255, 190, 85, 0.16); border-color: rgba(255, 190, 85, 0.45); }

.kpi { min-height: 122px; }

.status-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 12px;
}

.modal.open { display: flex; }

.modal-card {
  width: min(720px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #090d12;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-card {
  width: min(430px, 100%);
}

.login-card h1 { margin: 0 0 6px; font-size: 28px; }

.error { color: #ff8f9f; min-height: 18px; font-size: 13px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    left: 0;
    position: sticky;
    top: 0;
  }

  .main {
    margin-left: 0;
    padding-top: 18px;
  }

  .grid-2,
  .grid-4 { grid-template-columns: 1fr; }
}
/* deployed 20260310060838 */
