:root {
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #edf5ff;
  --muted: #9fb0c4;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #5eead4;
  --accent-2: #7dd3fc;
  --danger: #fb7185;
  --warning: #fbbf24;
  --success: #86efac;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(94, 234, 212, .18), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(125, 211, 252, .18), transparent 32%),
    var(--bg);
  color: var(--text);
}

.shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px;
  background: rgba(3, 9, 18, .62);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111f; font-weight: 900; font-size: 1.4rem;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.05rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); max-width: 850px; line-height: 1.03; letter-spacing: -0.04em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 4px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; margin-bottom: 8px; }
.nav { display: grid; gap: 10px; margin: 28px 0; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 12px 14px; border-radius: 10px;
  border: 1px solid transparent;
}
.nav a.active, .nav a:hover { color: var(--text); background: var(--panel); border-color: var(--line); }
.sidebar-card { border: 1px solid var(--line); background: var(--panel); padding: 18px; border-radius: 18px; color: var(--muted); line-height: 1.55; }
.workspace { padding: 34px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.primary-btn, .filter, .action-btn {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; cursor: pointer;
  color: var(--text); background: rgba(255,255,255,.08); font-weight: 750;
}
.primary-btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #03111f; border: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.metric-card { padding: 20px; }
.metric-card span { display: block; font-size: 2rem; font-weight: 900; }
.metric-card p { color: var(--muted); }
.panel { padding: 22px; margin-bottom: 18px; }
.panel-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter.active { background: rgba(94,234,212,.18); border-color: rgba(94,234,212,.45); }
.queue-list { display: grid; gap: 12px; }
.action-card {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr auto; gap: 14px; align-items: center;
  padding: 16px; border-radius: 16px; background: rgba(255,255,255,.065); border: 1px solid var(--line);
}
.action-card:hover { background: var(--panel-strong); }
.action-title { font-weight: 850; margin-bottom: 6px; }
.action-meta, .small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 7px 10px; font-size: .78rem; font-weight: 850; border: 1px solid var(--line); }
.badge.high, .badge.critical { color: var(--danger); background: rgba(251,113,133,.1); }
.badge.moderate, .badge.medium { color: var(--warning); background: rgba(251,191,36,.1); }
.badge.low, .badge.completed { color: var(--success); background: rgba(134,239,172,.1); }
.badge.review { color: var(--accent-2); background: rgba(125,211,252,.1); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.empty-state { color: var(--muted); padding: 20px; border: 1px dashed var(--line); border-radius: 16px; }
.detail-card { display: grid; gap: 12px; margin-top: 16px; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; color: var(--muted); }
.detail-row strong { color: var(--text); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.action-btn.approve { background: rgba(134,239,172,.16); }
.action-btn.escalate { background: rgba(251,191,36,.14); }
.action-btn.block { background: rgba(251,113,133,.14); }
.timeline { display: grid; gap: 12px; margin-top: 16px; }
.timeline-item { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); }
.timeline-item strong { color: var(--text); display: block; }
pre { white-space: pre-wrap; overflow: auto; background: rgba(0,0,0,.28); border: 1px solid var(--line); padding: 18px; border-radius: 16px; color: #dff7ff; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; }
  .topbar, .panel-header { flex-direction: column; align-items: stretch; }
  .metrics-grid, .split-grid { grid-template-columns: 1fr; }
  .action-card { grid-template-columns: 1fr; }
}
