/* Global Style Token Overrides & System Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.core-dark-theme-canvas {
  background-color: #0a0e17; /* Deep twilight core console background variable */
  color: #f3f4f6;
  font-family: monospace, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* 1. STICKY TOP PLATFORM HEADER BOUNDING BOX */
.core-global-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: #111827; /* Rich container tile gray profile */
  border-bottom: 1px solid #1f2937;
  z-index: 100; /* Stays permanently layered above rolling feeds */
}

.core-header-container {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 12px; /* Rigid adherence to the 12px padding standard */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.core-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.core-brand-icon {
  font-size: 18px;
}

.core-brand-text {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.core-action-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.core-header-zip-badge {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #3b82f6; /* Blue regional accent indicator */
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.core-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease;
}

.core-avatar-btn:hover {
  background-color: #374151;
}

/* 2. CHAMELEON MOUNT VIEWPORT RENDER BOX */
.core-viewport-container {
  width: 100%;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.core-module-mount-node {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.core-loading-placeholder {
  margin: auto;
  font-size: 13px;
  color: #4b5563;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 3. NATIVE DIALOG OVERLAY DRAWER MODULES */
.core-dialog-frame {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 24px);
  max-height: 85vh;
  outline: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.core-dialog-frame::backdrop {
  background-color: rgba(3, 7, 18, 0.8); /* Dim background canvas */
  backdrop-filter: blur(4px);
}

.core-dialog-scroll-box {
  padding: 16px;
  overflow-y: auto;
  max-height: 85vh;
}

/* Core Form & Element Globals (Touch-Target Protections) */
button:focus, input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Utility Hidden Toggle System */
.core-hidden {
  display: none !important;
}

/* Responsive Structural Slot Layout Rules for Multi-Device Adaptation */
@media (min-width: 1024px) {
  .core-header-container {
    max-width: 1024px;
    padding: 0 24px;
  }
}
