/* VeriPass v3 Components */

.btn-primary {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font: 700 12px var(--mono);
  letter-spacing: 1px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Metric Cards ── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.metric-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.metric-label {
  font: 400 11px var(--sans);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.metric-value {
  font: 600 28px var(--mono);
  color: var(--text);
  line-height: 1;
}

.metric-delta {
  font: 500 12px var(--mono);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.metric-delta.positive { color: var(--green); }
.metric-delta.negative { color: var(--red-soft); }

/* ── Panels ── */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-title {
  font: 400 11px var(--sans);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ── Hero Score ── */
.hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 24px;
}

.hero-arc {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 16px;
}

.hero-arc svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-arc-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.hero-arc-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.hero-arc-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-number {
  font: 700 56px var(--mono);
  color: var(--text);
  line-height: 1;
}

.hero-denominator {
  font: 400 20px var(--mono);
  color: var(--text-muted);
}

.hero-label {
  font: 500 12px var(--sans);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.hero-subtitle {
  font: 400 14px var(--sans);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Attention Items ── */
.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.attention-item:last-child { border-bottom: none; }

.attention-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.attention-dot.red { background: var(--red-soft); }
.attention-dot.amber { background: var(--amber); }

.attention-text {
  font: 400 13px var(--sans);
  color: var(--text-secondary);
  line-height: 1.4;
}

.attention-deploy {
  color: var(--accent);
  font-weight: 500;
}

/* ── Sparkline ── */
.sparkline-container {
  height: 80px;
  margin-top: 8px;
}

.sparkline-container svg {
  width: 100%;
  height: 100%;
}

.sparkline-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-area {
  fill: url(#sparkGrad);
  opacity: 0.15;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font: 400 11px var(--mono);
  color: var(--text-dim);
}

/* ── Placeholder screens ── */
.placeholder-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--border-light);
  margin-bottom: 16px;
}

.placeholder-title {
  font: 600 14px var(--sans);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.placeholder-desc {
  font: 400 13px var(--sans);
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .metric-grid { grid-template-columns: 1fr; }
  .hero-number { font-size: 44px; }
  .hero-arc { width: 160px; height: 160px; }
}

/* ── OPERATE: Toolbar ── */
.v3-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.v3-toolbar-right { display:flex; gap:8px; align-items:center; }
.v3-search { flex:1; min-width:200px; padding:8px 14px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text); font:400 13px var(--sans); outline:none; transition:border-color var(--transition-fast); }
.v3-search:focus { border-color:var(--accent); }
.v3-view-toggle { display:flex; gap:2px; background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:var(--radius-sm); padding:2px; }
.v3-vt-btn { background:none; border:none; color:var(--text-muted); padding:4px 6px; border-radius:3px; cursor:pointer; display:flex; align-items:center; }
.v3-vt-btn.active { background:var(--accent); color:var(--bg); }
.v3-filter { padding:6px 10px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text); font:400 12px var(--sans); outline:none; }
.v3-btn-add { padding:6px 14px; background:var(--accent); color:var(--bg); border:none; border-radius:var(--radius-sm); font:600 12px var(--mono); cursor:pointer; letter-spacing:0.5px; transition:background var(--transition-fast); }
.v3-btn-add:hover { background:var(--accent-hover); }

/* ── OPERATE: Deployment Cards ── */
.v3-dep-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media(max-width:1024px) { .v3-dep-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:768px) { .v3-dep-grid { grid-template-columns:1fr; } }

.v3-dep-card { background:var(--card); border:1px solid var(--border); border-left:4px solid var(--text-muted); border-radius:var(--radius-lg); padding:20px; cursor:pointer; transition:transform 150ms ease,box-shadow 150ms ease; }
.v3-dep-card:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,0.2); }
.v3-dep-card:hover { border-top-color:#374151; border-right-color:#374151; border-bottom-color:#374151; }
.v3-dep-name { font:500 14px var(--sans); color:var(--text); margin-bottom:4px; }
.v3-dep-tags { font:400 12px var(--sans); color:var(--text-muted); margin-bottom:12px; }
.v3-dep-bcs { font:600 24px var(--mono); color:var(--text); margin-bottom:6px; }
.v3-dep-bcs-label { font:400 12px var(--mono); color:var(--text-muted); }
.v3-dep-bar { height:6px; border-radius:3px; background:var(--border); overflow:hidden; margin-bottom:12px; }
.v3-dep-bar-fill { height:100%; border-radius:3px; transition:width 0.5s ease; }
.v3-dep-stats { display:flex; gap:16px; margin-bottom:12px; }
.v3-dep-stat { text-align:center; }
.v3-dep-stat-val { font:600 16px var(--mono); display:block; }
.v3-dep-stat-lbl { font:400 10px var(--sans); color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; }
.v3-dep-footer { display:flex; justify-content:space-between; align-items:center; }
.v3-verdict-badge { font:600 10px var(--mono); letter-spacing:1px; padding:3px 10px; border-radius:6px; }

/* ── OPERATE: Table ── */
.v3-table { font:400 12px var(--sans); }
.v3-table-head { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr 1fr; gap:8px; padding:8px 12px; background:var(--border); border-radius:var(--radius-sm) var(--radius-sm) 0 0; font:600 10px var(--mono); color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; }
.v3-table-row { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr 1fr; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border); color:var(--text-secondary); cursor:pointer; transition:background var(--transition-fast); align-items:center; }
.v3-table-row:hover { background:rgba(255,255,255,0.02); }

/* ── Drawer ── */
.v3-drawer-overlay { position:fixed; inset:0; background:rgba(0,0,0,0); z-index:500; transition:background 0.3s ease; }
.v3-drawer-overlay.open { background:rgba(0,0,0,0.2); }
.v3-drawer { position:fixed; top:0; right:-600px; width:45%; min-width:400px; max-width:600px; height:100vh; background:var(--bg); border-left:1px solid var(--border); box-shadow:-4px 0 20px rgba(0,0,0,0.3); z-index:510; overflow-y:auto; transition:right 0.3s ease; }
.v3-drawer.open { right:0; }
.v3-drawer-close { position:absolute; top:16px; right:16px; background:none; border:none; color:var(--text-muted); font-size:24px; cursor:pointer; z-index:1; padding:4px 8px; }
.v3-drawer-close:hover { color:var(--text); }
.v3-drawer-body { padding:24px; }
.v3-drawer-loading { padding:80px 24px; text-align:center; color:var(--text-dim); font:400 13px var(--sans); }
.v3-drawer-name { font:500 18px var(--sans); color:var(--text); margin-bottom:4px; }
.v3-drawer-tags { font:400 12px var(--sans); color:var(--text-muted); margin-bottom:16px; }
.v3-drawer-hero { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.v3-drawer-bcs { font:700 32px var(--mono); color:var(--text); }
.v3-drawer-section-title { font:600 10px var(--mono); color:var(--text-muted); letter-spacing:1.5px; text-transform:uppercase; margin:20px 0 10px; padding-top:16px; border-top:1px solid var(--border); }
.v3-dim-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.v3-dim-label { font:600 11px var(--mono); color:var(--text-muted); width:20px; }
.v3-dim-row { margin-bottom:8px; }
.v3-dim-bar { flex:1; height:8px; border-radius:4px; background:var(--border); overflow:hidden; }
.v3-dim-fill { height:100%; border-radius:4px; transition:width 0.5s ease; }
.v3-dim-val { font:400 12px var(--mono); color:var(--text); width:40px; text-align:right; }
.v3-dim-label { font:600 12px var(--mono); color:var(--text-muted); width:22px; cursor:help; }
.v3-btn-link { background:none; border:1px solid var(--border); border-radius:var(--radius-sm); padding:6px 14px; font:500 12px var(--sans); color:var(--accent); cursor:pointer; transition:border-color var(--transition-fast); }
.v3-btn-link:hover { border-color:var(--accent); }
@media(max-width:768px) { .v3-drawer { width:100%; min-width:unset; max-width:unset; } }

/* ── OPERATE: Framework cards ── */
.v3-fw-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:1024px) { .v3-fw-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:768px) { .v3-fw-grid { grid-template-columns:repeat(2,1fr); } }
.v3-fw-card { background:var(--bg); border:1px solid var(--border); border-left:3px solid var(--text-muted); border-radius:var(--radius-md); padding:14px; }
.v3-fw-name { font:600 11px var(--mono); color:var(--text); letter-spacing:0.5px; margin-bottom:4px; }
.v3-fw-pct { font:700 20px var(--mono); }
.v3-fw-pill { font:600 9px var(--mono); color:var(--accent); background:var(--accent-dim); border:1px solid var(--accent-border); padding:2px 6px; border-radius:4px; letter-spacing:0.5px; }

/* ── OPERATE: Alerts ── */
.v3-alert-list { display:flex; flex-direction:column; gap:8px; }
.v3-alert-card { background:var(--card); border:1px solid var(--border); border-left:4px solid var(--text-muted); border-radius:var(--radius-md); padding:16px; }
.v3-alert-header { display:flex; justify-content:space-between; align-items:center; font:600 11px var(--mono); letter-spacing:0.5px; margin-bottom:6px; }
.v3-alert-title { font:500 13px var(--sans); color:var(--text); }

/* ── OPERATE: Agent chains ── */
.v3-chain-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:14px; margin-bottom:8px; }

