:root {
  --bg: #0b0c0f;
  --bg-soft: #111318;
  --bg-soft2: #161a22;
  --accent: #f97316;
  --accent-soft: #f9731622;
  --red: #ef4444;
  --green: #22c55e;
  --muted: #9ca3af;
  --border: #111827;
  --text: #e5e7eb;
  --mono: "Courier New", monospace;
  --radius: 0.4rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: radial-gradient(circle at top, #111827 0, #020817 100%);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  color: #e5e5e5;
}

.logo-icon {
  font-size: 18px;
}

.top-status {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #0b0c0f;
}

.status-ok {
  background: var(--green);
}

.status-secret {
  background: var(--accent);
}

.status-live {
  background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* LAYOUT */

.main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 290px minmax(0, 1.6fr) 280px;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
}

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.5rem;
}

.panel h2 {
  margin: 0 0 0.4rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* LEFT PANEL */

.left-panel {
  display: flex;
  flex-direction: column;
}

.note {
  margin: 0 0 0.4rem;
  font-size: 11px;
  color: var(--muted);
}

.dossier ul {
  padding-left: 1.1rem;
  margin: 0.2rem 0;
  font-size: 11px;
  color: var(--muted);
}

.dossier li {
  margin-bottom: 0.2rem;
}

.status-card {
  background: var(--bg-soft2);
  border: 1px dashed var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
  font-size: 11px;
}

.status-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.15rem;
  color: var(--muted);
}

.tag {
  font-size: 9px;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #020817;
  background: var(--accent);
}

.tag-wanted {
  background: var(--red);
  color: #fff;
}

.tag-online {
  background: var(--green);
  color: #020817;
}

.entities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.entities-list li {
  padding: 0.1rem 0;
  border-bottom: 1px solid var(--border);
}

/* CENTER PANEL */

.center-panel {
  display: flex;
  flex-direction: column;
}

.super-agent {
  background: radial-gradient(circle at top, #111827 0, #020817 100%);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 11px;
}

.super-agent-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
}

.super-agent-log {
  background: #020817;
  border-radius: var(--radius);
  padding: 0.3rem 0.4rem;
  font-family: var(--mono);
  font-size: 10px;
  color: #9ca3af;
  margin-bottom: 0.3rem;
  max-height: 100px;
  overflow-y: auto;
}

.log-line {
  margin: 0.1rem 0;
}

.super-agent-controls {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.super-agent-controls button {
  font-size: 10px;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.super-agent-controls button:hover {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px var(--accent-soft);
}

/* AGENTS GRID */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
  font-size: 11px;
}

.agent-card {
  background: var(--bg-soft2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.agent-card .name {
  font-weight: 600;
  font-size: 11px;
}

.agent-card .role {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.agent-card .meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* RIGHT PANEL */

.right-panel {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.tasks-list,
.reports-list,
.access-log {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-item,
.report-item {
  background: var(--bg-soft2);
  border-radius: var(--radius);
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--border);
}

.task-title,
.report-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.task-meta,
.report-meta {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* FOOTER */

.footer {
  padding: 0.4rem 0.8rem;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
