/* ============================================================
   ENIGMA DESIGN SYSTEM — production stylesheet
   Single source of truth for the operator console.
   Extracted from /home/dark/Hämtningar/enigma-design-system(1)
   Live reference: https://enigma-cyber.netlify.app
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ---------- 2. DESIGN TOKENS (LIGHT) ---------- */
:root {
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --bg-3: #F5F5F5;

  --ink: #0A0A0A;
  --ink-2: #404040;
  --ink-3: #737373;

  --line: #E5E5E5;
  --line-soft: #F0F0F0;

  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-bright: #EF4444;
  --red-glow: rgba(220, 38, 38, 0.10);
  --red-soft: rgba(220, 38, 38, 0.04);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);

  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ---------- 3. DARK MODE ---------- */
[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --bg-3: #1F1F1F;

  --ink: #FAFAFA;
  --ink-2: #C0C0C0;
  --ink-3: #808080;

  --line: #262626;
  --line-soft: #1A1A1A;

  --red: #EF4444;
  --red-dark: #DC2626;
  --red-bright: #F87171;
  --red-glow: rgba(239, 68, 68, 0.18);
  --red-soft: rgba(239, 68, 68, 0.08);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.55);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.6);
}

/* ---------- 4. THEME TOGGLE BUTTON ---------- */
#theme-toggle {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
#theme-toggle:hover {
  background: var(--bg-2);
  border-color: var(--ink-3);
}

/* ---------- 5. TYPOGRAPHY UTILITIES ---------- */
.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.heading-3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.body-large {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.body-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}
.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* Eyebrow-block decorator (red rule + label) */
.eyebrow-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.eyebrow-block::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- 6. LOGO ---------- */
.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.logo-dot {
  color: var(--red);
  margin-left: 4px;
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--ink-3);
}
.btn-large {
  padding: 16px 28px;
  font-size: 13px;
}
.btn-small {
  padding: 8px 14px;
  font-size: 11px;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- 8. INPUTS & FORMS ---------- */
.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.input::placeholder { color: var(--ink-3); }
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition);
}
.card-elevated {
  box-shadow: var(--shadow-sm);
}
.card-elevated:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--ink-3);
}
.card-feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--red), transparent);
  opacity: 0.6;
}

/* ---------- 10. BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.badge-red {
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid var(--red);
}
.badge-outline {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.badge-solid {
  background: var(--ink);
  color: var(--bg);
}
.badge-success {
  background: rgba(34, 197, 94, 0.10);
  color: rgb(22, 163, 74);
  border: 1px solid rgba(34, 197, 94, 0.30);
}
.badge-warning {
  background: rgba(234, 179, 8, 0.10);
  color: rgb(202, 138, 4);
  border: 1px solid rgba(234, 179, 8, 0.30);
}
.badge-critical {
  background: var(--red);
  color: white;
}
[data-theme="dark"] .badge-success {
  color: rgb(74, 222, 128);
}
[data-theme="dark"] .badge-warning {
  color: rgb(250, 204, 21);
}

/* ---------- 11. NAVIGATION (top-bar pattern) ---------- */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
[data-theme="dark"] .app-nav {
  background: rgba(10, 10, 10, 0.75);
}
.app-nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.app-nav-logo .logo-dot { margin-left: 0; }
.app-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.app-nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--transition);
}
.app-nav-links a:hover { color: var(--ink); }
.app-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.app-nav-cta:hover {
  background: var(--red-soft);
}
.app-nav-cta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- 12. UTILITIES ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-ink-2 { color: var(--ink-2); }
.text-ink-3 { color: var(--ink-3); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 13. LOGIN MOCKUP ---------- */
.login-mockup {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, var(--red-soft), transparent 60%),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 32px),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.login-card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--red);
  border-style: solid;
}
.login-card-corner.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.login-card-corner.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.login-card-corner.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.login-card-corner.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.login-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.login-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--ink);
}
.login-card .lead-sm {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.login-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.login-footer a { color: var(--ink-2); text-decoration: none; }
.login-footer a:hover { color: var(--red); }

/* Inline error inside the login card */
.login-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
}

/* ---------- 14. DASHBOARD MOCKUP ---------- */
.dashboard-mockup {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.dash-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
}
.dash-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 28px;
  padding: 4px 12px;
  color: var(--ink);
  text-decoration: none;
}
.dash-sidebar-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 12px 6px;
}
.dash-sidebar-nav {
  list-style: none;
  flex: 0 0 auto;
}
.dash-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: all var(--transition);
}
.dash-sidebar-nav a:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.dash-sidebar-nav a.active {
  color: var(--red);
  background: var(--red-glow);
}
.dash-sidebar-nav a .icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.dash-sidebar-foot {
  padding: 16px 12px 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.dash-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.dash-sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.dash-sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.dash-sidebar-user-name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-sidebar-user-role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dash-main {
  padding: 28px 32px;
  overflow-y: auto;
  background: var(--bg-2);
}
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.dash-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-topbar-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.dash-topbar-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
}
.pulse-dot::before, .pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
}
.pulse-dot::before {
  animation: pulse 2s ease-out infinite;
  opacity: 0.5;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-mockup { grid-template-columns: 1fr; }
}
.stat-card {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--ink-3);
}
.stat-card.accent {
  border-color: var(--red);
  background: var(--red-soft);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-change {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-change.up { color: rgb(22, 163, 74); }
.stat-change.down { color: var(--red); }
[data-theme="dark"] .stat-change.up { color: rgb(74, 222, 128); }

.dash-section { margin-bottom: 28px; }
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.dash-section-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dash-table th {
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-weight: 500;
}
.dash-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table td.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.progress {
  width: 80px;
  height: 4px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--red);
}

.dash-list {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dash-list-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--transition);
}
.dash-list-row:last-child { border-bottom: none; }
.dash-list-row:hover { background: var(--bg-2); }
.dash-list-content {
  min-width: 0;
}
.dash-list-title {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
}
.dash-list-asset {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.dash-list-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}
.compliance-card {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.compliance-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.compliance-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.compliance-score sup {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 4px;
}
.compliance-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}
.compliance-bar-fill {
  height: 100%;
  background: var(--red);
}
.compliance-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- 15. HINT BANNER ---------- */
.hint {
  padding: 16px 20px;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 24px;
}
.hint strong { color: var(--red); font-weight: 500; }

/* ---------- 16. APP SHELL (production layout for the operator console) ----------
   The dashboard-mockup pattern, scaled to fill the viewport so existing page
   templates can drop in via {{embed}} without grid scaffolding of their own.
   ---------------------------------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-2);
}
.app-shell > .dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.app-shell > .dash-main {
  min-width: 0;
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-shell > .dash-sidebar { display: none; }
  .app-shell > .dash-sidebar.open {
    display: flex;
    position: fixed;
    z-index: 200;
    width: 240px;
  }
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
@media (max-width: 1100px) {
  .mobile-menu-btn { display: inline-flex; }
}

/* Page content wrapper inside dash-main */
.page-content {
  display: block;
  width: 100%;
}