/* ── Empty state ── */
.v3-empty { padding:40px 20px; text-align:center; color:var(--text-dim); font:400 13px var(--sans); line-height:1.6; }

/* ── Reports Grid ── */
.v3-report-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media(max-width:1024px) { .v3-report-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:768px) { .v3-report-grid { grid-template-columns:1fr; } }
.v3-report-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; transition:transform var(--transition-fast),border-color var(--transition-fast); }
.v3-report-card:hover { transform:translateY(-2px); border-color:var(--border-light); }

/* ── Ask VeriPass ── */
.v3-ask-suggestion { font:400 12px var(--sans); color:var(--accent); background:var(--accent-dim); border:1px solid var(--accent-border); padding:6px 12px; border-radius:20px; cursor:pointer; transition:background var(--transition-fast); }
.v3-ask-suggestion:hover { background:rgba(6,182,212,0.15); }

@keyframes v3DotPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }
.v3-dot-pulse { width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; animation:v3DotPulse 1.2s ease-in-out infinite; }

/* ── Skeletons ── */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.skeleton-bar {
  background: var(--border);
  border-radius: 4px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid var(--border);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* ── Arc Glow + Pulse ── */
@keyframes arcGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(6,182,212,0.35)) drop-shadow(0 0 16px rgba(6,182,212,0.12)); }
  50% { filter: drop-shadow(0 0 10px rgba(6,182,212,0.5)) drop-shadow(0 0 24px rgba(6,182,212,0.2)); }
}
.hero-arc { overflow: visible; }
.hero-arc svg { overflow: visible; }
.hero-arc-fill {
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.4)) drop-shadow(0 0 20px rgba(6,182,212,0.15));
  animation: arcGlow 3s ease-in-out infinite 2s;
}
.hero-number { text-shadow: 0 0 12px rgba(6,182,212,0.3), 0 0 30px rgba(6,182,212,0.15); }

