* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 1px solid #222;
  padding-bottom: 30px;
}

.header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d4af37;
  margin-bottom: 10px;
}

.header .subtitle {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.header .timestamp {
  font-size: 12px;
  color: #555;
  font-family: 'Courier New', monospace;
}

/* 6-Plane Grid */
.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Plane Base Style */
.plane {
  border: 2px solid;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.plane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid;
  background: rgba(255, 255, 255, 0.02);
}

.plane-header h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.plane-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.plane-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
}

.plane-meta {
  padding: 15px 20px;
  border-top: 1px solid;
  font-size: 11px;
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.01);
}

/* Plane-Specific Colors */
.plane-ledger {
  border-color: #d4af37;
  --plane-color: #d4af37;
}

.plane-reconciliation {
  border-color: #00d9ff;
  --plane-color: #00d9ff;
}

.plane-substratic {
  border-color: #00ff88;
  --plane-color: #00ff88;
}

.plane-substrate {
  border-color: #ff0055;
  --plane-color: #ff0055;
}

.plane-substance {
  border-color: #ff9500;
  --plane-color: #ff9500;
}

.plane-membrane {
  border-color: #aa00ff;
  --plane-color: #aa00ff;
}

/* Plane Header Color Accents */
.plane-ledger .plane-header {
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

.plane-reconciliation .plane-header {
  border-bottom-color: rgba(0, 217, 255, 0.2);
}

.plane-substratic .plane-header {
  border-bottom-color: rgba(0, 255, 136, 0.2);
}

.plane-substrate .plane-header {
  border-bottom-color: rgba(255, 0, 85, 0.2);
}

.plane-substance .plane-header {
  border-bottom-color: rgba(255, 149, 0, 0.2);
}

.plane-membrane .plane-header {
  border-bottom-color: rgba(170, 0, 255, 0.2);
}

/* Plane Meta Color Accents */
.plane-ledger .plane-meta {
  border-top-color: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

.plane-reconciliation .plane-meta {
  border-top-color: rgba(0, 217, 255, 0.2);
  color: #00d9ff;
}

.plane-substratic .plane-meta {
  border-top-color: rgba(0, 255, 136, 0.2);
  color: #00ff88;
}

.plane-substrate .plane-meta {
  border-top-color: rgba(255, 0, 85, 0.2);
  color: #ff0055;
}

.plane-substance .plane-meta {
  border-top-color: rgba(255, 149, 0, 0.2);
  color: #ff9500;
}

.plane-membrane .plane-meta {
  border-top-color: rgba(170, 0, 255, 0.2);
  color: #aa00ff;
}

/* Content Styles */
.loading {
  color: #666;
  text-align: center;
  padding: 40px 0;
  opacity: 0.5;
}

.projection-stat {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
  opacity: 0.6;
}

.stat-value {
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* Error State */
.error {
  color: #ff0055;
  padding: 15px;
  border-left: 3px solid #ff0055;
  background: rgba(255, 0, 85, 0.05);
}

/* List Items */
.list-item {
  margin: 8px 0;
  padding: 8px;
  border-left: 2px solid transparent;
  opacity: 0.8;
}

.list-item.active {
  border-left-color: currentColor;
  opacity: 1;
}

/* Status Indicators */
.status-ok {
  color: #00ff88;
}

.status-warning {
  color: #ff9500;
}

.status-error {
  color: #ff0055;
}

.status-unknown {
  color: #888;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #222;
  color: #666;
  font-size: 12px;
}

#footer-status {
  margin-top: 10px;
  font-size: 11px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 768px) {
  .planes-grid {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 32px;
  }

  .container {
    padding: 20px 15px;
  }
}

/* No animation â€” only crisp transitions */
* {
  transition: none;
}

/* Drift indicator (loud red) */
.drift-detected {
  animation: none;
  border-color: #ff0055 !important;
  box-shadow: inset 0 0 10px rgba(255, 0, 85, 0.3);
}
