/* ===== ORBITAL THEME — Aerospace Command Center ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #040d1a;
  color: #c8ddf0;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: #00d4ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Starfield background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(1px 1px at 15% 25%, rgba(0,212,255,0.3), transparent),
    radial-gradient(1px 1px at 75% 15%, rgba(0,212,255,0.2), transparent),
    radial-gradient(1px 1px at 35% 65%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(0,212,255,0.15), transparent),
    radial-gradient(1px 1px at 8% 75%, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 88% 85%, rgba(0,212,255,0.2), transparent),
    radial-gradient(1px 1px at 45% 10%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 92% 40%, rgba(0,212,255,0.18), transparent),
    radial-gradient(1px 1px at 25% 90%, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 65% 80%, rgba(0,212,255,0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Orbital arc decorations */
.orbital-arcs {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  pointer-events: none;
  z-index: 0;
}
.orbital-arcs .arc {
  position: absolute;
  border: 1px solid rgba(0,212,255,0.06);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbital-arcs .arc:nth-child(1) { width: 400px; height: 400px; }
.orbital-arcs .arc:nth-child(2) { width: 600px; height: 600px; }
.orbital-arcs .arc:nth-child(3) { width: 800px; height: 800px; }

/* ===== HEADER ===== */
.header {
  background: rgba(4, 13, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,212,255,0.15);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
}
.header img { height: 32px; filter: brightness(1.1); }
.header-logo { height: 36px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(0,212,255,0.4)) brightness(1.2); }
.header h1 {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #00d4ff;
  flex: 1;
}
.header .user-info { font-size: 0.82rem; color: #5a8aaa; }

/* Theme toggle button */
.theme-toggle-btn {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  color: #00d4ff;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.theme-toggle-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
}

/* ===== NAV ===== */
.nav {
  background: rgba(4, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,212,255,0.1);
  padding: 0 32px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  position: relative;
  z-index: 10;
}
.nav button {
  background: none;
  border: none;
  color: #5a8aaa;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav button:hover { color: #c8ddf0; }
.nav button.active { color: #00d4ff; border-bottom-color: #00d4ff; }

/* ===== MAIN ===== */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
  position: relative;
  z-index: 1;
}
.section { display: none; }
.section.active { display: block; }

/* ===== CARDS ===== */
.card {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}
.card h3 { font-size: 1rem; margin-bottom: 12px; color: #e8f4ff; font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

/* ===== STATUS DOTS ===== */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.active { background: #00ffaa; box-shadow: 0 0 6px rgba(0,255,170,0.5); }
.dot.onboarding { background: #ffa500; box-shadow: 0 0 6px rgba(255,165,0,0.5); }
.dot.paused { background: #ff4444; }
.dot.decommissioned { background: #2a3a4a; }

/* ===== MY AGENT / DASHBOARD CARD ===== */
.my-agent-card {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 16px;
  padding: 28px;
}
.my-agent-card .agent-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.my-agent-card .agent-emoji { font-size: 3rem; }
.my-agent-card .agent-name { font-size: 1.6rem; font-weight: 700; color: #e8f4ff; }
.my-agent-card .agent-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.meta-tag {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #5a8aaa;
}

/* ===== ORG TREE ===== */
.org-tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-level { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; position: relative; }
.org-node {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  min-width: 180px;
  position: relative;
}
.org-node::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}
.org-node .name { font-weight: 600; font-size: 1rem; color: #e8f4ff; }
.org-node .role { font-size: 0.8rem; color: #5a8aaa; margin-top: 4px; }
.org-node .agent-badge {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,212,255,0.08);
  border-radius: 16px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: #00d4ff;
}
.org-connector {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #00d4ff, rgba(0,212,255,0.1));
  margin: 0 auto;
}
.org-branch { display: flex; justify-content: center; align-items: flex-start; position: relative; }
.org-branch::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 4px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  font-weight: 300;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(0,212,255,0.05); font-size: 0.88rem; color: #c8ddf0; }
.data-table tr:hover td { background: rgba(0,212,255,0.04); }
.data-table .expand-row td { background: rgba(0,20,40,0.6); padding: 16px 24px; }

/* ===== PROJECT CARDS ===== */
.project-card {
  background: rgba(4,20,40,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 12px;
  padding: 18px;
}
.project-card h4 { font-size: 1rem; margin-bottom: 8px; color: #e8f4ff; }
.project-card .project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.project-card .agents-list { font-size: 0.8rem; color: #5a8aaa; }

/* ===== ADMIN ===== */
.admin-section { margin-bottom: 32px; }
.admin-section h3 { margin-bottom: 16px; font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: #00d4ff; font-weight: 300; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.82rem; color: #5a8aaa; margin-bottom: 4px; }
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(4,20,40,0.8);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #c8ddf0;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(0,212,255,0.4);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

.btn {
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.3);
  color: #00d4ff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn:hover { background: rgba(0,212,255,0.2); border-color: rgba(0,212,255,0.5); }
.btn-danger {
  background: rgba(255,68,68,0.12);
  border-color: rgba(255,68,68,0.3);
  color: #ff6b6b;
}
.btn-danger:hover { background: rgba(255,68,68,0.2); border-color: rgba(255,68,68,0.5); }
.btn-secondary {
  background: rgba(90,138,170,0.1);
  border: 1px solid rgba(90,138,170,0.2);
  color: #5a8aaa;
}
.btn-secondary:hover { background: rgba(90,138,170,0.15); border-color: rgba(90,138,170,0.35); }
.btn-sm { padding: 4px 12px; font-size: 0.78rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(4,20,40,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.88rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  color: #c8ddf0;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255,68,68,0.4); }
.toast.success { border-color: rgba(0,255,170,0.4); }

/* ===== DASHBOARD STATS BAR ===== */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 3px solid rgba(0,212,255,0.2);
  position: relative;
}
.stat-card.green { border-left-color: rgba(0,255,170,0.5); }
.stat-card.blue { border-left-color: rgba(0,212,255,0.5); }
.stat-card.purple { border-left-color: rgba(190,130,255,0.5); }
.stat-card.orange { border-left-color: rgba(255,165,0,0.5); }
.stat-card .stat-icon { font-size: 1.5rem; }
.stat-card .stat-body { display: flex; flex-direction: column; }
.stat-card .stat-value { font-size: 1.3rem; font-weight: 700; color: #e8f4ff; }
.stat-card .stat-label { font-size: 0.72rem; color: #5a8aaa; text-transform: uppercase; letter-spacing: 3px; font-weight: 300; }

/* ===== HERO AGENT CARD ===== */
.hero-agent {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-agent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}
.hero-agent .hero-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-agent .hero-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.hero-agent .hero-emoji { font-size: 2.2rem; }
.hero-agent .hero-name { font-size: 1.3rem; font-weight: 700; color: #e8f4ff; }
.hero-agent .hero-model {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: #5a8aaa;
  margin-left: 8px;
}
.hero-agent .hero-center { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 160px; }
.hero-agent .hero-right { display: flex; align-items: center; gap: 8px; color: #5a8aaa; font-size: 0.85rem; }
.hero-agent .hero-projects-line { margin-top: 12px; font-size: 0.85rem; color: #5a8aaa; }
.hero-paused { margin-top: 8px; font-size: 0.8rem; color: rgba(90,138,170,0.4); }

/* ===== DASHBOARD PROJECTS TABLE ===== */
.dash-table-wrap {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.dash-table-wrap h3 { padding: 16px 20px 0; font-size: 0.7rem; font-weight: 300; color: #00d4ff; text-transform: uppercase; letter-spacing: 4px; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.68rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 4px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  font-weight: 300;
}
.dash-table td { padding: 10px 20px; font-size: 0.85rem; border-bottom: 1px solid rgba(0,212,255,0.05); color: #c8ddf0; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(0,212,255,0.04); }
.dash-table .domain-link { color: #00d4ff; font-size: 0.82rem; }
.dash-table .auth-badge {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: #5a8aaa;
}

/* ===== TEAM OVERVIEW ===== */
.team-overview { margin-bottom: 24px; }
.team-overview h3 { font-size: 0.7rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: #00d4ff; margin-bottom: 14px; }
.team-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.team-mini-card {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 170px;
  max-width: 200px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  text-align: center;
  position: relative;
}
.team-mini-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}
.team-mini-card:hover { border-color: rgba(0,212,255,0.35); background: rgba(0,212,255,0.06); }
.team-mini-card .tm-avatar { font-size: 1.6rem; margin-bottom: 6px; }
.team-mini-card .tm-name { font-size: 0.85rem; font-weight: 600; color: #e8f4ff; }
.team-mini-card .tm-agent {
  font-size: 0.75rem;
  color: #5a8aaa;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ===== LEADERBOARD / SCOREBOARD ===== */
.leaderboard-section { margin-bottom: 32px; }
.leaderboard-section h3 { font-size: 0.7rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: #00d4ff; margin-bottom: 14px; }
.lb-summary-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: #5a8aaa;
  background: rgba(4,20,40,0.8);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 10px;
  padding: 10px 16px;
}
.lb-summary-strip .lb-top { color: #FFD700; font-weight: 700; }
.lb-summary-strip .lb-sep { color: rgba(0,212,255,0.2); margin: 0 4px; }

/* Podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin-bottom: 28px; }
.podium-card {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
  position: relative;
}
.podium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}
.podium-card:hover { border-color: rgba(0,212,255,0.3); }
.podium-card.rank-1 {
  border-color: rgba(255,215,0,0.35);
  background: rgba(4,20,40,0.9);
  min-width: 180px;
  padding: 28px;
}
.podium-card.rank-1::before { background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent); }
.podium-card.rank-2 { border-color: rgba(192,192,192,0.25); }
.podium-card.rank-3 { border-color: rgba(205,127,50,0.25); }
.podium-medal { font-size: 2rem; }
.podium-card.rank-1 .podium-medal { font-size: 2.4rem; }
.podium-name { font-size: 0.88rem; font-weight: 700; color: #e8f4ff; }
.podium-card.rank-1 .podium-name { font-size: 1rem; }
.podium-score { font-size: 2rem; font-weight: 900; color: #00d4ff; }
.podium-card.rank-1 .podium-score { font-size: 2.6rem; }
.podium-domain a { font-size: 0.72rem; color: #00d4ff; }

/* Rankings Table */
.rank-table-wrap {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.65rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  white-space: nowrap;
  font-weight: 300;
}
.rank-table td {
  padding: 9px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  vertical-align: middle;
  color: #c8ddf0;
}
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr.data-row:hover td { background: rgba(0,212,255,0.04); cursor: pointer; }
.rank-table tr.expand-row td { background: rgba(0,10,25,0.7); border-bottom: 1px solid rgba(0,212,255,0.1); cursor: default; }
.rank-num { font-weight: 700; font-size: 0.85rem; color: #5a8aaa; min-width: 28px; display: inline-block; }
.rank-score { font-weight: 800; font-size: 1.1rem; color: #00d4ff; }

/* Shared helpers */
.score-tag-select {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  padding: 2px 6px;
  color: #5a8aaa;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.score-tag-select:hover { border-color: rgba(0,212,255,0.35); }
.score-expand-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 4px 0; }
.score-detail-item { display: flex; flex-direction: column; gap: 2px; }
.score-detail-label { font-size: 0.68rem; color: rgba(0,212,255,0.4); text-transform: uppercase; letter-spacing: 3px; font-weight: 300; }
.score-detail-val { font-size: 0.88rem; color: #c8ddf0; font-weight: 500; }
.score-recalc-btn {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  padding: 4px 12px;
  color: #5a8aaa;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-left: 12px;
}
.score-recalc-btn:hover { border-color: rgba(0,212,255,0.35); color: #00d4ff; }

/* ===== AGENTS TAB — Org Tree ===== */
.agents-org-tree { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 40px; }
.agents-org-tree .tree-connector {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, #00d4ff, rgba(0,212,255,0.1));
  margin: 0 auto;
}
.agents-org-tree .tree-h-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}
.agents-org-tree .tree-level { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; position: relative; }

.agent-tree-card {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  min-width: 170px;
  max-width: 220px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.agent-tree-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}
.agent-tree-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 24px rgba(0,212,255,0.1);
}
.agent-tree-card.paused { opacity: 0.4; border-color: rgba(0,212,255,0.08) !important; }
.agent-tree-card .atc-emoji { font-size: 1.8rem; margin-bottom: 4px; }
.agent-tree-card .atc-name { font-size: 0.95rem; font-weight: 700; color: #e8f4ff; }
.agent-tree-card .atc-detail { font-size: 0.72rem; color: #5a8aaa; margin-top: 3px; line-height: 1.4; }
.agent-tree-card .atc-dept {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Dept colors — orbital style */
.agent-tree-card.dept-hr { border-color: rgba(255,165,0,0.3); }
.agent-tree-card.dept-hr .atc-dept { background: rgba(255,165,0,0.1); color: #ffa500; border: 1px solid rgba(255,165,0,0.2); }
.agent-tree-card.dept-bizdev { border-color: rgba(255,70,70,0.3); }
.agent-tree-card.dept-bizdev .atc-dept { background: rgba(255,70,70,0.1); color: #ff6b6b; border: 1px solid rgba(255,70,70,0.2); }
.agent-tree-card.dept-engineering { border-color: rgba(0,255,170,0.25); }
.agent-tree-card.dept-engineering .atc-dept { background: rgba(0,255,170,0.08); color: #00ffaa; border: 1px solid rgba(0,255,170,0.2); }
.agent-tree-card.dept-executive { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); }
.agent-tree-card.dept-executive .atc-dept { background: rgba(0,212,255,0.1); color: #00d4ff; border: 1px solid rgba(0,212,255,0.2); }
.agent-tree-card.dept-creative { border-color: rgba(190,130,255,0.3); }
.agent-tree-card.dept-creative .atc-dept { background: rgba(190,130,255,0.1); color: #be82ff; border: 1px solid rgba(190,130,255,0.2); }

/* ===== AGENT PROJECT GRIDS ===== */
.agent-project-grids { margin-bottom: 40px; }
.agent-project-grids h3 {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 16px;
}
.agent-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.agent-projects-grid .apg-span2 { grid-column: span 2; }
.apg-card {
  background: rgba(4,20,40,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}
.apg-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  color: #c8ddf0;
}
.apg-table { width: 100%; border-collapse: collapse; }
.apg-table th {
  text-align: left;
  padding: 8px 16px;
  font-size: 0.65rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(0,212,255,0.06);
  font-weight: 300;
}
.apg-table td { padding: 7px 16px; font-size: 0.82rem; border-bottom: 1px solid rgba(0,212,255,0.04); color: #c8ddf0; }
.apg-table a { color: #00d4ff; }
.apg-table tr:last-child td { border-bottom: none; }
.apg-empty { padding: 12px 16px; font-size: 0.8rem; color: rgba(90,138,170,0.4); }

/* ===== TOKEN USAGE CARDS ===== */
.token-usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.token-card {
  background: rgba(4,20,40,0.6);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 10px;
  padding: 16px;
}
.token-card .tc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.token-card .tc-name { font-weight: 700; font-size: 0.95rem; color: #e8f4ff; }
.token-card .tc-model { font-size: 0.72rem; color: #5a8aaa; }
.token-card .tc-subtitle { font-size: 0.72rem; color: #5a8aaa; margin-bottom: 12px; }
.token-card .tc-stats { display: flex; gap: 16px; margin-bottom: 12px; }
.token-card .tc-stat { display: flex; flex-direction: column; }
.token-card .tc-stat-val { font-size: 1.1rem; font-weight: 700; color: #00d4ff; }
.token-card .tc-stat-label { font-size: 0.65rem; color: #5a8aaa; text-transform: uppercase; letter-spacing: 3px; font-weight: 300; }
.token-card .tc-bar { height: 6px; border-radius: 3px; overflow: hidden; display: flex; background: rgba(0,212,255,0.06); margin-bottom: 8px; }
.token-card .tc-bar-in { background: linear-gradient(90deg, #00d4ff, #0088ff); height: 100%; }
.token-card .tc-bar-out { background: linear-gradient(90deg, #be82ff, #8844cc); height: 100%; }
.token-card .tc-daily { font-size: 0.68rem; color: rgba(90,138,170,0.5); }
.token-summary {
  background: rgba(4,20,40,0.6);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 8px;
  padding: 20px;
  grid-column: 1 / -1;
}

/* ===== DEV TEAMS ===== */
.dev-teams { margin-bottom: 32px; }
.dev-teams h3 {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 16px;
}
.dev-teams-row { display: flex; gap: 16px; flex-wrap: wrap; }
.dev-team-box {
  background: rgba(4,20,40,0.8);
  border: 1px solid rgba(0,255,170,0.2);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 220px;
  flex: 1;
  max-width: 340px;
}
.dev-team-box h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; color: #00ffaa; }
.dev-team-member { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.85rem; }
.dev-team-member .dtm-emoji { font-size: 1.1rem; }
.dev-team-member .dtm-name { font-weight: 500; color: #c8ddf0; }
.dev-team-member .dtm-role { font-size: 0.75rem; color: #5a8aaa; }

/* ===== TIME RANGE BUTTONS ===== */
.time-btn {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  color: #5a8aaa;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.time-btn:hover { background: rgba(0,212,255,0.1); color: #c8ddf0; }
.time-btn.active { background: rgba(0,212,255,0.15); color: #00d4ff; border-color: rgba(0,212,255,0.35); }
.date-input {
  background: rgba(4,20,40,0.8);
  border: 1px solid rgba(0,212,255,0.15);
  color: #c8ddf0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}
.date-input::-webkit-calendar-picker-indicator { filter: invert(0.7) sepia(1) hue-rotate(180deg); }

/* ===== NEWS FEED ===== */
.news-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.news-header-left h2 {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #00d4ff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-header-left p { font-size: 0.85rem; color: #5a8aaa; margin-top: 4px; }
.news-feed { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.news-card {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 18px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-left: 3px solid rgba(0,212,255,0.15);
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.25); }
.news-card.tag-hr { border-left-color: rgba(255,165,0,0.5); }
.news-card.tag-security { border-left-color: rgba(255,68,68,0.5); }
.news-card.tag-deployment { border-left-color: rgba(0,255,170,0.5); }
.news-card.tag-infra { border-left-color: rgba(0,212,255,0.5); }
.news-card-emoji { font-size: 2.2rem; line-height: 1; flex-shrink: 0; width: 48px; text-align: center; padding-top: 2px; }
.news-card-body { flex: 1; min-width: 0; }
.news-card-title { font-size: 1rem; font-weight: 700; color: #e8f4ff; margin-bottom: 8px; }
.news-card-content { font-size: 0.88rem; color: #c8ddf0; line-height: 1.65; white-space: pre-wrap; word-break: break-word; margin-bottom: 12px; }
.news-card-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-card-author { font-size: 0.8rem; font-weight: 600; color: #5a8aaa; }
.news-card-time { font-size: 0.78rem; color: rgba(90,138,170,0.5); }
.news-tag { display: inline-block; font-size: 0.72rem; padding: 2px 9px; border-radius: 12px; font-weight: 500; }
.news-tag.tag-hr { background: rgba(255,165,0,0.1); color: #ffa500; border: 1px solid rgba(255,165,0,0.2); }
.news-tag.tag-security { background: rgba(255,68,68,0.1); color: #ff6b6b; border: 1px solid rgba(255,68,68,0.2); }
.news-tag.tag-deployment { background: rgba(0,255,170,0.08); color: #00ffaa; border: 1px solid rgba(0,255,170,0.2); }
.news-tag.tag-infra { background: rgba(0,212,255,0.08); color: #00d4ff; border: 1px solid rgba(0,212,255,0.2); }
.news-tag.tag-other { background: rgba(90,138,170,0.08); color: #5a8aaa; border: 1px solid rgba(90,138,170,0.15); }
.news-card-delete {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: rgba(90,138,170,0.3);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.news-card-delete:hover { color: #ff6b6b; background: rgba(255,68,68,0.1); }
.news-compose {
  background: rgba(4,20,40,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 12px;
  padding: 22px;
  max-width: 860px;
  margin-bottom: 24px;
}
.news-compose h3 { font-size: 0.7rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: #00d4ff; margin-bottom: 16px; }
.news-compose .form-group textarea {
  width: 100%;
  background: rgba(4,20,40,0.8);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #c8ddf0;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  min-height: 100px;
  resize: vertical;
}
.news-empty { color: rgba(90,138,170,0.4); font-size: 0.95rem; padding: 32px 0; text-align: center; }
.news-compose-row { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { padding: 12px 16px; }
  .nav { padding: 0 16px; }
  .main { padding: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .agent-tree-card { min-width: 140px; max-width: 180px; padding: 10px 12px; }
  .dev-team-box { max-width: 100%; }
  .orbital-arcs { width: 600px; height: 600px; }
  .orbital-arcs .arc:nth-child(1) { width: 250px; height: 250px; }
  .orbital-arcs .arc:nth-child(2) { width: 380px; height: 380px; }
  .orbital-arcs .arc:nth-child(3) { width: 500px; height: 500px; }
  .agent-projects-grid .apg-span2 { grid-column: span 1; }
}

@media (max-width: 600px) {
  .news-compose-row { grid-template-columns: 1fr; }
}

/* ===== TASKS — Orbital Theme ===== */
.tasks-header { margin-bottom: 20px; }
.tasks-header h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; color: #e8f4ff; }
.tasks-header p { color: rgba(200,221,240,0.5); font-size: 0.9rem; }

.tasks-stats-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tasks-stat { background: rgba(0,212,255,0.05); border: 1px solid rgba(0,212,255,0.15); border-radius: 10px; padding: 12px 20px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; text-align: center; min-width: 90px; }
.tasks-stat:hover { border-color: rgba(0,212,255,0.4); box-shadow: 0 0 12px rgba(0,212,255,0.1); }
.tasks-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: #00d4ff; }
.tasks-stat-label { font-size: 0.75rem; color: rgba(200,221,240,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.tasks-stat-done .tasks-stat-num { color: #3fb950; }
.tasks-stat-blocked .tasks-stat-num { color: #f85149; }

.tasks-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.tasks-filter-bar select { background: rgba(0,20,40,0.8); border: 1px solid rgba(0,212,255,0.2); border-radius: 8px; color: #c8ddf0; font-family: inherit; font-size: 0.85rem; padding: 6px 10px; cursor: pointer; }
.tasks-clear-filter { background: none; border: 1px solid rgba(0,212,255,0.2); border-radius: 8px; color: rgba(200,221,240,0.5); font-family: inherit; font-size: 0.8rem; padding: 6px 12px; cursor: pointer; transition: all 0.2s; }
.tasks-clear-filter:hover { color: #00d4ff; border-color: rgba(0,212,255,0.5); }

.tasks-new-btn { background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,212,255,0.1)); border: 1px solid rgba(0,212,255,0.4); border-radius: 8px; color: #00d4ff; font-family: inherit; font-size: 0.9rem; font-weight: 500; padding: 8px 20px; cursor: pointer; margin-bottom: 16px; transition: all 0.2s; }
.tasks-new-btn:hover { background: rgba(0,212,255,0.25); box-shadow: 0 0 16px rgba(0,212,255,0.2); }

.tasks-new-form { background: rgba(0,20,40,0.8); border: 1px solid rgba(0,212,255,0.2); border-radius: 12px; padding: 20px; margin-bottom: 20px; max-width: 860px; backdrop-filter: blur(8px); }
.tasks-new-form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 600; color: #00d4ff; }
.tasks-form-close { background: none; border: none; color: rgba(200,221,240,0.4); font-size: 1rem; cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: all 0.2s; }
.tasks-form-close:hover { color: #f85149; background: rgba(248,81,73,0.1); }
.tasks-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tasks-new-form .form-group textarea { width: 100%; background: rgba(0,10,20,0.8); border: 1px solid rgba(0,212,255,0.2); border-radius: 8px; padding: 8px 12px; color: #c8ddf0; font-family: inherit; font-size: 0.9rem; resize: vertical; }
.tasks-new-form .form-group select { width: 100%; background: rgba(0,10,20,0.8); border: 1px solid rgba(0,212,255,0.2); border-radius: 8px; padding: 8px 12px; color: #c8ddf0; font-family: inherit; font-size: 0.9rem; }

.tasks-group { margin-bottom: 24px; }
.tasks-group-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(0,212,255,0.6); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tasks-group-count { background: rgba(0,212,255,0.1); border-radius: 10px; padding: 1px 8px; font-size: 0.75rem; color: rgba(0,212,255,0.6); }

.task-card { background: rgba(0,20,40,0.6); border: 1px solid rgba(0,212,255,0.1); border-radius: 10px; padding: 12px 16px; margin-bottom: 6px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; backdrop-filter: blur(4px); }
.task-card:hover { border-color: rgba(0,212,255,0.3); box-shadow: 0 0 10px rgba(0,212,255,0.06); }
.task-card.task-status-blocked { border-left: 3px solid #f85149; }
.task-card.task-status-in-progress { border-left: 3px solid rgba(0,212,255,0.7); }
.task-card.task-status-done { border-left: 3px solid #3fb950; opacity: 0.65; }

.task-card-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-status-icon { font-size: 1rem; width: 16px; text-align: center; flex-shrink: 0; color: rgba(0,212,255,0.7); }
.task-title { font-weight: 500; font-size: 0.95rem; flex: 1; min-width: 120px; color: #e8f4ff; }
.task-priority { font-size: 0.7rem; font-weight: 600; border-radius: 10px; padding: 2px 8px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.4px; }
.priority-urgent { background: rgba(248,81,73,0.15); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.priority-high   { background: rgba(210,153,34,0.15); color: #d29922; border: 1px solid rgba(210,153,34,0.3); }
.priority-normal { background: rgba(0,212,255,0.08); color: rgba(0,212,255,0.6); border: 1px solid rgba(0,212,255,0.15); }
.priority-low    { background: rgba(200,221,240,0.05); color: rgba(200,221,240,0.3); border: 1px solid rgba(200,221,240,0.1); }
.task-agent { font-size: 0.82rem; color: rgba(0,212,255,0.7); flex-shrink: 0; }
.task-agent-none { font-size: 0.82rem; color: rgba(200,221,240,0.25); font-style: italic; }
.task-req-by { font-size: 0.8rem; color: rgba(200,221,240,0.3); flex-shrink: 0; }
.task-age { font-size: 0.78rem; color: rgba(200,221,240,0.25); margin-left: auto; flex-shrink: 0; }

.task-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.task-quick-btn { background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15); border-radius: 6px; color: rgba(200,221,240,0.5); font-family: inherit; font-size: 0.78rem; padding: 3px 10px; cursor: pointer; transition: all 0.15s; }
.task-quick-btn:hover { border-color: rgba(0,212,255,0.5); color: #00d4ff; box-shadow: 0 0 8px rgba(0,212,255,0.1); }
.task-quick-done:hover { border-color: #3fb950; color: #3fb950; box-shadow: 0 0 8px rgba(63,185,80,0.1); }
.task-quick-block:hover { border-color: #f85149; color: #f85149; }
.task-quick-delete:hover { border-color: #f85149; color: #f85149; }

.task-expand { border-top: 1px solid rgba(0,212,255,0.08); margin-top: 12px; padding-top: 12px; }
.task-desc { font-size: 0.88rem; color: rgba(200,221,240,0.55); margin-bottom: 12px; white-space: pre-wrap; }
.task-notes-wrap label { display: block; font-size: 0.8rem; color: rgba(0,212,255,0.6); margin-bottom: 4px; }
.task-notes-input { width: 100%; background: rgba(0,10,20,0.8); border: 1px solid rgba(0,212,255,0.15); border-radius: 8px; padding: 8px 12px; color: #c8ddf0; font-family: inherit; font-size: 0.85rem; resize: vertical; }
.task-meta-row { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.task-meta-item { font-size: 0.75rem; color: rgba(200,221,240,0.25); }
.tasks-empty { color: rgba(200,221,240,0.25); text-align: center; padding: 40px 0; font-size: 0.95rem; }

@media (max-width: 600px) {
  .tasks-stats-bar { gap: 8px; }
  .tasks-stat { min-width: 70px; padding: 10px 12px; }
  .task-age { display: none; }
  .tasks-form-row { grid-template-columns: 1fr; }
}

/* ===== SECURITY ===== */
.sec-loading { color: rgba(200,221,240,0.35); padding: 40px 0; text-align: center; }
.sec-banner { display: flex; align-items: center; justify-content: space-between; background: rgba(255,71,87,0.07); border: 1px solid rgba(255,71,87,0.25); border-left: 4px solid #ff4757; border-radius: 10px; padding: 12px 18px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; backdrop-filter: blur(4px); }
.sec-banner-left { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(200,221,240,0.6); }
.sec-banner-icon { font-size: 1.2rem; }
.sec-banner-link { font-size: 0.85rem; color: #00d4ff; font-weight: 500; white-space: nowrap; text-shadow: 0 0 8px rgba(0,212,255,0.4); }
.sec-banner-link:hover { text-decoration: underline; }

.sec-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.sec-sum-card { background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.12); border-radius: 10px; padding: 14px 16px; text-align: center; backdrop-filter: blur(4px); }
.sec-sum-value { font-size: 1.8rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.sec-sum-label { font-size: 0.75rem; color: rgba(200,221,240,0.4); text-transform: uppercase; letter-spacing: 0.5px; }

.sec-progress-wrap { background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.12); border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; backdrop-filter: blur(4px); }
.sec-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sec-progress-label { font-size: 0.85rem; color: rgba(200,221,240,0.5); }
.sec-pct { font-size: 1rem; font-weight: 700; color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,0.4); }
.sec-progress-bar { height: 8px; background: rgba(0,212,255,0.08); border-radius: 4px; overflow: hidden; }
.sec-progress-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #3fb950); border-radius: 4px; transition: width 0.4s; box-shadow: 0 0 10px rgba(34,197,94,0.3); }
.sec-progress-sub { font-size: 0.78rem; color: rgba(200,221,240,0.25); margin-top: 6px; }

.sec-group-header { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: rgba(200,221,240,0.4); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; margin-top: 4px; }
.sec-open-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4757; display: inline-block; box-shadow: 0 0 6px rgba(255,71,87,0.5); }
.sec-count-badge { background: rgba(0,212,255,0.08); border-radius: 10px; padding: 1px 8px; font-size: 0.75rem; color: rgba(200,221,240,0.45); font-weight: 500; }

.sec-sev-group { margin-bottom: 20px; }
.sec-sev-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sec-sev-count { background: rgba(0,0,0,0.3); border-radius: 10px; padding: 1px 8px; font-size: 0.73rem; font-weight: 600; }

.sec-finding { background: rgba(0,212,255,0.03); border: 1px solid rgba(0,212,255,0.1); border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.sec-finding-fixed { opacity: 0.55; }
.sec-finding-hdr { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; gap: 10px; }
.sec-finding-hdr:hover { background: rgba(0,212,255,0.04); }
.sec-finding-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.sec-fid { font-size: 0.72rem; color: rgba(200,221,240,0.25); font-family: monospace; flex-shrink: 0; }
.sec-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; flex-shrink: 0; }
.sec-ftitle { font-size: 0.9rem; font-weight: 500; color: #c8ddf0; min-width: 0; }
.sec-finding-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sec-asset { font-size: 0.78rem; color: rgba(0,212,255,0.6); background: rgba(0,212,255,0.06); border-radius: 6px; padding: 2px 8px; }
.sec-chevron { font-size: 0.7rem; color: rgba(200,221,240,0.3); }

.sec-finding-body { padding: 0 14px 12px 14px; border-top: 1px solid rgba(0,212,255,0.08); }
.sec-desc { font-size: 0.85rem; color: rgba(200,221,240,0.55); line-height: 1.6; padding-top: 10px; margin-bottom: 10px; white-space: pre-wrap; }
.sec-finding-footer { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.sec-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sec-tag { background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15); border-radius: 10px; padding: 2px 8px; font-size: 0.72rem; color: rgba(0,212,255,0.6); }
.sec-fdates { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.75rem; color: rgba(200,221,240,0.25); }

.sec-fixed-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.12); border-radius: 10px; cursor: pointer; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: rgba(200,221,240,0.5); }
.sec-fixed-toggle:hover { background: rgba(0,212,255,0.07); color: #c8ddf0; }
.sec-count-fixed { margin-left: auto; }
.sec-fixed-group { margin-top: 8px; }

.sec-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 32px; }
.sec-session-card { background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.1); border-radius: 8px; padding: 12px 14px; }
.sec-session-num { font-size: 0.75rem; font-weight: 700; color: #00d4ff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; text-shadow: 0 0 6px rgba(0,212,255,0.3); }
.sec-session-date { font-size: 0.78rem; color: rgba(200,221,240,0.25); margin-bottom: 4px; }
.sec-session-summary { font-size: 0.82rem; color: rgba(200,221,240,0.5); }

@media (max-width: 900px) { .sec-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sec-cards { grid-template-columns: repeat(2, 1fr); } .sec-ftitle { font-size: 0.82rem; } }

/* ═══ World Tab ═══ */
.world-container { max-width: 900px; margin: 0 auto; }
.world-header { margin-bottom: 20px; }
.world-content { background: rgba(30, 34, 44, 0.6); border: 1px solid rgba(99, 102, 241, 0.15); border-radius: 12px; padding: 28px 32px; line-height: 1.7; font-size: 0.9rem; }
.world-content h1 { font-size: 1.4rem; margin: 0 0 8px; border-bottom: 1px solid rgba(99, 102, 241, 0.2); padding-bottom: 8px; }
.world-content h2 { font-size: 1.15rem; margin: 28px 0 12px; color: #a5b4fc; }
.world-content h3 { font-size: 1rem; margin: 20px 0 8px; }
.world-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.82rem; }
.world-content th { text-align: left; padding: 8px 10px; border-bottom: 2px solid rgba(99, 102, 241, 0.25); font-weight: 600; color: #a5b4fc; }
.world-content td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.world-content tr:hover td { background: rgba(99, 102, 241, 0.05); }
.world-content code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; }
.world-content pre { background: rgba(0,0,0,0.3); padding: 14px; border-radius: 8px; overflow-x: auto; }
.world-content pre code { background: none; padding: 0; }
.world-content blockquote { border-left: 3px solid #6366f1; padding: 8px 16px; margin: 12px 0; background: rgba(99, 102, 241, 0.05); border-radius: 0 8px 8px 0; font-size: 0.85rem; }
.world-content hr { border: none; border-top: 1px solid rgba(99, 102, 241, 0.15); margin: 24px 0; }
.world-content ol, .world-content ul { padding-left: 24px; }
.world-content li { margin: 4px 0; }
.world-content a { color: #818cf8; text-decoration: none; }
.world-content a:hover { text-decoration: underline; }
.world-content strong { color: #c7d2fe; }