/* ── Attention Dot Pulse ── */
@keyframes v3AttentionPulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes v3AttentionPulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.attention-dot.red { animation: v3AttentionPulse 2s ease-in-out infinite; }
.attention-dot.amber { animation: v3AttentionPulseAmber 2s ease-in-out infinite; }

/* ── Search Overlay ── */
.v3-search-overlay { position:fixed; inset:0; z-index:600; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); display:flex; align-items:flex-start; justify-content:center; padding-top:120px; }
.v3-search-box { width:560px; max-width:90vw; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:4px; box-shadow:0 24px 48px rgba(0,0,0,0.4); }
.v3-search-input { width:100%; padding:14px 16px; background:transparent; border:none; color:var(--text); font:400 16px var(--sans); outline:none; }
.v3-search-input::placeholder { color:var(--text-dim); }
.v3-search-results { border-top:1px solid var(--border); max-height:300px; overflow-y:auto; }
.v3-search-result { padding:10px 16px; cursor:pointer; transition:background var(--transition-fast); display:flex; align-items:center; gap:10px; }
.v3-search-result:hover { background:rgba(255,255,255,0.03); }
.v3-search-result-type { font:600 9px var(--mono); color:var(--text-muted); letter-spacing:1px; text-transform:uppercase; width:60px; flex-shrink:0; }
.v3-search-result-name { font:400 13px var(--sans); color:var(--text); }

/* ── Notification Dropdown ── */
.v3-notif-dropdown { position:absolute; top:42px; right:0; width:320px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:0 8px 32px rgba(0,0,0,0.4); z-index:200; overflow:hidden; }
.v3-notif-header { padding:12px 16px; border-bottom:1px solid var(--border); font:600 10px var(--mono); color:var(--text-muted); letter-spacing:1px; text-transform:uppercase; }
.v3-notif-empty { padding:24px 16px; text-align:center; font:400 13px var(--sans); color:var(--text-dim); }
.v3-notif-item { padding:10px 16px; border-bottom:1px solid var(--border); cursor:pointer; transition:background var(--transition-fast); }
.v3-notif-item:hover { background:rgba(255,255,255,0.03); }
.v3-notif-item:last-child { border-bottom:none; }

/* ── Body scroll lock ── */
body.drawer-open { overflow:hidden; }

/* ── Alternate table row striping ── */
.v3-table-row:nth-child(even) { background:rgba(17,24,39,0.5); }
.v3-table-row:nth-child(odd) { background:var(--bg); }
.v3-table-row:hover { background:var(--border) !important; }

/* ── Sub-tab sticky ── */
.sub-tabs { position:sticky; top:0; z-index:10; background:var(--bg); padding-bottom:8px; }

/* ── Consistent verdict badges ── */
.v3-badge-certified { background:rgba(6,182,212,0.1); color:#06B6D4; font:600 11px var(--mono); padding:4px 12px; border-radius:6px; letter-spacing:0.5px; }
.v3-badge-flagged { background:rgba(217,119,6,0.1); color:#D97706; font:600 11px var(--mono); padding:4px 12px; border-radius:6px; letter-spacing:0.5px; }
.v3-badge-failed { background:rgba(220,38,38,0.1); color:#DC2626; font:600 11px var(--mono); padding:4px 12px; border-radius:6px; letter-spacing:0.5px; }
.v3-badge-pending { background:rgba(148,163,184,0.1); color:#94A3B8; font:600 11px var(--mono); padding:4px 12px; border-radius:6px; letter-spacing:0.5px; }

/* ── Button active state ── */
.v3-btn-add:active, .btn-primary:active { transform:scale(0.98); }
.v3-btn-link:active { transform:scale(0.98); }

/* ══════════════════════════════════════════════════════
   COMPLIANCE GALAXY
   ══════════════════════════════════════════════════════ */

/* Page header */
.cg-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid #1E293B; }
.cg-header-title { font:600 11px var(--mono); color:#06B6D4; letter-spacing:3px; text-transform:uppercase; }
.cg-header-right { display:flex; align-items:center; gap:12px; font:400 12px var(--sans); color:#94A3B8; }
.cg-header-right select { background:#0F172A; color:#E2E8F0; border:1px solid #334155; border-radius:6px; padding:4px 8px; font:400 12px var(--mono); cursor:pointer; }

/* Heatmap strip */
.cg-heatmap { display:flex; gap:2px; margin-bottom:24px; }
.cg-heatmap-seg { flex:1; height:48px; border-radius:4px; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; transition:all 150ms ease; min-width:0; }
.cg-heatmap-seg:hover { transform:scaleY(1.04); filter:brightness(1.2); }
.cg-heatmap-label { font:400 8px var(--mono); color:#F1F5F9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; text-align:center; line-height:1; }
.cg-heatmap-pct { font:700 12px var(--mono); color:#F1F5F9; line-height:1; margin-top:2px; }

/* Posture ring container */
.cg-ring-wrap { display:flex; flex-direction:column; align-items:center; padding:24px 0 20px; }
.cg-ring-svg { width:200px; height:200px; }
.cg-ring-center { font:700 42px var(--mono); }
.cg-ring-label { font:400 10px var(--mono); color:#64748B; letter-spacing:2px; margin-top:-4px; text-align:center; }
.cg-ring-pills { display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; justify-content:center; }
.cg-ring-pill { background:#0F172A; border:1px solid #1E293B; border-radius:16px; padding:6px 14px; font:400 12px var(--sans); color:#E2E8F0; display:flex; align-items:center; gap:6px; }
.cg-ring-pill .dot { width:8px; height:8px; border-radius:50%; display:inline-block; }

/* Framework cards grid */
.cg-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; max-width:1400px; margin:0 auto; }
@media (max-width:1279px) { .cg-grid { grid-template-columns:repeat(3, 1fr); } }
@media (max-width:1023px) { .cg-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:767px) { .cg-grid { grid-template-columns:1fr; } .cg-heatmap { overflow-x:auto; scroll-snap-type:x mandatory; } .cg-heatmap-seg { min-width:48px; scroll-snap-align:start; } .cg-heatmap-label { display:none; } }

/* Framework card */
.cg-card { background:#0F172A; border:1px solid #1E293B; border-radius:8px; padding:20px; cursor:pointer; transition:all 150ms ease; position:relative; border-left-width:4px; border-left-style:solid; }
.cg-card:hover { border-color:#334155; transform:translateY(-1px); }
.cg-card-flash { animation:cgCardFlash 1.5s ease; }
@keyframes cgCardFlash { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 20px rgba(6,182,212,0.3)} }
.cg-card-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
.cg-card-name { font:700 13px var(--mono); color:#F1F5F9; }
.cg-card-border-label { font:400 10px var(--mono); }
.cg-card-pct { font:700 32px var(--mono); line-height:1; margin-bottom:8px; }
.cg-card-bar { width:100%; height:6px; border-radius:3px; background:#1E293B; overflow:hidden; margin-bottom:10px; }
.cg-card-bar-fill { height:100%; border-radius:3px; transition:width 500ms ease; }
.cg-card-reqs { font:400 12px var(--sans); color:#94A3B8; margin-bottom:8px; }
.cg-card-reqs .met { color:#10B981; } .cg-card-reqs .risk { color:#F59E0B; } .cg-card-reqs .gap { color:#EF4444; }
.cg-card-meta { font:400 12px var(--sans); color:#64748B; line-height:1.6; }
.cg-card-fine { color:#E2E8F0; }
.cg-card-status { display:inline-block; font:400 10px var(--mono); padding:2px 8px; border-radius:10px; border:1px solid; margin-top:6px; }
.cg-card-actions { display:flex; justify-content:space-between; margin-top:12px; padding-top:10px; border-top:1px solid #1E293B; }
.cg-card-btn { font:400 12px var(--sans); background:none; border:none; cursor:pointer; padding:4px 0; }
.cg-card-btn.detail { color:#06B6D4; } .cg-card-btn.evidence { color:#94A3B8; }
.cg-card-btn:hover { text-decoration:underline; }

/* Detail panel (slides open below card row) */
.cg-detail-wrap { grid-column:1 / -1; overflow:hidden; transition:max-height 250ms ease-out, opacity 200ms ease; }
.cg-detail { background:#0B0E14; border:1px solid #1E293B; border-radius:8px; padding:20px; }
.cg-detail-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.cg-detail-title { font:600 14px var(--mono); color:#F1F5F9; }
.cg-detail-close { background:none; border:none; color:#64748B; cursor:pointer; font-size:18px; padding:4px 8px; }
.cg-detail-close:hover { color:#F1F5F9; }
.cg-detail-body { display:flex; gap:20px; }
@media (max-width:1023px) { .cg-detail-body { flex-direction:column; } }

/* Constellation column */
.cg-constellation { width:250px; min-width:250px; }
.cg-constellation svg { background:#0B0E14; border-radius:8px; width:250px; height:250px; }
.cg-constellation-label { font:400 10px var(--mono); color:#06B6D4; letter-spacing:2px; text-align:center; margin-top:8px; }
.cg-star { transition:all 150ms ease; cursor:pointer; }
.cg-star.glow { filter:drop-shadow(0 0 6px currentColor); }
.cg-star.dimmed { opacity:0.15 !important; }
.cg-star-met { fill:#06B6D4; opacity:0.9; }
.cg-star-risk { fill:#F59E0B; opacity:0.9; }
.cg-star-gap { fill:#334155; opacity:0.3; }
@keyframes cg-pulse-met { 0%,100%{transform-origin:center;transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes cg-pulse-risk { 0%,100%{transform-origin:center;transform:scale(1)} 50%{transform:scale(1.08)} }
.cg-star-met { animation:cg-pulse-met 4s infinite ease-in-out; }
.cg-star-risk { animation:cg-pulse-risk 3s infinite ease-in-out; }

/* Requirements table column */
.cg-req-table-wrap { flex:1; max-height:400px; overflow-y:auto; scrollbar-gutter:stable; }
.cg-req-table { width:100%; border-collapse:collapse; }
.cg-req-table th { font:400 10px var(--mono); color:#64748B; letter-spacing:1px; text-align:left; padding:6px 8px; border-bottom:1px solid #1E293B; position:sticky; top:0; background:#0B0E14; z-index:1; }
.cg-req-table td { font:400 13px var(--sans); color:#E2E8F0; padding:8px; border-bottom:1px solid rgba(30,41,59,0.5); }
.cg-req-table tr:nth-child(even) td { background:#0F172A; }
.cg-req-table tr:nth-child(odd) td { background:#111827; }
.cg-req-table tr.highlight td, .cg-req-table tr:hover td { background:#1E3A5F !important; }
.cg-req-table tr.highlight td:first-child, .cg-req-table tr:hover td:first-child { box-shadow:inset 3px 0 0 #06B6D4; }
.cg-req-dims { font:400 11px var(--mono); color:#94A3B8; }
.cg-req-score { font:700 13px var(--mono); }
.cg-req-status-badge { font:400 10px var(--mono); padding:2px 8px; border-radius:10px; display:inline-block; }
.cg-req-status-badge.met { background:rgba(16,185,129,0.15); color:#10B981; border:1px solid rgba(16,185,129,0.3); }
.cg-req-status-badge.at_risk { background:rgba(245,158,11,0.15); color:#F59E0B; border:1px solid rgba(245,158,11,0.3); }
.cg-req-status-badge.gap { background:rgba(239,68,68,0.15); color:#EF4444; border:1px solid rgba(239,68,68,0.3); }
.cg-req-status-badge.pending { background:rgba(148,163,184,0.15); color:#94A3B8; border:1px solid rgba(148,163,184,0.3); }

/* Gap analysis column */
.cg-gaps { width:280px; min-width:280px; }
.cg-gaps-title { font:400 10px var(--mono); color:#06B6D4; letter-spacing:2px; margin-bottom:8px; }
.cg-gaps-count { font:400 13px var(--sans); color:#94A3B8; margin-bottom:12px; }
.cg-gap-card { background:#111827; border:1px solid #1E293B; border-radius:6px; padding:12px; margin-bottom:8px; }
.cg-gap-name { font:600 13px var(--sans); color:#F1F5F9; margin-bottom:4px; }
.cg-gap-score { font:400 12px var(--mono); color:#EF4444; }
.cg-gap-dims { font:400 11px var(--mono); color:#94A3B8; margin:4px 0; }
.cg-gap-remedy { font:400 12px var(--sans); color:#CBD5E1; line-height:1.5; }
.cg-gap-btn { width:100%; height:40px; border-radius:6px; font:500 12px var(--sans); cursor:pointer; margin-top:12px; transition:all 150ms ease; }
.cg-gap-btn.primary { background:rgba(6,182,212,0.1); color:#06B6D4; border:1px solid rgba(6,182,212,0.3); }
.cg-gap-btn.primary:hover { background:rgba(6,182,212,0.2); }
.cg-gap-btn.secondary { background:transparent; color:#94A3B8; border:1px solid #334155; }
.cg-gap-btn.secondary:hover { color:#F1F5F9; }
.cg-gap-success { display:flex; align-items:center; gap:8px; font:500 13px var(--sans); color:#10B981; padding:20px 0; }

/* ══════════════════════════════════════════════════════
   AGENTS
   ══════════════════════════════════════════════════════ */
.ag-tabs { display:flex; gap:0; border-bottom:1px solid #1E293B; margin-bottom:20px; }
.ag-tab { padding:10px 16px; font:400 13px var(--sans); color:#94A3B8; cursor:pointer; border-bottom:2px solid transparent; transition:color 150ms; }
.ag-tab:hover { color:#E2E8F0; }
.ag-tab.active { color:#06B6D4; border-bottom-color:#06B6D4; }
.ag-session-card { background:#0F172A; border:1px solid #1E293B; border-left:4px solid #06B6D4; border-radius:8px; padding:16px 20px; margin-bottom:12px; transition:border-color 150ms; }
.ag-session-card:hover { border-color:#334155; }
.ag-tool-card { background:#0F172A; border:1px solid #1E293B; border-radius:8px; padding:20px; text-align:center; transition:all 150ms; }
.ag-tool-card:hover { border-color:#334155; transform:translateY(-1px); }
.ag-step-detail { background:#111827; border:1px solid #1E293B; border-radius:8px; padding:16px 20px; margin-top:12px; }
@media (max-width:1023px) { .ag-tool-card { } }
@media (max-width:767px) { .ag-tabs { overflow-x:auto; } }

/* ══════════════════════════════════════════════════════
   TEAM MANAGEMENT
   ══════════════════════════════════════════════════════ */
.tm-page { max-width:1400px; }

/* Admin card */
.tm-admin-card { background:#0F172A; border:1px solid #06B6D4; border-radius:8px; margin-bottom:32px; overflow:hidden; }
.tm-admin-header { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid #1E293B; }
.tm-admin-title { font:600 11px var(--mono); letter-spacing:3px; color:#06B6D4; }
.tm-admin-badge { font:400 10px var(--mono); color:#06B6D4; border:1px solid #06B6D4; padding:3px 10px; border-radius:12px; letter-spacing:1px; }
.tm-admin-body { display:flex; gap:40px; padding:20px; flex-wrap:wrap; }
.tm-stat { display:flex; flex-direction:column; }
.tm-stat-val { font:700 18px var(--mono); color:#F1F5F9; }
.tm-stat-lbl { font:400 11px var(--sans); color:#64748B; margin-top:2px; }

/* Section */
.tm-section { margin-bottom:32px; }
.tm-section-hdr { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #1E293B; }
.tm-section-title { font:600 11px var(--mono); letter-spacing:3px; color:#06B6D4; }
.tm-section-actions { display:flex; gap:10px; align-items:center; }

/* Buttons */
.tm-btn-invite { background:rgba(6,182,212,0.1); color:#06B6D4; border:1px solid rgba(6,182,212,0.3); padding:8px 20px; border-radius:6px; font:500 12px var(--mono); letter-spacing:1px; cursor:pointer; transition:background 150ms; }
.tm-btn-invite:hover { background:rgba(6,182,212,0.2); }
.tm-btn-export { background:none; color:#94A3B8; border:1px solid #334155; padding:8px 16px; border-radius:6px; font:500 12px var(--mono); letter-spacing:1px; cursor:pointer; transition:color 150ms,border-color 150ms; }
.tm-btn-export:hover { color:#F1F5F9; border-color:#64748B; }
.tm-btn-clear { background:none; color:#F59E0B; border:1px solid rgba(245,158,11,0.3); padding:6px 16px; border-radius:6px; font:400 12px var(--sans); cursor:pointer; }
.tm-btn-clear:hover { background:rgba(245,158,11,0.1); }
.tm-btn-remove { background:none; border:none; color:#EF4444; font-size:14px; cursor:pointer; padding:4px 8px; border-radius:4px; opacity:0.6; transition:opacity 150ms; }
.tm-btn-remove:hover { opacity:1; background:rgba(239,68,68,0.1); }
.tm-btn-purge { background:none; border:none; color:#EF4444; font-size:14px; cursor:pointer; padding:4px 8px; border-radius:4px; opacity:0.5; transition:opacity 150ms; }
.tm-btn-purge:hover { opacity:1; background:rgba(239,68,68,0.15); }
.tm-row-inactive td { opacity:0.6; }
.tm-row-inactive:hover td { opacity:0.85; }
.tm-btn-resend { background:none; border:1px solid rgba(6,182,212,0.3); color:#06B6D4; padding:4px 12px; border-radius:4px; font:400 11px var(--sans); cursor:pointer; }
.tm-btn-resend:hover { background:rgba(6,182,212,0.1); }
.tm-btn-revoke { background:none; border:none; color:#EF4444; font:400 11px var(--sans); cursor:pointer; opacity:0.6; padding:4px 8px; }
.tm-btn-revoke:hover { opacity:1; }

/* Table */
.tm-table { width:100%; border-collapse:collapse; }
.tm-table thead th { font:400 10px var(--mono); letter-spacing:1px; color:#64748B; text-align:left; padding:10px 12px; border-bottom:1px solid #1E293B; white-space:nowrap; }
.tm-sortable { cursor:pointer; user-select:none; transition:color 150ms; }
.tm-sortable:hover { color:#06B6D4; }

/* Filter bar */
.tm-filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.tm-search { background:#1E293B; border:1px solid #334155; border-radius:6px; padding:8px 14px; font:400 13px var(--mono); color:#F1F5F9; width:280px; box-sizing:border-box; transition:border-color 150ms; }
.tm-search:focus { outline:none; border-color:#06B6D4; }
.tm-search::placeholder { color:#64748B; }
.tm-filter-sel { background:#1E293B; border:1px solid #334155; border-radius:6px; padding:8px 10px; font:400 12px var(--sans); color:#E2E8F0; cursor:pointer; }
.tm-filter-sel:focus { outline:none; border-color:#06B6D4; }
.tm-filter-count { font:400 12px var(--sans); color:#64748B; margin-left:auto; }
.tm-row { transition:background 150ms; }
.tm-row:hover { background:#111827; }
.tm-row td { padding:12px; border-bottom:1px solid rgba(15,23,42,0.8); }
.tm-email { font:400 13px var(--mono); color:#E2E8F0; }
.tm-name, .tm-org, .tm-date { font:400 13px var(--sans); color:#94A3B8; }
.tm-role { font:400 10px var(--mono); letter-spacing:1px; padding:3px 10px; border-radius:10px; border:1px solid #94A3B8; color:#94A3B8; }
.tm-actions { display:flex; gap:8px; align-items:center; }
.tm-role-sel { background:#1E293B; color:#E2E8F0; border:1px solid #334155; border-radius:4px; padding:4px 8px; font:400 12px var(--sans); cursor:pointer; }

/* Modal */
.tm-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:9999; animation:fadeIn 150ms ease; }
.tm-modal { background:#0F172A; border:1px solid #1E293B; border-radius:12px; width:460px; max-width:90vw; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
.tm-modal-hdr { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid #1E293B; }
.tm-modal-title { font:600 13px var(--mono); letter-spacing:2px; color:#F1F5F9; }
.tm-modal-close { background:none; border:none; color:#64748B; font-size:16px; cursor:pointer; padding:4px 8px; }
.tm-modal-close:hover { color:#F1F5F9; }
.tm-modal-body { padding:24px; }
.tm-modal-lbl { display:block; font:400 12px var(--sans); color:#94A3B8; margin-bottom:6px; }
.tm-modal-input { width:100%; background:#1E293B; border:1px solid #334155; border-radius:6px; padding:10px 14px; color:#F1F5F9; font:400 14px var(--mono); box-sizing:border-box; }
.tm-modal-input:focus { outline:none; border-color:#06B6D4; }
.tm-modal-footer { display:flex; justify-content:flex-end; gap:12px; padding:16px 24px; border-top:1px solid #1E293B; }
.tm-btn-cancel { background:none; border:1px solid #334155; color:#94A3B8; padding:8px 20px; border-radius:6px; font:400 13px var(--sans); cursor:pointer; }
.tm-btn-cancel:hover { color:#F1F5F9; border-color:#64748B; }
.tm-btn-submit { background:#06B6D4; border:none; color:#0E1117; padding:8px 24px; border-radius:6px; font:600 13px var(--sans); cursor:pointer; }
.tm-btn-submit:hover { background:#22D3EE; }
.tm-btn-submit:disabled { opacity:0.5; cursor:not-allowed; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

/* Responsive */
@media (max-width:1023px) {
  .tm-admin-body { gap:20px; }
  .tm-table { font-size:12px; }
}

/* ══════════════════════════════════════════════════════
   DEPLOYMENT CONFIGURATION DRAWER
   ══════════════════════════════════════════════════════ */
.cfg-drawer-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:9998; }
.cfg-drawer { position:fixed; top:0; right:-700px; width:50%; min-width:500px; max-width:700px; height:100vh; background:#0F172A; border-left:1px solid #1E293B; box-shadow:-8px 0 24px rgba(0,0,0,0.4); display:flex; flex-direction:column; z-index:9999; transition:right 300ms ease; }
.cfg-drawer.open { right:0; }
.cfg-drawer-hdr { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid #1E293B; }
.cfg-drawer-title { font:700 16px var(--mono); color:#F1F5F9; }
.cfg-drawer-close { background:none; border:none; color:#64748B; font-size:18px; cursor:pointer; padding:4px 8px; }
.cfg-drawer-close:hover { color:#F1F5F9; }
.cfg-drawer-tabs { display:flex; border-bottom:1px solid #1E293B; padding:0 24px; }
.cfg-tab { padding:12px 16px; font:400 13px var(--sans); color:#94A3B8; cursor:pointer; border-bottom:2px solid transparent; transition:color 150ms; }
.cfg-tab:hover { color:#E2E8F0; }
.cfg-tab.active { color:#06B6D4; border-bottom-color:#06B6D4; }
.cfg-drawer-body { flex:1; overflow-y:auto; padding:24px; scrollbar-gutter:stable; }
.cfg-drawer-footer { display:flex; justify-content:flex-end; gap:12px; padding:16px 24px; border-top:1px solid #1E293B; }
.cfg-form label.tm-modal-lbl { margin-top:16px; }
.cfg-form label.tm-modal-lbl:first-child { margin-top:0; }

/* Threshold controls */
.cfg-thresh-row { margin-bottom:20px; }
.cfg-thresh-label { font:500 13px var(--sans); color:#E2E8F0; margin-bottom:6px; }
.cfg-thresh-controls { display:flex; align-items:center; gap:6px; margin-bottom:6px; flex-wrap:wrap; }
.cfg-thresh-input { width:60px; background:#1E293B; border:1px solid #334155; border-radius:4px; padding:4px 8px; color:#F1F5F9; font:400 13px var(--mono); text-align:center; }
.cfg-thresh-input:focus { outline:none; border-color:#06B6D4; }
.cfg-thresh-bar { display:flex; height:8px; border-radius:4px; overflow:hidden; }
.cfg-thresh-bar > div { height:100%; }
.cfg-preset-btn { background:#1E293B; border:1px solid #334155; border-radius:6px; padding:6px 16px; color:#E2E8F0; font:400 12px var(--mono); cursor:pointer; transition:all 150ms; }
.cfg-preset-btn:hover { border-color:#06B6D4; color:#06B6D4; }

/* Framework enrollment rows */
.cfg-fw-row { display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer; border-radius:6px; transition:background 150ms; }
.cfg-fw-row:hover { background:#111827; }
.cfg-fw-cb { accent-color:#06B6D4; cursor:pointer; }

/* Alert blocks */
.cfg-alert-block { margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid #1E293B; }
.cfg-alert-block:last-of-type { border-bottom:none; }

@media (max-width:767px) { .cfg-drawer { width:100%; min-width:0; max-width:100%; } }
